Socket
Socket
Sign inDemoInstall

elysia

Package Overview
Dependencies
7
Maintainers
1
Versions
338
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245
34Next

1.0.4

Diff

Changelog

Source

1.0.4 - 18 Mar 2024

Improvement:

  • resolve, derive soundness
aomkirby123
published 1.0.3 •

Changelog

Source

1.0.3 - 18 Mar 2024

Improvement:

  • Reduce instruction for static resource

Bug fix:

  • Fix returning mulitple status code using error doesn't accept the response
aomkirby123
published 1.0.2 •

Changelog

Source

1.0.2 - 18 Mar 2024

Feature:

  • add scoped support for derive and resolve

Improvement:

  • Type soundness
  • type inference performance improvement
aomkirby123
published 1.0.1 •

Changelog

Source

1.0.1 - 18 Mar 2024

Improvement:

  • mapHandler now check passthrough once instead of twice
  • exclude return type ofELYSIA_RESPONSE type from derive and resolve
  • throw error if error is return in derive and resolve
  • handle return error on transform
  • #502 merge response schema from parent scope

Bug fix:

  • explicit type: 'json' with body schema throw unexpected body.Check is not a function
  • #549 await the .modules of nested Elysia instances
  • #548 Accessing all query params using property name (ctx.query) doesn't work anymore
aomkirby123
published 1.0.0-exp.15 •

aomkirby123
published 1.0.0 •

Changelog

Source

1.0.0 - 16 Mar 2024

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
  • #495 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:

  • #513 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:

  • #466 Async Derive leaks request context to other requests if aot: true
  • #505 Empty ObjectString missing validation inside query schema
  • #503 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
  • #516 server timing breaks beforeHandle guards
  • cookie.remove() doesn't set correct cookie path
aomkirby123
published 1.0.0-rc.19 •

aomkirby123
published 1.0.0-rc.18 •

aomkirby123
published 1.0.0-rc.17 •

aomkirby123
published 1.0.0-rc.16 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc