elysia
1.4.32 · 11 Nov 2026MIT2.2M / weekRepositorynpmAtom feed
0.8.17 is the newest release of 0.5.x.
In short
1 removed4 new1 fixed11 changed
- Removed
Remove
hook.schematohook
Security
4 advisories affect 0.5.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:
Add CommonJS support for running Elysia with Node adapter
Remove manual fragment mapping to speed up path extraction
Inline validator in
composeHandlerto improve performanceUse one time context assignment
Add support for lazy context injection via Static Code Analysis
Ensure response non nullability
Add unioned body validator check
Set default object handler to inherits
Using
constructor.namemapping instead ofinstanceofto improve speedAdd dedicated error constructor to improve performance
Conditional literal fn for checking onRequest iteration
Improve WebSocket type
Bug fix:
Possible
Breaking Change:
Rename
innerHandletofetchto migrate: rename
.innerHandletofetch
Rename
.setModelto.modelto migrate: rename
setModeltomodel
- Removed
Remove
hook.schematohookto migrate: remove schema and curly brace
schema.type:
// from app.post('/', ({ body }) => body, { schema: { body: t.Object({ username: t.String() }) } }) // to app.post('/', ({ body }) => body, { body: t.Object({ username: t.String() }) }) Remove
mapPathnameRegex(internal)
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.