Skip to content

Releases: elysiajs/elysia

1.2.12

04 Feb 14:20
1e42724
Compare
Choose a tag to compare

What's new

Bug fix:

  • warn when non-existing macro is used
  • parser doesn't generate optimize instruction

Full Changelog: 1.2.11...1.2.12

1.2.11

01 Feb 12:50
caaf17c
Compare
Choose a tag to compare

What's new

  • Reduce memory usage:
    • Compressed lifecycle event
    • Avoid unnecessary declaration in compose.ts
    • Lazily build radix tree for dynamic router

Change:

  • Update TypeBox to 0.34.15

Bug fix:

  • #1039 Elysia fails to start with an error inside its own code when using decorate twice with Object.create(null)
  • #1005 Parsing malformed body with NODE_ENV 'production' results in UNKNOWN error
  • #1037 Validation errors in production throw undefined is not an object (evaluating 'error2.schema')
  • #1036 Support Bun HTML import

Full Changelog: 1.2.10...1.2.11

1.2.10

05 Jan 12:51
353efd2
Compare
Choose a tag to compare

Feature:

  • add shorthand property for macro function

Improvement:

  • use deuri instead of fast-decode-uri-component
  • #985 MaybeEmpty and Nullable should have options args

Bug fix:

  • Macro function doesn't inherits local/scoped derive and resolve in type-level

Full Changelog: 1.2.9...1.2.10

1.2.9

28 Dec 08:10
bc9b3b6
Compare
Choose a tag to compare

Bug fix:

  • Resolve macro unintentionally return instead of assign new context

Full Changelog: 1.2.8...1.2.9

1.2.8

27 Dec 16:15
958fde0
Compare
Choose a tag to compare

Bug fix:

  • #966 generic error somehow return 200

Full Changelog: 1.2.7...1.2.8

1.2.7

27 Dec 12:24
41f5db7
Compare
Choose a tag to compare

Bug fix

  • macro doesn't work with guard
  • #981 unable to deference schema, create default, and coerce value
  • #966 error's value return as-if when thrown
  • #964 InvalidCookieSignature errors are not caught by onError
  • #952 onAfterResponse does not provide mapped response value unless aot is disabled
  • mapResponse.response is {} if no response schema is provided
  • Response doesn't reconcile when handler return Response is used with mapResponse
  • onError now accepts error as number when Elysia.error is thrown (but not returned)

Full Changelog: 1.2.6...1.2.7

1.2.6

24 Dec 22:44
60cab72
Compare
Choose a tag to compare

Bug fix:

  • mapResponse with onError caused compilation error

Full Changelog: 1.2.5...1.2.6

1.2.5

24 Dec 19:30
bb3e780
Compare
Choose a tag to compare

Bug fix:

  • define universal/file in package export

Full Changelog: 1.2.4...1.2.5

1.2.4

24 Dec 18:59
3566c79
Compare
Choose a tag to compare

Bug fix:

  • performance regression from eager access abortSignal

Full Changelog: 1.2.3...1.2.4

1.2.3

24 Dec 18:14
e83daaf
Compare
Choose a tag to compare

Full Changelog: 1.2.2...1.2.3

What's Changed

  • #973 Parsing malformed body results in UNKNOWN-Error instead of ParseError
  • #971 remove top level import, use dynamic import instead
  • #969 Invalid context on .onStart, .onStop
  • #965 [Composer] failed to generate optimized handler. Unexpected identifier 'mapCompactResponse'
  • #962 fix schema default value when AOT is of
  • decorator name with space is not working

Full Changelog: 1.2.2...1.2.3