Releases: elysiajs/elysia
10000
Releases · elysiajs/elysia
1.3.5
What's Changed
Bug fix:
- #1255 regression in serving an imported HTML file
- #1251 property 'status' does not exist onError function
- #1247 ensure WebSockets get routed properly without AoT compilation
- #1246 property 'timeout' does not exist on type 'Server'
- #1245 error on onAfterHandle (no property 'response')
- #1239 t.Files validator breaks for response schema
- #1187, #1169 websocket beforeLoad not being executed
- fix: standalone validator - guard types, as(scoped|global) and hooks by @Lolotronop in #1241
- fix: Websocket
beforeLoad
not being executed by @carlosmfreitas2409 in #1187 - Ensure WebSockets get routed properly without AoT compilation by @llama-for3ver in #1247
- fix wrong unexist
Elysia --revision
guide in bug report template by @kravetsone in #1226
New Contributors
- @Lolotronop made their first contribution in #1241
- @carlosmfreitas2409 made their first contribution in #1187
- @llama-for3ver made their first contribution in #1247
Full Changelog: 1.3.4...1.3.5
1.3.4
What's new
Feature:
- sse helper
Bug fix:
- #1237 ws in a group merge error
- #1235 errors not handled correctly in resolve hook on dynamic mode
- #1234 optional path parameters can't follow required ones
- #1232 t.Files fails with array of files
Change:
- When yield is not sse, content-type is set to either
text/plain
orapplication/json
based on the response type
Full Changelog: 1.3.3...1.3.4
1.3.3
What's new
Bug fix:
- mapResponseContext is not passed to compose
- await
ElysiaFile
when not using Bun - export
adapter/utils
Full Changelog: 1.3.2...1.3.3
1.3.2
What's new
Feature:
- Support Bun native static response per method for Bun >= 1.2.14
- #1213 trace.time is undefined in .trace() callback
Improvement:
- implement all universal type
- offload
AsyncGenerator
,ReplaceFile
from Eden Treaty toCreateEden
- #1223 infer
status(200)
response from handler if not specified - #1185 use non-greedy match for
isContextPassToFunction
to prevent false positive
Full Changelog: 1.3.1...1.3.2
1.3.1
Day 1 patch
What's new
Bug fix:
- #1200 limited Bun Router to supported method
- #1199 object are not normalized when t.Transform is provided
- #1198, #1188, #1186 exclude wildcard route from Bun router
- #1197 leave incorrect union field as-is
- #1195 invalid onAfterHandle typing
- #1194 normalize array response
- #1193 undefine value.schema.noValidate
- #1192 using a macro inside a group does not call the handler when using the
precompile
option - #1190 derive and resolve handlers not being executed on WS context
- #1189 Type Inference Issue with Eden Treaty Group Endpoints
- #1185 path is missing from Context when Bun System Router is used
- #1184 Missing
mapEarlyResponse
on Bun System Router
Change:
- update
exact-mirror
to0.1.2
Full Changelog: 1.3.0...1.3.1
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