Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency elysia to ^0.8.0 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 20, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
elysia ^0.6.16 -> ^0.8.0 age adoption passing confidence

Release Notes

elysiajs/elysia (elysia)

v0.8.17

Compare Source

Feature:

  • #​474 Numeric Cookie with length >= 16 cant be parsed to number
  • #​476 Using a query key that contains a hyphen or a dot raises a SyntaxError
  • #​460
    • #​458 Multiple scoped plugins do not register routes
    • #​457 Elysia arguments scoped and prefix do not work at the same time

Change:

  • #​472 Move documentation issue template to documentation repository

v0.8.16

Compare Source

Feature:

Bug fix:

  • #​451 handle spread operator use on possible null or undefined
  • #​460
    • #​457 scoped plugin instances now respect the prefix property
    • #​458 adding a second scoped plugin does not unmount the route handler of a previously added scoped instance anymore.

v0.8.15

Compare Source

Bug fix:

  • #​451 macro does not run when it should (macro deduplication)
  • #​450 Local hook parse doesn't get executed with aot: false

v0.8.14

Compare Source

Bug fix:

  • types are missing in exports.*
  • #​441 Vite doesn't get bundle without main

v0.8.13

Compare Source

Bug fix:

  • types is not import
  • bun build regression on export * from '@​sinclair/typebox/system'
  • update memoirist to use mjs

v0.8.12

Compare Source

Change:

  • using .mjs for es module

v0.8.11

Compare Source

Change:

  • using tsup instead of swc
  • #​441 remove nanoid, using web crypto randomInt instead

Bug fix:

  • #​446 numeric string check to use Number instead of parseInt
  • #​445 empty body custom response when set.headers is empty

v0.8.10

Compare Source

Bug fix:

  • #​440 query params with + sign did not get converted
  • #​433 remove crypto, unblock vite bundling, cloudflare worker support
  • #​422 add check for instanceof if constructor.name doesn't match

v0.8.9

Compare Source

Bug fix:

  • macro panic

v0.8.8

Compare Source

Bug fix:

  • Add TypeBox back to Bun bundle

v0.8.7

Compare Source

Improvement:

  • #​385 If error is instanceof Response, respond with it

Bug fix:

  • onRequest doesn't early return
  • handle thrown error function
  • #​373 cookie is not set when File is return
  • #​379 WebSocket: Sending a space character ' ' receives 0
  • #​317 Exclude TypeBox from bundling

v0.8.6

Compare Source

Bug fix:

  • body without default value thrown Object.assign error

v0.8.5

Compare Source

Bug fix:

  • Bun entry point

v0.8.4

Compare Source

Bug fix:

  • macro caused an Object.entries cannot be undefined
  • mapResponse and afterHandle missing decorators

v0.8.3

Compare Source

Bug fix:

  • add early return on isContextPassToFunction for static content to prevent invalid regex

v0.8.2

Compare Source

Bug fix:

  • ctx.path and ctx.qi is missing when using onRequest

v0.8.1

Compare Source

Feature:

  • #​474 Numeric Cookie with length >= 16 cant be parsed to number
  • #​476 Using a query key that contains a hyphen or a dot raises a SyntaxError
  • #​460
    • #​458 Multiple scoped plugins do not register routes
    • #​457 Elysia arguments scoped and prefix do not work at the same time

Change:

  • #​472 Move documentation issue template to documentation repository

v0.8.0

Compare Source

Feature:

  • headers initialization function
  • macro
  • static content
  • default property
  • error function
  • add stack trace to plugin checksum configurable by config.analytic (default to false)
  • new life-cycle
    • resolve: derive after validation
    • mapResponse: custom response mapping

Improvement:

  • lazy query reference
  • add content-range header to File and Blob by default if etag is not used
  • update TypeBox to 0.32
  • override lifecycle response of be and af

Breaking Change:

  • afterHandle no longer early return

