Repository navigation
Releases: elysiajs/elysia
Releases · elysiajs/elysia
Release list
1.4.20
What's Changed
Improvement:
- add
ModelValidator.schemafor accessing raw schema - #1636 add
subscriptionstoElysia.wscontext - #1638 unref Sucrose gc by @akim-bow
Bug fix:
- #1649 add null check for object properties (t.Record) by @aymaneallaoui
- #1646 use constant-time comparison for signed cookie verification by @JNX03
- #1639 compose: ReferenceError: "_r_r is not defined" when onError returns plain object & mapResponse exists
- #1631 update Exact Mirror to 0.2.6
- #1630 enforce fetch to return MaybePromise
Bug fix:
Elysia.modelsbroke when referencing non typebox model
New Contributors
- @aymaneallaoui made their first contribution in #1649
- @JNX03 made their first contribution in #1646
Full Changelog: 1.4.19...1.4.20
1.4.19
What's Changed
Security:
- reject invalid cookie signature when using cookie rotation
Improvement
- #1609 calling afterResponse with aot: false
- #1607, #1606, #1139 data coercion on nested form data by @Teyik0
- #1604 save lazy compilation of
Elysia.fetchfor up to 45x performance improvement - #1588, #1587 add seen weakset during mergeDeep by @abhishekg999
Bug fix:
- #1614 Cloudflare Worker with dynamic path
- add set immediate fallback
- #1597 safeParse, parse to static type
- #1596 handle context pass to function with sub context
- #1591, #1590 merge set.headers without duplicating Response by @truehazker
- #1546 override group prefix type
- #1526 default error handler doesn't work in Cloudflare Workers
- handle group with empty prefix in type-level
New Contributors
- @abhishekg999 made their first contribution in #1588
- @Teyik0 made their first contribution in #1607
- @truehazker made their first contribution in #1591
Full Changelog: 1.4.18...1.4.19
1.4.18
What's Changed
Security
- use
JSON.stringifyover custom escape implementation
Full Changelog: 1.4.17...1.4.18
1.4.17
What's Changed
Improvement:
- #1573
Serveris always resolved toanywhen@types/bunis missing - #1568 optimize cookie value comparison using FNV-1a hash
- #1549 Set-Cookie headers not sent when errors are thrown
- #1579 HEAD to handle Promise value
Security:
- cookie injection, prototype pollution, and RCE
Bug fix:
- #1550 excess property checking
- allow cookie.sign to be string
Change:
- #1584 change customError property to unknown
- #1556 prevent sending set-cookie header when cookie value is not modified
- #1563 standard schema on websocket
- conditional parseQuery parameter
- conditional pass
c.requestto handler for streaming response - fix missing
contentTypetype onparser
New Contributors
- @NongTham made their first contribution in #1558
- @akim-bow made their first contribution in #1567
- @YasserGomma made their first contribution in #1568
- @nmnmcc made their first contribution in #1573
- @gosvoh made their first contribution in #1579
Full Changelog: 1.4.16...1.4.17
1.4.16
What's Changed
Improvement:
- ValidationError: add
messageValueas an alias oferrorValue - ValidationError.detail now accept optional 2nd parameter
allowUnsafeValidatorDetails - macro: add
introspect - prevent redundant route compilation
- merge multiple macro resolve response
Bug fix:
- #1543 respect toResponse() method on Error classes by @MarcelOlsen
- #1537 websocket: ping/pong not being called
- #1536 export ExtractErrorFromHandle by @likeon
- #1535 skip response validation for generators and streams by @MarcelOlsen
- #1531 typo in ElysiaTypeCustomErrorCallback: valdation to validation by @davipatricio
- #1528 error in parsing request body validation errors with Zod
- #1527 bracket handling in exact mirror
- #1524 head request handler not working by @sunnylqm
New Contributors
- @likeon made their first contribution in #1536
- @davipatricio made their first contribution in #1531
Full Changelog: 1.4.15...1.4.16
1.4.15
What's changed
Bug fix:
- 1.4.14 regression with Eden Treaty, and OpenAPI type gen
Full Changelog: 1.4.14...1.4.15
1.4.14
What's Changed
Feature:
- #1520, #1522 async handlers crash on HEAD request
- #1510 strict status response
- #1503 add t.NumericEnum() for numeric enum query handling
- #1450 call onAfterResponse when onError returns a value
- remove redundant
Prettify - prettify response for OpenAPI type gen
- conditional apply macro context in type level
- improve type performance in general
Change:
- remove
Prettify2,Partial2
New Contributors
- @sunnylqm made their first contribution in #1522
- @wvq made their first contribution in #1503
- @nzws made their first contribution in #1450
Full Changelog: 1.4.13...1.4.14
1.4.13
What's Changed
Feature:
- #1453 add
allowUnsafeValidationDetailsfor disabling unsafe validation details in production mode - allow rapid stream in non browser mode or
ELYSIA_RAPID_STREAMis set afterResponsenow wait for generator stream to finish- trace of
handle, andafterResponsenow wait for generator stream to finish
Bug fix:
- #1502, #1501 afterHandle doesn't update status
- #1500 export
InvalidFileTypefrom root - #1495 request server hook parameters are typed as any (Bun 1.3.0)
- #1483 handle standard schema validators in ValidationError.all
- #1459 fix strictPath behavior when aot: false is set
- #1455 graceful shutdown not awaiting server.stop
- #1499 fails when merging with t.Optional schema
- remove encoding chunk from native static response in Bun adapter
Change:
- make
@types/bunan optional dependency
New Contributors
- @Komiriko made their first contribution in #1495
- @ajaykarthikr made their first contribution in #1483
- @MarcelOlsen made their first contribution in #1459
- @mxsgx made their first contribution in #1449
Full Changelog: 1.4.12...1.4.13
1.4.12
What's changed
Improvement:
- named macro function callback
- adjust build script
Full Changelog: 1.4.11...1.4.12
1.4.11
What's changed
Bug fix:
- #1469 incorrect ping, pong type signature
- #1467 better error union handling in
onError - #1463 responseValue is undefined in afterHandle when beforeHandle returns status
- #1460 compressed response in mapResponse is corrupted if status !== 200
- #1456 add response type check for stream
- #1451 cookie validation is not running when there's no body schema
- make
file-typenon optional dependency to fix default build problem
Full Changelog: 1.4.10...1.4.11