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

elysia

Package Overview
Dependencies
Maintainers
1
Versions
442
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elysia - npm Package Versions

1
45

0.5.8

Diff

Changelog

Source

0.5.8 - 27 May 2023

Improvement:

  • Add support for returning a class instance
aomkirby123
published 0.5.7 •

Changelog

Source

0.5.7 - 25 May 2023

Bug fix:

  • Bun is undefined on other runtime
aomkirby123
published 0.5.6 •

Changelog

Source

0.5.6 - 25 May 2023

Improvement:

  • Using new Response instead of factory Response.json
aomkirby123
published 0.5.5 •

Changelog

Source

0.5.5 - 25 May 2023

Improvement:

  • Using request.json() to handle application/json body instead of JSON.parse(await c.text())
aomkirby123
published 0.5.5-exp-230525.21 •

aomkirby123
published 0.5.4 •

Changelog

Source

0.5.4 - 25 May 2023

Improvement:

  • Add Static Code Analysis for conditional try-catch
  • Reduce usage of method to accessor
aomkirby123
published 0.5.3 •

Changelog

Source

0.5.3 - 22 May 2023

Improvement:

  • Add mapCompactResponse for static code analysis
  • Using constructor.name to inline object mapping
  • Using single assignment for URL destructuring
  • Using default map for dynamic route to remove static map label and break

Bug fix:

  • Web Socket context.headers is empty Elysia#46
aomkirby123
published 0.5.2 •

Changelog

Source

0.5.2 - 16 May 2023

Improvement:

  • Static Code Analysis for fallback route

Bug fix:

  • Remove constant generic from state to be mutable
aomkirby123
published 0.5.1 •

Changelog

Source

0.5.1 - 16 May 2023

Bug fix:

  • Syntax error if multiple numeric type is set
  • Prevent fallthrough behavior of switch map
aomkirby123
published 0.5.0 •

Changelog

Source

0.5.0 - 15 May 2023

Improvement:

  • Add CommonJS support for running Elysia with Node adapter
  • Remove manual fragment mapping to speed up path extraction
  • Inline validator in composeHandler to improve performance
  • Use one time context assignment
  • Add support for lazy context injection via Static Code Analysis
  • Ensure response non nullability
  • Add unioned body validator check
  • Set default object handler to inherits
  • Using constructor.name mapping instead of instanceof to improve speed
  • Add dedicated error constructor to improve performance
  • Conditional literal fn for checking onRequest iteration
  • improve WebSocket type

Bug fix:

  • Possible

Breaking Change:

  • Rename innerHandle to fetch
    • to migrate: rename .innerHandle to fetch
  • Rename .setModel to .model
    • to migrate: rename setModel to model
  • Remove hook.schema to hook
    • to migrate: remove schema and curly brace schema.type:
    // from
    app.post('/', ({ body }) => body, {
        schema: {
            body: t.Object({
                username: t.String()
            })
        }
    })
    
    // to
    app.post('/', ({ body }) => body, {
        body: t.Object({
            username: t.String()
        })
    })
    
  • remove mapPathnameRegex (internal)
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