Releases: elysiajs/elysia
Releases · elysiajs/elysia
1.2.15
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
insidet.Array
inhasTransform
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

1.2.14
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

1.2.13
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
- @aaronsheah made their first contribution in #1062
- @and-rose made their first contribution in #1017
- @rtritto made their first contribution in #870
Full Changelog: 1.2.12...1.2.13
1.2.12
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
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
Feature:
- add shorthand property for macro function
Improvement:
- use
deuri
instead offast-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
Bug fix:
- Resolve macro unintentionally return instead of assign new context
Full Changelog: 1.2.8...1.2.9
1.2.8
1.2.7
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 withmapResponse
onError
now acceptserror
asnumber
whenElysia.error
is thrown (but not returned)
Full Changelog: 1.2.6...1.2.7