vitejs / vite-plugin-react-swc

Speed up your Vite dev server with SWC
MIT License
774 stars 49 forks source link

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

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 7 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@emotion/react (source) ^11.11.1 -> ^11.11.3 age adoption passing confidence
@generouted/react-router ^1.16.1 -> ^1.18.2 age adoption passing confidence
@playwright/test (source) ^1.39.0 -> ^1.41.1 age adoption passing confidence
@swc/core (source) ^1.3.96 -> ^1.3.106 age adoption passing confidence
@swc/plugin-emotion ^2.5.98 -> ^2.5.115 age adoption passing confidence
@swc/plugin-styled-components ^1.5.98 -> ^1.5.115 age adoption passing confidence
@types/node (source) ^20.9.0 -> ^20.11.7 age adoption passing confidence
@types/react (source) ^18.2.37 -> ^18.2.48 age adoption passing confidence
@types/react-dom (source) ^18.2.15 -> ^18.2.18 age adoption passing confidence
@types/styled-components (source) ^5.1.30 -> ^5.1.34 age adoption passing confidence
esbuild ^0.19.5 -> ^0.19.12 age adoption passing confidence
fs-extra ^11.1.1 -> ^11.2.0 age adoption passing confidence
pnpm (source) 8.10.5 -> 8.14.3 age adoption passing confidence
react-router-dom (source) ^6.18.0 -> ^6.21.3 age adoption passing confidence
styled-components (source) ^6.1.1 -> ^6.1.8 age adoption passing confidence
typescript (source) ^5.2.2 -> ^5.3.3 age adoption passing confidence
vite (source) ^5.0.2 -> ^5.0.12 age adoption passing confidence

Release Notes

