Socket
Socket
Sign inDemoInstall

elysia

Package Overview
Dependencies
9
Maintainers
1
Versions
331
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1345
34Next

1.0.8

Diff

Changelog

Source

1.0.8 - 25 Mar 2024

Feature:

  • #562 add normalize config

Improvement:

  • Scope cookie instruction to route level instead of global config
  • #557 cache tsc buildinfo for running faster
  • #551 use AnyElysia instead of inline Elysia<any>

Bug fix:

  • #564 Fixing "ReadableStream is locked"
  • #552 fix: shift promise in PromiseGroup even when rejected
aomkirby123
published 1.0.7 •

Changelog

Source

1.0.7 - 20 Mar 2024

Feature:

  • add Elysia.propagate to propagate hook type from 'local' to 'scoped'

Improvement:

  • remove function.$elysia
  • remove function extension

Bug fix:

  • duplicate macro call
  • #548 additional case for "accessing all query params using property name (ctx.query) doesn't work anymore"
  • #599 plugin with scoped settings not functioning correctly
aomkirby123
published 1.0.6 •

Changelog

Source

1.0.6 - 20 Mar 2024

Bug fix:

  • inline function doesn't propagate correctly on type level
aomkirby123
published 1.0.5 •

Changelog

Source

1.0.5 - 19 Mar 2024

Improvement:

  • using regex for date pattern matching before using new Date validation
  • using tsc to emit declaration file instead of tsup
  • add mapResponse to MacroManager

Bug fix:

  • Ephemeral and Volatile type isn't recognize by MacroManager
  • inline guard cookie doesn't apply to local instance
aomkirby123
published 1.0.4 •

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
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