vitejs / vite-plugin-react-swc

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

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

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
@swc/core (source) ^1.3.56 -> ^1.3.57 age adoption passing confidence
@swc/plugin-emotion ^2.5.61 -> ^2.5.66 age adoption passing confidence
@swc/plugin-styled-components ^1.5.61 -> ^1.5.66 age adoption passing confidence
@types/node (source) ^18.16.5 -> ^18.16.9 age adoption passing confidence
esbuild ^0.17.18 -> ^0.17.19 age adoption passing confidence
pnpm (source) 8.4.0 -> 8.5.1 age adoption passing confidence

Release Notes

swc-project/swc ### [`v1.3.57`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1357---2023-05-09) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.56...v1.3.57) ##### Bug Fixes - **(es/compat)** Fix `is_setter` in `parameters` pass ([#​7348](https://togithub.com/swc-project/swc/issues/7348)) ([e0de83e](https://togithub.com/swc-project/swc/commit/e0de83e862f7de765ba804e8c31a16660d7186b5)) - **(xml/codegen)** Escape `<` and `>` in child ([#​7351](https://togithub.com/swc-project/swc/issues/7351)) ([b180d09](https://togithub.com/swc-project/swc/commit/b180d09e1dd9c4269d7d690d892ef4fd1c5b6563)) ##### Features - **(es/compat)** Support `export class` from stage 3 decorator pass ([#​7363](https://togithub.com/swc-project/swc/issues/7363)) ([9c052db](https://togithub.com/swc-project/swc/commit/9c052db796473a4a7253d643426a7c2c765d9640)) - **(plugin)** Enable bytecheck ([#​7280](https://togithub.com/swc-project/swc/issues/7280)) ([d2c1f45](https://togithub.com/swc-project/swc/commit/d2c1f45f5a1a1d72fa6d6fa28bd84f242d5aff81)) ##### Refactor - **(plugin/runner)** Refine cache location ([#​7346](https://togithub.com/swc-project/swc/issues/7346)) ([91a3fbe](https://togithub.com/swc-project/swc/commit/91a3fbe460799ed604c2b43b4facaed60cfd6c87)) ##### Build - **(cargo)** Update `wasmer` to `v3.3` ([#​7352](https://togithub.com/swc-project/swc/issues/7352)) ([4e278be](https://togithub.com/swc-project/swc/commit/4e278befcf0071619ee583ffa7c8357ea4fd5c2f))
evanw/esbuild ### [`v0.17.19`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01719) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.18...v0.17.19) - Fix CSS transform bugs with nested selectors that start with a combinator ([#​3096](https://togithub.com/evanw/esbuild/issues/3096)) This release fixes several bugs regarding transforming nested CSS into non-nested CSS for older browsers. The bugs were due to lack of test coverage for nested selectors with more than one compound selector where they all start with the same combinator. Here's what some problematic cases look like before and after these fixes: ```css /* Original code */ .foo { > &a, > &b { color: red; } } .bar { > &a, + &b { color: green; } } /* Old output (with --target=chrome90) */ .foo :is(> .fooa, > .foob) { color: red; } .bar :is(> .bara, + .barb) { color: green; } /* New output (with --target=chrome90) */ .foo > :is(a.foo, b.foo) { color: red; } .bar > a.bar, .bar + b.bar { color: green; } ``` - Fix bug with TypeScript parsing of instantiation expressions followed by `=` ([#​3111](https://togithub.com/evanw/esbuild/issues/3111)) This release fixes esbuild's TypeScript-to-JavaScript conversion code in the case where a potential instantiation expression is followed immediately by a `=` token (such that the trailing `>` becomes a `>=` token). Previously esbuild considered that to still be an instantiation expression, but the official TypeScript compiler considered it to be a `>=` operator instead. This release changes esbuild's interpretation to match TypeScript. This edge case currently [appears to be problematic](https://sucrase.io/#transforms=typescript\&compareWithTypeScript=true\&code=x%3Cy%3E%3Da%3Cb%3Cc%3E%3E\(\)) for other TypeScript-to-JavaScript converters as well: | Original code | TypeScript | esbuild 0.17.18 | esbuild 0.17.19 | Sucrase | Babel | |---|---|---|---|---|---| | `x=a>()` | `x=a();` | `x=a();` | `x=a();` | `x=a()` | Invalid left-hand side in assignment expression | - Avoid removing unrecognized directives from the directive prologue when minifying ([#​3115](https://togithub.com/evanw/esbuild/issues/3115)) The [directive prologue](https://262.ecma-international.org/6.0/#sec-directive-prologues-and-the-use-strict-directive) in JavaScript is a sequence of top-level string expressions that come before your code. The only directives that JavaScript engines currently recognize are `use strict` and sometimes `use asm`. However, the people behind React have made up their own directive for their own custom dialect of JavaScript. Previously esbuild only preserved the `use strict` directive when minifying, although you could still write React JavaScript with esbuild using something like `--banner:js="'your directive here';"`. With this release, you can now put arbitrary directives in the entry point and esbuild will preserve them in its minified output: ```js // Original code 'use wtf'; console.log(123) // Old output (with --minify) console.log(123); // New output (with --minify) "use wtf";console.log(123); ``` Note that this means esbuild will no longer remove certain stray top-level strings when minifying. This behavior is an intentional change because these stray top-level strings are actually part of the directive prologue, and could potentially have semantics assigned to them (as was the case with React). - Improved minification of binary shift operators With this release, esbuild's minifier will now evaluate the `<<` and `>>>` operators if the resulting code would be shorter: ```js // Original code console.log(10 << 10, 10 << 20, -123 >>> 5, -123 >>> 10); // Old output (with --minify) console.log(10<<10,10<<20,-123>>>5,-123>>>10); // New output (with --minify) console.log(10240,10<<20,-123>>>5,4194303); ```
pnpm/pnpm ### [`v8.5.1`](https://togithub.com/pnpm/pnpm/releases/tag/v8.5.1) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.5.0...v8.5.1) #### Patch Changes - Expanded missing command error, including 'did you mean' [#​6492](https://togithub.com/pnpm/pnpm/issues/6492). - When installation fails because the lockfile is not up-to-date with the `package.json` file(s), print out what are the differences [#​6536](https://togithub.com/pnpm/pnpm/pull/6536). - Normalize current working directory on Windows [#​6524](https://togithub.com/pnpm/pnpm/issues/6524). #### Our Gold Sponsors
#### Our Silver Sponsors
### [`v8.5.0`](https://togithub.com/pnpm/pnpm/releases/tag/v8.5.0) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.4.0...v8.5.0) #### Minor Changes - `pnpm patch-remove` command added [#​6521](https://togithub.com/pnpm/pnpm/pull/6521). #### Patch Changes - `pnpm link -g ` should not modify the `package.json` file [#​4341](https://togithub.com/pnpm/pnpm/issues/4341). - The deploy command should not ask for confirmation to purge the `node_modules` directory [#​6510](https://togithub.com/pnpm/pnpm/issues/6510). - Show cyclic workspace dependency details [#​5059](https://togithub.com/pnpm/pnpm/issues/5059). - Node.js range specified through the `engines` field should match prerelease versions [#​6509](https://togithub.com/pnpm/pnpm/pull/6509). #### Our Gold Sponsors
#### Our Silver Sponsors

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.