vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
781 stars 50 forks source link

chore(deps): update all non-major dependencies #48

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@playwright/test (source) ^1.29.2 -> ^1.30.0 age adoption passing confidence
@swc/core (source) ^1.3.27 -> ^1.3.30 age adoption passing confidence
@swc/plugin-styled-components ^1.5.36 -> ^1.5.40 age adoption passing confidence
esbuild ^0.17.4 -> ^0.17.5 age adoption passing confidence

Release Notes

Microsoft/playwright ### [`v1.30.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.30.0) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.29.2...v1.30.0) ##### 🎉 Happy New Year 🎉 Maintenance release with bugfixes and new browsers only. We are baking some nice features for v1.31. ##### Browser Versions - Chromium 110.0.5481.38 - Mozilla Firefox 108.0.2 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 109 - Microsoft Edge 109
swc-project/swc ### [`v1.3.30`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1330---2023-01-28) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.29...v1.3.30) ##### Bug Fixes - **(es/minifier)** Track reassign in parent scope ([#​6865](https://togithub.com/swc-project/swc/issues/6865)) ([c0e72ef](https://togithub.com/swc-project/swc/commit/c0e72ef64ad9925c9dffda3b0ff261682f6054ed)) - **(es/module)** Fix handling of `this` for `systemjs` ([#​6857](https://togithub.com/swc-project/swc/issues/6857)) ([39c75fd](https://togithub.com/swc-project/swc/commit/39c75fdcce4ae63a2320bfaac4c2369799729051)) - **(es/parser)** Fix parsing of generics ([#​6859](https://togithub.com/swc-project/swc/issues/6859)) ([60d9403](https://togithub.com/swc-project/swc/commit/60d9403073f2d24df275325e854a0ab2dc1bf448)) ##### Features - **(es/minifier)** Improve compatibility of `arrows` with `terser` ([#​6862](https://togithub.com/swc-project/swc/issues/6862)) ([d1687d8](https://togithub.com/swc-project/swc/commit/d1687d8e0128ad534b551ebbb7f8445abe3144c2)) ##### Miscellaneous Tasks - **(ci)** FIx CI ([#​6861](https://togithub.com/swc-project/swc/issues/6861)) ([45cdfed](https://togithub.com/swc-project/swc/commit/45cdfed6c818ad7da2cf202a46abfbd06dda95eb)) ### [`v1.3.29`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1329---2023-01-26) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.28...v1.3.29) ##### Bug Fixes - **(plugin)** Make `span_to_source` use dedicated function ([#​6853](https://togithub.com/swc-project/swc/issues/6853)) ([99d48e3](https://togithub.com/swc-project/swc/commit/99d48e305ef73352efc41bc134a10750b1d724bc)) ##### Refactor - **(es/minifier)** Merge `cond_init` with `reassigned` ([#​6850](https://togithub.com/swc-project/swc/issues/6850)) ([55225cb](https://togithub.com/swc-project/swc/commit/55225cb994d6cb0cfaae4cee77905f17ec6e37c7)) ### [`v1.3.28`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1328---2023-01-24) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.27...v1.3.28) ##### Bug Fixes - **(es/codegen)** Fix codegen of string literals with `\x000` ([#​6838](https://togithub.com/swc-project/swc/issues/6838)) ([df70261](https://togithub.com/swc-project/swc/commit/df702614e1c23ee119d26beeb1b3abd454d7add0)) - **(es/minifier)** Don't inline into `await` from sequential inliner ([#​6839](https://togithub.com/swc-project/swc/issues/6839)) ([21e1478](https://togithub.com/swc-project/swc/commit/21e14787c521cc1f808c9b71e8671820a79bd12f)) ##### Miscellaneous Tasks - **(ci)** Make stale action to wait 30 days ([#​6828](https://togithub.com/swc-project/swc/issues/6828)) ([1ef2347](https://togithub.com/swc-project/swc/commit/1ef2347bdf6901ea6d1e8629ba08611421d19c3e)) ##### Performance - **(es/minifier)** Make pure function check `O(1)` ([#​6840](https://togithub.com/swc-project/swc/issues/6840)) ([58208ef](https://togithub.com/swc-project/swc/commit/58208ef8aee994591f05d996a8b660da6e96d681)) ##### Refactor - **(es/preset-env)** Use a const fn instead of a macro ([#​6844](https://togithub.com/swc-project/swc/issues/6844)) ([2fcab36](https://togithub.com/swc-project/swc/commit/2fcab36418b7cf0869a1a256dc927d3ccdbe35cd)) - **(es/typescript)** Remove unused code ([#​6830](https://togithub.com/swc-project/swc/issues/6830)) ([7205543](https://togithub.com/swc-project/swc/commit/7205543d5f58e2aaa8ef8ba0820c2f05726001d1))
evanw/esbuild ### [`v0.17.5`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0175) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.4...v0.17.5) - Parse `const` type parameters from TypeScript 5.0 The TypeScript 5.0 beta announcement adds [`const` type parameters](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#const-type-parameters) to the language. You can now add the `const` modifier on a type parameter of a function, method, or class like this: ```ts type HasNames = { names: readonly string[] }; const getNamesExactly = (arg: T): T["names"] => arg.names; const names = getNamesExactly({ names: ["Alice", "Bob", "Eve"] }); ``` The type of `names` in the above example is `readonly ["Alice", "Bob", "Eve"]`. Marking the type parameter as `const` behaves as if you had written `as const` at every use instead. The above code is equivalent to the following TypeScript, which was the only option before TypeScript 5.0: ```ts type HasNames = { names: readonly string[] }; const getNamesExactly = (arg: T): T["names"] => arg.names; const names = getNamesExactly({ names: ["Alice", "Bob", "Eve"] } as const); ``` You can read [the announcement](https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#const-type-parameters) for more information. - Make parsing generic `async` arrow functions more strict in `.tsx` files Previously esbuild's TypeScript parser incorrectly accepted the following code as valid: ```tsx let fn = async () => {}; ``` The official TypeScript parser rejects this code because it thinks it's the identifier `async` followed by a JSX element starting with ``. So with this release, esbuild will now reject this syntax in `.tsx` files too. You'll now have to add a comma after the type parameter to get generic arrow functions like this to parse in `.tsx` files: ```tsx let fn = async () => {}; ``` - Allow the `in` and `out` type parameter modifiers on class expressions TypeScript 4.7 added the `in` and `out` modifiers on the type parameters of classes, interfaces, and type aliases. However, while TypeScript supported them on both class expressions and class statements, previously esbuild only supported them on class statements due to an oversight. This release now allows these modifiers on class expressions too: ```ts declare let Foo: any; Foo = class { }; Foo = class { }; ``` - Update `enum` constant folding for TypeScript 5.0 TypeScript 5.0 contains an [updated definition of what it considers a constant expression](https://togithub.com/microsoft/TypeScript/pull/50528): > An expression is considered a *constant expression* if it is > > - a number or string literal, > - a unary `+`, `-`, or `~` applied to a numeric constant expression, > - a binary `+`, `-`, `*`, `/`, `%`, `**`, `<<`, `>>`, `>>>`, `|`, `&`, `^` applied to two numeric constant expressions, > - a binary `+` applied to two constant expressions whereof at least one is a string, > - a template expression where each substitution expression is a constant expression, > - a parenthesized constant expression, > - a dotted name (e.g. `x.y.z`) that references a `const` variable with a constant expression initializer and no type annotation, > - a dotted name that references an enum member with an enum literal type, or > - a dotted name indexed by a string literal (e.g. `x.y["z"]`) that references an enum member with an enum literal type. This impacts esbuild's implementation of TypeScript's `const enum` feature. With this release, esbuild will now attempt to follow these new rules. For example, you can now initialize an `enum` member with a template literal expression that contains a numeric constant: ```ts // Original input const enum Example { COUNT = 100, ERROR = `Expected ${COUNT} items`, } console.log( Example.COUNT, Example.ERROR, ) // Old output (with --tree-shaking=true) var Example = /* @​__PURE__ */ ((Example2) => { Example2[Example2["COUNT"] = 100] = "COUNT"; Example2[Example2["ERROR"] = `Expected ${100 /* COUNT */} items`] = "ERROR"; return Example2; })(Example || {}); console.log( 100 /* COUNT */, Example.ERROR ); // New output (with --tree-shaking=true) console.log( 100 /* COUNT */, "Expected 100 items" /* ERROR */ ); ``` These rules are not followed exactly due to esbuild's limitations. The rule about dotted references to `const` variables is not followed both because esbuild's enum processing is done in an isolated module setting and because doing so would potentially require esbuild to use a type system, which it doesn't have. For example: ```ts // The TypeScript compiler inlines this but esbuild doesn't: declare const x = 'foo' const enum Foo { X = x } console.log(Foo.X) ``` Also, the rule that requires converting numbers to a string currently only followed for 32-bit signed integers and non-finite numbers. This is done to avoid accidentally introducing a bug if esbuild's number-to-string operation doesn't exactly match the behavior of a real JavaScript VM. Currently esbuild's number-to-string constant folding is conservative for safety. - Forbid definite assignment assertion operators on class methods In TypeScript, class methods can use the `?` optional property operator but not the `!` definite assignment assertion operator (while class fields can use both): ```ts class Foo { // These are valid TypeScript a? b! x?() {} // This is invalid TypeScript y!() {} } ``` Previously esbuild incorrectly allowed the definite assignment assertion operator with class methods. This will no longer be allowed starting with this release.

Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.



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