Packages

elysia

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

Your version

1.4.0

12 Sep 2025Where it was published

1.4.32 is the newest release of 1.x.

In short

3 breaking6 new3 changed

  • Breaking

    Remove macro v1 due to non type soundness

  • Breaking

    Remove error function, use status instead

  • Breaking

    Deprecation notice for response in mapResponse, afterResponse, use responseValue instead

Security

5 advisories affect 1.4.0; 1.4.29 fixes them

Release note

Elysia chan Supersymmetry

Named after the song Supersymmetry by Sta, a Tone Sphere ending theme.

Elysia 1.4 highlight is on Standard Schema, and "Type Soundness".

Full release note can be found at Elysia 1.4 Supersymmetry

Feature

  • Standard validator

  • Macro schema, macro extension, macro detail

  • Lifecycle type soundness

  • Type inference reduced by ~11%

  • Missing HEAD method when register route with GET

Improvement

  • Automatically add HEAD method when defining GET route

Change

  • ObjectString/ArrayString no longer produce default value by default due to security reasons

  • Cookie now dynamically parse when format is likely JSON

  • Export fileType for external file type validation for accurate response

  • ObjectString/ArrayString no longer produce default value by default due to security reasons

  • Cookie now dynamically parse when format is likely JSON

Breaking Change

  • Breaking

    Remove macro v1 due to non type soundness

  • Breaking

    Remove error function, use status instead

  • Breaking

    Deprecation notice for response in mapResponse, afterResponse, use responseValue instead

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.