elysia
1.4.32 · 11 Nov 2026MIT2.2M / weekRepositorynpmAtom feed
Upgrading elysia From 0.4.15 to 0.5.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 4
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking0.5.0
Security
4 advisories still affect 0.5.0
- Elysia Cookie Value Prototype Pollutionmoderate · GHSA-8hq9-phh3-p2wp
- Elysia affected by arbitrary code injection through cookie confighigh · GHSA-8vch-m3f4-q8jf
- elysia has Inefficient Algorithmic Complexity and Interpretation Conflicthigh · GHSA-9643-4qgh-g8mx
- Elysia has a string URL format ReDoShigh · GHSA-f45g-68q3-5w8x
Upgrading to 1.4.29 clears them.
Release by release
- Breaking
Remove
hook.schematohook - New
Add CommonJS support for running Elysia with Node adapter
- New
Add support for lazy context injection via Static Code Analysis
- New
Add unioned body validator check
- New
Add dedicated error constructor to improve performance
- Fixed
Ensure response non nullability
- Breaking
10 other lines we could not sort, mostly version bumps
- 0.5.0
Remove manual fragment mapping to speed up path extraction
- 0.5.0
Inline validator in
composeHandlerto improve performance - 0.5.0
Use one time context assignment
- 0.5.0
Set default object handler to inherits
- 0.5.0
Using
constructor.namemapping instead ofinstanceofto improve speed - 0.5.0
Conditional literal fn for checking onRequest iteration
- 0.5.0
Improve WebSocket type
- 0.5.0
To migrate: rename
.innerHandletofetch - 0.5.0
To migrate: rename
setModeltomodel - 0.5.0
Remove
mapPathnameRegex(internal)
1 internal line (docs, tests, tooling) left out.
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.