Skip to content

Releases: elysiajs/elysia

1.2.15

19 Feb 12:54
7638167
Compare
Choose a tag to compare

What's new

Bug fix:

  • #1067 recompile async plugin once registered
  • #1052 webSocket errors not getting catched by error handler
  • #1038 incorrect type inference with deferred modules leads to TypeErrors in runtime
  • #1015 using a model by name in route query leads to type mispatch, yet validation succeeds if doesn't use Ref
  • #1047 ampersand in URL search params is discarded
  • detect Transform inside t.Array in hasTransform

Improvement:

  • add test cases for hasTransform
  • hasTransform now supports Union, Intersect
  • remove redundant decodeURIComponent in nested query

Full Changelog: 1.2.14...1.2.15

doro approved

1.2.14

17 Feb 15:43
7743f82
Compare
Choose a tag to compare

What's new

Feature:

  • parse nuqs string array format if query is specified as t.Array(t.String())

Improvement:

  • handle recursive nested async plugin
  • Response now handle proxy streaming
  • #971 wrap import("fs/promises") AND wrap import("fs") in try-catch to avoid error (silly me, tee-hee~)
  • handle nested array property swap for replaceSchemaType

Breaking Change:

  • [Internal] Elysia.modules now return void

Full Changelog: 1.2.13...1.2.14

my man

1.2.13

16 Feb 16:05
b1bf2f2
Compare
Choose a tag to compare

What's new

Improvement:

  • #977 use Registry instead of TypeSystem
  • remove redundant switch-case for path mapping when strictPath is disabled and path is overlapped
  • remove redundant allocation for nativeStaticHanlder when strictPath path is overlapped

Bug fix:

  • #1062 correctly set t.Date() defaults
  • #1050 app.onRequest(ctx => {ctx.server}): Can't find variable: getServer
  • #1040 undefined route context on aot=false
  • #1017 replace t.Number() for Type.Integer()
  • #976 error responses with aot: false
  • #975 await nested async plugins
  • #971 wrap import("fs/promises") in try-catch to avoid error
  • discord file format doesn't check for '*' format

New Contributors

Full Changelog: 1.2.12...1.2.13

approved

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