Skip to content

Releases: elysiajs/elysia

1.4.9

29 Sep 13:36
668c7a1

Choose a tag to compare

What's Changed

Improvement:

  • add knip for detecting deadcode by @Rouret in #1443
  • add Cloudflare Worker test
  • add Sucrose.Settings

Full Changelog: 1.4.8...1.4.9

1.4.8

27 Sep 14:16
a4193a3

Choose a tag to compare

What's Changed

Improvement:

  • automatically clear up sucrose cache when not used
  • remove Bun.hash from checksum calculation

Change:

  • make file-type optional to reduce bundle size
  • #1432 missing context (set) in mapResponse for ElysiaFile
  • #1435 missing cookies in SSE

New Contributors

Full Changelog: 1.4.7...1.4.8

1.4.7

22 Sep 04:28
eb4d126

Choose a tag to compare

Good morning, Cloudflare

You can now run Elysia on Cloudflare Worker

What's changed

Feature:

  • experimental adapter/cloudflare-worker
  • add ElysiaAdapter.beforeCompile

Change:

  • do not prettify routes when using guard, group
  • use process.getBuiltinModule instead of dynamic import for file
  • Elysia.file.value on Web Standard Adapter now is not a promise

Full Changelog: 1.4.6...1.4.7

1.4.6

18 Sep 13:01
817a465

Choose a tag to compare

What's changed

Improvement:

  • #1406 strictly check for 200 inline status code
  • coerce union status value and return type
  • add BunHTMLBundleLike to Elysia inline handler
  • #1405 prevent Elysia from being a dependency of itself
  • #1416 check if object is frozen before merging, add try-catch to prevent crash
  • #1419 guard doesn't apply scoped/global schema to object macro
  • #1425 DELETE doesn't inherit derive/resolve type

Change:

  • #1409 onTransform now doesn't include type as it isn't validated yet, creating confusion

Bug fix:

  • #1410 handle union derive/resolve property
  • probably fix mergeDeep attempted to assign to readonly property
  • derive/resolve inherit type in inline handler

Full Changelog: 1.4.5...1.4.6

In 1.4.5, we accidentally published Elysia as a dependency of beta Elysia, causing an unexpected debug log
We have fixed that and add a dependency check in the build pipeline to prevent that from happening again
so sowwy 'bout that 👉👈

my bad! but I'm cute so you'll forgive me, right?

Me (literally) asking you for forgiveness

1.4.5

15 Sep 00:01
a27b433

Choose a tag to compare

What's Changed

Improvement:

  • soundness for guard, group
  • overwrite primitive value if collide (intersectIfObject)

Bug fix:

  • standard schema incorrectly validate cookie and coercion
  • merge nested guard, group standalone schema properly

Breaking Change:

  • no longer coerce type for .model with t.Ref by default

Full Changelog: 1.4.4...1.4.5

1.4.4

13 Sep 01:04
5bd3d7e

Choose a tag to compare

What's changed

Bug fix:

  • merge schema in GET method
  • remove accidental console.log

Full Changelog: 1.4.3...1.4.4

1.4.3

13 Sep 00:53
0569610

Choose a tag to compare

What's changed

Bug fix:

  • mapValueError should return all possible value both in dev environment and production environment
  • inline lifecycle get method doesn't inherit Singleton

Full Changelog: 1.4.2...1.4.3

1.4.2

12 Sep 18:43
5bcaa07

Choose a tag to compare

What's changed

Bug fix:

  • remove debug q from inline handler

Full Changelog: 1.4.1...1.4.2

1.4.1

12 Sep 17:33
e13576f

Choose a tag to compare

What's Changed

Bug fix:

  • type error for inline Elysia.file

Full Changelog: 1.4.0...1.4.1

1.4.0

12 Sep 16:40
9593648

Choose a tag to compare

Elysia chan Supersymmetry

Named after the song Supersymmetry by Sta, a Tone Sphere ending theme.

Elysia 1.4 highlight is on Standard Schema, and "Type Soundness".

Full release note can be found at Elysia 1.4 Supersymmetry

Feature:

  • standard validator
  • macro schema, macro extension, macro detail
  • lifecycle type soundness
  • type inference reduced by ~11%
  • #861 missing HEAD method when register route with GET

Improvement

  • #861 automatically add HEAD method when defining GET route

Change

  • ObjectString/ArrayString no longer produce default value by default due to security reasons
  • Cookie now dynamically parse when format is likely JSON
  • export fileType for external file type validation for accurate response
  • ObjectString/ArrayString no longer produce default value by default due to security reasons
  • Cookie now dynamically parse when format is likely JSON

Breaking Change

  • remove macro v1 due to non type soundness
  • remove error function, use status instead
  • deprecation notice for response in mapResponse, afterResponse, use responseValue instead

New Contributors

Full Changelog: 1.3.21...1.4.0