Skip to content

Releases: elysiajs/elysia

1.3.0

05 May 14:46
8dba51b
Compare
Choose a tag to compare

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 of t.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 and parseQueryFromURL
  • add config options to mount
  • 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 from onError is using octet stream
  • unintentional memory allocation when using mergeObjectArray
  • handle empty space on Date query

Change:

  • only provide c.request to mapResponse when maybeStream is true
  • use plain object for routeTree instead of Map
  • remove compressHistoryHook and decompressHistoryHook
  • webstandard handler now return text/plain if not on Bun
  • use non const value for decorate unless explicitly specified
  • Elysia.mount now set detail.hide = true by default

Breaking Change:

  • remove as('plugin') in favor of as('scoped')
  • remove root index for Eden Treaty
  • remove websocket from ElysiaAdapter
  • remove inference.request

Full Changelog: 1.2.25...1.3.0

1.2.25

06 Mar 16:30
a35b26d
Compare
Choose a tag to compare

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

Full Changelog: 1.2.24...1.2.25

1.2.24

02 Mar 10:01
4ba6085
Compare
Choose a tag to compare

What's new

Bug fix:

  • 200 object response is not inferring type in type-level
  • #1091 route is not defined when using trace

Full Changelog: 1.2.23...1.2.24

1.2.23

28 Feb 09:51
6e2ea51
Compare
Choose a tag to compare

What's new

Bug fix:

  • #1087 websocket to parse string array
  • #1088 infinite loop when inference body is empty

New Contributors

Full Changelog: 1.2.22...1.2.23

1.2.22

24 Feb 14:30
e19cfd3
Compare
Choose a tag to compare

What's new

Bug fix

  • #1074 hasTransform doesn't detect Transform on root
  • #873 encode before type check

Full Changelog: 1.2.21...1.2.22

1.2.21

22 Feb 16:50
db13eb1
Compare
Choose a tag to compare

What's new

Bug fix:

  • #671 Transform inside t.Intersect isn't detected

Full Changelog: 1.2.20...1.2.21

1.2.20

22 Feb 14:39
86ec566
Compare
Choose a tag to compare

What's new

Bug fix:

  • #671 Transform query schema check fails
  • model type

Full Changelog: 1.2.19...1.2.20

1.2.19

22 Feb 11:55
f09a775
Compare
Choose a tag to compare

What's new

Bug fix:

  • #1078 array string default to '[]' instead of undefined

Full Changelog: 1.2.18...1.2.19

1.2.18

21 Feb 17:41
d4b1a50
Compare
Choose a tag to compare

What's new

Bug fix:

  • duplicated static route may cause index conflict resulting in incorrect route

Full Changelog: 1.2.17...1.2.18

1.2.17

21 Feb 13:41
35ae4b6
Compare
Choose a tag to compare

What's new

Bug fix:

  • .mount doesn't return pass entire request

Full Changelog: 1.2.16...1.2.17