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 #159

Closed renovate[bot] closed 8 months ago

renovate[bot] commented 8 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@generouted/react-router ^1.16.0 -> ^1.16.1 age adoption passing confidence
@swc/core (source) ^1.3.93 -> ^1.3.94 age adoption passing confidence
@types/fs-extra (source) ^11.0.2 -> ^11.0.3 age adoption passing confidence
@types/node (source) ^18.18.5 -> ^18.18.6 age adoption passing confidence
@types/react (source) ^18.2.28 -> ^18.2.31 age adoption passing confidence
@types/react-dom (source) ^18.2.13 -> ^18.2.14 age adoption passing confidence
@types/styled-components (source) ^5.1.28 -> ^5.1.29 age adoption passing confidence
esbuild ^0.19.4 -> ^0.19.5 age adoption passing confidence
react-router-dom ^6.16.0 -> ^6.17.0 age adoption passing confidence
vite (source) ^4.4.11 -> ^4.5.0 age adoption passing confidence

Release Notes

oedotme/generouted (@​generouted/react-router) ### [`v1.16.1`](https://togithub.com/oedotme/generouted/releases/tag/v1.16.1) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.16.0...v1.16.1) #### Commits - chore: update packages [`4d24a34`](https://togithub.com/oedotme/generouted/commit/4d24a34) by [@​oedotme](https://togithub.com/oedotme) - fix: tanstack template replace with loaders ([#​132](https://togithub.com/oedotme/generouted/issues/132)) [`0320aea`](https://togithub.com/oedotme/generouted/commit/0320aea) by [@​ka2n](https://togithub.com/ka2n) **Changelog**: https://github.com/oedotme/generouted/compare/v1.16.0...v1.16.1
swc-project/swc (@​swc/core) ### [`v1.3.94`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1394---2023-10-21) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.93...v1.3.94) ##### Bug Fixes - **(css/ast)** Make `.hash()` of `Token` not recursive ([#​8151](https://togithub.com/swc-project/swc/issues/8151)) ([8d7894c](https://togithub.com/swc-project/swc/commit/8d7894c71f86ef6b1813b69a15d72bb7911ed7ca)) - **(es/minifier)** Abort seq inliner if `b` can short-circuit ([#​8128](https://togithub.com/swc-project/swc/issues/8128)) ([111de26](https://togithub.com/swc-project/swc/commit/111de264b0ec04ec7a693b0006050df21513b583)) - **(es/minifier)** Abort function inliner if `keep_fnames` is `true` ([#​8145](https://togithub.com/swc-project/swc/issues/8145)) ([35601e4](https://togithub.com/swc-project/swc/commit/35601e4dcb7bb65e16d217c50d6065958cbd8e6d)) - **(es/parser)** Skip `this` parameters in setter ([#​8158](https://togithub.com/swc-project/swc/issues/8158)) ([826386f](https://togithub.com/swc-project/swc/commit/826386f49a1226ff3f7d352a75ccdc65c982b4be)) - **(es/utils)** Skip var declarator name in `RefRewriter` ([#​8125](https://togithub.com/swc-project/swc/issues/8125)) ([fb81a36](https://togithub.com/swc-project/swc/commit/fb81a36adcebdc269ae89677977220e9b21b072f)) - **(es/utils)** Fix regression of `RefRewriter` ([#​8153](https://togithub.com/swc-project/swc/issues/8153)) ([08cf1f7](https://togithub.com/swc-project/swc/commit/08cf1f786d0a0fbe4029614306ba2ebaf0a9c919)) ##### Features - **(es/compat)** Implement decorator metadata proposal ([#​8097](https://togithub.com/swc-project/swc/issues/8097)) ([9c029ef](https://togithub.com/swc-project/swc/commit/9c029ef095f83783a3581dfcc165dd197308f538)) - **(es/compat)** Skip empty class static blocks ([#​8138](https://togithub.com/swc-project/swc/issues/8138)) ([e186b80](https://togithub.com/swc-project/swc/commit/e186b80ddcc0c95f276e845cc491b276d0fb15ee)) - **(es/minifier)** Evaluate more `toFixed` expressions ([#​8109](https://togithub.com/swc-project/swc/issues/8109)) ([7da3f52](https://togithub.com/swc-project/swc/commit/7da3f52485062eb23c719e1236b2fee90c228bdd)) - **(es/minifier)** Inline into the arguments of `new` using seq inliner ([#​8127](https://togithub.com/swc-project/swc/issues/8127)) ([4f67794](https://togithub.com/swc-project/swc/commit/4f67794223cf2848ac3c3e42e1e43acec4533246)) - **(es/minifier)** Drop empty static blocks ([#​8152](https://togithub.com/swc-project/swc/issues/8152)) ([8a461b8](https://togithub.com/swc-project/swc/commit/8a461b89573e82bfdac9e730ee23a2fa9210a4c5)) - **(es/parser)** Implement `AsRef` for `IdentLike` ([#​8133](https://togithub.com/swc-project/swc/issues/8133)) ([bffe33a](https://togithub.com/swc-project/swc/commit/bffe33a27036d01d409bad3fcc69d35157665662)) - **(es/typescript)** Add `ts_enum_is_mutable` to disable enum inlining ([#​8115](https://togithub.com/swc-project/swc/issues/8115)) ([57b171d](https://togithub.com/swc-project/swc/commit/57b171dcbe55a8d285d5bc477844b24fdf48835a)) ##### Miscellaneous Tasks - **(bindings)** Add `@deprecated` to JS plugins ([#​8132](https://togithub.com/swc-project/swc/issues/8132)) ([1e9b4e0](https://togithub.com/swc-project/swc/commit/1e9b4e027cabba88c8a0cfd6b62f9ca6c00b29a8)) - **(es/module)** Remove `serde(deny_unknown_fields)` ([#​8163](https://togithub.com/swc-project/swc/issues/8163)) ([5be8e74](https://togithub.com/swc-project/swc/commit/5be8e74ee0a2e81058c340f414479da554081d09)) ##### Refactor - **(es/minifier)** Decouple `assign_count` from `reassigned` ([#​8137](https://togithub.com/swc-project/swc/issues/8137)) ([13106e0](https://togithub.com/swc-project/swc/commit/13106e0d2eaa08c4c74f58205f57c4f2d7d4479f))
evanw/esbuild (esbuild) ### [`v0.19.5`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0195) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.4...v0.19.5) - Fix a regression in 0.19.0 regarding `paths` in `tsconfig.json` ([#​3354](https://togithub.com/evanw/esbuild/issues/3354)) The fix in esbuild version 0.19.0 to process `tsconfig.json` aliases before the `--packages=external` setting unintentionally broke an edge case in esbuild's handling of certain `tsconfig.json` aliases where there are multiple files with the same name in different directories. This release adjusts esbuild's behavior for this edge case so that it passes while still processing aliases before `--packages=external`. Please read the linked issue for more details. - Fix a CSS `font` property minification bug ([#​3452](https://togithub.com/evanw/esbuild/issues/3452)) This release fixes a bug where esbuild's CSS minifier didn't insert a space between the font size and the font family in the `font` CSS shorthand property in the edge case where the original source code didn't already have a space and the leading string token was shortened to an identifier: ```css /* Original code */ .foo { font: 16px"Menlo"; } /* Old output (with --minify) */ .foo{font:16pxMenlo} /* New output (with --minify) */ .foo{font:16px Menlo} ``` - Fix bundling CSS with asset names containing spaces ([#​3410](https://togithub.com/evanw/esbuild/issues/3410)) Assets referenced via CSS `url()` tokens may cause esbuild to generate invalid output when bundling if the file name contains spaces (e.g. `url(image 2.png)`). With this release, esbuild will now quote all bundled asset references in `url()` tokens to avoid this problem. This only affects assets loaded using the `file` and `copy` loaders. - Fix invalid CSS `url()` tokens in `@import` rules ([#​3426](https://togithub.com/evanw/esbuild/issues/3426)) In the future, CSS `url()` tokens may contain additional stuff after the URL. This is irrelevant today as no CSS specification does this. But esbuild previously had a bug where using these tokens in an `@import` rule resulted in malformed output. This bug has been fixed. - Fix `browser` + `false` + `type: module` in `package.json` ([#​3367](https://togithub.com/evanw/esbuild/issues/3367)) The `browser` field in `package.json` allows you to map a file to `false` to have it be treated as an empty file when bundling for the browser. However, if `package.json` contains `"type": "module"` then all `.js` files will be considered ESM, not CommonJS. Importing a named import from an empty CommonJS file gives you undefined, but importing a named export from an empty ESM file is a build error. This release changes esbuild's interpretation of these files mapped to `false` in this situation from ESM to CommonJS to avoid generating build errors for named imports. - Fix a bug in top-level await error reporting ([#​3400](https://togithub.com/evanw/esbuild/issues/3400)) Using `require()` on a file that contains [top-level await](https://v8.dev/features/top-level-await) is not allowed because `require()` must return synchronously and top-level await makes that impossible. You will get a build error if you try to bundle code that does this with esbuild. This release fixes a bug in esbuild's error reporting code for complex cases of this situation involving multiple levels of imports to get to the module containing the top-level await. - Update to Unicode 15.1.0 The character tables that determine which characters form valid JavaScript identifiers have been updated from Unicode version 15.0.0 to the newly-released Unicode version 15.1.0. I'm not putting an example in the release notes because all of the new characters will likely just show up as little squares since fonts haven't been updated yet. But you can read https://www.unicode.org/versions/Unicode15.1.0/#Summary for more information about the changes. This upgrade was contributed by [@​JLHwung](https://togithub.com/JLHwung).
remix-run/react-router (react-router-dom) ### [`v6.17.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#6170) [Compare Source](https://togithub.com/remix-run/react-router/compare/react-router-dom@6.16.0...react-router-dom@6.17.0) ##### Minor Changes - Add experimental support for the [View Transitions API](https://developer.mozilla.org/en-US/docs/Web/API/ViewTransition) via `document.startViewTransition` to enable CSS animated transitions on SPA navigations in your application. ([#​10916](https://togithub.com/remix-run/react-router/pull/10916)) The simplest approach to enabling a View Transition in your React Router app is via the new `` prop. This will cause the navigation DOM update to be wrapped in `document.startViewTransition` which will enable transitions for the DOM update. Without any additional CSS styles, you'll get a basic cross-fade animation for your page. If you need to apply more fine-grained styles for your animations, you can leverage the `unstable_useViewTransitionState` hook which will tell you when a transition is in progress and you can use that to apply classes or styles: ```jsx function ImageLink(to, src, alt) { let isTransitioning = unstable_useViewTransitionState(to); return ( {alt} ); } ``` You can also use the `` shorthand which will manage the hook usage for you and automatically add a `transitioning` class to the `` during the transition: ```css a.transitioning img { view-transition-name: "image-expand"; } ``` ```jsx {alt} ``` For an example usage of View Transitions with React Router, check out [our fork](https://togithub.com/brophdawg11/react-router-records) of the [Astro Records](https://togithub.com/Charca/astro-records) demo. For more information on using the View Transitions API, please refer to the [Smooth and simple transitions with the View Transitions API](https://developer.chrome.com/docs/web-platform/view-transitions/) guide from the Google Chrome team. Please note, that because the `ViewTransition` API is a DOM API, we now export a specific `RouterProvider` from `react-router-dom` with this functionality. If you are importing `RouterProvider` from `react-router`, then it will not support view transitions. ([#​10928](https://togithub.com/remix-run/react-router/pull/10928) ##### Patch Changes - Log a warning and fail gracefully in `ScrollRestoration` when `sessionStorage` is unavailable ([#​10848](https://togithub.com/remix-run/react-router/pull/10848)) - Updated dependencies: - `@remix-run/router@1.10.0` - `react-router@6.17.0`
vitejs/vite (vite) ### [`v4.5.0`](https://togithub.com/vitejs/vite/releases/tag/v4.5.0) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.4.11...v4.5.0) Please refer to [CHANGELOG.md](https://togithub.com/vitejs/vite/blob/v4.5.0/packages/vite/CHANGELOG.md) for details.

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.