Skip to content

Releases: elysiajs/elysia

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

1.2.16

21 Feb 11:58
0ece686
Compare
Choose a tag to compare

What's new

Improvement:

  • AfterHandler infer response type

Change:

  • #1068 update @sinclair/typebox to 0.34.27

Bug fix:

  • #1075 nested async plugins mismatch routes to handlers
  • #1073 file type validation not working (regression from 1.2.13)
  • #1070 .mount is mutating the incoming request method
  • mount path is incorrect when using prefix with trailing *
  • #873 add experimental.encodeSchema for custom Transform Encode type

Full Changelog: 1.2.15...1.2.16

doro

1.2.15

19 Feb 12:54
7638167
Compare
Choose a tag to compare

What's new

Bug fix:

  • #1067 recompile async plugin once registered
  • #1052 webSocket errors not getting catched by error handler
  • #1038 incorrect type inference with deferred modules leads to TypeErrors in runtime
  • #1015 using a model by name in route query leads to type mispatch, yet validation succeeds if doesn't use Ref
  • #1047 ampersand in URL search params is discarded
  • detect Transform inside t.Array in hasTransform

Improvement:

  • add test cases for hasTransform
  • hasTransform now supports Union, Intersect
  • remove redundant decodeURIComponent in nested query

Full Changelog: 1.2.14...1.2.15

doro approved

1.2.14

17 Feb 15:43
7743f82
Compare
Choose a tag to compare

What's new

Feature:

  • parse nuqs string array format if query is specified as t.Array(t.String())

Improvement:

  • handle recursive nested async plugin
  • Response now handle proxy streaming
  • #971 wrap import("fs/promises") AND wrap import("fs") in try-catch to avoid error (silly me, tee-hee~)
  • handle nested array property swap for replaceSchemaType

Breaking Change:

  • [Internal] Elysia.modules now return void

Full Changelog: 1.2.13...1.2.14

my man

1.2.13

16 Feb 16:05
b1bf2f2
Compare
Choose a tag to compare

What's new

Improvement:

  • #977 use Registry instead of TypeSystem
  • remove redundant switch-case for path mapping when strictPath is disabled and path is overlapped
  • remove redundant allocation for nativeStaticHanlder when strictPath path is overlapped

Bug fix:

  • #1062 correctly set t.Date() defaults
  • #1050 app.onRequest(ctx => {ctx.server}): Can't find variable: getServer
  • #1040 undefined route context on aot=false
  • #1017 replace t.Number() for Type.Integer()
  • #976 error responses with aot: false
  • #975 await nested async plugins
  • #971 wrap import("fs/promises") in try-catch to avoid error
  • discord file format doesn't check for '*' format

New Contributors

Full Changelog: 1.2.12...1.2.13

approved

1.2.12

04 Feb 14:20
1e42724
Compare
Choose a tag to compare

What's new

Bug fix:

  • warn when non-existing macro is used
  • parser doesn't generate optimize instruction

Full Changelog: 1.2.11...1.2.12