Releases: elysiajs/elysia
1.4.9
1.4.8
What's Changed
Improvement:
- automatically clear up sucrose cache when not used
- remove
Bun.hashfrom checksum calculation
Change:
- make
file-typeoptional 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
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.getBuiltinModuleinstead of dynamic import for file Elysia.file.valueon Web Standard Adapter now is not a promise
Full Changelog: 1.4.6...1.4.7
1.4.6
What's changed
Improvement:
- #1406 strictly check for 200 inline status code
- coerce union status value and return type
- add
BunHTMLBundleLiketo 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 👉👈
Me (literally) asking you for forgiveness
1.4.5
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.Refby default
Full Changelog: 1.4.4...1.4.5
1.4.4
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
What's changed
Bug fix:
mapValueErrorshould 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
1.4.1
1.4.0
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
fileTypefor 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
errorfunction, usestatusinstead - deprecation notice for
responseinmapResponse,afterResponse, useresponseValueinstead
New Contributors
Full Changelog: 1.3.21...1.4.0
