Packages

elysia

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

Your version

0.7.0

20 Sep 2023Where it was published

0.8.17 is the newest release of 0.7.x.

In short

9 new2 fixed22 changed1 internal

Security

4 advisories affect 0.7.0; 1.4.29 fixes them

Release note

Feature:

  • Rewrite type

  • Rewrite Web Socket

  • Add mapper method

  • Add affix, prefix, suffix

  • Trace

  • typeBox.Transfom

  • Rewrite Type.ElysiaMeta to use TypeBox.Transform

  • New type:

    • t.Cookie

    • t.ObjectString

    • t.MaybeEmpty

    • t.Nullable

  • Add Context to onError

  • Lifecycle hook now accept array function

  • True encapsulation scope

Improvement:

  • Static Code Analysis now support rest parameter

  • Breakdown dynamic router into single pipeline instead of inlining to static router to reduce memory usage

  • Set t.File and t.Files to File instead of Blob

  • Skip class instance merging

  • Handle UnknownContextPassToFunction

  • Add github action to run bun test

Breaking Change:

  • Remove ws plugin, migrate to core

  • Rename addError to error

Change:

  • Using single findDynamicRoute instead of inlining to static map

  • Remove mergician

  • Remove array routes due to problem with TypeScript

Bug fix:

  • Strictly validate response by default

  • t.Numeric not working on headers / query / params

  • t.Optional(t.Object({ [name]: t.Numeric })) causing error

  • Add null check before converting Numeric

  • Inherits store to instance plugin

  • Handle class overlapping

  • InternalServerError message fixed to "INTERNAL_SERVER_ERROR" instead of "NOT_FOUND"

  • mapEarlyResponse with aot on after handle

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.