Change:

  • change validation response to JSON
  • differentiate derive from decorator['request'] as decorator['derive']
  • derive now don't show infer type in onRequest

Bug fix:

  • remove headers, path from PreContext
  • remove derive from PreContext
  • Elysia type doesn't output custom error
  • onStart doesn't reflect server

v0.7.31

Compare Source

Improvement:

  • #​345 add font to SchemaOptions
  • Update @types/cookie to ^0.6.0

Bug fix:

  • #​338 guard sandbox did not inherit global config.
  • #​330 preserve query params for mounted handler
  • #​332 reexport TSchema from typebox
  • #​319 TypeBox Ref error when using Elysia.group()

v0.7.30

Compare Source

Bug fix:

  • Emergency release override latest beta

v0.7.29

Compare Source

Bug fix:

  • WebSocket params conflict with defined type
  • Inherits status code on custom error

v0.7.28

Compare Source

Chore:

  • Update cookie to 0.6.0

Bug fix:

  • #​314 Unable to dereference schema with 'undefined' when using t.Ref

v0.7.27

Compare Source

Bug fix:

  • #​312 default params type suggestion for WebSocket
  • #​310 Preserve original hostname when using .mount()
  • #​309 t.RegExp doesn't work due to requiring default value
  • #​308 t.Numeric should not convert empty string to 0
  • #​305 Elysia({ scoped: true }) should still expose defined routes on type level
  • #​304 Using a hook/guard/schema with a handler function and request without body results in a "Unexpected end of JSON input"-error
  • #​299 Missing request.path parameter in .onRequest
  • #​289 Ability to localize TypeBox errors
  • #​272 onError handler has error property as undefined on Cloudflare Workers
  • #​210 t.Numeric not validating properly
  • #​188 Status codes of the error classes don't match the response through onError
  • #​140 plugin hierarchy messes up derive function in child plugin
  • #​27 Websocket definition in groups

v0.7.26

Compare Source

Bug fix:

  • duplicated lifecycle event if using function plugin async

v0.7.25

Compare Source

Bug fix:

  • Leaked type from guard callback and group guard

v0.7.24

Compare Source

Bug fix:

  • add ReadableStream to response mapping to mapResponse

v0.7.23

Compare Source

Bug fix:

  • Send exit status on early return with trace set

v0.7.22

Compare Source

Change:

  • Rewrite trace

Bug fix:

  • trace not awaiting multiple trace process
  • trace hang on early beforeHandle return
  • afterHandle with trace.afterHandle AoT cause duplicate value header

v0.7.21

Compare Source

Bug fix:

  • #​281 add cookie.remove options
  • add await traceDone to early return

v0.7.20

Compare Source

Bug fix:

  • trace is stuck when inherits to plugin

Improvement:

  • add unit test for mapCompactResponse, Passthrough

v0.7.19

Compare Source

Bug fix:

  • add $passthrough for mapCompactResponse

v0.7.18

Compare Source

Feature:

  • add map handler for ReadableStream
  • add $passthrough for custom property for response mapping

Bug fix:

  • .route accept string[] instead of string

Change:

  • remove ElyEden

v0.7.17

Compare Source

Feature:

  • add ElyEden
  • re-add id to websocket

Bug fix:

  • #​255 removeCookie sends HTTP-Header that is ignored by the Browser
  • #​263 http and websocket on same route
  • #​269 Correct handling of Buffer object

v0.7.16

Compare Source

Improvement:

  • t.Cookie cookie option type
  • #​253 platform agnostic cookie
  • Decorator like state, decorate and derive, doesn't apply to WebSocket data
  • re-export Static from

v0.7.15

Compare Source

Change:

  • Update TypeBox to 0.31.17
  • #​218 Fix #​213 prepend async redefined routes (partial fix)
  • Using set onRequest doesn't set headers and status on empty error handler

v0.7.14

Compare Source

Bug fix:

  • Make t.Files parameter optional
  • model remap now using TSchema instead of literal type for creating type abstraction

