Skip to content

Releases: elysiajs/elysia

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

1.2.2

23 Dec 17:16
94c63cc
Compare
Choose a tag to compare

Bug fix:

  • conditional import and require

Full Changelog: 1.2.1...1.2.2

1.2.1

23 Dec 16:58
c325fd6
Compare
Choose a tag to compare

Bug fix:

  • conditional import for fs
  • object macro parameter maybe array
  • optional return for macro

Full Changelog: 1.1.27...1.2.1