elysia
1.4.32 · 11 Nov 2026MIT2.2M / weekRepositorynpmAtom feed
1.4.32 is the newest release of 1.x.
In short
4 new1 fixed30 changed
Security
4 advisories affect 1.0.0; 1.4.29 fixes them
- Highelysia has Inefficient Algorithmic Complexity and Interpretation ConflictGHSA-9643-4qgh-g8mx · 23 Sep 2026Fixed in 1.4.29
- HighElysia has a string URL format ReDoSGHSA-f45g-68q3-5w8x · 10 Mar 2026Fixed in 1.4.26
- HighElysia affected by arbitrary code injection through cookie configGHSA-8vch-m3f4-q8jf · 9 Dec 2025Fixed in 1.4.18
- ModerateElysia Cookie Value Prototype PollutionGHSA-8hq9-phh3-p2wp · 17 Mar 2026Fixed in 1.4.27
Release note
Improvement:
fine-grained reactive cookie
Using single source of truth for cookie
Macro support for websocket
Add
mapResolveAdd
{ as: 'global' | 'scoped' | 'local' }to lifecycle eventAdd ephemeral type
Inline
errorto handlerInline
errorhas auto-completion and type checking based on status codeHandler now check return type of
errorbased on status codeUtility
Elysia._typesfor types inferenceProvide user friendly error for failed parse
Handler now infers return type for error status for Treaty
t.Datenow allow stringified dateImproves type test case
Add test case for all life-cycle
Resolve, mapResolve, derive, mapDerive use ephemeral type to scope down accurately
Inference query dynamic variable
Breaking Change:
Lifecycle is now local first
Change:
Group private API property
Move
Elysia.routestoElysia.router.historyDetect possible json before return
Unknown response now return as-is instead of JSON.stringify()
Change Elysia validation error to JSON instead of string
Static content evalute hook JIT instead of AOT
Bug fix:
Async Derive leaks request context to other requests if
aot: trueEmpty ObjectString missing validation inside query schema
Beta: Undefined class when using decorate and derive
onStop callback called twice when calling .stop
mapDerive now resolve to
Singleton['derive']instead ofSingleton['store']ValidationErrordoesn't returncontent-typeasapplication/jsonValidate
error(status, value)validate per statusderive/resolve always scoped to Global
Duplicated onError call if not handled
Server timing breaks beforeHandle guards
Cookie.remove() doesn't set correct cookie path
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.