vitejs / vite-plugin-react-swc

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

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

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
@emotion/react (source) ^11.10.5 -> ^11.10.6 age adoption passing confidence
@emotion/styled (source) ^11.10.5 -> ^11.10.6 age adoption passing confidence
@playwright/test (source) ^1.30.0 -> ^1.31.2 age adoption passing confidence
@swc/core (source) ^1.3.35 -> ^1.3.39 age adoption passing confidence
@swc/plugin-emotion ^2.5.41 -> ^2.5.46 age adoption passing confidence
@swc/plugin-styled-components ^1.5.40 -> ^1.5.46 age adoption passing confidence
@types/node (source) ^18.13.0 -> ^18.15.0 age adoption passing confidence
@types/react (source) ^18.0.27 -> ^18.0.28 age adoption passing confidence
@types/react-dom (source) ^18.0.10 -> ^18.0.11 age adoption passing confidence
esbuild ^0.17.7 -> ^0.17.11 age adoption passing confidence
styled-components (source) ^5.3.6 -> ^5.3.8 age adoption passing confidence
vite (source) ^4.1.1 -> ^4.1.4 age adoption passing confidence

Release Notes

emotion-js/emotion ### [`v11.10.6`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/react%4011.10.6) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/react@11.10.5...@emotion/react@11.10.6) ##### Patch Changes - [#​2985](https://togithub.com/emotion-js/emotion/pull/2985) [`4e172c2a`](https://togithub.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc) Thanks [@​emmatown](https://togithub.com/emmatown)! - Remove peer dependency on `@babel/core` - Updated dependencies \[[`4e172c2a`](https://togithub.com/emotion-js/emotion/commit/4e172c2ae4e5237500ec84688d76ebf253ab1fdc)]: - [@​emotion/babel-plugin](https://togithub.com/emotion/babel-plugin)[@​11](https://togithub.com/11).10.6
Microsoft/playwright ### [`v1.31.2`](https://togithub.com/microsoft/playwright/releases/tag/v1.31.2) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.31.1...v1.31.2) #### Highlights [https://github.com/microsoft/playwright/issues/20784](https://togithub.com/microsoft/playwright/issues/20784) - \[BUG] ECONNREFUSED on GitHub Actions with Node 18[https://github.com/microsoft/playwright/issues/21145](https://togithub.com/microsoft/playwright/issues/21145)5 - \[REGRESSION]: firefox-1378 times out on await page.reload() when URL contains a #has[https://github.com/microsoft/playwright/issues/21226](https://togithub.com/microsoft/playwright/issues/21226)26 - \[BUG] Playwright seems to get stuck when using shard option and last test is skipp[https://github.com/microsoft/playwright/issues/21227](https://togithub.com/microsoft/playwright/issues/21227)227 - Using the webServer config with a Vite dev serve[https://github.com/microsoft/playwright/issues/21312](https://togithub.com/microsoft/playwright/issues/21312)312 - throw if defineConfig is not used for component testing #### Browser Versions - Chromium 111.0.5563.19 - Mozilla Firefox 109.0 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 110 - Microsoft Edge 110 ### [`v1.31.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.31.1) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.31.0...v1.31.1) ##### Highlights [https://github.com/microsoft/playwright/issues/21093](https://togithub.com/microsoft/playwright/issues/21093) - \[Regression v1.31] Headless Windows shows cascading cmd windows[https://github.com/microsoft/playwright/pull/21106](https://togithub.com/microsoft/playwright/pull/21106)6 - fix(loader): experimentalLoader with node@18 ##### Browser Versions - Chromium 111.0.5563.19 - Mozilla Firefox 109.0 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 110 - Microsoft Edge 110 ### [`v1.31.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.31.0) [Compare Source](https://togithub.com/Microsoft/playwright/compare/v1.30.0...v1.31.0) #### New APIs - New property [`TestProject.dependencies`](https://playwright.dev/docs/api/class-testproject#test-project-dependencies) to configure dependencies between projects. Using dependencies allows global setup to produce traces and other artifacts, see the setup steps in the test report and more. ```js // playwright.config.ts import { defineConfig } from '@​playwright/test'; export default defineConfig({ projects: [ { name: 'setup', testMatch: /global.setup\.ts/, }, { name: 'chromium', use: devices['Desktop Chrome'], dependencies: ['setup'], }, { name: 'firefox', use: devices['Desktop Firefox'], dependencies: ['setup'], }, { name: 'webkit', use: devices['Desktop Safari'], dependencies: ['setup'], }, ], }); ``` - New assertion [`expect(locator).toBeInViewport()`](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-in-viewport) ensures that locator points to an element that intersects viewport, according to the [intersection observer API](https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API). ```js const button = page.getByRole('button'); // Make sure at least some part of element intersects viewport. await expect(button).toBeInViewport(); // Make sure element is fully outside of viewport. await expect(button).not.toBeInViewport(); // Make sure that at least half of the element intersects viewport. await expect(button).toBeInViewport({ ratio: 0.5 }); ``` #### Miscellaneous - DOM snapshots in trace viewer can be now opened in a separate window. - New method `defineConfig` to be used in `playwright.config`. - New option `maxRedirects` for method [`Route.fetch`](https://playwright.dev/docs/api/class-route#route-fetch). - Playwright now supports Debian 11 arm64. - Official [docker images](https://playwright.dev/docs/docker) now include Node 18 instead of Node 16. #### ⚠️ Breaking change in component tests Note: **component tests only**, does not affect end-to-end tests. `playwright-ct.config` configuration file for [component testing](https://playwright.dev/docs/test-components) now requires calling `defineConfig`. ```js // Before import { type PlaywrightTestConfig, devices } from '@​playwright/experimental-ct-react'; const config: PlaywrightTestConfig = { // ... config goes here ... }; export default config; ``` Replace `config` variable definition with `defineConfig` call: ```js // After import { defineConfig, devices } from '@​playwright/experimental-ct-react'; export default defineConfig({ // ... config goes here ... }); ``` #### Browser Versions - Chromium 111.0.5563.19 - Mozilla Firefox 109.0 - WebKit 16.4 This version was also tested against the following stable channels: - Google Chrome 110 - Microsoft Edge 110
swc-project/swc ### [`v1.3.39`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1339---2023-03-10) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.38...v1.3.39) ##### Bug Fixes - **(es/minifier)** Bailout regex optimization on invalid flags ([#​7020](https://togithub.com/swc-project/swc/issues/7020)) ([1318afe](https://togithub.com/swc-project/swc/commit/1318afe2b4a7a25233db5760b785605019b9f06b)) - **(es/transforms)** Handle member object in missing else branch ([#​7027](https://togithub.com/swc-project/swc/issues/7027)) ([5c7c8e0](https://togithub.com/swc-project/swc/commit/5c7c8e073634ff6347194fa0e3fae8c83b64718c)) - **(es/transforms)** Handle object shorthand in `const_modules` ([#​7022](https://togithub.com/swc-project/swc/issues/7022)) ([0314869](https://togithub.com/swc-project/swc/commit/0314869464f59748a6a44980ade4dc1eda39ac3b)) ##### Documentation - **general**: MSRV ([32bc2f5](https://togithub.com/swc-project/swc/commit/32bc2f57be06997497d2ad43c2168efb3daaa435)) ##### Features - **(common)** Add an API to create a `SourceFile` without allocation ([#​7029](https://togithub.com/swc-project/swc/issues/7029)) ([81495f5](https://togithub.com/swc-project/swc/commit/81495f5f21d56df7a187847337c9fdd2ff8ee73b)) ##### Miscellaneous Tasks - **(ci)** Fix bot ([691a8c1](https://togithub.com/swc-project/swc/commit/691a8c1a5490cc6fa05ad2bb59cfc7c4d370056f)) ##### Performance - **(atoms)** Update `string-cache` for per-bucket mutex ([#​6980](https://togithub.com/swc-project/swc/issues/6980)) ([9841f0b](https://togithub.com/swc-project/swc/commit/9841f0b5d14736d780c9864eb9bf7609f9ff2840)) - **(es/ast)** Shrink size of `Expr` ([#​7041](https://togithub.com/swc-project/swc/issues/7041)) ([a9fe1d2](https://togithub.com/swc-project/swc/commit/a9fe1d2d2228ba89fccb2a5d91f5ac4008f09d01)) - **(es/lexer)** Use string searcher for lexing line comments ([#​7043](https://togithub.com/swc-project/swc/issues/7043)) ([962b0fc](https://togithub.com/swc-project/swc/commit/962b0fc8af6084ade064d189ed7cd7f0e2b25ee8)) - **(es/parser)** Use Cow for `_` in numeric literals ([#​7031](https://togithub.com/swc-project/swc/issues/7031)) ([30546a2](https://togithub.com/swc-project/swc/commit/30546a28f21eb90bbbaef33ce4bc0448cd062a72)) - **(es/parser)** Use `SmartString` as the buffer ([#​7033](https://togithub.com/swc-project/swc/issues/7033)) ([f378a14](https://togithub.com/swc-project/swc/commit/f378a14888b5a6457ade3991e2754f235d4e3d85)) - **(es/utils)** Introduce `NodeIgnoringSpan` ([#​7030](https://togithub.com/swc-project/swc/issues/7030)) ([8bfef35](https://togithub.com/swc-project/swc/commit/8bfef35c1be5790b32fea253f28961271fe7f619)) ##### Testing - **(es/quote)** Fix doctests ([#​7038](https://togithub.com/swc-project/swc/issues/7038)) ([e698a34](https://togithub.com/swc-project/swc/commit/e698a348162e43b11347d2a6139910e096291f59)) ### [`v1.3.38`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1338---2023-03-06) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.37...v1.3.38) ##### Bug Fixes - **(bindings/node)** Fix `visitBindingIdentifier` ([#​7000](https://togithub.com/swc-project/swc/issues/7000)) ([30cff01](https://togithub.com/swc-project/swc/commit/30cff016563d8925ef2b150a669ac4b6de968b82)) - **(es)** Allow any kind of input source maps if it's enabled ([#​7002](https://togithub.com/swc-project/swc/issues/7002)) ([da5367b](https://togithub.com/swc-project/swc/commit/da5367b3fbac2cf4ab7d7f4562d58be3cff0edf8)) - **(es/minifier)** Don't skip expressions with side effects from seq inliner ([#​7007](https://togithub.com/swc-project/swc/issues/7007)) ([cfeb088](https://togithub.com/swc-project/swc/commit/cfeb088c37bdc2a5df79f10d2b93ce84cb12542b)) - **(es/minifier)** Don't create invalid property names ([#​7010](https://togithub.com/swc-project/swc/issues/7010)) ([bb2486c](https://togithub.com/swc-project/swc/commit/bb2486c4592214c19ee6a1aa747dda5e58a1b07d)) - **(es/parser)** Fix parsing of an array spread in tsx properties ([#​7011](https://togithub.com/swc-project/swc/issues/7011)) ([6d6731f](https://togithub.com/swc-project/swc/commit/6d6731f355ed3bc314be31061b971f9317bea713)) - **(es/preset-env)** Move `findLast` and `findLastIndex` to finished proposals ([#​7012](https://togithub.com/swc-project/swc/issues/7012)) ([b46a724](https://togithub.com/swc-project/swc/commit/b46a7248c6ed220276f919748a5ebf84c622858a)) - **(es/typescript)** Treat export default declarations as declarations ([#​7017](https://togithub.com/swc-project/swc/issues/7017)) ([34f9ad3](https://togithub.com/swc-project/swc/commit/34f9ad3778527a40e6ede50e2e3e2f34f405ff11)) ##### Features - **(es/minifier)** Optimize calls to `Boolean`/`Number`/`String`/`Symbol` ([#​7006](https://togithub.com/swc-project/swc/issues/7006)) ([06cbb90](https://togithub.com/swc-project/swc/commit/06cbb9002da2bdc04440b6ace28432839f42ccdf)) - **(es/parser)** Support auto accessors ([#​6981](https://togithub.com/swc-project/swc/issues/6981)) ([37533a2](https://togithub.com/swc-project/swc/commit/37533a23fde30fe054bf321e7ca7a10a346c2f79)) - **(es/parser)** Add an option to disallow ambiguous jsx ([#​6913](https://togithub.com/swc-project/swc/issues/6913)) ([a6471f3](https://togithub.com/swc-project/swc/commit/a6471f34c0786bd0e80b3b4c5356929ebb0a8483)) - **(es/transforms)** Add an option to drop unused imports ([#​6962](https://togithub.com/swc-project/swc/issues/6962)) ([67d0a89](https://togithub.com/swc-project/swc/commit/67d0a89ae65d0efb07a43040b962735b5cc25ea8)) - **(es/transforms)** Support namespace imports from `const_modules` ([#​7013](https://togithub.com/swc-project/swc/issues/7013)) ([3cb03d5](https://togithub.com/swc-project/swc/commit/3cb03d5299d3c6be56f8b7f8c42ba86122640424)) - **(es/typescript)** Support `export type * from "mod"` ([#​6867](https://togithub.com/swc-project/swc/issues/6867)) ([beb38d3](https://togithub.com/swc-project/swc/commit/beb38d34a26016051eb0ed364ea1112f416955ac)) ##### Miscellaneous Tasks - **(ci)** Fix CI ([#​7014](https://togithub.com/swc-project/swc/issues/7014)) ([a431a3a](https://togithub.com/swc-project/swc/commit/a431a3a204faebd283cb7db8359b048d9fcc9a87)) ##### Refactor - **(es/parser)** Make lexer not generic over `Input` ([#​6993](https://togithub.com/swc-project/swc/issues/6993)) ([367ac82](https://togithub.com/swc-project/swc/commit/367ac825f6bfab65cf8bcb21e68500daef8ad177)) ### [`v1.3.37`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1337---2023-02-28) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.36...v1.3.37) ##### Bug Fixes - **(bindings/cli)** Implement `source-file-name` and `source-root` options ([#​6973](https://togithub.com/swc-project/swc/issues/6973)) ([3e3e41a](https://togithub.com/swc-project/swc/commit/3e3e41a1756519515df193db903f6992995420e9)) - **(css/utils)** Fix minification of class names with whitespace ([#​6983](https://togithub.com/swc-project/swc/issues/6983)) ([cc1d9bd](https://togithub.com/swc-project/swc/commit/cc1d9bd567340203d5d2bd228a4d0b19f8052202)) - **(es/decorator)** Preserve evaluation order ([#​6972](https://togithub.com/swc-project/swc/issues/6972)) ([703b340](https://togithub.com/swc-project/swc/commit/703b340d39c3efb69f4a0d375ab6e5a2f9a4acd9)) ##### Miscellaneous Tasks - **(es/parser)** Reduce pre-allocation to reduce memory usage ([#​6979](https://togithub.com/swc-project/swc/issues/6979)) ([f1e7a2a](https://togithub.com/swc-project/swc/commit/f1e7a2a9cc74b19597e9d7105852daf4672514a2)) ##### Testing - **(es/tsc)** Update tsc test suite ([#​6982](https://togithub.com/swc-project/swc/issues/6982)) ([b887b30](https://togithub.com/swc-project/swc/commit/b887b30092c77ec67eedb7f1dd0b5570a1a16eea)) ### [`v1.3.36`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#​1336---2023-02-21) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.35...v1.3.36) ##### Bug Fixes - **(bindings/cli)** Rename `--config` to `--config-json` ([#​6932](https://togithub.com/swc-project/swc/issues/6932)) ([cb4436b](https://togithub.com/swc-project/swc/commit/cb4436bd6ed085bdf1f0d98776f166bf2a6275c9)) - **(bindings/node)** Treat `.cts` and `.mts` as input by default ([#​6959](https://togithub.com/swc-project/swc/issues/6959)) ([d5c0dec](https://togithub.com/swc-project/swc/commit/d5c0dec40c1bb46bb5674242aa0a85f51c0826f7)) - **(bundler)** Don't panic while finding exports ([#​6947](https://togithub.com/swc-project/swc/issues/6947)) ([542bb62](https://togithub.com/swc-project/swc/commit/542bb62ef78a999fe6c636be821427691ce0b071)) - **(css/modules)** Fix CSS `animation` on CSS Modules ([#​6969](https://togithub.com/swc-project/swc/issues/6969)) ([4771aa2](https://togithub.com/swc-project/swc/commit/4771aa206a6aa8c48f41eeafba12040c04358885)) - **(es/minifier)** Fix `toFixed`, `toPrecision`, `toExponential` and `toString` of Number ([#​6960](https://togithub.com/swc-project/swc/issues/6960)) ([9382bda](https://togithub.com/swc-project/swc/commit/9382bda786613abf15cecb0bf3531dd68bb6166b)) - **(es/minifier)** Fix optimization of expressions in numeric context ([#​6965](https://togithub.com/swc-project/swc/issues/6965)) ([1dfadb8](https://togithub.com/swc-project/swc/commit/1dfadb87907ef24c7b4d5184f24f30e028c1cef2)) - **(es/module)** Fix `jsc.paths` on Windows ([#​6930](https://togithub.com/swc-project/swc/issues/6930)) ([1ec161a](https://togithub.com/swc-project/swc/commit/1ec161a0f15886f97d4fb9cbb5d115b29ed5e2a2)) - **(es/react)** Fix handling of whitespaces ([#​6935](https://togithub.com/swc-project/swc/issues/6935)) ([a9b25aa](https://togithub.com/swc-project/swc/commit/a9b25aaf4a776731d3ef2dc3c192a7b18023e765)) - **(es/react)** Don't panic on `key` without a value ([#​6945](https://togithub.com/swc-project/swc/issues/6945)) ([14454c9](https://togithub.com/swc-project/swc/commit/14454c9dbd222cabb8c6eeafa9c664c34030a121)) - **(es/resolver)** Use type context for `export =` if it's unresolved ([#​6963](https://togithub.com/swc-project/swc/issues/6963)) ([e946c43](https://togithub.com/swc-project/swc/commit/e946c43f4e0640bb7ad2470c9c5979583ced2e23)) ##### Features - **(es/minifier)** Drop unused import bindings ([#​6967](https://togithub.com/swc-project/swc/issues/6967)) ([a27ffd2](https://togithub.com/swc-project/swc/commit/a27ffd22423af6e85fa821c2bb3bbd01e199f472)) ##### Miscellaneous Tasks - **(bot)** Allow org members to use bump comments ([#​6942](https://togithub.com/swc-project/swc/issues/6942)) ([0324d5a](https://togithub.com/swc-project/swc/commit/0324d5a78b8d47b8948f4011c0dd982ff43a2203)) - **(swc_nodejs_common)** Remove swc_node_base from swc_nodejs_common ([#​6940](https://togithub.com/swc-project/swc/issues/6940)) ([0771418](https://togithub.com/swc-project/swc/commit/0771418dd0310a7e05bfad76baf4e16cd289351e))
evanw/esbuild ### [`v0.17.11`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01711) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.10...v0.17.11) - Fix the `alias` feature to always prefer the longest match ([#​2963](https://togithub.com/evanw/esbuild/issues/2963)) It's possible to configure conflicting aliases such as `--alias:a=b` and `--alias:a/c=d`, which is ambiguous for the import path `a/c/x` (since it could map to either `b/c/x` or `d/x`). Previously esbuild would pick the first matching `alias`, which would non-deterministically pick between one of the possible matches. This release fixes esbuild to always deterministically pick the longest possible match. - Minify calls to some global primitive constructors ([#​2962](https://togithub.com/evanw/esbuild/issues/2962)) With this release, esbuild's minifier now replaces calls to `Boolean`/`Number`/`String`/`BigInt` with equivalent shorter code when relevant: ```js // Original code console.log( Boolean(a ? (b | c) !== 0 : (c & d) !== 0), Number(e ? '1' : '2'), String(e ? '1' : '2'), BigInt(e ? 1n : 2n), ) // Old output (with --minify) console.log(Boolean(a?(b|c)!==0:(c&d)!==0),Number(e?"1":"2"),String(e?"1":"2"),BigInt(e?1n:2n)); // New output (with --minify) console.log(!!(a?b|c:c&d),+(e?"1":"2"),e?"1":"2",e?1n:2n); ``` - Adjust some feature compatibility tables for node ([#​2940](https://togithub.com/evanw/esbuild/issues/2940)) This release makes the following adjustments to esbuild's internal feature compatibility tables for node, which tell esbuild which versions of node are known to support all aspects of that feature: - `class-private-brand-checks`: node v16.9+ => node v16.4+ (a decrease) - `hashbang`: node v12.0+ => node v12.5+ (an increase) - `optional-chain`: node v16.9+ => node v16.1+ (a decrease) - `template-literal`: node v4+ => node v10+ (an increase) Each of these adjustments was identified by comparing against data from the `node-compat-table` package and was manually verified using old node executables downloaded from https://nodejs.org/download/release/. ### [`v0.17.10`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​01710) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.9...v0.17.10) - Update esbuild's handling of CSS nesting to match the latest specification changes ([#​1945](https://togithub.com/evanw/esbuild/issues/1945)) The syntax for the upcoming CSS nesting feature has [recently changed](https://webkit.org/blog/13813/try-css-nesting-today-in-safari-technology-preview/). The `@nest` prefix that was previously required in some cases is now gone, and nested rules no longer have to start with `&` (as long as they don't start with an identifier or function token). This release updates esbuild's pass-through handling of CSS nesting syntax to match the latest specification changes. So you can now use esbuild to bundle CSS containing nested rules and try them out in a browser that supports CSS nesting (which includes nightly builds of both Chrome and Safari). However, I'm not implementing lowering of nested CSS to non-nested CSS for older browsers yet. While the syntax has been decided, the semantics are still in flux. In particular, there is still some debate about changing the fundamental way that CSS nesting works. For example, you might think that the following CSS is equivalent to a `.outer .inner button { ... }` rule: ```css .inner button { .outer & { color: red; } } ``` But instead it's actually equivalent to a `.outer :is(.inner button) { ... }` rule which unintuitively also matches the following DOM structure: ```html
``` The `:is()` behavior is preferred by browser implementers because it's more memory-efficient, but the straightforward translation into a `.outer .inner button { ... }` rule is preferred by developers used to the existing CSS preprocessing ecosystem (e.g. SASS). It seems premature to commit esbuild to specific semantics for this syntax at this time given the ongoing debate. - Fix cross-file CSS rule deduplication involving `url()` tokens ([#​2936](https://togithub.com/evanw/esbuild/issues/2936)) Previously cross-file CSS rule deduplication didn't handle `url()` tokens correctly. These tokens contain references to import paths which may be internal (i.e. in the bundle) or external (i.e. not in the bundle). When comparing two `url()` tokens for equality, the underlying import paths should be compared instead of their references. This release of esbuild fixes `url()` token comparisons. One side effect is that `@font-face` rules should now be deduplicated correctly across files: ```css /* Original code */ @​import "data:text/css, \ @​import 'http://example.com/style.css'; \ @​font-face { src: url(http://example.com/font.ttf) }"; @​import "data:text/css, \ @​font-face { src: url(http://example.com/font.ttf) }"; /* Old output (with --bundle --minify) */ @​import"http://example.com/style.css";@​font-face{src:url(http://example.com/font.ttf)}@​font-face{src:url(http://example.com/font.ttf)} /* New output (with --bundle --minify) */ @​import"http://example.com/style.css";@​font-face{src:url(http://example.com/font.ttf)} ``` ### [`v0.17.9`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0179) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.8...v0.17.9) - Parse rest bindings in TypeScript types ([#​2937](https://togithub.com/evanw/esbuild/issues/2937)) Previously esbuild was unable to parse the following valid TypeScript code: ```ts let tuple: (...[e1, e2, ...es]: any) => any ``` This release includes support for parsing code like this. - Fix TypeScript code translation for certain computed `declare` class fields ([#​2914](https://togithub.com/evanw/esbuild/issues/2914)) In TypeScript, the key of a computed `declare` class field should only be preserved if there are no decorators for that field. Previously esbuild always preserved the key, but esbuild will now remove the key to match the output of the TypeScript compiler: ```ts // Original code declare function dec(a: any, b: any): any declare const removeMe: unique symbol declare const keepMe: unique symbol class X { declare [removeMe]: any @​dec declare [keepMe]: any } // Old output var _a; class X { } removeMe, _a = keepMe; __decorateClass([ dec ], X.prototype, _a, 2); // New output var _a; class X { } _a = keepMe; __decorateClass([ dec ], X.prototype, _a, 2); ``` - Fix a crash with path resolution error generation ([#​2913](https://togithub.com/evanw/esbuild/issues/2913)) In certain situations, a module containing an invalid import path could previously cause esbuild to crash when it attempts to generate a more helpful error message. This crash has been fixed. ### [`v0.17.8`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#​0178) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.17.7...v0.17.8) - Fix a minification bug with non-ASCII identifiers ([#​2910](https://togithub.com/evanw/esbuild/issues/2910)) This release fixes a bug with esbuild where non-ASCII identifiers followed by a keyword were incorrectly not separated by a space. This bug affected both the `in` and `instanceof` keywords. Here's an example of the fix: ```js // Original code π in a // Old output (with --minify --charset=utf8) πin a; // New output (with --minify --charset=utf8) π in a; ``` - Fix a regression with esbuild's WebAssembly API in version 0.17.6 ([#​2911](https://togithub.com/evanw/esbuild/issues/2911)) Version 0.17.6 of esbuild updated the Go toolchain to version 1.20.0. This had the unfortunate side effect of increasing the amount of stack space that esbuild uses (presumably due to some changes to Go's WebAssembly implementation) which could cause esbuild's WebAssembly-based API to crash with a stack overflow in cases where it previously didn't crash. One such case is the package `grapheme-splitter` which contains code that looks like this: ```js if ( (0x0300 <= code && code <= 0x036F) || (0x0483 <= code && code <= 0x0487) || (0x0488 <= code && code <= 0x0489) || (0x0591 <= code && code <= 0x05BD) || // ... many hundreds of lines later ... ) { return; } ``` This edge case involves a chain of binary operators that results in an AST over 400 nodes deep. Normally this wouldn't be a problem because Go has growable call stacks, so the call stack would just grow to be as large as needed. However, WebAssembly byte code deliberately doesn't expose the ability to manipulate the stack pointer, so Go's WebAssembly translation is forced to use the fixed-size WebAssembly call stack. So esbuild's WebAssembly implementation is vulnerable to stack overflow in cases like these. It's not unreasonable for this to cause a stack overflow, and for esbuild's answer to this problem to be "don't write code like this." That's how many other AST-manipulation tools handle this problem. However, it's possible to implement AST traversal using iteration instead of recursion to work around limited call stack space. This version of esbuild implements this code transformation for esbuild's JavaScript parser and printer, so esbuild's WebAssembly implementation is now able to process the `grapheme-splitter` package (at least when compiled with Go 1.20.0 and run with node's WebAssembly implementation).
styled-components/styled-components ### [`v5.3.8`](https://togithub.com/styled-components/styled-components/releases/tag/v5.3.8) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v5.3.7...v5.3.8) #### What's Changed fix(constants): rework process env guard **Full Changelog**: https://github.com/styled-components/styled-components/compare/v5.3.7-fixed...v5.3.8 ### [`v5.3.7`](https://togithub.com/styled-components/styled-components/compare/v5.3.6...v5.3.7) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v5.3.6...v5.3.7)
vitejs/vite ### [`v4.1.4`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small414-2023-02-21-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.1.3...v4.1.4) - fix(define): should not stringify vite internal env ([#​12120](https://togithub.com/vitejs/vite/issues/12120)) ([73c3999](https://togithub.com/vitejs/vite/commit/73c3999)), closes [#​12120](https://togithub.com/vitejs/vite/issues/12120) - docs: update rollup docs links ([#​12130](https://togithub.com/vitejs/vite/issues/12130)) ([439a73f](https://togithub.com/vitejs/vite/commit/439a73f)), closes [#​12130](https://togithub.com/vitejs/vite/issues/12130) ### [`v4.1.3`](https://togithub.com/vitejs/vite/blob/HEAD/packages/vite/CHANGELOG.md#small413-2023-02-20-small) [Compare Source](https://togithub.com/vitejs/vite/compare/v4.1.2...v4.1.3) - fix: catch and handle websocket error ([#​11991](https://togithub.com/vitejs/vite/issues/11991)) ([#​12007](https://togithub.com/vitejs/vite/issues/12007)) ([4b5cc9f](https://togithub.com/vitejs/vite/commit/4b5cc9f)), closes [#​11991](https://togithub.com/vitejs/vite/issues/11991) [#​12007](https://togithub.com/vitejs/vite/issues/12007) - fix: do not append version query param when scanning for dependencies ([#​11961](https://togithub.com/vitejs/vite/issues/11961)) ([575bcf6](https://togithub.com/vitejs/vite/commit/575bcf6)), closes [#​11961](https://togithub.com/vitejs/vite/issues/11961) - fix(css): handle pure css chunk heuristic with special queries ([#​12091](https://togithub.com/vitejs/vite/issues/12091)) ([a873af5](https://togithub.com/vitejs/vite/commit/a873af5)), closes [#​12091](https://togithub.com/vitejs/vite/issues/12091) - fix(esbuild): umd helper insert into wrong position in lib mode ([#​11988](https://togithub.com/vitejs/vite/issues/11988)) ([86bc243](https://togithub.com/vitejs/vite/commit/86bc243)), closes [#​11988](https://togithub.com/vitejs/vite/issues/11988) - fix(html): respect disable modulepreload ([#​12111](https://togithub.com/vitejs/vite/issues/12111)) ([6c50119](https://togithub.com/vitejs/vite/commit/6c50119)), closes [#​12111](https://togithub.com/vitejs/vite/issues/12111) - fix(html): rewrite assets url in `

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.

renovate[bot] commented 1 year ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.