Packages

elysia

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

Your version

0.8.0

23 Dec 2023Where it was published

0.8.17 is the newest release of 0.8.x.

In short

4 new15 changed1 internal

Security

4 advisories affect 0.8.0; 1.4.29 fixes them

Release note

Feature:

  • headers initialization function

  • Macro

  • Static content

  • Default property

  • Error function

  • Add stack trace to plugin checksum configurable by config.analytic (default to false)

  • New life-cycle

    • resolve: derive after validation

    • mapResponse: custom response mapping

Improvement:

  • Lazy query reference

  • Add content-range header to File and Blob by default if etag is not used

  • Override lifecycle response of be and af

Breaking Change:

  • afterHandle no longer early return

Change:

  • Change validation response to JSON

  • Differentiate derive from decorator['request'] as decorator['derive']

  • derive now don't show infer type in onRequest

Bug fix:

  • Remove headers, path from PreContext

  • Remove derive from PreContext

  • Elysia type doesn't output custom error

  • onStart doesn't reflect server

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.