|
| 1 | +# 1.0.0 - 8 Mar 2024 |
| 2 | +Improvement: |
| 3 | +- fine-grained reactive cookie |
| 4 | +- using single source of truth for cookie |
| 5 | +- macro support for websocket |
| 6 | +- add `mapResolve` |
| 7 | +- add `{ as: 'global' | 'scoped' | 'local' }` to lifecycle event |
| 8 | +- add ephemeral type |
| 9 | +- inline `error` to handler |
| 10 | +- inline `error` has auto-completion and type checking based on status code |
| 11 | +- handler now check return type of `error` based on status code |
| 12 | +- utility `Elysia._types` for types inference |
| 13 | +- [#495](https://github.com/elysiajs/elysia/issues/495) Provide user friendly error for failed parse |
| 14 | +- handler now infers return type for error status for Treaty |
| 15 | +- `t.Date` now allow stringified date |
| 16 | +- improves type test case |
| 17 | +- add test case for all life-cycle |
| 18 | +- resolve, mapResolve, derive, mapDerive use ephemeral type to scope down accurately |
| 19 | +- inference query dynamic variable |
| 20 | + |
| 21 | +Breaking Change: |
| 22 | +- [#513](https://github.com/elysiajs/elysia/issues/513) lifecycle is now local first |
| 23 | + |
| 24 | +Change: |
| 25 | +- group private API property |
| 26 | +- move `Elysia.routes` to `Elysia.router.history` |
| 27 | +- detect possible json before return |
| 28 | +- unknown response now return as-is instead of JSON.stringify() |
| 29 | +- change Elysia validation error to JSON instead of string |
| 30 | +- static content evalute hook JIT instead of AOT |
| 31 | + |
| 32 | +Bug fix: |
| 33 | +- [#466](https://github.com/elysiajs/elysia/issues/466) Async Derive leaks request context to other requests if `aot: true` |
| 34 | +- [#505](https://github.com/elysiajs/elysia/issues/505) Empty ObjectString missing validation inside query schema |
| 35 | +- [#503](https://github.com/elysiajs/elysia/issues/503) Beta: undefined class when using decorate and derive |
| 36 | +- onStop callback called twice when calling .stop |
| 37 | +- mapDerive now resolve to `Singleton['derive']` instead of `Singleton['store']` |
| 38 | +- `ValidationError` doesn't return `content-type` as `application/json` |
| 39 | +- validate `error(status, value)` validate per status |
| 40 | +- derive/resolve always scoped to Global |
| 41 | +- duplicated onError call if not handled |
| 42 | +- [#516](https://github.com/elysiajs/elysia/issues/516) server timing breaks beforeHandle guards |
| 43 | +- cookie.remove() doesn't set correct cookie path |
| 44 | + |
1 | 45 | # 0.8.17 - 12 Feb 2024
|
2 | 46 | Feature:
|
3 | 47 | - [#474](https://github.com/elysiajs/elysia/pull/474) Numeric Cookie with length >= 16 cant be parsed to number
|
|
0 commit comments