Releases: elysiajs/elysia
Releases · elysiajs/elysia
1.4.28
What's new
Feature:
- #1803 stream response with pull based backpressure
- #1802 handle range header for file/blob response
- #1722, #1741 direct ReadableStream perf blow-up
Bug fix:
- #1805 dynamic imports inside .guard not registering routes
- #1771 breaks Bun HTML imports
- #1797 await mapped error response promise
- #1794 merge app cookie config into route cookie validator config
- #1796 check custom parser by full name
- #1795 write transformed cookie value to cookie entry directly
- #1793 use cookie schema for cookie noValidate check
- #1792 throw ValidationError instead of boolean in response encode path
- detect HTML bundle when inline response is Promise
Change:
- #1613 export
ElysiaTypeCustomErrors - remove Bun specific built
- export
AnySchema,UnwrapSchema,ModelsToTypesfrom root - conditional set headers of String and Object when no set.headers is set
New Contributors
- @MegaManSec made their first contribution in #1797
- @ap0nia made their first contribution in #1613
Full Changelog: 1.4.27...1.4.28
1.4.27
What's changed
Bug fix:
- getSchemaValidator: handle TypeBox as sub type
- handle cookie prototype pollution when parsing cookie
Improvement:
- conditional async on getSchemaValidator when schema is Standard Schema
- use Response.json on Bun
- export
AnySchema,UnwrapSchema,ModelsToTypesfrom root
Full Changelog: 1.4.26...1.4.27
1.4.26
1.4.25
What's changed
Feature:
- export ElysiaStatus
Bug fix:
- macro with conflict literal value per status
- recursive macro with conflict value per status
Full Changelog: 1.4.24...1.4.25
1.4.24
What's Changed
Feature:
- graceful unsigned cookie transition
Bug fix:
- #1733 preserve multiple set-cookie headers in mounted handlers by @cipher416
- object cookie with secret doesn't deserialized after parsed
New Contributors
- @cipher416 made their first contribution in #1733
Full Changelog: 1.4.23...1.4.24
1.4.23
What's Changed
Feature:
- #1719 add t.Union/t.Intersection handling in property enumerations/checks
- #1697 extend complex formdata support to StandardSchema
- #1656 serialize custom array-like custom class with array sub class
Bug fix:
- #1721 Promise with response schema
- #1700 distinct union object
- #1683 response validation returns 500 instead of 422 for nested schemas in dynamic mode
- #1679 preserve headers when throwing from AsyncGenerator
- #1595 stream reference should point to teed value
- fix can't modify immutable headers error
Change:
- update exact-mirror to 0.2.7
New Contributors
Full Changelog: 1.4.22...1.4.23
1.4.22
What's Changed
Improvement:
- #1655 decode single values in ArrayQuery by @zoriya
- use imperative check for
replaceURLPathinstead of allocatingnew URL - reduce ts-ignore/ts-expect-error on promise map handler
Bug fix:
- #1671 mount produces incorrect URL path when Elysia instance has prefix option
- #1617, #1623 AOT compilation removes beforeHandle when using arrow function expression by @tt-a1i
- #1667 skip body parsing on mount with dynamic mode
- #1662 custom thenable fallback in
mapCompactResponsecausing runtime crash with undefined variable by @raunak-rpm - #1661, #1663 fix SSE double-wrapping bug when returning pre-formatted Response by @raunak-rpm in
- ValueError with summary missing types
- Elysia not using Bun.routes by default
New Contributors
- @raunak-rpm made their first contribution in #1663
Full Changelog: 1.4.21...1.4.22
1.4.21
What's Changed
Improvement:
- #1654 encode t.Date() to iso string by @zoriya
- #1624 apply macros before merging hooks in group method by @tt-a1i
Bug fix:
- call Sucrose GC unref when possible (browser fallback)
- add allowUnsafeValidationDetails to Standard Validator
New Contributors
Full Changelog: 1.4.20...1.4.21
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