github elysiajs/elysia 1.4.0

latest releases: 1.4.4, 1.4.3, 1.4.2...
11 hours ago

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%
  • #861 missing HEAD method when register route with GET

Improvement

  • #861 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

  • remove macro v1 due to non type soundness
  • remove error function, use status instead
  • deprecation notice for response in mapResponse, afterResponse, use responseValue instead

New Contributors

Full Changelog: 1.3.21...1.4.0

Don't miss a new elysia release

NewReleases is sending notifications on new releases.