elysia
1.4.32 · 11 Nov 2026MIT2.2M / weekRepositorynpmAtom feed
1.4.32 is the newest release of 1.x.
In short
1 removed1 deprecated6 new3 faster27 changed
- Removed
Remove prototype poluation from hook
- Deprecated
Deprecated
ObjectStringfor parsing array
Security
4 advisories affect 1.1.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
Feature:
Trace v2
Normalization is on by default
Data type coercion
Guard as, bulk as cast
Response status coercion
Optional path parameter
Generator response stream
Breaking Change:
Parse value as string for all validators unless explicitly specified.
Rename
onResponsetoonAfterResponseRemove $passthrough in favor of toResponse
UnwrapRoute type now always resolve with status code
Improvement:
Add auto-complete for
set.headersAdd
serverpropertyonErrorsupports array functionParse query object with and without schema
Sucrose: Improve isContextPassToFunction, and extractMainParameter stability
Add
replaceSchemaTypeAdd
routetocontextOptimize recursive MacroToProperty type
Parse query array and object
Optimize code path for
composeGeneralHandlerAdd debug report on compiler panic
Reduce memory usage of route registration ~36% on large codebase
Reduce compilation code path
Remove trace inference
Reduce router compilation code path
removing route handler compilation cache (st${index}, stc${index})
Add undefined union to cookie in case if cookie is not present
Optimize response status resolve type inference
Change:
- Deprecated
Deprecated
ObjectStringfor parsing array Using
Cookie<unknown>instead ofCookie<any>if schema is not defined- Removed
Remove prototype poluation from hook
Remove static analysis for query name
Remove query replace '+' in favor removing static query analysis
mapResponse is now called in error event
Reconcilation decorator in type level
Bug fix:
Normalize headers accidentally use query validator check instead
onErrormissing trace symbolHeaders validator compilation is not cached
Deduplicate macro propagation
Websocket in nested group now work
Error response is not check unless successful status code is provided
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.