Releases: elysiajs/elysia
Releases · elysiajs/elysia
1.3.0
Full release note on Elysia blog: Elysia 1.3 and Scientific Witchery.
Named after the song Ga1ahad and Scientific Witchery by Mili.
This release doesn't come with shiny new features.
It's about refinement to make things better to the point that we consider it as "magic".
Feature:
- add
exactMirror
- add
systemRouter
config standalone Validator
- add
Elysia.Ref
for referencing schema with autocompletion instead oft.Ref
- support Ref inside inline schema
- add sucrose cache
- new validation
t.Form
,t.NoValidate
- use
file-type
to check file type - add
INVALID_FILE_TYPE
error - add
sanitize
options
Improvement:
encodeSchema
now stable and enabled by default- optimize types
- reduce redundant type check when using Encode
- optimize isAsync
- unwrap Definition['typebox'] by default to prevent unnecessary UnwrapTypeModule call
- Elysia.form can now be type check
- refactor type-system
- refactor
_types
into~Types
- using aot compilation to check for custom Elysia type, eg. Numeric
- refactor
app.router.static
, and move static router code generation to compile phase - optimize memory usage on
add
,_use
, and some utility functions - improve start up time on multiple route
- dynamically create cookie validator as needed in compilation process
- reduce object cloning
- optimize start index for finding delimiter of a content type header
- Promise can now be a static response
ParseError
now keeps stack trace- refactor
parseQuery
andparseQueryFromURL
- add
config
options tomount
- recompile automatically after async modules is mounted
- support macro on when hook has function
- support resolve macro on ws
- #1146 add support to return web API's File from handler
- #1165 skip non-numeric status codes in response schema validation
- #1177 cookie does not sign when an error is thrown
Bug fix:
Response
returned fromonError
is using octet stream- unintentional memory allocation when using
mergeObjectArray
- handle empty space on Date query
Change:
- only provide
c.request
to mapResponse whenmaybeStream
is true - use plain object for
routeTree
instead ofMap
- remove
compressHistoryHook
anddecompressHistoryHook
- webstandard handler now return
text/plain
if not on Bun - use non const value for
decorate
unless explicitly specified Elysia.mount
now setdetail.hide = true
by default
Breaking Change:
- remove
as('plugin')
in favor ofas('scoped')
- remove root
index
for Eden Treaty - remove
websocket
fromElysiaAdapter
- remove
inference.request
Full Changelog: 1.2.25...1.3.0
1.2.25
What's Changed
Bug fix:
- #1108 use validation response instead of return type when schema is provided
- #1105, #1003 invalid parsing body with missed fields if used object model
New Contributors
- @ilyhalight made their first contribution in #1105
Full Changelog: 1.2.24...1.2.25
1.2.24
1.2.23
What's new
Bug fix:
New Contributors
- @hunterwilhelm made their first contribution in #1087
Full Changelog: 1.2.22...1.2.23
1.2.22
1.2.21
1.2.20
1.2.19
1.2.18
What's new
Bug fix:
- duplicated static route may cause index conflict resulting in incorrect route
Full Changelog: 1.2.17...1.2.18