Skip to content

Releases: elysiajs/elysia

1.4.28

16 Mar 22:27
56310be

Choose a tag to compare

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, ModelsToTypes from root
  • conditional set headers of String and Object when no set.headers is set

New Contributors

Full Changelog: 1.4.27...1.4.28

1.4.27

01 Mar 13:55
cc9159b

Choose a tag to compare

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, ModelsToTypes from root

Full Changelog: 1.4.26...1.4.27

1.4.26

25 Feb 10:22
bbaf6b7

Choose a tag to compare

What's changed

Bug fix:

  • #1755 deduplicate local handler from global event
  • #1752 system router with trailing path doesn't match with non-trailing
  • url format redos
  • #1747 parsing request from mount hang

Full Changelog: 1.4.25...1.4.26

1.4.25

12 Feb 12:30
e5c9449

Choose a tag to compare

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

10 Feb 20:04
d416e65

Choose a tag to compare

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

Full Changelog: 1.4.23...1.4.24

1.4.23

09 Feb 04:37
a82242f

Choose a tag to compare

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

14 Jan 04:57
f027642

Choose a tag to compare

What's Changed

Improvement:

  • #1655 decode single values in ArrayQuery by @zoriya
  • use imperative check for replaceURLPath instead of allocating new 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 mapCompactResponse causing 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

Full Changelog: 1.4.21...1.4.22

1.4.21

04 Jan 11:51
969fc76

Choose a tag to compare

What's Changed

Improvement:

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

03 Jan 14:35
c163c89

Choose a tag to compare

What's Changed

Improvement:

  • add ModelValidator.schema for accessing raw schema
  • #1636 add subscriptions to Elysia.ws context
  • #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.models broke when referencing non typebox model

New Contributors

Full Changelog: 1.4.19...1.4.20

Fat fug

1.4.19

13 Dec 12:41
218c12a

Choose a tag to compare

What's Changed

Security:

  • reject invalid cookie signature when using cookie rotation

Improvement

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

Full Changelog: 1.4.18...1.4.19