emotion-js/emotion (@​emotion/react) ### [`v11.11.3`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/react%4011.11.3) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/react@11.11.1...@emotion/react@11.11.3) ##### Patch Changes - [#​3101](https://togithub.com/emotion-js/emotion/pull/3101) [`49c20b4f`](https://togithub.com/emotion-js/emotion/commit/49c20b4faa3b9aec0ca96066c126cbaaabbf2d5c) Thanks [@​kyvong](https://togithub.com/kyvong)! - Fix Theme import for newer Typescript module resolution modes - Updated dependencies \[[`45c440fb`](https://togithub.com/emotion-js/emotion/commit/45c440fbc86b90750f275f497d11382f09ec1d2e)]: - [@​emotion/serialize](https://togithub.com/emotion/serialize)[@​1](https://togithub.com/1).1.3
oedotme/generouted (@​generouted/react-router) ### [`v1.18.2`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.2) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.1...v1.18.2) #### Commits - chore: update examples from workspaces to latest versions [`92ba661`](https://togithub.com/oedotme/generouted/commit/92ba661) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.1...v1.18.2 ### [`v1.18.1`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.1) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.0...v1.18.1) #### Commits - docs: mdx support [`fd803f1`](https://togithub.com/oedotme/generouted/commit/fd803f1) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.0...v1.18.1 ### [`v1.18.0`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.0) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.17.1...v1.18.0) #### Commits - feat: support `.mdx` routes [`9653cf7`](https://togithub.com/oedotme/generouted/commit/9653cf7) by [@​oedotme](https://togithub.com/oedotme) closes [#​144](https://togithub.com/oedotme/generouted/issues/144) - chore: update packages [`604bc97`](https://togithub.com/oedotme/generouted/commit/604bc97) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.17.1...v1.18.0 ### [`v1.17.1`](https://togithub.com/oedotme/generouted/releases/tag/v1.17.1) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.17.0...v1.17.1) #### Commits - chore: update packages [`b91afb2`](https://togithub.com/oedotme/generouted/commit/b91afb2) by [@​oedotme](https://togithub.com/oedotme) - feat: allow hyphens at pathless group name [`4fc7d65`](https://togithub.com/oedotme/generouted/commit/4fc7d65) by [@​oedotme](https://togithub.com/oedotme) closes [#​143](https://togithub.com/oedotme/generouted/issues/143) **Changelog**: https://github.com/oedotme/generouted/compare/v1.17.0...v1.17.1 ### [`v1.17.0`](https://togithub.com/oedotme/generouted/releases/tag/v1.17.0) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.16.1...v1.17.0) ##### Breaking changes — Solid integration ONLY - `@generouted/solid-router` `v1.17.0` now requires using `@solidjs/router` `v0.10.1` - `` component was removed from `@solidjs/router`, you'll need to use `{props.children}` instead ```tsx // src/pages/_app.tsx // import { Outlet } from '@​solidjs/router' import { ParentProps, Show } from 'solid-js' export default function App(props: ParentProps) { // return
return
{props.children}
} ``` ```tsx // src/pages/posts/_layout.tsx // import { Outlet } from '@​solidjs/router' import { ParentProps, Show } from 'solid-js' export default function PostsLayout(props: ParentProps) { // return
return
{props.children}
} ``` #### Commits - chore: update packages [`427548b`](https://togithub.com/oedotme/generouted/commit/427548b) by [@​oedotme](https://togithub.com/oedotme) - feat!: upgrade to solid-router v0.10.1 [`d466ef2`](https://togithub.com/oedotme/generouted/commit/d466ef2) by [@​oedotme](https://togithub.com/oedotme) - chore: update packages [`517febf`](https://togithub.com/oedotme/generouted/commit/517febf) by [@​oedotme](https://togithub.com/oedotme) - chore: update packages [`fefae76`](https://togithub.com/oedotme/generouted/commit/fefae76) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.16.1...v1.17.0
microsoft/playwright (@​playwright/test) ### [`v1.41.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.41.1) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.41.0...v1.41.1) ##### Highlights [https://github.com/microsoft/playwright/issues/29067](https://togithub.com/microsoft/playwright/issues/29067) - \[REGRESSION] Codegen/Recorder: not all clicks are being actioned nor recorded[https://github.com/microsoft/playwright/issues/29028](https://togithub.com/microsoft/playwright/issues/29028)8 - \[REGRESSION] React component tests throw type error when passing null/undefined to componen[https://github.com/microsoft/playwright/issues/29027](https://togithub.com/microsoft/playwright/issues/29027)27 - \[REGRESSION] React component tests not passing Date prop valu[https://github.com/microsoft/playwright/issues/29023](https://togithub.com/microsoft/playwright/issues/29023)023 - \[REGRESSION] React component tests not rendering children p[https://github.com/microsoft/playwright/issues/29019](https://togithub.com/microsoft/playwright/issues/29019)9019 - \[REGRESSION] trace.playwright.dev does not currently support the loading from URL #### Browser Versions - Chromium 121.0.6167.57 - Mozilla Firefox 121.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 120 - Microsoft Edge 120 ### [`v1.41.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.41.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.40.1...v1.41.0) #### New APIs - New method [page.unrouteAll(\[options\])](https://playwright.dev/docs/api/class-page#page-unroute-all) removes all routes registered by [page.route(url, handler, handler\[, options\])](https://playwright.dev/docs/api/class-page#page-route) and [page.routeFromHAR(har\[, options\])](https://playwright.dev/docs/api/class-page#page-route-from-har). Optionally allows to wait for ongoing routes to finish, or ignore any errors from them. - New method [browserContext.unrouteAll(\[options\])](https://playwright.dev/docs/api/class-browsercontext#browser-context-unroute-all) removes all routes registered by [browserContext.route(url, handler, handler\[, options\])](https://playwright.dev/docs/api/class-browsercontext#browser-context-route) and [browserContext.routeFromHAR(har\[, options\])](https://playwright.dev/docs/api/class-browsercontext#browser-context-route-from-har). Optionally allows to wait for ongoing routes to finish, or ignore any errors from them. - New option `style` in [page.screenshot(\[options\])](https://playwright.dev/docs/api/class-page#page-screenshot) and [locator.screenshot(\[options\])](https://playwright.dev/docs/api/class-locator#locator-screenshot) to add custom CSS to the page before taking a screenshot. - New option `stylePath` for methods [expect(page).toHaveScreenshot(name\[, options\])](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1) and [expect(locator).toHaveScreenshot(name\[, options\])](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-screenshot-1) to apply a custom stylesheet while making the screenshot. - New `fileName` option for [Blob reporter](https://playwright.dev/docs/test-reporters#blob-reporter), to specify the name of the report to be created. #### Browser Versions - Chromium 121.0.6167.57 - Mozilla Firefox 121.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 120 - Microsoft Edge 120 ### [`v1.40.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.40.1) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.40.0...v1.40.1) ##### Highlights [https://github.com/microsoft/playwright/issues/28319](https://togithub.com/microsoft/playwright/issues/28319) - \[REGRESSION]: Version 1.40.0 Produces corrupted traces[https://github.com/microsoft/playwright/issues/28371](https://togithub.com/microsoft/playwright/issues/28371)1 - \[BUG] The color of the 'ok' text did not change to green in the vs code test results sectio[https://github.com/microsoft/playwright/issues/28321](https://togithub.com/microsoft/playwright/issues/28321)21 - \[BUG] Ambiguous test outcome and status for serial mo[https://github.com/microsoft/playwright/issues/28362](https://togithub.com/microsoft/playwright/issues/28362)362 - \[BUG] Merging blobs ends up in Error: Cannot create a string longer than 0x1fffffe8 charact[https://github.com/microsoft/playwright/pull/28239](https://togithub.com/microsoft/playwright/pull/28239)8239 - fix: collect all errors in removeFolders ##### Browser Versions - Chromium 120.0.6099.28 - Mozilla Firefox 119.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 119 - Microsoft Edge 119 ### [`v1.40.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.40.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.39.0...v1.40.0) #### Test Generator Update ![Playwright Test Generator](https://togithub.com/microsoft/playwright/assets/9881434/e8d67e2e-f36d-4301-8631-023948d3e190) New tools to generate assertions: - "Assert visibility" tool generates [expect(locator).toBeVisible()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-be-visible). - "Assert value" tool generates [expect(locator).toHaveValue(value)](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-value). - "Assert text" tool generates [expect(locator).toContainText(text)](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-contain-text). Here is an example of a generated test with assertions: ```js import { test, expect } from '@​playwright/test'; test('test', async ({ page }) => { await page.goto('https://playwright.dev/'); await page.getByRole('link', { name: 'Get started' }).click(); await expect(page.getByLabel('Breadcrumbs').getByRole('list')).toContainText('Installation'); await expect(page.getByLabel('Search')).toBeVisible(); await page.getByLabel('Search').click(); await page.getByPlaceholder('Search docs').fill('locator'); await expect(page.getByPlaceholder('Search docs')).toHaveValue('locator'); }); ``` #### New APIs - Option `reason` in [page.close()](https://playwright.dev/docs/api/class-page#page-close), [browserContext.close()](https://playwright.dev/docs/api/class-browsercontext#browser-context-close) and [browser.close()](https://playwright.dev/docs/api/class-browser#browser-close). Close reason is reported for all operations interrupted by the closure. - Option `firefoxUserPrefs` in [browserType.launchPersistentContext(userDataDir)](https://playwright.dev/docs/api/class-browsertype#browser-type-launch-persistent-context). #### Other Changes - Methods [download.path()](https://playwright.dev/docs/api/class-download#download-path) and [download.createReadStream()](https://playwright.dev/docs/api/class-download#download-create-read-stream) throw an error for failed and cancelled downloads. - Playwright [docker image](https://playwright.dev/docs/docker) now comes with Node.js v20. #### Browser Versions - Chromium 120.0.6099.28 - Mozilla Firefox 119.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 119 - Microsoft Edge 119
swc-project/swc (@​swc/core) ### [`v1.3.106`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13106---2024-01-25) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.105...v1.3.106) ##### Bug Fixes - **(binding/types)** Add `bugfixes` field to EnvConfig ([#​8538](https://togithub.com/swc-project/swc/issues/8538)) ([49ebdf9](https://togithub.com/swc-project/swc/commit/49ebdf9fb7c9228c711c303c822add29bc3c8364)) - **(common)** Fix source map generation with `inputSourceMap` ([#​8546](https://togithub.com/swc-project/swc/issues/8546)) ([043ee85](https://togithub.com/swc-project/swc/commit/043ee85d0852c7c7d6193ad699074a599326aeec)) - **(es/ast)** Add `definite` and `is_override` to `AutoAccessor` ([#​8436](https://togithub.com/swc-project/swc/issues/8436)) ([572bcae](https://togithub.com/swc-project/swc/commit/572bcaefc1b6ba9f92c57a35ede61fec9f3221bd)) - **(es/ast)** Fix definition of `SetterProp` ([#​8314](https://togithub.com/swc-project/swc/issues/8314)) ([bc38ac9](https://togithub.com/swc-project/swc/commit/bc38ac906c427ba060f3da47c64726fe417162ed)) - **(es/codegen)** Set `sourceRoot` of sourcemaps ([#​6086](https://togithub.com/swc-project/swc/issues/6086)) ([ae78669](https://togithub.com/swc-project/swc/commit/ae786692a0d20254bc233472a23035ba1be25e46)) - **(es/compat)** Support vars from `reserved_word` pass ([#​8543](https://togithub.com/swc-project/swc/issues/8543)) ([fc929e9](https://togithub.com/swc-project/swc/commit/fc929e962ba18afa98ae4523e50ff630527a218f)) - **(es/loader)** Don't use browser versions for `jsc.paths` ([#​8548](https://togithub.com/swc-project/swc/issues/8548)) ([fab27da](https://togithub.com/swc-project/swc/commit/fab27dabed3a4d0478b28c86809cc06482b2c45c)) - **(es/minifier)** Fix a bug related to inliner and the variable scoping ([#​8542](https://togithub.com/swc-project/swc/issues/8542)) ([aa70131](https://togithub.com/swc-project/swc/commit/aa70131c558158abd3dcd3fca53dfe444c511ae1)) - **(es/module)** Fix resolving of dependencies ([#​8533](https://togithub.com/swc-project/swc/issues/8533)) ([71fb5c1](https://togithub.com/swc-project/swc/commit/71fb5c12a75bec27cc775069f83b576019d261f2)) - **(es/module)** Fix handling of `*` in `jsc.paths` ([#​8535](https://togithub.com/swc-project/swc/issues/8535)) ([2d8bd9e](https://togithub.com/swc-project/swc/commit/2d8bd9ed894cbc2e0e9063f6a1ab723c3d3bfdc6)) - **(es/quote)** Add support for import phase to quote macro ([#​8536](https://togithub.com/swc-project/swc/issues/8536)) ([71930ff](https://togithub.com/swc-project/swc/commit/71930ffb5625fb58fab3200764ea98b05abab8ba)) ##### Features - **(css/parser)** Implement error reporting for `@value` of CSS Modules ([#​8547](https://togithub.com/swc-project/swc/issues/8547)) ([00619b1](https://togithub.com/swc-project/swc/commit/00619b17082e857d1d5822f04b9ee82b0a295cc3)) - **(es/ast)** Support import phase ([#​8279](https://togithub.com/swc-project/swc/issues/8279)) ([72048ae](https://togithub.com/swc-project/swc/commit/72048ae1ced64b6d9d326e6d436a60b1191bc266)) - **(swc_core)** Expose `preset_env_base` ([#​8537](https://togithub.com/swc-project/swc/issues/8537)) ([793f265](https://togithub.com/swc-project/swc/commit/793f2651a8c44c43cde8b83d4f98eda6e274676c)) ##### Miscellaneous Tasks - **(common)** Update `sourcemap` ([#​8544](https://togithub.com/swc-project/swc/issues/8544)) ([4630426](https://togithub.com/swc-project/swc/commit/4630426d6aa77af992787456e476b8862c25a45e)) ### [`v1.3.105`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13105---2024-01-21) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.104...v1.3.105) ##### Bug Fixes - **(common)** Remove `<` and `>` from `Display` impl of `FileName::Custom` ([#​8530](https://togithub.com/swc-project/swc/issues/8530)) ([014a6cd](https://togithub.com/swc-project/swc/commit/014a6cda8205183f6c3a5e395b6f89cbf7b388b9)) - **(es/codegen)** Fix codegen of `\\0` ([#​8433](https://togithub.com/swc-project/swc/issues/8433)) ([9f1ce3a](https://togithub.com/swc-project/swc/commit/9f1ce3acd6965302afb3a65713f429fd1ddf4a2b)) - **(es/minifier)** Fix a bug in tpl string <-> string logic ([#​8510](https://togithub.com/swc-project/swc/issues/8510)) ([4946a11](https://togithub.com/swc-project/swc/commit/4946a111377cfb7da5eee3df88a06e2365aac0c2)) - **(es/typescript)** Fix panic on invalid jsx pragma ([#​8513](https://togithub.com/swc-project/swc/issues/8513)) ([f40f59b](https://togithub.com/swc-project/swc/commit/f40f59bd707a9d21d8eb41e42b5c6a1c95f0bb7e)) ##### Miscellaneous Tasks - **(preset-env)** Update `browserslist-rs` ([#​8524](https://togithub.com/swc-project/swc/issues/8524)) ([5e40dc7](https://togithub.com/swc-project/swc/commit/5e40dc7d8c7d7b979c3765fbaa2f9c9b41cf49a0)) ##### Testing - **(es/codegen)** Add tests for `@ctrl/tinycolor` ([#​8518](https://togithub.com/swc-project/swc/issues/8518)) ([1c4eb1f](https://togithub.com/swc-project/swc/commit/1c4eb1f54fbecef8f955172cba725c27eb4e2b7e)) - **(es/codegen)** Add a JS test for ascii-only mode ([#​8519](https://togithub.com/swc-project/swc/issues/8519)) ([974c6a0](https://togithub.com/swc-project/swc/commit/974c6a0036c5ef3e3d12c81c7310758046ff0a0d)) - **(es/minifier)** Add a test for a fixed issue ([#​8520](https://togithub.com/swc-project/swc/issues/8520)) ([8fac2bb](https://togithub.com/swc-project/swc/commit/8fac2bb03ce63eb66774fa007285fa8ae8575038)) - **(es/module)** Add a test for a fixed issue ([#​8521](https://togithub.com/swc-project/swc/issues/8521)) ([4b4a0a2](https://togithub.com/swc-project/swc/commit/4b4a0a244deef02a86165b8fd0a070408abfa654)) ### [`v1.3.104`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13104---2024-01-17) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.103...v1.3.104) ##### Bug Fixes - **(es)** Fix plugin template & restore `test!` as `test_inline!` ([#​8508](https://togithub.com/swc-project/swc/issues/8508)) ([10449e0](https://togithub.com/swc-project/swc/commit/10449e08d9459af2c313eb7146005bcff016d169)) - **(es/systemjs)** Handle top level this ([#​8506](https://togithub.com/swc-project/swc/issues/8506)) ([0f94c8c](https://togithub.com/swc-project/swc/commit/0f94c8cf051f7a7526f6a3e7742fc079146e0af2)) - **(plugin)** Set `swc_common::errors::HANDLER` while invoking plugins ([#​8511](https://togithub.com/swc-project/swc/issues/8511)) ([ba753f1](https://togithub.com/swc-project/swc/commit/ba753f12885c4c3062afa5782dc7f6652981a659)) ### [`v1.3.103`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13103---2024-01-15) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.102...v1.3.103) ##### Bug Fixes - **(binding/types)** Add type for `decoratorVersion` ([#​8468](https://togithub.com/swc-project/swc/issues/8468)) ([79438e6](https://togithub.com/swc-project/swc/commit/79438e6dc24735fae1adc98e9a74ab6cecd502de)) - **(es/codegen)** Emit abstract keyword ([#​8479](https://togithub.com/swc-project/swc/issues/8479)) ([a12eaae](https://togithub.com/swc-project/swc/commit/a12eaae0e544d7e485ce7ce11e56591e7ff34108)) - **(es/codegen)** Emit declare keyword for class properties ([#​8478](https://togithub.com/swc-project/swc/issues/8478)) ([2076ef8](https://togithub.com/swc-project/swc/commit/2076ef8f359941ad511c860000ec3eaa74410cac)) - **(es/codegen)** Emit implements clause with commas ([#​8477](https://togithub.com/swc-project/swc/issues/8477)) ([d98a282](https://togithub.com/swc-project/swc/commit/d98a28290b1c439abbd0cdec30436ef25a256ebd)) - **(es/codegen)** Emit `?` for an optional computed property ([#​8481](https://togithub.com/swc-project/swc/issues/8481)) ([e0bdc0f](https://togithub.com/swc-project/swc/commit/e0bdc0f7c210c73f0291ab72e380743fe5f03b72)) - **(es/codegen)** Fix codegen of a property key in ascii-only mode ([#​8493](https://togithub.com/swc-project/swc/issues/8493)) ([8d9bf4c](https://togithub.com/swc-project/swc/commit/8d9bf4cfaaeef9a9f3307b53c3349bff1359ccdf)) - **(es/compat)** Set inserted var inside export class in destructing ([#​8470](https://togithub.com/swc-project/swc/issues/8470)) ([4416077](https://togithub.com/swc-project/swc/commit/4416077f4ac1afb74575b9a0e836bb66b8dc8b9a)) - **(es/compat)** Correctly handle `this` in arrow function parameters ([#​8489](https://togithub.com/swc-project/swc/issues/8489)) ([52a8f05](https://togithub.com/swc-project/swc/commit/52a8f05fe419e905465e31b493d2007a1511276c)) - **(es/minifier)** Correctly escape more characters ([#​8490](https://togithub.com/swc-project/swc/issues/8490)) ([f7c4934](https://togithub.com/swc-project/swc/commit/f7c4934e591bc14bc965cb28bc6b9ca1d8ac1350)) - **(es/module)** Fix resolving of `.js` files ([#​8480](https://togithub.com/swc-project/swc/issues/8480)) ([b70e96f](https://togithub.com/swc-project/swc/commit/b70e96ffe93d3ed59420d5c66a0a4258f6bf1de7)) - **(es/parser)** Correctly parse the keyword ([#​8483](https://togithub.com/swc-project/swc/issues/8483)) ([740e6f3](https://togithub.com/swc-project/swc/commit/740e6f390a8a5327cc320c9582dbe8afbc8b5a27)) - **(es/resolver)** Resolve top-level `undefined`, `NaN`, and `Infinity` correctly ([#​8471](https://togithub.com/swc-project/swc/issues/8471)) ([82bd807](https://togithub.com/swc-project/swc/commit/82bd8070cb276d8020ba688f1b781b7b46b6ce0c)) ##### Documentation - Replace `string_cache` with `hstr` in `ARCHITECTURE.md` ([#​8487](https://togithub.com/swc-project/swc/issues/8487)) ([abd7c51](https://togithub.com/swc-project/swc/commit/abd7c51583dff82816a910d46e894eddea3c1aff)) ##### Features - **(html/parser)** Allow self-closing `/>` on non-void HTML elements via a flag ([#​8460](https://togithub.com/swc-project/swc/issues/8460)) ([566063d](https://togithub.com/swc-project/swc/commit/566063dca5fe73834cdf5e0acf7c7f344a9806a5)) ##### Refactor - **(css/parser)** Remove value normalization ([#​8434](https://togithub.com/swc-project/swc/issues/8434)) ([85be8a4](https://togithub.com/swc-project/swc/commit/85be8a4de1d8407421aadeb5769d414b9938f693)) ##### Testing - **(es/minifier)** Enable non esm mode for tests ([#​8472](https://togithub.com/swc-project/swc/issues/8472)) ([1120336](https://togithub.com/swc-project/swc/commit/1120336f23a75e8c236f088d56b6dea04311d2ed)) - **(es/minifier)** Enable script mode for `terser_exec` and `mangle` ([#​8474](https://togithub.com/swc-project/swc/issues/8474)) ([b676e75](https://togithub.com/swc-project/swc/commit/b676e75cdd8ae6b4b3637152e39e982637221701)) ### [`v1.3.102`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13102---2023-12-31) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.101...v1.3.102) ##### Bug Fixes - **(css/parser)** Fix parsing of `hsla(var(--foo), 1)` ([#​8443](https://togithub.com/swc-project/swc/issues/8443)) ([d89b60a](https://togithub.com/swc-project/swc/commit/d89b60a000e6a40a6d624ba3903743f9c80170d1)) - **(es)** Apply `paren_remover` for minify ([#​8442](https://togithub.com/swc-project/swc/issues/8442)) ([e68720a](https://togithub.com/swc-project/swc/commit/e68720a76cf8146befa26ff147a812e9ba2959aa)) - **(es/codegen)** Fix codegen of type-only export declarations ([#​8447](https://togithub.com/swc-project/swc/issues/8447)) ([65dec90](https://togithub.com/swc-project/swc/commit/65dec905c076c8e95341ada23b140a538d37abce)) - **(es/codegen)** Emit `override` keyword ([#​8449](https://togithub.com/swc-project/swc/issues/8449)) ([0dd96f8](https://togithub.com/swc-project/swc/commit/0dd96f85e2215f5c18849bdfb150dc95006399e8)) - **(es/compat)** Use correct `span.lo` in class transforms ([#​8439](https://togithub.com/swc-project/swc/issues/8439)) ([a06d5b2](https://togithub.com/swc-project/swc/commit/a06d5b23416d8f4f45334e5edaed3da53f9f5777)) - **(es/minifier)** Add WeakRef as a safe global reference ([#​8458](https://togithub.com/swc-project/swc/issues/8458)) ([d681785](https://togithub.com/swc-project/swc/commit/d681785b428b7958e7652dc3a7c709ad85b298f9)) - **(es/parser)** Disallowing await as an identifier in class static block ([#​8450](https://togithub.com/swc-project/swc/issues/8450)) ([0b188cc](https://togithub.com/swc-project/swc/commit/0b188ccdff487bc5c344b0e70b102ce1d9ba308d)) - **(es/renamer)** Correctly check top level ([#​8456](https://togithub.com/swc-project/swc/issues/8456)) ([1e44e57](https://togithub.com/swc-project/swc/commit/1e44e57a095c151fc52685b9580c083620342fe7)) ### [`v1.3.101`](https://togithub.com/swc-project/swc/compare/v1.3.100...v1.3.101) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.100...v1.3.101) ### [`v1.3.100`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#13100---2023-11-30) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.99...v1.3.100) ##### Bug Fixes - **(es/codegen)** Fix panic due to `\\ud` ([#​8346](https://togithub.com/swc-project/swc/issues/8346)) ([1891afa](https://togithub.com/swc-project/swc/commit/1891afa2ad27f183e56adcd288dd3a1ae0c5b367)) - **(es/codegen)** Wrap quote for length greater than one ([#​8351](https://togithub.com/swc-project/swc/issues/8351)) ([2cdea3f](https://togithub.com/swc-project/swc/commit/2cdea3fbeaf4a2dac662a4d019982943c0a896ba)) - **(es/decorators)** Resolve enum for `design:returntype` ([#​8320](https://togithub.com/swc-project/swc/issues/8320)) ([91ef7c9](https://togithub.com/swc-project/swc/commit/91ef7c9415c0efed347d3faf20653749fb7a6b15)) - **(es/fixer)** Wrap yield expression in await expression ([#​8357](https://togithub.com/swc-project/swc/issues/8357)) ([ff719f0](https://togithub.com/swc-project/swc/commit/ff719f0cdd3cf79e7afa1c136243e6fa53c5abe3)) - **(es/minifier)** Fix `if_return` bug related to `await` and `yield` ([#​8328](https://togithub.com/swc-project/swc/issues/8328)) ([01e2c7f](https://togithub.com/swc-project/swc/commit/01e2c7fc5ab71d55c522e48eae9e3e08d8bf418d)) - **(es/minifier)** Give up terminate merge if in `try` with `finally` ([#​8342](https://togithub.com/swc-project/swc/issues/8342)) ([ed5a9b3](https://togithub.com/swc-project/swc/commit/ed5a9b3f2e5b7035f657a8ea3cb38a27413369b2)) - **(es/parser)** Wrap with `OptChain` across `TsNonNull` ([#​8332](https://togithub.com/swc-project/swc/issues/8332)) ([8af6ffb](https://togithub.com/swc-project/swc/commit/8af6ffb1ddaf60b997163aaf80abfb528eb2ca9c)) - **(es/parser)** Fix conditional compilation ([#​8343](https://togithub.com/swc-project/swc/issues/8343)) ([a423681](https://togithub.com/swc-project/swc/commit/a423681df897956e58650b3acc9f2331887e42e8)) - **(es/react)** Make jsx with single spread child static ([#​8339](https://togithub.com/swc-project/swc/issues/8339)) ([58568fa](https://togithub.com/swc-project/swc/commit/58568fa23be932ed8f3858c24962973bdc4b8057)) - **(es/renamer)** Allow `globalThis` to be shadowed ([#​8327](https://togithub.com/swc-project/swc/issues/8327)) ([3dd73a3](https://togithub.com/swc-project/swc/commit/3dd73a3cd8fddd9e19dc85c2a2bf785b585b5b9a)) - **(es/typescript)** Handle shebang with jsx pragma ([#​8318](https://togithub.com/swc-project/swc/issues/8318)) ([c25601d](https://togithub.com/swc-project/swc/commit/c25601dec21d7293ad48549a1f49ccd161f9da72)) ##### Miscellaneous Tasks - **(css/linter)** Document rules require porting ([#​8352](https://togithub.com/swc-project/swc/issues/8352)) ([55da0bb](https://togithub.com/swc-project/swc/commit/55da0bb9ddbb661a75e24162b7bdd63d2549dca3)) ##### Build - **(cargo)** Update `vergen` to `v8` ([#​8325](https://togithub.com/swc-project/swc/issues/8325)) ([1315615](https://togithub.com/swc-project/swc/commit/13156157ebf9434fef8ed04ee4cf59c22421a3fa)) ### [`v1.3.99`](https://togithub.com/swc-project/swc/compare/v1.3.96...v1.3.99) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.96...v1.3.99)
evanw/esbuild (esbuild) ### [`v0.19.12`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01912) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.11...v0.19.12) - The "preserve" JSX mode now preserves JSX text verbatim ([#​3605](https://togithub.com/evanw/esbuild/issues/3605)) The [JSX specification](https://facebook.github.io/jsx/) deliberately doesn't specify how JSX text is supposed to be interpreted and there is no canonical way to interpret JSX text. Two most popular interpretations are Babel and TypeScript. Yes [they are different](https://twitter.com/jarredsumner/status/1456118847937781764) (esbuild [deliberately follows TypeScript](https://twitter.com/evanwallace/status/1456122279453208576) by the way). Previously esbuild normalized text to the TypeScript interpretation when the "preserve" JSX mode is active. However, "preserve" should arguably reproduce the original JSX text verbatim so that whatever JSX transform runs after esbuild is free to interpret it however it wants. So with this release, esbuild will now pass JSX text through unmodified: ```jsx // Original code let el = some text {foo} more text // Old output (with --loader=jsx --jsx=preserve) let el = {" some text"} {foo} {"more text "} ; // New output (with --loader=jsx --jsx=preserve) let el = some text {foo} more text ; ``` - Allow JSX elements as JSX attribute values JSX has an obscure feature where you can use JSX elements in attribute position without surrounding them with `{...}`. It looks like this: ```jsx let el =
/>; ``` I think I originally didn't implement it even though it's part of the [JSX specification](https://facebook.github.io/jsx/) because it previously didn't work in TypeScript (and potentially also in Babel?). However, support for it was [silently added in TypeScript 4.8](https://togithub.com/microsoft/TypeScript/pull/47994) without me noticing and Babel has also since fixed their [bugs regarding this feature](https://togithub.com/babel/babel/pull/6006). So I'm adding it to esbuild too now that I know it's widely supported. Keep in mind that there is some ongoing discussion about [removing this feature from JSX](https://togithub.com/facebook/jsx/issues/53). I agree that the syntax seems out of place (it does away with the elegance of "JSX is basically just XML with `{...}` escapes" for something arguably harder to read, which doesn't seem like a good trade-off), but it's in the specification and TypeScript and Babel both implement it so I'm going to have esbuild implement it too. However, I reserve the right to remove it from esbuild if it's ever removed from the specification in the future. So use it with caution. - Fix a bug with TypeScript type parsing ([#​3574](https://togithub.com/evanw/esbuild/issues/3574)) This release fixes a bug with esbuild's TypeScript parser where a conditional type containing a union type that ends with an infer type that ends with a constraint could fail to parse. This was caused by the "don't parse a conditional type" flag not getting passed through the union type parser. Here's an example of valid TypeScript code that previously failed to parse correctly: ```ts type InferUnion = T extends { a: infer U extends number } | infer U extends number ? U : never ``` ### [`v0.19.11`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01911) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.10...v0.19.11) - Fix TypeScript-specific class transform edge case ([#​3559](https://togithub.com/evanw/esbuild/issues/3559)) The previous release introduced an optimization that avoided transforming `super()` in the class constructor for TypeScript code compiled with `useDefineForClassFields` set to `false` if all class instance fields have no initializers. The rationale was that in this case, all class instance fields are omitted in the output so no changes to the constructor are needed. However, if all of this is the case *and* there are `#private` instance fields with initializers, those private instance field initializers were still being moved into the constructor. This was problematic because they were being inserted before the call to `super()` (since `super()` is now no longer transformed in that case). This release introduces an additional optimization that avoids moving the private instance field initializers into the constructor in this edge case, which generates smaller code, matches the TypeScript compiler's output more closely, and avoids this bug: ```ts // Original code class Foo extends Bar { #private = 1; public: any; constructor() { super(); } } // Old output (with esbuild v0.19.9) class Foo extends Bar { constructor() { super(); this.#private = 1; } #private; } // Old output (with esbuild v0.19.10) class Foo extends Bar { constructor() { this.#private = 1; super(); } #private; } // New output class Foo extends Bar { #private = 1; constructor() { super(); } } ``` - Minifier: allow reording a primitive past a side-effect ([#​3568](https://togithub.com/evanw/esbuild/issues/3568)) The minifier previously allowed reordering a side-effect past a primitive, but didn't handle the case of reordering a primitive past a side-effect. This additional case is now handled: ```js // Original code function f() { let x = false; let y = x; const boolean = y; let frag = $.template(`

