vitejs / vite-plugin-react-swc

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

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

Closed renovate[bot] closed 10 months ago

renovate[bot] commented 10 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@arnaud-barre/tnode ^0.18.0 -> ^0.19.1 age adoption passing confidence
@generouted/react-router ^1.15.3 -> ^1.15.6 age adoption passing confidence
@playwright/test (source) ^1.36.2 -> ^1.37.1 age adoption passing confidence
@swc/core (source) ^1.3.74 -> ^1.3.78 age adoption passing confidence
@swc/plugin-emotion ^2.5.70 -> ^2.5.72 age adoption passing confidence
@swc/plugin-styled-components ^1.5.70 -> ^1.5.72 age adoption passing confidence
@types/node (source) ^18.17.3 -> ^18.17.8 age adoption passing confidence
@types/react (source) ^18.2.18 -> ^18.2.21 age adoption passing confidence
esbuild ^0.18.18 -> ^0.19.2 age adoption passing confidence
prettier (source) ^3.0.1 -> ^3.0.2 age adoption passing confidence
react-router-dom ^6.14.2 -> ^6.15.0 age adoption passing confidence
vite (source) ^4.4.8 -> ^4.4.9 age adoption passing confidence

Release Notes

ArnaudBarre/tnode (@​arnaud-barre/tnode) ### [`v0.19.1`](https://togithub.com/ArnaudBarre/tnode/compare/d585ab25b37b692c573f4ce66926844a9acfd0d7...45d81ab982fc898684d4bb775b9adb1f00e031e3) [Compare Source](https://togithub.com/ArnaudBarre/tnode/compare/d585ab25b37b692c573f4ce66926844a9acfd0d7...45d81ab982fc898684d4bb775b9adb1f00e031e3) ### [`v0.19.0`](https://togithub.com/ArnaudBarre/tnode/compare/2153135ceef265cca1466664bae1b50e7c93061a...d585ab25b37b692c573f4ce66926844a9acfd0d7) [Compare Source](https://togithub.com/ArnaudBarre/tnode/compare/2153135ceef265cca1466664bae1b50e7c93061a...d585ab25b37b692c573f4ce66926844a9acfd0d7)
oedotme/generouted (@​generouted/react-router) ### [`v1.15.6`](https://togithub.com/oedotme/generouted/releases/tag/v1.15.6) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.15.5...v1.15.6) #### Commits - chore: update packages [`4cf05d6`](https://togithub.com/oedotme/generouted/commit/4cf05d6) by [@​oedotme](https://togithub.com/oedotme) - fix: update import to [@​tanstack/react-router](https://togithub.com/tanstack/react-router) ([#​118](https://togithub.com/oedotme/generouted/issues/118)) [`a630289`](https://togithub.com/oedotme/generouted/commit/a630289) by [@​KROSF](https://togithub.com/KROSF) **Changelog**: https://github.com/oedotme/generouted/compare/v1.15.5...v1.15.6 ### [`v1.15.5`](https://togithub.com/oedotme/generouted/releases/tag/v1.15.5) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.15.4...v1.15.5) #### Commits - chore: remove pre-release script [`5b82cdf`](https://togithub.com/oedotme/generouted/commit/5b82cdf) by [@​oedotme](https://togithub.com/oedotme) - chore: update packages [`9e3bf5e`](https://togithub.com/oedotme/generouted/commit/9e3bf5e) by [@​oedotme](https://togithub.com/oedotme) - chore: move plugins/\* to packages/\* [`e0b78a3`](https://togithub.com/oedotme/generouted/commit/e0b78a3) by [@​oedotme](https://togithub.com/oedotme) - docs: update modals usage examples [`8451174`](https://togithub.com/oedotme/generouted/commit/8451174) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.15.4...v1.15.5 ### [`v1.15.4`](https://togithub.com/oedotme/generouted/releases/tag/v1.15.4) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.15.3...v1.15.4) #### Commits - chore: update packages [`fc37787`](https://togithub.com/oedotme/generouted/commit/fc37787) by [@​oedotme](https://togithub.com/oedotme) - fix: update to use lazyRouteComponent ([#​109](https://togithub.com/oedotme/generouted/issues/109)) [`272eea9`](https://togithub.com/oedotme/generouted/commit/272eea9) by [@​aplulu](https://togithub.com/aplulu) **Changelog**: https://github.com/oedotme/generouted/compare/v1.15.3...v1.15.4
Microsoft/playwright (@​playwright/test) ### [`v1.37.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.37.1) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.37.0...v1.37.1) ##### Highlights [https://github.com/microsoft/playwright/issues/26496](https://togithub.com/microsoft/playwright/issues/26496) - \[REGRESSION] webServer stdout is always getting printed[https://github.com/microsoft/playwright/issues/26492](https://togithub.com/microsoft/playwright/issues/26492)2 - \[REGRESSION] test.only with project dependency is not working #### Browser Versions - Chromium 116.0.5845.82 - Mozilla Firefox 115.0 - WebKit 17.0 This version was also tested against the following stable channels: - Google Chrome 115 - Microsoft Edge 115 ### [`v1.37.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.37.0) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.36.2...v1.37.0) #### ✨ New tool to merge reports If you run tests on multiple shards, you can now merge all reports in a single HTML report (or any other report) using the new `merge-reports` CLI tool. Using `merge-reports` tool requires the following steps: 1. Adding a new "blob" reporter to the config when running on CI: ```js title="playwright.config.ts" export default defineConfig({ testDir: './tests', reporter: process.env.CI ? 'blob' : 'html', }); ``` The "blob" reporter will produce ".zip" files that contain all the information about the test run. 2. Copying all "blob" reports in a single shared location and running `npx playwright merge-reports`: ```bash npx playwright merge-reports --reporter html ./all-blob-reports ``` Read more in [our documentation](https://playwright.dev/docs/test-sharding). #### 📚 Debian 12 Bookworm Support Playwright now supports Debian 12 Bookworm on both x86\_64 and arm64 for Chromium, Firefox and WebKit. Let us know if you encounter any issues! Linux support looks like this: | | Ubuntu 20.04 | Ubuntu 22.04 | Debian 11 | Debian 12 | | :--- | :---: | :---: | :---: | :---: | | Chromium | ✅ | ✅ | ✅ | ✅ | | WebKit | ✅ | ✅ | ✅ | ✅ | | Firefox | ✅ | ✅ | ✅ | ✅ | #### 🌈 UI Mode Updates - UI Mode now respects project dependencies. You can control which dependencies to respect by checking/unchecking them in a projects list. - Console logs from the test are now displayed in the Console tab. #### Browser Versions - Chromium 116.0.5845.82 - Mozilla Firefox 115.0 - WebKit 17.0 This version was also tested against the following stable channels: - Google Chrome 115 - Microsoft Edge 115
swc-project/swc (@​swc/core) ### [`v1.3.78`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1378---2023-08-17) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.77...v1.3.78) ##### Bug Fixes - **(es/codegen)** Add quotes to property names when `ascii_only` is `true` ([#​7820](https://togithub.com/swc-project/swc/issues/7820)) ([04921f3](https://togithub.com/swc-project/swc/commit/04921f301afbc2dc74bed4cb24e7656b60e54327)) - **(es/compat)** Remove wrong logic for object patterns in `object_rest` ([#​7788](https://togithub.com/swc-project/swc/issues/7788)) ([3766a7c](https://togithub.com/swc-project/swc/commit/3766a7c776b63e159be3f11f5f931c5e5f968cdb)) - **(es/minifier)** Preserve `cooked` while compressing template literals ([#​7773](https://togithub.com/swc-project/swc/issues/7773)) ([05990a9](https://togithub.com/swc-project/swc/commit/05990a98fd3f06a3c03bd1e795800acf22f16035)) - **(es/minifier)** Abort seq inliner if var is not fn_local or reassigned ([#​7804](https://togithub.com/swc-project/swc/issues/7804)) ([f8ca366](https://togithub.com/swc-project/swc/commit/f8ca366cc179d2d83d35148c3600b8faa2e7f801)) - **(es/minifier)** Preserve more analysis data upon inlining ([#​7823](https://togithub.com/swc-project/swc/issues/7823)) ([31de19e](https://togithub.com/swc-project/swc/commit/31de19ece22663623b1fc1fe48c90b7aa41e41e0)) ##### Features - **(es/module)** Improve error message about relative `jsc.baseUrl` ([#​7827](https://togithub.com/swc-project/swc/issues/7827)) ([9099883](https://togithub.com/swc-project/swc/commit/9099883175c590106109670de01ab32b33303bfd)) ##### Refactor - **(common)** Make `ahash` optional ([#​7816](https://togithub.com/swc-project/swc/issues/7816)) ([981d7b1](https://togithub.com/swc-project/swc/commit/981d7b152b2f488a67d42052152db22225f1d094)) - **(es/parser)** Remove needless `unsafe` ([#​7818](https://togithub.com/swc-project/swc/issues/7818)) ([8b809db](https://togithub.com/swc-project/swc/commit/8b809dbe23cab3db2159979cf1852a69c109f1e0))- **general**: Use `ahash` from `swc_common` in more places ([#​7815](https://togithub.com/swc-project/swc/issues/7815)) ([b43e38d](https://togithub.com/swc-project/swc/commit/b43e38d3f92bc889e263b741dbe173a6f2206d88)) ### [`v1.3.77`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1377---2023-08-16) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.76...v1.3.77) ##### Bug Fixes - **(es)** Resolve `jsc.baseUrl` for `.swcrc` specified by `--config-file` ([#​7801](https://togithub.com/swc-project/swc/issues/7801)) ([fe1ca26](https://togithub.com/swc-project/swc/commit/fe1ca26218493d2e7d4121433c365a37e13285e6)) - **(es/compat)** Revert [#​7610](https://togithub.com/swc-project/swc/issues/7610) ([#​7813](https://togithub.com/swc-project/swc/issues/7813)) ([42dec55](https://togithub.com/swc-project/swc/commit/42dec557ed2e8fd829aba7847b354003cfea1b18)) - **(es/parser)** Revert lexer fix for `<<` ([#​7807](https://togithub.com/swc-project/swc/issues/7807)) ([e527c12](https://togithub.com/swc-project/swc/commit/e527c12a82740397ed4e909f242326f8e92624a8)) ##### Features - **(es/ast)** Expose `Archived` types ([#​7811](https://togithub.com/swc-project/swc/issues/7811)) ([478fa47](https://togithub.com/swc-project/swc/commit/478fa4736f355555c7a19e7b674db5d7bd81c0e2)) ##### Refactor - **(es/parser)** Don't attempt to handle shebangs in `read_token_number_sign` ([#​7803](https://togithub.com/swc-project/swc/issues/7803)) ([5e7834a](https://togithub.com/swc-project/swc/commit/5e7834aa2ecb0cd01b72979f393a517f1c1e5add)) ### [`v1.3.76`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1376---2023-08-10) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.75...v1.3.76) ##### Bug Fixes - **(es/ast)** Bump version ([#​7793](https://togithub.com/swc-project/swc/issues/7793)) ([13bedc0](https://togithub.com/swc-project/swc/commit/13bedc084e46db193b3fd0b7930046b2f013742b)) - **(es/minifier)** Abort seq inliner if a same var is defined in outer scope ([#​7772](https://togithub.com/swc-project/swc/issues/7772)) ([ef8d121](https://togithub.com/swc-project/swc/commit/ef8d12154ddaad47eddb41298bae14460834be0c)) - **(es/minifier)** Do not drop properties used via `this` ([#​7785](https://togithub.com/swc-project/swc/issues/7785)) ([552d9aa](https://togithub.com/swc-project/swc/commit/552d9aa344cb6db2dff1e20011411a56f92d4f06)) - **(es/module)** Use `jsc.baseUrl` while resolving absolute paths ([#​7775](https://togithub.com/swc-project/swc/issues/7775)) ([5c4bfa6](https://togithub.com/swc-project/swc/commit/5c4bfa61f9e4f7732bc1a9da6cd25f52e593a374)) ##### Features - **(es/minifier)** Support `mangle.eval` ([#​7777](https://togithub.com/swc-project/swc/issues/7777)) ([eff0cac](https://togithub.com/swc-project/swc/commit/eff0caca2b6bfd383c8369cf0f4cdad86bb9e575)) ##### Miscellaneous Tasks - **(ci)** Cleanup CI ([#​7787](https://togithub.com/swc-project/swc/issues/7787)) ([ab39f1c](https://togithub.com/swc-project/swc/commit/ab39f1c3c83c7156e6e9979773bf542a59d9b4f4)) ##### Performance - **(es/compat)** Improve time complexity of `class_properties` ([#​7786](https://togithub.com/swc-project/swc/issues/7786)) ([76c6258](https://togithub.com/swc-project/swc/commit/76c6258d1544ede09cb4f281c42e1fc80ad4145b)) ### [`v1.3.75`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1375---2023-08-08) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.74...v1.3.75) ##### Bug Fixes - **(es/codegen)** Don't strip necessary escape characters ([#​7687](https://togithub.com/swc-project/swc/issues/7687)) ([b45649b](https://togithub.com/swc-project/swc/commit/b45649b8d6484bd872f6443fc729f6b1998ff44d)) - **(es/compat)** Fix loose mode of the `spread` pass ([#​7760](https://togithub.com/swc-project/swc/issues/7760)) ([b69ae8f](https://togithub.com/swc-project/swc/commit/b69ae8f433a1702e09a24c1c47b2fc312e8fb801)) - **(es/minifier)** Abort on `Array.slice` with `start >= end` ([#​7745](https://togithub.com/swc-project/swc/issues/7745)) ([36ccbec](https://togithub.com/swc-project/swc/commit/36ccbec06130a55bc0707a0096a56558a77a1ceb)) - **(es/module)** Fix handling of continuous assignments in `systemjs` ([#​7741](https://togithub.com/swc-project/swc/issues/7741)) ([f713f6a](https://togithub.com/swc-project/swc/commit/f713f6aba84ffe84bed9dff80a772b0cd78135b8)) - **(es/utils)** Ignore `typeof Id` while preserving side effects ([#​7763](https://togithub.com/swc-project/swc/issues/7763)) ([d57ac0d](https://togithub.com/swc-project/swc/commit/d57ac0dd28cdefef63a18d53565154e65ee8b838)) - **(plugin/runner)** Use fs cache properly ([#​7748](https://togithub.com/swc-project/swc/issues/7748)) ([1122de7](https://togithub.com/swc-project/swc/commit/1122de7d8b3c178b4e315bb50a6e214669c37a4f)) ##### Features - **(es)** Alias `format` as `output` for `minify()` ([#​7746](https://togithub.com/swc-project/swc/issues/7746)) ([28dfc51](https://togithub.com/swc-project/swc/commit/28dfc518879b9125a382b48e8310895e137d4fd4)) ##### Miscellaneous Tasks - **(ci)** Fix permissions of publish action ([#​7768](https://togithub.com/swc-project/swc/issues/7768)) ([fa7e428](https://togithub.com/swc-project/swc/commit/fa7e4289bd04320b9a88bda81538fc394bda23f9)) ##### Refactor - **(es/ast)** Avoid `transmute` in impl of `Hash` for `Number` ([#​7771](https://togithub.com/swc-project/swc/issues/7771)) ([2258274](https://togithub.com/swc-project/swc/commit/225827423355cab8cd3c0ae80f335cd2873e6cd4)) - **(es/minifier)** Support stable rustc ([#​7734](https://togithub.com/swc-project/swc/issues/7734)) ([f7afe7e](https://togithub.com/swc-project/swc/commit/f7afe7edecc65f41845721c75b77d2f6dba04a6a)) - **(es/parser)** Do not use `lexical` ([#​7758](https://togithub.com/swc-project/swc/issues/7758)) ([e50cfde](https://togithub.com/swc-project/swc/commit/e50cfde938b2504b723a95f034ac4b388d8725c3)) - **(es/parser)** Do not validate top-level await with target ([#​7774](https://togithub.com/swc-project/swc/issues/7774)) ([5f97f86](https://togithub.com/swc-project/swc/commit/5f97f8656f9ff7c42bbf1db95fd9d964c5cc6c7c))
evanw/esbuild (esbuild) ### [`v0.19.2`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0192) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.1...v0.19.2) - Update how CSS nesting is parsed again CSS nesting syntax has been changed again, and esbuild has been updated to match. Type selectors may now be used with CSS nesting: ```css .foo { div { color: red; } } ``` Previously this was disallowed in the CSS specification because it's ambiguous whether an identifier is a declaration or a nested rule starting with a type selector without requiring unbounded lookahead in the parser. It has now been allowed because the CSS working group has decided that requiring unbounded lookahead is acceptable after all. Note that this change means esbuild no longer considers any existing browser to support CSS nesting since none of the existing browsers support this new syntax. CSS nesting will now always be transformed when targeting a browser. This situation will change in the future as browsers add support for this new syntax. - Fix a scope-related bug with `--drop-labels=` ([#​3311](https://togithub.com/evanw/esbuild/issues/3311)) The recently-released `--drop-labels=` feature previously had a bug where esbuild's internal scope stack wasn't being restored properly when a statement with a label was dropped. This could manifest as a tree-shaking issue, although it's possible that this could have also been causing other subtle problems too. The bug has been fixed in this release. - Make renamed CSS names unique across entry points ([#​3295](https://togithub.com/evanw/esbuild/issues/3295)) Previously esbuild's generated names for local names in CSS were only unique within a given entry point (or across all entry points when code splitting was enabled). That meant that building multiple entry points with esbuild could result in local names being renamed to the same identifier even when those entry points were built simultaneously within a single esbuild API call. This problem was especially likely to happen with minification enabled. With this release, esbuild will now avoid renaming local names from two separate entry points to the same name if those entry points were built with a single esbuild API call, even when code splitting is disabled. - Fix CSS ordering bug with `@layer` before `@import` CSS lets you put `@layer` rules before `@import` rules to define the order of layers in a stylesheet. Previously esbuild's CSS bundler incorrectly ordered these after the imported files because before the introduction of cascade layers to CSS, imported files could be bundled by removing the `@import` rules and then joining files together in the right order. But with `@layer`, CSS files may now need to be split apart into multiple pieces in the bundle. For example: /* Original code */ @​layer start; @​import "data:text/css,@​layer inner.start;"; @​import "data:text/css,@​layer inner.end;"; @​layer end; /* Old output (with --bundle) */ @​layer inner.start; @​layer inner.end; @​layer start; @​layer end; /* New output (with --bundle) */ @​layer start; @​layer inner.start; @​layer inner.end; @​layer end; - Unwrap nested duplicate `@media` rules ([#​3226](https://togithub.com/evanw/esbuild/issues/3226)) With this release, esbuild's CSS minifier will now automatically unwrap duplicate nested `@media` rules: ```css /* Original code */ @​media (min-width: 1024px) { .foo { color: red } @​media (min-width: 1024px) { .bar { color: blue } } } /* Old output (with --minify) */ @​media (min-width: 1024px){.foo{color:red}@​media (min-width: 1024px){.bar{color:#​00f}}} /* New output (with --minify) */ @​media (min-width: 1024px){.foo{color:red}.bar{color:#​00f}} ``` These rules are unlikely to be authored manually but may result from using frameworks such as Tailwind to generate CSS. ### [`v0.19.1`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0191) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.0...v0.19.1) - Fix a regression with `baseURL` in `tsconfig.json` ([#​3307](https://togithub.com/evanw/esbuild/issues/3307)) The previous release moved `tsconfig.json` path resolution before `--packages=external` checks to allow the [`paths` field](https://www.typescriptlang.org/tsconfig#paths) in `tsconfig.json` to avoid a package being marked as external. However, that reordering accidentally broke the behavior of the `baseURL` field from `tsconfig.json`. This release moves these path resolution rules around again in an attempt to allow both of these cases to work. - Parse TypeScript type arguments for JavaScript decorators ([#​3308](https://togithub.com/evanw/esbuild/issues/3308)) When parsing JavaScript decorators in TypeScript (i.e. with `experimentalDecorators` disabled), esbuild previously didn't parse type arguments. Type arguments will now be parsed starting with this release. For example: ```ts @​foo @​bar() class Foo {} ``` - Fix glob patterns matching extra stuff at the end ([#​3306](https://togithub.com/evanw/esbuild/issues/3306)) Previously glob patterns such as `./*.js` would incorrectly behave like `./*.js*` during path matching (also matching `.js.map` files, for example). This was never intentional behavior, and has now been fixed. - Change the permissions of esbuild's generated output files ([#​3285](https://togithub.com/evanw/esbuild/issues/3285)) This release changes the permissions of the output files that esbuild generates to align with the default behavior of node's [`fs.writeFileSync`](https://nodejs.org/api/fs.html#fswritefilesyncfile-data-options) function. Since most tools written in JavaScript use `fs.writeFileSync`, this should make esbuild more consistent with how other JavaScript build tools behave. The full Unix-y details: Unix permissions use three-digit octal notation where the three digits mean "user, group, other" in that order. Within a digit, 4 means "read" and 2 means "write" and 1 means "execute". So 6 == 4 + 2 == read + write. Previously esbuild uses 0644 permissions (the leading 0 means octal notation) but the permissions for `fs.writeFileSync` defaults to 0666, so esbuild will now use 0666 permissions. This does not necessarily mean that the files esbuild generates will end up having 0666 permissions, however, as there is another Unix feature called "umask" where the operating system masks out some of these bits. If your umask is set to 0022 then the generated files will have 0644 permissions, and if your umask is set to 0002 then the generated files will have 0664 permissions. - Fix a subtle CSS ordering issue with `@import` and `@layer` With this release, esbuild may now introduce additional `@layer` rules when bundling CSS to better preserve the layer ordering of the input code. Here's an example of an edge case where this matters: ```css /* entry.css */ @​import "a.css"; @​import "b.css"; @​import "a.css"; ``` ```css /* a.css */ @​layer a { body { background: red; } } ``` ```css /* b.css */ @​layer b { body { background: green; } } ``` This CSS should set the body background to `green`, which is what happens in the browser. Previously esbuild generated the following output which incorrectly sets the body background to `red`: ```css /* b.css */ @​layer b { body { background: green; } } /* a.css */ @​layer a { body { background: red; } } ``` This difference in behavior is because the browser evaluates `a.css` + `b.css` + `a.css` (in CSS, each `@import` is replaced with a copy of the imported file) while esbuild was only writing out `b.css` + `a.css`. The first copy of `a.css` wasn't being written out by esbuild for two reasons: 1) bundlers care about code size and try to avoid emitting duplicate CSS and 2) when there are multiple copies of a CSS file, normally only the *last* copy matters since the last declaration with equal specificity wins in CSS. However, `@layer` was recently added to CSS and for `@layer` the *first* copy matters because layers are ordered using their first location in source code order. This introduction of `@layer` means esbuild needs to change its bundling algorithm. An easy solution would be for esbuild to write out `a.css` twice, but that would be inefficient. So what I'm going to try to have esbuild do with this release is to write out an abbreviated form of the first copy of a CSS file that only includes the `@layer` information, and then still only write out the full CSS file once for the last copy. So esbuild's output for this edge case now looks like this: ```css /* a.css */ @​layer a; /* b.css */ @​layer b { body { background: green; } } /* a.css */ @​layer a { body { background: red; } } ``` The behavior of the bundled CSS now matches the behavior of the unbundled CSS. You may be wondering why esbuild doesn't just write out `a.css` first followed by `b.css`. That would work in this case but it doesn't work in general because for any rules outside of a `@layer` rule, the last copy should still win instead of the first copy. - Fix a bug with esbuild's TypeScript type definitions ([#​3299](https://togithub.com/evanw/esbuild/pull/3299)) This release fixes a copy/paste error with the TypeScript type definitions for esbuild's JS API: ```diff export interface TsconfigRaw { compilerOptions?: { - baseUrl?: boolean + baseUrl?: string ... } } ``` This fix was contributed by [@​privatenumber](https://togithub.com/privatenumber). ### [`v0.19.0`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0190) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.20...v0.19.0) **This release deliberately contains backwards-incompatible changes.** To avoid automatically picking up releases like this, you should either be pinning the exact version of `esbuild` in your `package.json` file (recommended) or be using a version range syntax that only accepts patch upgrades such as `^0.18.0` or `~0.18.0`. See npm's documentation about [semver](https://docs.npmjs.com/cli/v6/using-npm/semver/) for more information. - Handle import paths containing wildcards ([#​56](https://togithub.com/evanw/esbuild/issues/56), [#​700](https://togithub.com/evanw/esbuild/issues/700), [#​875](https://togithub.com/evanw/esbuild/issues/875), [#​976](https://togithub.com/evanw/esbuild/issues/976), [#​2221](https://togithub.com/evanw/esbuild/issues/2221), [#​2515](https://togithub.com/evanw/esbuild/issues/2515)) This release introduces wildcards in import paths in two places: - **Entry points** You can now pass a string containing glob-style wildcards such as `./src/*.ts` as an entry point and esbuild will search the file system for files that match the pattern. This can be used to easily pass esbuild all files with a certain extension on the command line in a cross-platform way. Previously you had to rely on the shell to perform glob expansion, but that is obviously shell-dependent and didn't work at all on Windows. Note that to use this feature on the command line you will have to quote the pattern so it's passed verbatim to esbuild without any expansion by the shell. Here's an example: ```sh esbuild --minify "./src/*.ts" --outdir=out ``` Specifically the `*` character will match any character except for the `/` character, and the `/**/` character sequence will match a path separator followed by zero or more path elements. Other wildcard operators found in glob patterns such as `?` and `[...]` are not supported. - **Run-time import paths** Import paths that are evaluated at run-time can now be bundled in certain limited situations. The import path expression must be a form of string concatenation and must start with either `./` or `../`. Each non-string expression in the string concatenation chain becomes a wildcard. The `*` wildcard is chosen unless the previous character is a `/`, in which case the `/**/*` character sequence is used. Some examples: ```js // These two forms are equivalent const json1 = await import('./data/' + kind + '.json') const json2 = await import(`./data/${kind}.json`) ``` This feature works with `require(...)` and `import(...)` because these can all accept run-time expressions. It does not work with `import` and `export` statements because these cannot accept run-time expressions. If you want to prevent esbuild from trying to bundle these imports, you should move the string concatenation expression outside of the `require(...)` or `import(...)`. For example: ```js // This will be bundled const json1 = await import('./data/' + kind + '.json') // This will not be bundled const path = './data/' + kind + '.json' const json2 = await import(path) ``` Note that using this feature means esbuild will potentially do a lot of file system I/O to find all possible files that might match the pattern. This is by design, and is not a bug. If this is a concern, I recommend either avoiding the `/**/` pattern (e.g. by not putting a `/` before a wildcard) or using this feature only in directory subtrees which do not have many files that don't match the pattern (e.g. making a subdirectory for your JSON files and explicitly including that subdirectory in the pattern). - Path aliases in `tsconfig.json` no longer count as packages ([#​2792](https://togithub.com/evanw/esbuild/issues/2792), [#​3003](https://togithub.com/evanw/esbuild/issues/3003), [#​3160](https://togithub.com/evanw/esbuild/issues/3160), [#​3238](https://togithub.com/evanw/esbuild/issues/3238)) Setting `--packages=external` tells esbuild to make all import paths external when they look like a package path. For example, an import of `./foo/bar` is not a package path and won't be external while an import of `foo/bar` is a package path and will be external. However, the [`paths` field](https://www.typescriptlang.org/tsconfig#paths) in `tsconfig.json` allows you to create import paths that look like package paths but that do not resolve to packages. People do not want these paths to count as package paths. So with this release, the behavior of `--packages=external` has been changed to happen after the `tsconfig.json` path remapping step. - Use the `local-css` loader for `.module.css` files by default ([#​20](https://togithub.com/evanw/esbuild/issues/20)) With this release the `css` loader is still used for `.css` files except that `.module.css` files now use the `local-css` loader. This is a common convention in the web development community. If you need `.module.css` files to use the `css` loader instead, then you can override this behavior with `--loader:.module.css=css`. ### [`v0.18.20`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01820) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.19...v0.18.20) - Support advanced CSS `@import` rules ([#​953](https://togithub.com/evanw/esbuild/issues/953), [#​3137](https://togithub.com/evanw/esbuild/issues/3137)) CSS `@import` statements have been extended to allow additional trailing tokens after the import path. These tokens sort of make the imported file behave as if it were wrapped in a `@layer`, `@supports`, and/or `@media` rule. Here are some examples: ```css @​import url(foo.css); @​import url(foo.css) layer; @​import url(foo.css) layer(bar); @​import url(foo.css) layer(bar) supports(display: flex); @​import url(foo.css) layer(bar) supports(display: flex) print; @​import url(foo.css) layer(bar) print; @​import url(foo.css) supports(display: flex); @​import url(foo.css) supports(display: flex) print; @​import url(foo.css) print; ``` You can read more about this advanced syntax [here](https://developer.mozilla.org/en-US/docs/Web/CSS/@​import). With this release, esbuild will now bundle `@import` rules with these trailing tokens and will wrap the imported files in the corresponding rules. Note that this now means a given imported file can potentially appear in multiple places in the bundle. However, esbuild will still only load it once (e.g. on-load plugins will only run once per file, not once per import). ### [`v0.18.19`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01819) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.18.18...v0.18.19) - Implement `composes` from CSS modules ([#​20](https://togithub.com/evanw/esbuild/issues/20)) This release implements the `composes` annotation from the [CSS modules specification](https://togithub.com/css-modules/css-modules#composition). It provides a way for class selectors to reference other class selectors (assuming you are using the `local-css` loader). And with the `from` syntax, this can even work with local names across CSS files. For example: ```js // app.js import { submit } from './style.css' const div = document.createElement('div') div.className = submit document.body.appendChild(div) ``` ```css /* style.css */ .button { composes: pulse from "anim.css"; display: inline-block; } .submit { composes: button; font-weight: bold; } ``` ```css /* anim.css */ @​keyframes pulse { from, to { opacity: 1 } 50% { opacity: 0.5 } } .pulse { animation: 2s ease-in-out infinite pulse; } ``` Bundling this with esbuild using `--bundle --outdir=dist --loader:.css=local-css` now gives the following: ```js (() => { // style.css var submit = "anim_pulse style_button style_submit"; // app.js var div = document.createElement("div"); div.className = submit; document.body.appendChild(div); })(); ``` ```css /* anim.css */ @​keyframes anim_pulse { from, to { opacity: 1; } 50% { opacity: 0.5; } } .anim_pulse { animation: 2s ease-in-out infinite anim_pulse; } /* style.css */ .style_button { display: inline-block; } .style_submit { font-weight: bold; } ``` Import paths in the `composes: ... from` syntax are resolved using the new `composes-from` import kind, which can be intercepted by plugins during import path resolution when bundling is enabled. Note that the order in which composed CSS classes from separate files appear in the bundled output file is deliberately ***undefined*** by design (see [the specification](https://togithub.com/css-modules/css-modules#composing-from-other-files) for details). You are not supposed to declare the same CSS property in two separate class selectors and then compose them together. You are only supposed to compose CSS class selectors that declare non-overlapping CSS properties. Issue [#​20](https://togithub.com/evanw/esbuild/issues/20) (the issue tracking CSS modules) is esbuild's most-upvoted issue! With this change, I now consider esbuild's implementation of CSS modules to be complete. There are still improvements to make and there may also be bugs with the current implementation, but these can be tracked in separate issues. - Fix non-determinism with `tsconfig.json` and symlinks ([#​3284](https://togithub.com/evanw/esbuild/issues/3284)) This release fixes an issue that could cause esbuild to sometimes emit incorrect build output in cases where a file under the effect of `tsconfig.json` is inconsistently referenced through a symlink. It can happen when using `npm link` to create a symlink within `node_modules` to an unpublished package. The build result was non-deterministic because esbuild runs module resolution in parallel and the result of the `tsconfig.json` lookup depended on whether the import through the symlink or not through the symlink was resolved first. This problem was fixed by moving the `realpath` operation before the `tsconfig.json` lookup. - Add a `hash` property to output files ([#​3084](https://togithub.com/evanw/esbuild/issues/3084), [#​3293](https://togithub.com/evanw/esbuild/issues/3293)) As a convenience, every output file in esbuild's API now includes a `hash` property that is a hash of the `contents` field. This is the hash that's used internally by esbuild to detect changes between builds for esbuild's live-reload feature. You may also use it to detect changes between your own builds if its properties are sufficient for your use case. This feature has been added directly to output file objects since it's just a hash of the `contents` field, so it makes conceptual sense to store it in the same location. Another benefit of putting it there instead of including it as a part of the watch mode API is that it can be used without watch mode enabled. You can use it to compare the output of two independent builds that were done at different times. The hash algorithm (currently [XXH64](https://xxhash.com/)) is implementation-dependent and may be changed at any time in between esbuild versions. If you don't like esbuild's choice of hash algorithm then you are welcome to hash the contents yourself instead. As with any hash algorithm, note that while two different hashes mean that the contents are different, two equal hashes do not necessarily mean that the contents are equal. You may still want to compare the contents in addition to the hashes to detect with certainty when output files have been changed. - Avoid generating duplicate prefixed declarations in CSS ([#​3292](https://togithub.com/evanw/esbuild/issues/3292)) There was a request for esbuild's CSS prefixer to avoid generating a prefixed declaration if a declaration by that name is already present in the same rule block. So with this release, esbuild will now avoid doing this: ```css /* Original code */ body { backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(45px); } /* Old output (with --target=safari12) */ body { -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(45px); } /* New output (with --target=safari12) */ body { backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(45px); } ``` This can result in a visual difference in certain cases (for example if the browser understands `blur(30px)` but not `blur(45px)`, it will be able to fall back to `blur(30px)`). But this change means esbuild now matches the behavior of [Autoprefixer](https://autoprefixer.github.io/) which is probably a good representation of how people expect this feature to work.
prettier/prettier (prettier) ### [`v3.0.2`](https://togithub.com/prettier/prettier/blob/HEAD/CHANGELOG.md#302) [Compare Source](https://togithub.com/prettier/prettier/compare/3.0.1...3.0.2) [diff](https://togithub.com/prettier/prettier/compare/3.0.1...3.0.2) ##### Break after `=` of assignment if RHS is poorly breakable AwaitExpression or YieldExpression ([#​15204](https://togithub.com/prettier/prettier/pull/15204) by [@​seiyab](https://togithub.com/seiyab)) ```js // Input const { section, rubric, authors, tags } = await utils.upsertCommonData(mainData); // Prettier 3.0.1 const { section, rubric, authors, tags } = await utils.upsertCommonData( mainData, ); // Prettier 3.0.2 const { section, rubric, authors, tags } = await utils.upsertCommonData(mainData); ``` ##### Do not add trailing comma for grouped scss comments ([#​15217](https://togithub.com/prettier/prettier/pull/15217) by [@​auvred](https://togithub.com/auvred)) ```scss /* Input */ $foo: ( 'property': (), // comment 1 // comment 2 ) /* Prettier 3.0.1 */ $foo: ( "property": (), // comment 1 // comment 2, ); /* Prettier 3.0.2 */ $foo: ( "property": (), // comment 1 // comment 2 ); ``` ##### Print `declare` and `export` keywords for nested namespace ([#​15249](https://togithub.com/prettier/prettier/pull/15249) by [@​sosukesuzuki](https://togithub.com/sosukesuzuki)) ```tsx // Input declare namespace abc1.def {} export namespace abc2.def {} // Prettier 3.0.1 namespace abc1.def {} namespace abc2.def {} // Prettier 3.0.2 declare namespace abc1.def {} export namespace abc2.def {} ```
remix-run/react-router (react-router-dom) ### [`v6.15.0`](https://togithub.com/remix-run/react-router/blob/HEAD/packages/react-router-dom/CHANGELOG.md#6150) [Compare Source](https://togithub.com/remix-run/react-router/compare/1acea8b2759a68e939cd163c046e02717a24f540...e79cb77cb566788bfa61e6f7b2d4a64e80ea56f7) ##### Minor Changes - Add's a new `redirectDocument()` function which allows users to specify that a redirect from a `loader`/`action` should trigger a document reload (via `window.location`) instead of attempting to navigate to the redirected location via React Router ([#​10705](https://togithub.com/remix-run/react-router/pull/10705)) ##### Patch Changes - Fixes an edge-case affecting web extensions in Firefox that use `URLSearchParams` and the `useSearchParams` hook. ([#​10620](https://togithub.com/remix-run/react-router/pull/10620)) - Do not include hash in `useFormAction()` for unspecified actions since it cannot be determined on the server and causes hydration issues ([#​10758](https://togithub.com/remix-run/react-router/pull/10758)) - Reorder effects in `unstable_usePrompt` to avoid throwing an exception if the prompt is unblocked and a navigation is performed synchronously ([#​10687](https://togithub.com/remix-run/react-router/pull/10687), [#​10718](https://togithub.com/remix-run/react-router/pull/10718)) - Updated dependencies: - `@remix-run/router@1.8.0` - `react-router@6.15.0`
vitejs/vite (vite) ### [`v4.4.9`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small449-2023-08-07-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.4.8...v4.4.9) - chore: fix eslint warnings ([#​14031](https://togithub.com/vitejs/vite/issues/14031)) ([4021a0e](https://togithub.com/vitejs/vite/commit/4021a0e)), closes [#​14031](https://togithub.com/vitejs/vite/issues/14031) - chore(deps): update all non-major dependencies ([#​13938](https://togithub.com/vitejs/vite/issues/13938)) ([a1b519e](https://togithub.com/vitejs/vite/commit/a1b519e)), closes [#​13938](https://togithub.com/vitejs/vite/issues/13938) - fix: dynamic import vars ignored warning ([#​14006](https://togithub.com/vitejs/vite/issues/14006)) ([4479431](https://togithub.com/vitejs/vite/commit/4479431)), closes [#​14006](https://togithub.com/vitejs/vite/issues/14006) - fix(build): silence warn dynamic import module when inlineDynamicImports true ([#​13970](https://togithub.com/vitejs/vite/issues/13970)) ([7a77aaf](https://togithub.com/vitejs/vite/commit/7a77aaf)), closes [#​13970](https://togithub.com/vitejs/vite/issues/13970) - perf: improve build times and memory utilization ([#​14016](https://togithub.com/vitejs/vite/issues/14016)) ([9d7d45e](https://togithub.com/vitejs/vite/commit/9d7d45e)), closes [#​14016](https://togithub.com/vitejs/vite/issues/14016) - perf: replace startsWith with === ([#​14005](https://togithub.com/vitejs/vite/issues/14005)) ([f5c1224](https://togithub.com/vitejs/vite/commit/f5c1224)), closes [#​14005](https://togithub.com/vitejs/vite/issues/14005)

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.