v0.7.13

Compare Source

Improvement:

  • Using listener instead of microtick to handle trace.set
  • Set default cookie path to '/'

Bug fix:

  • Duplicate group path when hook is provided

v0.7.12

Compare Source

Bug fix:

  • Handle cookie expire time
  • Set default value of config.cookie.path to '/'

v0.7.11

Compare Source

Improvement:

  • Skip cookie validation if schema is empty object

Bug fix:

  • Accept cookie property from constructor when schema is not defined

v0.7.10

Compare Source

Bug fix:

  • handle FFI object in deepMerge, fix Prisma

v0.7.9

Compare Source

Bug fix:

  • async instance cause config to be undefined

v0.7.8

Compare Source

Bug fix:

  • async instance cause type conflict

v0.7.7

Compare Source

Bug fix:

  • #​210 t.Numeric allowing plain String
  • t.ObjectString allowing plain String
  • #​209 t.MaybeEmpty tolerate null and undefined
  • #​205 WebSocket routes not working in plugins
  • #​195, #​201 allow WebSocket destructuring

v0.7.6

Compare Source

Bug fix:

  • Separate return type by status

v0.7.5

Compare Source

Bug fix:

  • inject derive to GraceHandler

v0.7.4

Compare Source

Bug fix:

  • check for class-like object
  • add GraceHandler to access both app and context

v0.7.3

Compare Source

Improvement:

  • #​345 add font to SchemaOptions
  • Update @types/cookie to ^0.6.0

Bug fix:

  • #​338 guard sandbox did not inherit global config.
  • #​330 preserve query params for mounted handler
  • #​332 reexport TSchema from typebox
  • #​319 TypeBox Ref error when using Elysia.group()

v0.7.2

Compare Source

Bug fix:

  • WebSocket params conflict with defined type
  • Inherits status code on custom error

v0.7.1

Compare Source

Bug fix:

  • add $passthrough for mapCompactResponse

v0.7.0

Compare Source

Feature:

  • rewrite type
  • rewrite Web Socket
  • add mapper method
  • add affix, prefix, suffix
  • trace
  • typeBox.Transfom
  • rewrite Type.ElysiaMeta to use TypeBox.Transform
  • new type:
    • t.Cookie
    • t.ObjectString
    • t.MaybeEmpty
    • t.Nullable
  • add Context to onError
  • lifecycle hook now accept array function
  • true encapsulation scope

Improvement:

  • static Code Analysis now support rest parameter
  • breakdown dynamic router into single pipeline instead of inlining to static router to reduce memory usage
  • set t.File and t.Files to File instead of Blob
  • skip class instance merging
  • handle UnknownContextPassToFunction
  • #​157 WebSocket - added unit tests and fixed example & api by @​bogeychan
  • #​179 add github action to run bun test by @​arthurfiorette

Breaking Change:

  • remove ws plugin, migrate to core
  • rename addError to error

Change:

  • using single findDynamicRoute instead of inlining to static map
  • remove mergician
  • remove array routes due to problem with TypeScript

Bug fix:

  • strictly validate response by default
  • t.Numeric not working on headers / query / params
  • t.Optional(t.Object({ [name]: t.Numeric })) causing error
  • add null check before converting Numeric
  • inherits store to instance plugin
  • handle class overlapping
  • #​187 InternalServerError message fixed to "INTERNAL_SERVER_ERROR" instead of "NOT_FOUND" by @​bogeychan
  • #​167 mapEarlyResponse with aot on after handle

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/elysia-0.x branch from 165e403 to 96fbd41 Compare September 24, 2023 13:08
@renovate renovate bot force-pushed the renovate/elysia-0.x branch from 96fbd41 to 5ec529c Compare December 23, 2023 09:11
@renovate renovate bot changed the title Update dependency elysia to ^0.7.0 Update dependency elysia to ^0.8.0 Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants