Packages

elysia

1.4.32 · 11 Nov 2026MIT2.2M / weekRepositorynpmAtom feed

Your version

1.0.0

major16 Mar 2024Where it was published

1.4.32 is the newest release of 1.x.

In short

4 new1 fixed30 changed

Security

4 advisories affect 1.0.0; 1.4.29 fixes them

Release note

Improvement:

  • fine-grained reactive cookie

  • Using single source of truth for cookie

  • Macro support for websocket

  • Add mapResolve

  • Add { as: 'global' | 'scoped' | 'local' } to lifecycle event

  • Add ephemeral type

  • Inline error to handler

  • Inline error has auto-completion and type checking based on status code

  • Handler now check return type of error based on status code

  • Utility Elysia._types for types inference

  • Provide user friendly error for failed parse

  • Handler now infers return type for error status for Treaty

  • t.Date now allow stringified date

  • Improves type test case

  • Add test case for all life-cycle

  • Resolve, mapResolve, derive, mapDerive use ephemeral type to scope down accurately

  • Inference query dynamic variable

Breaking Change:

  • Lifecycle is now local first

Change:

  • Group private API property

  • Move Elysia.routes to Elysia.router.history

  • Detect possible json before return

  • Unknown response now return as-is instead of JSON.stringify()

  • Change Elysia validation error to JSON instead of string

  • Static content evalute hook JIT instead of AOT

Bug fix:

  • Async Derive leaks request context to other requests if aot: true

  • Empty ObjectString missing validation inside query schema

  • Beta: Undefined class when using decorate and derive

  • onStop callback called twice when calling .stop

  • mapDerive now resolve to Singleton['derive'] instead of Singleton['store']

  • ValidationError doesn't return content-type as application/json

  • Validate error(status, value) validate per status

  • derive/resolve always scoped to Global

  • Duplicated onError call if not handled

  • Server timing breaks beforeHandle guards

  • Cookie.remove() doesn't set correct cookie path

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.