Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elysia

Package Overview
Dependencies
Maintainers
1
Versions
446
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia - npm Package Versions

1
45

1.1.7

Diff

Changelog

Source

1.1.7 - 19 Aug 2024

Bug fix:

  • parseQuery is not parsing array on body

Change:

  • rename parseQuery to parseQueryFromURL
  • export fast-querystring.js path
aomkirby123
published 1.1.6 •

Changelog

Source

1.1.6 - 12 Aug 2024

Feature:

  • #763 add hide in detail to hide route from OpenAPI/swagger
  • add streaming support for fetch proxy

Bug fix:

  • #776 custom errors throw in onRequest do not get proper code set in onError
aomkirby123
published 1.1.5 •

Changelog

Source

1.1.5 - 2 Aug 2024

Feature:

  • refactor fastQuerystring using switch and bitwise flag

Bug fix:

  • sucrose: invalid separateFunction on minified async function
  • #758 guard doesn't apply cookie schema
aomkirby123
published 1.1.4 •

Changelog

Source

1.1.4 - 23 Jul 2024

Feature:

  • #718 implement normalization support for class instances with getter functions

Bug fix:

  • removeColonAlias accidentally slice -2 end index for last parameter
  • #726 lazy instantiation of stringToStructureCoercions
  • #750 Cookie: Right side of assignment cannot be destructured
  • #749 Query params following an array query are parsed as array items
  • #751 Dynamic mode response failed if null or undefined value is returned
  • #741 stream stringify object
aomkirby123
published 1.1.3 •

Changelog

Source

1.1.3 - 17 Jul 2024

Change:

  • sucrose: exact inference name
  • use mapResponse instead of mapCompactResponse for stream
  • defers first stream execution before returning response
  • #722 derive context is not passed to onError

Bug fix:

  • onError with scope not being able to infer context type
aomkirby123
published 1.1.2 •

Changelog

Source

1.1.2 - 16 Jul 2024

Bug fix:

  • #724, bun#12594 sucrose: possibly fix bun build --compile not being able to infer first, and last context parameter
  • derive is being override by resolve in certain function
    • #722 Type error with global app.derive followed by onError
  • params on onError is now { [key in string]: string } instead of never
  • #721 unexpected isContextPassToFunction: minified whitespace of arrow function causing inaccurate separateFunction
aomkirby123
published 1.1.1 •

Changelog

Source

1.1.1 - 16 Jul 2024

Breaking Change:

  • parse query as string instead of string | string[] unless specified
aomkirby123
published 1.1.0 •

Changelog

Source

1.1.0 - 16 Jul 2024

Feature:

  • Trace v2
  • Normalization is on by default
  • Data type coercion
  • Guard as, bulk as cast
  • Response status coercion
  • Optional path parameter
  • Generator response stream

Breaking Change:

  • Parse value as string for all validators unless explicitly specified.
    • See 50a5d9244bf279.
    • Remove objects auto-parsing in query unless explicitly specified via query
    • Except query string as defined in RFC 3986, TLDR; query string could be either string or array of string.
  • Rename onResponse to onAfterResponse
  • [Internal] Remove $passthrough in favor of toResponse
  • [Internal] UnwrapRoute type now always resolve with status code

Improvement:

  • Add auto-complete for set.headers
  • Add server property
  • onError supports array function
  • Parse query object with and without schema
  • Sucrose: improve isContextPassToFunction, and extractMainParameter stability
  • Add replaceSchemaType
  • Add route to context
  • Optimize recursive MacroToProperty type
  • Parse query array and object
  • Optimize code path for composeGeneralHandler
  • Add debug report on compiler panic
  • Reduce memory usage of route registration ~36% on large codebase
    • Reduce compilation code path
    • Remove trace inference
    • Reduce router compilation code path
    • removing route handler compilation cache (st${index}, stc${index})
  • Add undefined union to cookie in case if cookie is not present
  • Optimize response status resolve type inference

Change:

  • Deprecated ObjectString for parsing array
  • Using Cookie<unknown> instead of Cookie<any> if schema is not defined
  • Remove prototype poluation from hook
  • remove static analysis for query name
  • remove query replace '+' in favor removing static query analysis
  • mapResponse is now called in error event
  • reconcilation decorator in type level

Bug fix:

  • Normalize headers accidentally use query validator check instead
  • onError missing trace symbol
  • Headers validator compilation is not cached
  • Deduplicate macro propagation
  • Websocket in nested group now work
  • Error response is not check unless successful status code is provided
aomkirby123
published 1.1.0-rc.13 •

aomkirby123
published 1.1.0-exp.27 •

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc