vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
831 stars 54 forks source link

fix(deps): update all non-major dependencies #121

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
@generouted/react-router ^1.13.1 -> ^1.13.4 age adoption passing confidence
@playwright/test (source) ^1.35.0 -> ^1.35.1 age adoption passing confidence
@swc/core (source) ^1.3.62 -> ^1.3.65 age adoption passing confidence
@swc/plugin-emotion ^2.5.67 -> ^2.5.68 age adoption passing confidence
@swc/plugin-styled-components ^1.5.67 -> ^1.5.68 age adoption passing confidence
@types/node (source) ^18.16.17 -> ^18.16.18 age adoption passing confidence
@types/react (source) ^18.2.11 -> ^18.2.12 age adoption passing confidence
@types/react-dom (source) ^18.2.4 -> ^18.2.5 age adoption passing confidence
esbuild ^0.18.1 -> ^0.18.4 age adoption passing confidence
react-router-dom ^6.12.1 -> ^6.13.0 age adoption passing confidence

Release Notes

oedotme/generouted ### [`v1.13.4`](https://togithub.com/oedotme/generouted/releases/tag/v1.13.4) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.13.3...v1.13.4) #### Commits - fix: forward search and hash to react-router link and navigate ([#​95](https://togithub.com/oedotme/generouted/issues/95)) [`ebbb47f`](https://togithub.com/oedotme/generouted/commit/ebbb47f) by [@​az33zy](https://togithub.com/az33zy) **Changelog**: https://github.com/oedotme/generouted/compare/v1.13.3...v1.13.4 ### [`v1.13.3`](https://togithub.com/oedotme/generouted/releases/tag/v1.13.3) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.13.2...v1.13.3) #### Commits - fix: solid modals hook navigate options [`be39cfb`](https://togithub.com/oedotme/generouted/commit/be39cfb) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.13.2...v1.13.3 ### [`v1.13.2`](https://togithub.com/oedotme/generouted/releases/tag/v1.13.2) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.13.1...v1.13.2) #### Commits - fix: location state type at solid modals hook [`848e48a`](https://togithub.com/oedotme/generouted/commit/848e48a) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.13.1...v1.13.2
Microsoft/playwright ### [`v1.35.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.35.1) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.35.0...v1.35.1) ##### Highlights [https://github.com/microsoft/playwright/issues/23622](https://togithub.com/microsoft/playwright/issues/23622) - \[Docs] Provide a description how to correctly use expect.configure with poll parameter[https://github.com/microsoft/playwright/issues/23666](https://togithub.com/microsoft/playwright/issues/23666)6 - \[BUG] Live Trace does not work with Codespace[https://github.com/microsoft/playwright/issues/23693](https://togithub.com/microsoft/playwright/issues/23693)93 - \[BUG] attachment steps are not hidden inside expect.toHaveScreenshot() ##### Browser Versions - Chromium 115.0.5790.13 - Mozilla Firefox 113.0 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 114 - Microsoft Edge 114
swc-project/swc ### [`v1.3.65`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1365---2023-06-19) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.64...v1.3.65) ##### Bug Fixes - **(es/compat)** Fix optional chaining ([#​7530](https://togithub.com/swc-project/swc/issues/7530)) ([990e48e](https://togithub.com/swc-project/swc/commit/990e48e0e81c339b42b0bf33b62a6f7126b0e2e8)) - **(es/module)** Add `"use strict"` while preserving directives ([#​7537](https://togithub.com/swc-project/swc/issues/7537)) ([f42fdd2](https://togithub.com/swc-project/swc/commit/f42fdd21afad775358138c3aaed4ff3c41bfb16a)) - **(es/typescript)** Don't panic of `@jsxFrag null` ([#​7540](https://togithub.com/swc-project/swc/issues/7540)) ([76aa91f](https://togithub.com/swc-project/swc/commit/76aa91f83cf37a11aa55feba40d6f73819fc811d)) ##### Features - **(es/module)** Preserve custom `use` directives ([#​7528](https://togithub.com/swc-project/swc/issues/7528)) ([3e9dd88](https://togithub.com/swc-project/swc/commit/3e9dd88e37fcb99293a3683ea7a62214950f7860)) ### [`v1.3.64`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1364---2023-06-14) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.63...v1.3.64) ##### Bug Fixes - **(es/codegen)** Emit type arguments of jsx element names ([#​7522](https://togithub.com/swc-project/swc/issues/7522)) ([a0da02d](https://togithub.com/swc-project/swc/commit/a0da02d0ff641863dafc1a7d573419478c3b16dc)) - **(es/codegen)** Fix regression of source maps ([#​7523](https://togithub.com/swc-project/swc/issues/7523)) ([f27838d](https://togithub.com/swc-project/swc/commit/f27838dedcac792ac30380f45ef89b329221de59)) - **(es/compat)** Fix handling of `this` of optional chaining pass ([#​7527](https://togithub.com/swc-project/swc/issues/7527)) ([4644d00](https://togithub.com/swc-project/swc/commit/4644d005d2ca06ad002dc7c6ff6c4d19e1734970)) ### [`v1.3.63`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1363---2023-06-13) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.62...v1.3.63) ##### Bug Fixes - **(es/codegen)** Remove extra spaces in `AssignPatProp` and `KeyValuePatProp` ([#​7488](https://togithub.com/swc-project/swc/issues/7488)) ([064bcf4](https://togithub.com/swc-project/swc/commit/064bcf4854f8505f04b40b72da1becec0c531a7d)) - **(es/compat)** Make stage 3 decorator pass use correct state for inner classes ([#​7508](https://togithub.com/swc-project/swc/issues/7508)) ([cc4146c](https://togithub.com/swc-project/swc/commit/cc4146c9d3a21514031e46003170a3fdaac1987a)) - **(es/minifier)** Infect mutation when assigning a property ([#​7503](https://togithub.com/swc-project/swc/issues/7503)) ([7f9f0b8](https://togithub.com/swc-project/swc/commit/7f9f0b8bcebc26eed1354ce2901aabd61261f434)) - **(es/react)** Default to empty string when emitting refresh signature ([#​7514](https://togithub.com/swc-project/swc/issues/7514)) ([8e933c8](https://togithub.com/swc-project/swc/commit/8e933c8a9fdf8867deb7f0d108b99430949aad54)) ##### Features - **(es/codegen)** Add ability to set indentation string via rust api ([#​7494](https://togithub.com/swc-project/swc/issues/7494)) ([a343e7c](https://togithub.com/swc-project/swc/commit/a343e7ccae4e88d9e3941beedf63b61bd0512c3d)) - **(es/minifier)** Remove unused labels ([#​7478](https://togithub.com/swc-project/swc/issues/7478)) ([62075fa](https://togithub.com/swc-project/swc/commit/62075faeaada8d9df3c7d849bbcfda8ff0c5d79f)) - **(es/parser)** Disallow tagged tpl in optional chaining ([#​7515](https://togithub.com/swc-project/swc/issues/7515)) ([6c00a24](https://togithub.com/swc-project/swc/commit/6c00a2422addf0e402bb221e80f6f8acad839b28)) - **(plugin/runner)** Support shared wasix runtime ([#​7504](https://togithub.com/swc-project/swc/issues/7504)) ([73929fc](https://togithub.com/swc-project/swc/commit/73929fc43c34fd4545bd292fbf0f6d7de35fbee9)) ##### Performance - **(css/prefixer)** Convert macro to a function call to reduce binary size ([#​7507](https://togithub.com/swc-project/swc/issues/7507)) ([d545df6](https://togithub.com/swc-project/swc/commit/d545df6dd951fa2f5756830c40c21ae251e4e634)) - **(es)** Use `&dyn Comments` to reduce binary size ([#​7489](https://togithub.com/swc-project/swc/issues/7489)) ([2c3ac68](https://togithub.com/swc-project/swc/commit/2c3ac682e271dad0ab6e82c14ad14f06715d853b)) - **(es)** Use `&dyn Comments` for jsx and TypeScript ([#​7490](https://togithub.com/swc-project/swc/issues/7490)) ([abd62bc](https://togithub.com/swc-project/swc/commit/abd62bc797175d783d18d162301c851eefa7ac23)) ##### Refactor - **(es/ast)** Reimplement optional chaining ([#​7441](https://togithub.com/swc-project/swc/issues/7441)) ([aa83584](https://togithub.com/swc-project/swc/commit/aa83584634286d7c741d903ad94ba5228c89bc62)) - **(es/ast)** Remove unused fields ([#​7518](https://togithub.com/swc-project/swc/issues/7518)) ([3958f17](https://togithub.com/swc-project/swc/commit/3958f1792c4598e965f36a11c567c95f69984a9f))
evanw/esbuild ### [`v0.18.4`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0184) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.3...v0.18.4) - Bundling no longer unnecessarily transforms class syntax ([#​1360](https://togithub.com/evanw/esbuild/issues/1360), [#​1328](https://togithub.com/evanw/esbuild/issues/1328), [#​1524](https://togithub.com/evanw/esbuild/issues/1524), [#​2416](https://togithub.com/evanw/esbuild/issues/2416)) When bundling, esbuild automatically converts top-level class statements to class expressions. Previously this conversion had the unfortunate side-effect of also transforming certain other class-related syntax features to avoid correctness issues when the references to the class name within the class body. This conversion has been reworked to avoid doing this: ```js // Original code export class Foo { static foo = () => Foo } // Old output (with --bundle) var _Foo = class { }; var Foo = _Foo; __publicField(Foo, "foo", () => _Foo); // New output (with --bundle) var Foo = class _Foo { static foo = () => _Foo; }; ``` This conversion process is very complicated and has many edge cases (including interactions with static fields, static blocks, private class properties, and TypeScript experimental decorators). It should already be pretty robust but a change like this may introduce new unintentional behavior. Please report any issues with this upgrade on the esbuild bug tracker. You may be wondering why esbuild needs to do this at all. One reason to do this is that esbuild's bundler sometimes needs to lazily-evaluate a module. For example, a module may end up being both the target of a dynamic `import()` call and a static `import` statement. Lazy module evaluation is done by wrapping the top-level module code in a closure. To avoid a performance hit for static `import` statements, esbuild stores top-level exported symbols outside of the closure and references them directly instead of indirectly. Another reason to do this is that multiple JavaScript VMs have had and continue to have performance issues with TDZ (i.e. "temporal dead zone") checks. These checks validate that a let, or const, or class symbol isn't used before it's initialized. Here are two issues with well-known VMs: - V8: https://bugs.chromium.org/p/v8/issues/detail?id=13723 (10% slowdown) - JavaScriptCore: https://bugs.webkit.org/show_bug.cgi?id=199866 (1,000% slowdown!) JavaScriptCore had a severe performance issue as their TDZ implementation had time complexity that was quadratic in the number of variables needing TDZ checks in the same scope (with the top-level scope typically being the worst offender). V8 has ongoing issues with TDZ checks being present throughout the code their JIT generates even when they have already been checked earlier in the same function or when the function in question has already been run (so the checks have already happened). Due to esbuild's parallel architecture, esbuild both a) needs to convert class statements into class expressions during parsing and b) doesn't yet know whether this module will need to be lazily-evaluated or not in the parser. So esbuild always does this conversion during bundling in case it's needed for correctness (and also to avoid potentially catastrophic performance issues due to bundling creating a large scope with many TDZ variables). - Enforce TDZ errors in computed class property keys ([#​2045](https://togithub.com/evanw/esbuild/issues/2045)) JavaScript allows class property keys to be generated at run-time using code, like this: ```js class Foo { static foo = 'foo' static [Foo.foo + '2'] = 2 } ``` Previously esbuild treated references to the containing class name within computed property keys as a reference to the partially-initialized class object. That meant code that attempted to reference properties of the class object (such as the code above) would get back `undefined` instead of throwing an error. This release rewrites references to the containing class name within computed property keys into code that always throws an error at run-time, which is how this JavaScript code is supposed to work. Code that does this will now also generate a warning. You should never write code like this, but it now should be more obvious when incorrect code like this is written. - Fix an issue with experimental decorators and static fields ([#​2629](https://togithub.com/evanw/esbuild/issues/2629)) This release also fixes a bug regarding TypeScript experimental decorators and static class fields which reference the enclosing class name in their initializer. This affected top-level classes when bundling was enabled. Previously code that does this could crash because the class name wasn't initialized yet. This case should now be handled correctly: ```ts // Original code class Foo { @​someDecorator static foo = 'foo' static bar = Foo.foo.length } // Old output const _Foo = class { static foo = "foo"; static bar = _Foo.foo.length; }; let Foo = _Foo; __decorateClass([ someDecorator ], Foo, "foo", 2); // New output const _Foo = class _Foo { static foo = "foo"; static bar = _Foo.foo.length; }; __decorateClass([ someDecorator ], _Foo, "foo", 2); let Foo = _Foo; ``` - Fix a minification regression with negative numeric properties ([#​3169](https://togithub.com/evanw/esbuild/issues/3169)) Version 0.18.0 introduced a regression where computed properties with negative numbers were incorrectly shortened into a non-computed property when minification was enabled. This regression has been fixed: ```js // Original code x = { [1]: 1, [-1]: -1, [NaN]: NaN, [Infinity]: Infinity, [-Infinity]: -Infinity, } // Old output (with --minify) x={1:1,-1:-1,NaN:NaN,1/0:1/0,-1/0:-1/0}; // New output (with --minify) x={1:1,[-1]:-1,NaN:NaN,[1/0]:1/0,[-1/0]:-1/0}; ``` ### [`v0.18.3`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0183) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.2...v0.18.3) - Fix a panic due to empty static class blocks ([#​3161](https://togithub.com/evanw/esbuild/issues/3161)) This release fixes a bug where an internal invariant that was introduced in the previous release was sometimes violated, which then caused a panic. It happened when bundling code containing an empty static class block with both minification and bundling enabled. ### [`v0.18.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0182) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.1...v0.18.2) - Lower static blocks when static fields are lowered ([#​2800](https://togithub.com/evanw/esbuild/issues/2800), [#​2950](https://togithub.com/evanw/esbuild/issues/2950), [#​3025](https://togithub.com/evanw/esbuild/issues/3025)) This release fixes a bug where esbuild incorrectly did not lower static class blocks when static class fields needed to be lowered. For example, the following code should print `1 2 3` but previously printed `2 1 3` instead due to this bug: ```js // Original code class Foo { static x = console.log(1) static { console.log(2) } static y = console.log(3) } // Old output (with --supported:class-static-field=false) class Foo { static { console.log(2); } } __publicField(Foo, "x", console.log(1)); __publicField(Foo, "y", console.log(3)); // New output (with --supported:class-static-field=false) class Foo { } __publicField(Foo, "x", console.log(1)); console.log(2); __publicField(Foo, "y", console.log(3)); ``` - Use static blocks to implement `--keep-names` on classes ([#​2389](https://togithub.com/evanw/esbuild/issues/2389)) This change fixes a bug where the `name` property could previously be incorrect within a class static context when using `--keep-names`. The problem was that the `name` property was being initialized after static blocks were run instead of before. This has been fixed by moving the `name` property initializer into a static block at the top of the class body: ```js // Original code if (typeof Foo === 'undefined') { let Foo = class { static test = this.name } console.log(Foo.test) } // Old output (with --keep-names) if (typeof Foo === "undefined") { let Foo2 = /* @​__PURE__ */ __name(class { static test = this.name; }, "Foo"); console.log(Foo2.test); } // New output (with --keep-names) if (typeof Foo === "undefined") { let Foo2 = class { static { __name(this, "Foo"); } static test = this.name; }; console.log(Foo2.test); } ``` This change was somewhat involved, especially regarding what esbuild considers to be side-effect free. Some unused classes that weren't removed by tree shaking in previous versions of esbuild may now be tree-shaken. One example is classes with static private fields that are transformed by esbuild into code that doesn't use JavaScript's private field syntax. Previously esbuild's tree shaking analysis ran on the class after syntax lowering, but with this release it will run on the class before syntax lowering, meaning it should no longer be confused by class mutations resulting from automatically-generated syntax lowering code.
remix-run/react-router ### [`v6.13.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#​6130) [Compare Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.12.1...react-router-dom@6.13.0) ##### Minor Changes - Move [`React.startTransition`](https://react.dev/reference/react/startTransition) usage behind a [future flag](https://reactrouter.com/en/main/guides/api-development-strategy) to avoid issues with existing incompatible `Suspense` usages. We recommend folks adopting this flag to be better compatible with React concurrent mode, but if you run into issues you can continue without the use of `startTransition` until v7. Issues usually boils down to creating net-new promises during the render cycle, so if you run into issues you should either lift your promise creation out of the render cycle or put it behind a `useMemo`. ([#​10596](https://togithub.com/remix-run/react-router/pull/10596)) Existing behavior will no longer include `React.startTransition`: ```jsx {/*...*/} ``` If you wish to enable `React.startTransition`, pass the future flag to your component: ```jsx {/*...*/} ``` ##### Patch Changes - Work around webpack/terser `React.startTransition` minification bug in production mode ([#​10588](https://togithub.com/remix-run/react-router/pull/10588)) - Updated dependencies: - `react-router@6.13.0`

Configuration

📅 Schedule: Branch creation - "before 4am 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.