vitejs / vite-plugin-react-swc

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

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

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.0 -> ^1.29.1 age adoption passing confidence
@swc/core (source) ^1.3.23 -> ^1.3.24 age adoption passing confidence
@types/node (source) ^18.11.17 -> ^18.11.18 age adoption passing confidence
@types/react-dom (source) ^18.0.9 -> ^18.0.10 age adoption passing confidence
esbuild ^0.16.9 -> ^0.16.11 age adoption passing confidence
vite (source) ^4.0.2 -> ^4.0.3 age adoption passing confidence

Release Notes

Microsoft/playwright ### [`v1.29.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.29.1) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.29.0...v1.29.1) #### Highlights [https://github.com/microsoft/playwright/issues/18928](https://togithub.com/microsoft/playwright/issues/18928) - \[BUG] Electron firstWindow times out after upgrading to 1.28.0[https://github.com/microsoft/playwright/issues/19246](https://togithub.com/microsoft/playwright/issues/19246)6 - \[BUG] Electron firstWindow times out after upgrading to 1.28.[https://github.com/microsoft/playwright/issues/19412](https://togithub.com/microsoft/playwright/issues/19412)12 - \[REGRESSION]: 1.28 does not work with electron-serve anymor[https://github.com/microsoft/playwright/issues/19540](https://togithub.com/microsoft/playwright/issues/19540)540 - \[BUG] electron.app.getAppPath() returns the path one level higher if you run electron pointing to the direct[https://github.com/microsoft/playwright/issues/19548](https://togithub.com/microsoft/playwright/issues/19548)9548 - \[REGRESSION]: Ubuntu 18 LTS not supported anymore #### Browser Versions - Chromium 109.0.5414.46 - Mozilla Firefox 107.0 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 108 - Microsoft Edge 108
swc-project/swc ### [`v1.3.24`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1324---2022-12-21) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.23...v1.3.24) ##### Bug Fixes - **(css/minifier)** Don't remove custom variables with different case ([#​6655](https://togithub.com/swc-project/swc/issues/6655)) ([dd7280d](https://togithub.com/swc-project/swc/commit/dd7280d5bda960292bf5f4e12816d5a340277222)) - **(css/minifier)** Fix a bug with a modern hash ([#​6664](https://togithub.com/swc-project/swc/issues/6664)) ([1d3e06a](https://togithub.com/swc-project/swc/commit/1d3e06aa886ffd8b18044c42a899fc3c780a6179)) - **(es/helpers)** Fix loose mode ([#​6691](https://togithub.com/swc-project/swc/issues/6691)) ([5016ebe](https://togithub.com/swc-project/swc/commit/5016ebed8f68ed1afb40d5d86c13d5e787e9cc13)) - **(es/minifier)** Abort IIFE invoker completely on eval ([#​6659](https://togithub.com/swc-project/swc/issues/6659)) ([bb9fab8](https://togithub.com/swc-project/swc/commit/bb9fab8d0358262b8236c372d62660a50b5b3417)) - **(es/minifier)** Don't inline invalid LHS into an update argument ([#​6680](https://togithub.com/swc-project/swc/issues/6680)) ([7e6ec8d](https://togithub.com/swc-project/swc/commit/7e6ec8d587471dba1dde44ebcfd6af6d03247955)) - **(es/preset-env)** Align polyfills with `@babel/plugin-polyfill-corejs3` ([#​6673](https://togithub.com/swc-project/swc/issues/6673)) ([5fed222](https://togithub.com/swc-project/swc/commit/5fed22282971c62af3be8bf0b858684ca90ec7fc)) ##### Features - **(css/compat)** Support function notation ([#​6651](https://togithub.com/swc-project/swc/issues/6651)) ([39afc46](https://togithub.com/swc-project/swc/commit/39afc4627e2a1e6ca397bc22cd3d9abe68c45fe2)) - **(css/compat)** Support `not` with multiple arguments ([#​6668](https://togithub.com/swc-project/swc/issues/6668)) ([352896f](https://togithub.com/swc-project/swc/commit/352896f4cb627c1a006ea82780f993915af7e8b1)) - **(css/compat)** Support `hwb` color ([#​6687](https://togithub.com/swc-project/swc/issues/6687)) ([b23cf50](https://togithub.com/swc-project/swc/commit/b23cf50f4ff58a2c6d434cb03f2388e75a35d510)) - **(css/minifier)** Compress alpha in a hex ([#​6653](https://togithub.com/swc-project/swc/issues/6653)) ([f6292e6](https://togithub.com/swc-project/swc/commit/f6292e63b51e5ad5a8d1fcc253e8342438098898)) - **(css/minifier)** Improve compression of media at-rules ([#​6665](https://togithub.com/swc-project/swc/issues/6665)) ([2fd3ced](https://togithub.com/swc-project/swc/commit/2fd3ced40c97fbac162f70e49c76c775e66a4552)) - **(css/parser)** Normalize hex colors ([#​6652](https://togithub.com/swc-project/swc/issues/6652)) ([b257d5d](https://togithub.com/swc-project/swc/commit/b257d5d591c04feedf2f5997a984bf2f843b9d19)) - **(css/parser)** Normalize selector AST ([#​6657](https://togithub.com/swc-project/swc/issues/6657)) ([649438b](https://togithub.com/swc-project/swc/commit/649438b76a8ea61f2ddb2160a212d318d9d05267)) - **(css/parser)** Normalize declaration and important ([#​6663](https://togithub.com/swc-project/swc/issues/6663)) ([1fc97a7](https://togithub.com/swc-project/swc/commit/1fc97a7cea4ddf5b70f3b9193388e481caa60731)) - **(css/parser)** Normalize dimension ([#​6654](https://togithub.com/swc-project/swc/issues/6654)) ([3d3863d](https://togithub.com/swc-project/swc/commit/3d3863dc1f80a7a1dc141cc9fb0ed9277537a3d0)) - **(css/parser)** Normalize URL functions ([#​6675](https://togithub.com/swc-project/swc/issues/6675)) ([c01464e](https://togithub.com/swc-project/swc/commit/c01464e4525cb8c7d4b9f000d8b76d72e8e7531a)) - **(css/parser)** Normalize at-rule names ([#​6676](https://togithub.com/swc-project/swc/issues/6676)) ([7f8ba9c](https://togithub.com/swc-project/swc/commit/7f8ba9c22c9910e03a3b6122dd4ca4324314bbb5)) - **(css/parser)** Normalize keyframe selectors ([#​6688](https://togithub.com/swc-project/swc/issues/6688)) ([d7a0524](https://togithub.com/swc-project/swc/commit/d7a0524fb64c97facf067281ae3a2fc4afae68fe)) - **(css/parser)** Normalize and improve function name ([#​6667](https://togithub.com/swc-project/swc/issues/6667)) ([2571070](https://togithub.com/swc-project/swc/commit/257107014801e892a78ec68c2c0ec0899a083053)) - **(css/prefixer)** Support font-face format ([#​6644](https://togithub.com/swc-project/swc/issues/6644)) ([199ac74](https://togithub.com/swc-project/swc/commit/199ac7461814553bab97c1f0f7b1c89f34897122)) - **(css/prefixer)** Support `word-wrap` ([#​6679](https://togithub.com/swc-project/swc/issues/6679)) ([46241b4](https://togithub.com/swc-project/swc/commit/46241b4e554b7a6ee090db8e35acd0151e8caf2b)) - **(css/prefixer)** Support `place-*` properties ([#​6685](https://togithub.com/swc-project/swc/issues/6685)) ([d8df1b5](https://togithub.com/swc-project/swc/commit/d8df1b53d13cb25aa8f513f9dc3baeb535fd714e)) - **(css/prefixer)** Support `overflow` ([#​6678](https://togithub.com/swc-project/swc/issues/6678)) ([1c7f003](https://togithub.com/swc-project/swc/commit/1c7f003779fd17d3d2c372ce502cbbaabb49ed48)) - **(es/minifier)** Improve simplification of `?.` ([#​6681](https://togithub.com/swc-project/swc/issues/6681)) ([707b1e3](https://togithub.com/swc-project/swc/commit/707b1e3cd203be22eccc60367dc3c84f62105de5)) ##### Miscellaneous Tasks - **(ci)** Fix upload of cli binaries ([#​6701](https://togithub.com/swc-project/swc/issues/6701)) ([025d626](https://togithub.com/swc-project/swc/commit/025d6268cdcbdb2cf280ccbef7b15a6f3daf00a5)) - **(helpers)** Fix license ([#​6690](https://togithub.com/swc-project/swc/issues/6690)) ([8a71dbc](https://togithub.com/swc-project/swc/commit/8a71dbca6d94af76c3bf7317390dd1da835cacae)) ##### Performance - **(css/prefixer)** Use `JsWord` instead of `&str` ([#​6658](https://togithub.com/swc-project/swc/issues/6658)) ([d27a270](https://togithub.com/swc-project/swc/commit/d27a270fec7f08895c5a9ab2b56da6d77f52d5af)) - **(es/minifier)** Use rope-like structure for the name mangler ([#​6661](https://togithub.com/swc-project/swc/issues/6661)) ([cb4173a](https://togithub.com/swc-project/swc/commit/cb4173aa73fbfd95f2411ceb97cec95e408f59ee)) ##### Refactor - **(css/compat)** Merge nesting into the compiler ([#​6686](https://togithub.com/swc-project/swc/issues/6686)) ([1840e74](https://togithub.com/swc-project/swc/commit/1840e748af8334d244a1455a25325625b06fff93)) - **(css/prefixer)** Use `eq_ignore_span` ([#​6656](https://togithub.com/swc-project/swc/issues/6656)) ([d4660a4](https://togithub.com/swc-project/swc/commit/d4660a4673e19d628b7720e1352fa905bdc4456a)) ##### Testing - **(css/parser)** Add a test ([#​6666](https://togithub.com/swc-project/swc/issues/6666)) ([87e1efd](https://togithub.com/swc-project/swc/commit/87e1efd98ce3c58325ee047c2b01b0df575e921f)) ##### Build - **(bindings)** Crash in GraalVM ([#​6689](https://togithub.com/swc-project/swc/issues/6689)) ([e7849db](https://togithub.com/swc-project/swc/commit/e7849dbc6a68274ec5f177f061da80bdf8788902))
evanw/esbuild ### [`v0.16.11`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01611) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.10...v0.16.11) - Avoid a syntax error in the presence of direct `eval` ([#​2761](https://togithub.com/evanw/esbuild/issues/2761)) The behavior of nested `function` declarations in JavaScript depends on whether the code is run in strict mode or not. It would be problematic if esbuild preserved nested `function` declarations in its output because then the behavior would depend on whether the output was run in strict mode or not instead of respecting the strict mode behavior of the original source code. To avoid this, esbuild transforms nested `function` declarations to preserve the intended behavior of the original source code regardless of whether the output is run in strict mode or not: ```js // Original code if (true) { function foo() {} console.log(!!foo) foo = null console.log(!!foo) } console.log(!!foo) // Transformed code if (true) { let foo2 = function() { }; var foo = foo2; console.log(!!foo2); foo2 = null; console.log(!!foo2); } console.log(!!foo); ``` In the above example, the original code should print `true false true` because it's not run in strict mode (it doesn't contain `"use strict"` and is not an ES module). The code that esbuild generates has been transformed such that it prints `true false true` regardless of whether it's run in strict mode or not. However, this transformation is impossible if the code contains direct `eval` because direct `eval` "poisons" all containing scopes by preventing anything in those scopes from being renamed. That prevents esbuild from splitting up accesses to `foo` into two separate variables with different names. Previously esbuild still did this transformation but with two variables both named `foo`, which is a syntax error. With this release esbuild will now skip doing this transformation when direct `eval` is present to avoid generating code with a syntax error. This means that the generated code may no longer behave as intended since the behavior depends on the run-time strict mode setting instead of the strict mode setting present in the original source code. To fix this problem, you will need to remove the use of direct `eval`. - Fix a bundling scenario involving multiple symlinks ([#​2773](https://togithub.com/evanw/esbuild/issues/2773), [#​2774](https://togithub.com/evanw/esbuild/issues/2774)) This release contains a fix for a bundling scenario involving an import path where multiple path segments are symlinks. Previously esbuild was unable to resolve certain import paths in this scenario, but these import paths should now work starting with this release. This fix was contributed by [@​onebytegone](https://togithub.com/onebytegone). ### [`v0.16.10`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01610) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.16.9...v0.16.10) - Change the default "legal comment" behavior again ([#​2745](https://togithub.com/evanw/esbuild/issues/2745)) The legal comments feature automatically gathers comments containing `@license` or `@preserve` and puts the comments somewhere (either in the generated code or in a separate file). This behavior used to be on by default but was disabled by default in version 0.16.0 because automatically inserting comments is potentially confusing and misleading. These comments can appear to be assigning the copyright of your code to another entity. And this behavior can be especially problematic if it happens automatically by default since you may not even be aware of it happening. For example, if you bundle the TypeScript compiler the preserving legal comments means your source code would contain this comment, which appears to be assigning the copyright of all of your code to Microsoft: ```js /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ ``` However, people have asked for this feature to be re-enabled by default. To resolve the confusion about what these comments are applying to, esbuild's default behavior will now be to attempt to describe which package the comments are coming from. So while this feature has been re-enabled by default, the output will now look something like this instead: ```js /*! Bundled license information: typescript/lib/typescript.js: (*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** *) */ ``` Note that you can still customize this behavior with the `--legal-comments=` flag. For example, you can use `--legal-comments=none` to turn this off, or you can use `--legal-comments=linked` to put these comments in a separate `.LEGAL.txt` file instead. - Enable `external` legal comments with the transform API ([#​2390](https://togithub.com/evanw/esbuild/issues/2390)) Previously esbuild's transform API only supported `none`, `inline`, or `eof` legal comments. With this release, `external` legal comments are now also supported with the transform API. This only applies to the JS and Go APIs, not to the CLI, and looks like this: - JS: ```js const { code, legalComments } = await esbuild.transform(input, { legalComments: 'external', }) ``` - Go: ```go result := api.Transform(input, api.TransformOptions{ LegalComments: api.LegalCommentsEndOfFile, }) code := result.Code legalComments := result.LegalComments ``` - Fix duplicate function declaration edge cases ([#​2757](https://togithub.com/evanw/esbuild/issues/2757)) The change in the previous release to forbid duplicate function declarations in certain cases accidentally forbid some edge cases that should have been allowed. Specifically duplicate function declarations are forbidden in nested blocks in strict mode and at the top level of modules, but are allowed when they are declared at the top level of function bodies. This release fixes the regression by re-allowing the last case. - Allow package subpaths with `alias` ([#​2715](https://togithub.com/evanw/esbuild/issues/2715)) Previously the names passed to the `alias` feature had to be the name of a package (with or without a package scope). With this release, you can now also use the `alias` feature with package subpaths. So for example you can now create an alias that substitutes `@org/pkg/lib` with something else.
vitejs/vite ### [`v4.0.3`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small403-2022-12-21-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.0.2...v4.0.3) - chore(deps): update dependency [@​rollup/plugin-commonjs](https://togithub.com/rollup/plugin-commonjs) to v24 ([#​11420](https://togithub.com/vitejs/vite/issues/11420)) ([241db16](https://togithub.com/vitejs/vite/commit/241db16)), closes [#​11420](https://togithub.com/vitejs/vite/issues/11420) - chore(typo): fix typo ([#​11445](https://togithub.com/vitejs/vite/issues/11445)) ([ed80ea5](https://togithub.com/vitejs/vite/commit/ed80ea5)), closes [#​11445](https://togithub.com/vitejs/vite/issues/11445) - fix(ssr): ignore module exports condition ([#​11409](https://togithub.com/vitejs/vite/issues/11409)) ([d3c9c0b](https://togithub.com/vitejs/vite/commit/d3c9c0b)), closes [#​11409](https://togithub.com/vitejs/vite/issues/11409) - feat: allow import.meta.hot define override ([#​8944](https://togithub.com/vitejs/vite/issues/8944)) ([857d578](https://togithub.com/vitejs/vite/commit/857d578)), closes [#​8944](https://togithub.com/vitejs/vite/issues/8944)

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.