hello world

`); return frag; } // Old output (with --minify) function f(){const e=!1;return $.template(`

hello world

`)} // New output (with --minify) function f(){return $.template('

hello world

')} ``` - Minifier: consider properties named using known `Symbol` instances to be side-effect free ([#​3561](https://togithub.com/evanw/esbuild/issues/3561)) Many things in JavaScript can have side effects including property accesses and ToString operations, so using a symbol such as `Symbol.iterator` as a computed property name is not obviously side-effect free. This release adds a special case for known `Symbol` instances so that they are considered side-effect free when used as property names. For example, this class declaration will now be considered side-effect free: ```js class Foo { *[Symbol.iterator]() { } } ``` - Provide the `stop()` API in node to exit esbuild's child process ([#​3558](https://togithub.com/evanw/esbuild/issues/3558)) You can now call `stop()` in esbuild's node API to exit esbuild's child process to reclaim the resources used. It only makes sense to do this for a long-lived node process when you know you will no longer be making any more esbuild API calls. It is not necessary to call this to allow node to exit, and it's advantageous to not call this in between calls to esbuild's API as sharing a single long-lived esbuild child process is more efficient than re-creating a new esbuild child process for every API call. This API call used to exist but was removed in [version 0.9.0](https://togithub.com/evanw/esbuild/releases/v0.9.0). This release adds it back due to a user request. ### [`v0.19.10`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#01910) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.9...v0.19.10) - Fix glob imports in TypeScript files ([#​3319](https://togithub.com/evanw/esbuild/issues/3319)) This release fixes a problem where bundling a TypeScript file containing a glob import could emit a call to a helper function that doesn't exist. The problem happened because esbuild's TypeScript transformation removes unused imports (which is required for correctness, as they may be type-only imports) and esbuild's glob import transformation wasn't correctly marking the imported helper function as used. This wasn't caught earlier because most of esbuild's glob import tests were written in JavaScript, not in TypeScript. - Fix `require()` glob imports with bundling disabled ([#​3546](https://togithub.com/evanw/esbuild/issues/3546)) Previously `require()` calls containing glob imports were incorrectly transformed when bundling was disabled. All glob imports should only be transformed when bundling is enabled. This bug has been fixed. - Fix a panic when transforming optional chaining with `define` ([#​3551](https://togithub.com/evanw/esbuild/issues/3551), [#​3554](https://togithub.com/evanw/esbuild/pull/3554)) This release fixes a case where esbuild could crash with a panic, which was triggered by using `define` to replace an expression containing an optional chain. Here is an example: ```js // Original code console.log(process?.env.SHELL) // Old output (with --define:process.env={}) /* panic: Internal error (while parsing "") */ // New output (with --define:process.env={}) var define_process_env_default = {}; console.log(define_process_env_default.SHELL); ``` This fix was contributed by [@​hi-ogawa](https://togithub.com/hi-ogawa). - Work around a bug in node's CommonJS export name detector ([#​3544](https://togithub.com/evanw/esbuild/issues/3544)) The export names of a CommonJS module are dynamically-determined at run time because CommonJS exports are properties on a mutable object. But the export names of an ES module are statically-determined at module instantiation time by using `import` and `export` syntax and cannot be changed at run time. When you import a CommonJS module into an ES module in node, node scans over the source code to attempt to detect the set of export names that the CommonJS module will end up using. That statically-determined set of names is used as the set of names that the ES module is allowed to import at module instantiation time. However, this scan appears to have bugs (or at least, can cause false positives) because it doesn't appear to do any scope analysis. Node will incorrectly consider the module to export something even if the assignment is done to a local variable instead of to the module-level `exports` object. For example: ```js // confuseNode.js exports.confuseNode = function(exports) { // If this local is called "exports", node incorrectly // thinks this file has an export called "notAnExport". exports.notAnExport = function() { }; }; ``` You can see that node incorrectly thinks the file `confuseNode.js` has an export called `notAnExport` when that file is loaded in an ES module context: ```console $ node -e 'import("./confuseNode.js").then(console.log)' [Module: null prototype] { confuseNode: [Function (anonymous)], default: { confuseNode: [Function (anonymous)] }, notAnExport: undefined } ``` To avoid this, esbuild will now rename local variables that use the names `exports` and `module` when generating CommonJS output for the `node` platform. - Fix the return value of esbuild's `super()` shim ([#​3538](https://togithub.com/evanw/esbuild/issues/3538)) Some people write `constructor` methods that use the return value of `super()` instead of using `this`. This isn't too common because [TypeScript doesn't let you do that](https://togithub.com/microsoft/TypeScript/issues/37847) but it can come up when writing JavaScript. Previously esbuild's class lowering transform incorrectly transformed the return value of `super()` into `undefined`. With this release, the return value of `super()` will now be `this` instead: ```js // Original code class Foo extends Object { field constructor() { console.log(typeof super()) } } new Foo // Old output (with --target=es6) class Foo extends Object { constructor() { var __super = (...args) => { super(...args); __publicField(this, "field"); }; console.log(typeof __super()); } } new Foo(); // New output (with --target=es6) class Foo extends Object { constructor() { var __super = (...args) => { super(...args); __publicField(this, "field"); return this; }; console.log(typeof __super()); } } new Foo(); ``` - Terminate the Go GC when esbuild's `stop()` API is called ([#​3552](https://togithub.com/evanw/esbuild/issues/3552)) If you use esbuild with WebAssembly and pass the `worker: false` flag to `esbuild.initialize()`, then esbuild will run the WebAssembly module on the main thread. If you do this within a Deno test and that test calls `esbuild.stop()` to clean up esbuild's resources, Deno may complain that a `setTimeout()` call lasted past the end of the test. This happens when the Go is in the middle of a garbage collection pass and has scheduled additional ongoing garbage collection work. Normally calling `esbuild.stop()` will terminate the web worker that the WebAssembly module runs in, which will terminate the Go GC, but that doesn't happen if you disable the web worker with `worker: false`. With this release, esbuild will now attempt to terminate the Go GC in this edge case by calling `clearTimeout()` on these pending timeouts. - Apply `/* @​__NO_SIDE_EFFECTS__ */` on tagged template literals ([#​3511](https://togithub.com/evanw/esbuild/issues/3511)) Tagged template literals that reference functions annotated with a `@__NO_SIDE_EFFECTS__` comment are now able to be removed via tree-shaking if the result is unused. This is a convention from [Rollup](https://togithub.com/rollup/rollup/pull/5024). Here is an example: ```js // Original code const html = /* @​__NO_SIDE_EFFECTS__ */ (a, ...b) => ({ a, b }) html`
remove` x = html`keep` // Old output (with --tree-shaking=true) const html = /* @​__NO_SIDE_EFFECTS__ */ (a, ...b) => ({ a, b }); html`remove`; x = html`keep`; // New output (with --tree-shaking=true) const html = /* @​__NO_SIDE_EFFECTS__ */ (a, ...b) => ({ a, b }); x = html`keep`; ``` Note that this feature currently only works within a single file, so it's not especially useful. This feature does not yet work across separate files. I still recommend using `@__PURE__` annotations instead of this feature, as they have wider tooling support. The drawback of course is that `@__PURE__` annotations need to be added at each call site, not at the declaration, and for non-call expressions such as template literals you need to wrap the expression in an IIFE (immediately-invoked function expression) to create a call expression to apply the `@__PURE__` annotation to. - Publish builds for IBM AIX PowerPC 64-bit ([#​3549](https://togithub.com/evanw/esbuild/issues/3549)) This release publishes a binary executable to npm for IBM AIX PowerPC 64-bit, which means that in theory esbuild can now be installed in that environment with `npm install esbuild`. This hasn't actually been tested yet. If you have access to such a system, it would be helpful to confirm whether or not doing this actually works. ### [`v0.19.9`](https://togithub.com/evanw/esbuild/blob/HEAD/CHANGELOG.md#0199) [Compare Source](https://togithub.com/evanw/esbuild/compare/v0.19.8...v0.19.9) - Add support for transforming new CSS gradient syntax for older browsers The specification called [CSS Images Module Level 4](https://www.w3.org/TR/css-images-4/) introduces new CSS gradient syntax for customizing how the browser interpolates colors in between color stops. You can now cont

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.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 5 months 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.