elysiajs / elysia-cors

Plugin for Elysia that for Cross Origin Requests (CORs)
MIT License
31 stars 9 forks source link

build(deps-dev): bump elysia from 0.5.12 to 0.7.14 #11

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps elysia from 0.5.12 to 0.7.14.

Release notes

Sourced from elysia's releases.

0.7 - Stellar Stellar

Landscape of wild and mountain in the night full of star

Name after our never giving up spirit, our beloved Virtual YouTuber, Suicopath Hoshimachi Suisei, and her brilliance voice: 「Stellar Stellar」from her first album:「Still Still Stellar」

For once being forgotten, she really is a star that truly shine in the dark.

Stellar Stellar brings many exciting new update to help Elysia solid the foundation, and handle complexity with ease, featuring:

  • Entirely rewrite type, up to 13x faster type inference.
  • "Trace" for declarative telemetry and better performance audit.
  • Reactive Cookie model and cookie valiation to simplify cookie handling.
  • TypeBox 0.31 with a custom decoder support.
  • Rewritten Web Socket for even better support.
  • Definitions remapping, and declarative affix for preventing name collision.
  • Text-based status

Rewritten Type

Core feature of Elysia about developer experience.

Type is one of the most important aspect of Elysia, as it allows us to do many amazing thing like unified type, syncing your business logic, typing, documentation and frontend.

We want you to have an outstanding experience with Elysia, focusing on your business logic part, and let's Elysia handle the rest whether it's type-inference with unified type, and Eden connector for syncing type with backend.

To achieve that, we put our effort on creating a unified type system for to synchronize all of the type, but as the feature grow, we found that our type inference might not be fast enough from our lack of TypeScript experience we have year ago.

With our experience we made along the way of handling complex type system, various optimization and many project like Mobius. We challenge our self to speed up our type system once again, making this a second type rewrite for Elysia.

We delete and rewrite every Elysia type from ground up to make Elysia type to be magnitude faster.

Here's a comparison between 0.6 and 0.7 on a simple Elysia.get code:

0.6

0.7

With our new found experience, and newer TypeScript feature like const generic, we are able to simplify a lot of our code, reducing our codebase over a thousand line in type.

Allowing us to refine our type system to be even faster, and even more stable.

Comparison between Elysia 0.6 and 0.7 on complex project with our 300 routes, and 3,500 lines of type declaration

Using Perfetto and TypeScript CLI to generate trace on a large-scale and complex app, we measure up to 13x inference speed.

And if you might wonder if we might break type inference with 0.6 or not, we do have a unit test in type-level to make sure most of the case, there's no breaking change for type.

We hope this improvement will help you with even faster type inference like faster auto-completion, and load time from your IDE to be near instant to help your development to be even more faster and more fluent than ever before.

Trace

... (truncated)

Changelog

Sourced from elysia's changelog.

0.7.14 - 26 Sep 2023

Bug fix:

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

0.7.13 - 25 Sep 2023

Improvement:

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

Bug fix:

  • Duplicate group path when hook is provided

0.7.12 - 23 Sep 2023

Bug fix:

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

0.7.11 - 23 Sep 2023

Improvement:

  • Skip cookie validation if schema is empty object

Bug fix:

  • Accept cookie property from constructor when schema is not defined

0.7.10 - 23 Sep 2023

Bug fix:

  • handle FFI object in deepMerge, fix Prisma

0.7.9 - 23 Sep 2023

Bug fix:

  • async instance cause config to be undefined

0.7.8 - 23 Sep 2023

Bug fix:

  • async instance cause type conflict

0.7.7 - 22 Sep 2023

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

0.7.6 - 21 Sep 2023

Bug fix:

  • Separate return type by status

0.7.5 - 21 Sep 2023

... (truncated)

Commits


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Looks like elysia is up-to-date now, so this is no longer needed.