Skip to content

Releases: elysiajs/elysia

1.4.30

Choose a tag to compare

@SaltyAom SaltyAom released this 26 Aug 16:53
e037eca

What's changed

The current development effort will be focused in Elysia 2, see kiana and beta release note.

1.4.x will only publish security updates, no new features.

Chore:

  • update test case for Bun 1.4

Advisory:

Full Changelog: 1.4.29...1.4.30

1.4.29

Choose a tag to compare

@SaltyAom SaltyAom released this 16 Jun 22:27
8358ff9

What's changed

Improvement:

  • normalize a multipart/form-data with .get instead of .getAll for faster performance

Full Changelog: 1.4.28...1.4.29

1.4.28

Choose a tag to compare

@SaltyAom SaltyAom released this 16 Mar 22:27
56310be

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

Choose a tag to compare

@SaltyAom SaltyAom released this 01 Mar 13:55
cc9159b

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

Choose a tag to compare

@SaltyAom SaltyAom released this 25 Feb 10:22
bbaf6b7

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

Choose a tag to compare

@SaltyAom SaltyAom released this 12 Feb 12:30
e5c9449

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

Choose a tag to compare

@SaltyAom SaltyAom released this 10 Feb 20:04
d416e65

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

Choose a tag to compare

@SaltyAom SaltyAom released this 09 Feb 04:37
a82242f

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

Choose a tag to compare

@SaltyAom SaltyAom released this 14 Jan 04:57
f027642

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

Choose a tag to compare

@SaltyAom SaltyAom released this 04 Jan 11:51
969fc76

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