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

Closed renovate[bot] closed 1 month ago

renovate[bot] commented 4 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@emotion/react (source) ^11.11.3 -> ^11.11.4 age adoption passing confidence
@emotion/styled (source) ^11.11.0 -> ^11.11.5 age adoption passing confidence
@generouted/react-router ^1.18.2 -> ^1.19.4 age adoption passing confidence
@mdx-js/rollup (source) ^3.0.0 -> ^3.0.1 age adoption passing confidence
@playwright/test (source) ^1.41.1 -> ^1.44.0 age adoption passing confidence
@swc/core (source) ^1.3.107 -> ^1.5.7 age adoption passing confidence
@swc/plugin-styled-components ^1.5.115 -> ^1.5.122 age adoption passing confidence
@types/react (source) ^18.2.48 -> ^18.3.2 age adoption passing confidence
@types/react-dom (source) ^18.2.18 -> ^18.3.0 age adoption passing confidence
esbuild ^0.20.0 -> ^0.21.3 age adoption passing confidence
picocolors ^1.0.0 -> ^1.0.1 age adoption passing confidence
pnpm (source) 8.15.1 -> 8.15.8 age adoption passing confidence
react (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-dom (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-is (source) ^18.2.0 -> ^18.3.1 age adoption passing confidence
react-router-dom (source) ^6.21.3 -> ^6.23.1 age adoption passing confidence
styled-components (source) ^6.1.8 -> ^6.1.11 age adoption passing confidence
typescript (source) ^5.3.3 -> ^5.4.5 age adoption passing confidence
vite (source) ^5.0.12 -> ^5.2.11 age adoption passing confidence

Release Notes

emotion-js/emotion (@​emotion/react) ### [`v11.11.4`](https://togithub.com/emotion-js/emotion/releases/tag/%40emotion/react%4011.11.4) [Compare Source](https://togithub.com/emotion-js/emotion/compare/@emotion/react@11.11.3...@emotion/react@11.11.4) ##### Patch Changes - [#​3159](https://togithub.com/emotion-js/emotion/pull/3159) [`5b82631d`](https://togithub.com/emotion-js/emotion/commit/5b82631d79a58e87e560024d724b849f3921b6e0) Thanks [@​iegik](https://togithub.com/iegik)! - Renamed an internal `hasOwnProperty` to `hasOwn`. This avoids problems in CommonJS environments when the consumer tries to prevent prototype pollution with `Object.freeze(Object.prototype)`.
oedotme/generouted (@​generouted/react-router) ### [`v1.19.4`](https://togithub.com/oedotme/generouted/releases/tag/v1.19.4) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.19.3...v1.19.4) #### Commits - chore: update packages [`752f9ac`](https://togithub.com/oedotme/generouted/commit/752f9ac) by [@​oedotme](https://togithub.com/oedotme) - feat: export routes tree for tanstack-react-router [`7fa8587`](https://togithub.com/oedotme/generouted/commit/7fa8587) by [@​oedotme](https://togithub.com/oedotme) closes [#​168](https://togithub.com/oedotme/generouted/issues/168) - chore: update packages [`0d99971`](https://togithub.com/oedotme/generouted/commit/0d99971) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.19.3...v1.19.4 ### [`v1.19.3`](https://togithub.com/oedotme/generouted/releases/tag/v1.19.3) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.19.2...v1.19.3) #### Commits - fix: exclude ignored files from glob for bundling [`8dfbc63`](https://togithub.com/oedotme/generouted/commit/8dfbc63) by [@​oedotme](https://togithub.com/oedotme) closes [#​133](https://togithub.com/oedotme/generouted/issues/133) - docs: add new faq section [`56d6402`](https://togithub.com/oedotme/generouted/commit/56d6402) by [@​oedotme](https://togithub.com/oedotme) - chore: update packages [`22beeaa`](https://togithub.com/oedotme/generouted/commit/22beeaa) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.19.2...v1.19.3 ### [`v1.19.2`](https://togithub.com/oedotme/generouted/releases/tag/v1.19.2) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.19.1...v1.19.2) #### Commits - chore: empty modals export w/ deprecation warning [`03d4b27`](https://togithub.com/oedotme/generouted/commit/03d4b27) by [@​oedotme](https://togithub.com/oedotme) closes [#​163](https://togithub.com/oedotme/generouted/issues/163) - docs: remove modals export [`b3dd185`](https://togithub.com/oedotme/generouted/commit/b3dd185) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.19.1...v1.19.2 ### [`v1.19.1`](https://togithub.com/oedotme/generouted/releases/tag/v1.19.1) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.19.0...v1.19.1) #### Commits - feat: include modals when there's no \_app layout [`2261d56`](https://togithub.com/oedotme/generouted/commit/2261d56) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.19.0...v1.19.1 ### [`v1.19.0`](https://togithub.com/oedotme/generouted/releases/tag/v1.19.0) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.8...v1.19.0) #### Breaking Changes 🚨 `Modals` export is now removed from the following integrations: - `@generouted/react-router` - `@generouted/react-router/lazy` - `@generouted/solid-router` - `@generouted/solid-router/lazy` ##### `` component is now included internally within the `` component by default This export was usually used at the highest available layout route `src/pages/_app.tsx` (as it requires the router context) but it was causing initialization/circular errors as the `_app.tsx` file is imported by the file that exports `Modals` component. This is reproducible by triggering HMR updates when `_app.tsx` is modified. Also in some cases it cause kind of infinite revalidation triggered by this error. ```diff -import { Modals } from '@​generouted/react-router' -import { Modals } from '@​generouted/react-router/lazy' -import { Modals } from '@​generouted/solid-router' -import { Modals } from '@​generouted/solid-router/lazy' export default function App() { return (
...
-
) } ``` #### Commits - feat!: remove modals export to fix circular and initialization errors [`741a5e8`](https://togithub.com/oedotme/generouted/commit/741a5e8) by [@​oedotme](https://togithub.com/oedotme) - chore: update packages [`3d75bdd`](https://togithub.com/oedotme/generouted/commit/3d75bdd) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.8...v1.19.0 ### [`v1.18.8`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.8) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.7...v1.18.8) #### Commits - feat: update tanstack-react-router deprecations [`303123e`](https://togithub.com/oedotme/generouted/commit/303123e) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.7...v1.18.8 ### [`v1.18.7`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.7) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.6...v1.18.7) #### Commits - feat: move router definition out of component scope [`c75793c`](https://togithub.com/oedotme/generouted/commit/c75793c) by [@​oedotme](https://togithub.com/oedotme) closes [#​159](https://togithub.com/oedotme/generouted/issues/159) - chore: update packages [`9b0f7c1`](https://togithub.com/oedotme/generouted/commit/9b0f7c1) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.6...v1.18.7 ### [`v1.18.6`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.6) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.5...v1.18.6) #### Commits - feat: resolve modals at params for open and close [`73d1c62`](https://togithub.com/oedotme/generouted/commit/73d1c62) by [@​oedotme](https://togithub.com/oedotme) closes [#​160](https://togithub.com/oedotme/generouted/issues/160) - chore: update npmrc example config [`45bb2fb`](https://togithub.com/oedotme/generouted/commit/45bb2fb) by [@​oedotme](https://togithub.com/oedotme) - chore: run pnpm install after version bump [`82c05ba`](https://togithub.com/oedotme/generouted/commit/82c05ba) by [@​oedotme](https://togithub.com/oedotme) - chore: npmrc example with pnpm config [`4a71a1c`](https://togithub.com/oedotme/generouted/commit/4a71a1c) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.5...v1.18.6 ### [`v1.18.5`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.5) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.4...v1.18.5) #### Commits - chore: update packages [`935aef9`](https://togithub.com/oedotme/generouted/commit/935aef9) by [@​oedotme](https://togithub.com/oedotme) - feat: export type helpers for components and hooks [`255f4be`](https://togithub.com/oedotme/generouted/commit/255f4be) by [@​oedotme](https://togithub.com/oedotme) - feat: synchronous prettier formatting ([#​152](https://togithub.com/oedotme/generouted/issues/152)) [`af2ae09`](https://togithub.com/oedotme/generouted/commit/af2ae09) by [@​timothympace](https://togithub.com/timothympace) - docs: update react-router example link ([#​153](https://togithub.com/oedotme/generouted/issues/153)) [`11534c6`](https://togithub.com/oedotme/generouted/commit/11534c6) by [@​gregfenton](https://togithub.com/gregfenton) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.4...v1.18.5 ### [`v1.18.4`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.4) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.3...v1.18.4) #### Commits - chore: update packages [`0a1670c`](https://togithub.com/oedotme/generouted/commit/0a1670c) by [@​oedotme](https://togithub.com/oedotme) - fix: react-router hooks re-rendering ([#​147](https://togithub.com/oedotme/generouted/issues/147)) [`efc3868`](https://togithub.com/oedotme/generouted/commit/efc3868) by [@​VriskaSerket51](https://togithub.com/VriskaSerket51) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.3...v1.18.4 ### [`v1.18.3`](https://togithub.com/oedotme/generouted/releases/tag/v1.18.3) [Compare Source](https://togithub.com/oedotme/generouted/compare/v1.18.2...v1.18.3) #### Commits - chore: update packages [`2d815b4`](https://togithub.com/oedotme/generouted/commit/2d815b4) by [@​oedotme](https://togithub.com/oedotme) - fix: use async buildStart hook functions ([#​148](https://togithub.com/oedotme/generouted/issues/148)) [`9baa170`](https://togithub.com/oedotme/generouted/commit/9baa170) by [@​timothympace](https://togithub.com/timothympace) closes [#​149](https://togithub.com/oedotme/generouted/issues/149) - chore: use specified version w/ explorer as of examples [`0ef088d`](https://togithub.com/oedotme/generouted/commit/0ef088d) by [@​oedotme](https://togithub.com/oedotme) - chore: remove unnecessary pnpm overrides config [`0c93e08`](https://togithub.com/oedotme/generouted/commit/0c93e08) by [@​oedotme](https://togithub.com/oedotme) **Changelog**: https://github.com/oedotme/generouted/compare/v1.18.2...v1.18.3
mdx-js/mdx (@​mdx-js/rollup) ### [`v3.0.1`](https://togithub.com/mdx-js/mdx/releases/tag/3.0.1) [Compare Source](https://togithub.com/mdx-js/mdx/compare/3.0.0...3.0.1) ##### Fix - [`49fd094`](https://togithub.com/mdx-js/mdx/commit/49fd094a) Fix generated JSX pragmas for new babel by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2438](https://togithub.com/mdx-js/mdx/pull/2438) - [`d1fface`](https://togithub.com/mdx-js/mdx/commit/d1fface1) Refactor to handle uncaught webpack errors by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2398](https://togithub.com/mdx-js/mdx/pull/2398) ##### Types - [`c03e16c`](https://togithub.com/mdx-js/mdx/commit/c03e16c6) Add declaration maps - [`85c5dd0`](https://togithub.com/mdx-js/mdx/commit/85c5dd05) Fix webpack loader types by [@​remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mdx-js/mdx/pull/2386](https://togithub.com/mdx-js/mdx/pull/2386) ##### Site - [`38f7a5c`](https://togithub.com/mdx-js/mdx/commit/38f7a5c9) Fix reset of playground render errors by [@​ManasMakde](https://togithub.com/ManasMakde) in [https://github.com/mdx-js/mdx/pull/2392](https://togithub.com/mdx-js/mdx/pull/2392) - [`680445d`](https://togithub.com/mdx-js/mdx/commit/680445df) Add note on broken react runtime types by [@​ky1ejs](https://togithub.com/ky1ejs) in [https://github.com/mdx-js/mdx/pull/2383](https://togithub.com/mdx-js/mdx/pull/2383) **Full Changelog**: https://github.com/mdx-js/mdx/compare/3.0.0...3.0.1
microsoft/playwright (@​playwright/test) ### [`v1.44.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.44.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.43.1...v1.44.0) #### New APIs **Accessibility assertions** - [expect(locator).toHaveAccessibleName()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-accessible-name) checks if the element has the specified accessible name: ```js const locator = page.getByRole('button'); await expect(locator).toHaveAccessibleName('Submit'); ``` - [expect(locator).toHaveAccessibleDescription()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-accessible-description) checks if the element has the specified accessible description: ```js const locator = page.getByRole('button'); await expect(locator).toHaveAccessibleDescription('Upload a photo'); ``` - [expect(locator).toHaveRole()](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-role) checks if the element has the specified ARIA role: ```js const locator = page.getByTestId('save-button'); await expect(locator).toHaveRole('button'); ``` **Locator handler** - After executing the handler added with [page.addLocatorHandler()](https://playwright.dev/docs/api/class-page#page-add-locator-handler), Playwright will now wait until the overlay that triggered the handler is not visible anymore. You can opt-out of this behavior with the new `noWaitAfter` option. - You can use new `times` option in [page.addLocatorHandler()](https://playwright.dev/docs/api/class-page#page-add-locator-handler) to specify maximum number of times the handler should be run. - The handler in [page.addLocatorHandler()](https://playwright.dev/docs/api/class-page#page-add-locator-handler) now accepts the locator as argument. - New [page.removeLocatorHandler()](https://playwright.dev/docs/api/class-page#page-remove-locator-handler) method for removing previously added locator handlers. ```js const locator = page.getByText('This interstitial covers the button'); await page.addLocatorHandler(locator, async overlay => { await overlay.locator('#close').click(); }, { times: 3, noWaitAfter: true }); // Run your tests that can be interrupted by the overlay. // ... await page.removeLocatorHandler(locator); ``` **Miscellaneous options** - [`multipart`](https://playwright.dev/docs/api/class-apirequestcontext#api-request-context-fetch-option-multipart) option in `apiRequestContext.fetch()` now accepts [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) and supports repeating fields with the same name. ```js const formData = new FormData(); formData.append('file', new File(['let x = 2024;'], 'f1.js', { type: 'text/javascript' })); formData.append('file', new File(['hello'], 'f2.txt', { type: 'text/plain' })); context.request.post('https://example.com/uploadFiles', { multipart: formData }); ``` - `expect(callback).toPass({ intervals })` can now be configured by `expect.toPass.inervals` option globally in [testConfig.expect](https://playwright.dev/docs/api/class-testconfig#test-config-expect) or per project in [testProject.expect](https://playwright.dev/docs/api/class-testproject#test-project-expect). - `expect(page).toHaveURL(url)` now supports `ignoreCase` [option](https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-url-option-ignore-case). - [testProject.ignoreSnapshots](https://playwright.dev/docs/api/class-testproject#test-project-ignore-snapshots) allows to configure per project whether to skip screenshot expectations. **Reporter API** - New method [suite.entries()](https://playwright.dev/docs/api/class-suite#suite-entries) returns child test suites and test cases in their declaration order. [suite.type](https://playwright.dev/docs/api/class-suite#suite-type) and [testCase.type](https://playwright.dev/docs/api/class-testcase#test-case-type) can be used to tell apart test cases and suites in the list. - [Blob](https://playwright.dev/docs/test-reporters#blob-reporter) reporter now allows overriding report file path with a single option `outputFile`. The same option can also be specified as `PLAYWRIGHT_BLOB_OUTPUT_FILE` environment variable that might be more convenient on CI/CD. - [JUnit](https://playwright.dev/docs/test-reporters#junit-reporter) reporter now supports `includeProjectInTestName` option. **Command line** - `--last-failed` CLI option for running only tests that failed in the previous run. First run all tests: ```sh $ npx playwright test Running 103 tests using 5 workers ... 2 failed [chromium] β€Ί my-test.spec.ts:8:5 β€Ί two ───────────────────────────────────────────────────────── [chromium] β€Ί my-test.spec.ts:13:5 β€Ί three ────────────────────────────────────────────────────── 101 passed (30.0s) ``` Now fix the failing tests and run Playwright again with `--last-failed` option: ```sh $ npx playwright test --last-failed Running 2 tests using 2 workers 2 passed (1.2s) ``` #### Browser Versions - Chromium 125.0.6422.14 - Mozilla Firefox 125.0.1 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 124 - Microsoft Edge 124 ### [`v1.43.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.43.1) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.43.0...v1.43.1) ##### Highlights [https://github.com/microsoft/playwright/issues/30300](https://togithub.com/microsoft/playwright/issues/30300) - \[REGRESSION]: UI mode restarts if keep storage state[https://github.com/microsoft/playwright/issues/30339](https://togithub.com/microsoft/playwright/issues/30339)9 - \[REGRESSION]: Brand new install of playwright, unable to run chromium with show browser using vscode ##### Browser Versions - Chromium 124.0.6367.29 - Mozilla Firefox 124.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 123 - Microsoft Edge 123 ### [`v1.43.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.43.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.42.1...v1.43.0) #### New APIs - Method [browserContext.clearCookies()](https://playwright.dev/docs/api/class-browsercontext#browser-context-clear-cookies) now supports filters to remove only some cookies. ```js // Clear all cookies. await context.clearCookies(); // New: clear cookies with a particular name. await context.clearCookies({ name: 'session-id' }); // New: clear cookies for a particular domain. await context.clearCookies({ domain: 'my-origin.com' }); ``` - New mode `retain-on-first-failure` for [testOptions.trace](https://playwright.dev/docs/api/class-testoptions#test-options-trace). In this mode, trace is recorded for the first run of each test, but not for retires. When test run fails, the trace file is retained, otherwise it is removed. ```js title=playwright.config.ts import { defineConfig } from '@​playwright/test'; export default defineConfig({ use: { trace: 'retain-on-first-failure', }, }); ``` - New property [testInfo.tags](https://playwright.dev/docs/api/class-testinfo#test-info-tags) exposes test tags during test execution. ```js test('example', async ({ page }) => { console.log(test.info().tags); }); ``` - New method [locator.contentFrame()](https://playwright.dev/docs/api/class-locator#locator-content-frame) converts a `Locator` object to a `FrameLocator`. This can be useful when you have a `Locator` object obtained somewhere, and later on would like to interact with the content inside the frame. ```js const locator = page.locator('iframe[name="embedded"]'); // ... const frameLocator = locator.contentFrame(); await frameLocator.getByRole('button').click(); ``` - New method [frameLocator.owner()](https://playwright.dev/docs/api/class-framelocator#frame-locator-owner) converts a `FrameLocator` object to a `Locator`. This can be useful when you have a `FrameLocator` object obtained somewhere, and later on would like to interact with the `iframe` element. ```js const frameLocator = page.frameLocator('iframe[name="embedded"]'); // ... const locator = frameLocator.owner(); await expect(locator).toBeVisible(); ``` #### UI Mode Updates ![Playwright UI Mode](https://togithub.com/microsoft/playwright/assets/9881434/61ca7cfc-eb7a-4305-8b62-b6c9f098f300) - See tags in the test list. - Filter by tags by typing `@fast` or clicking on the tag itself. - New shortcuts: - F5 to run tests. - Shift F5 to stop running tests. - Ctrl \` to toggle test output. #### Browser Versions - Chromium 124.0.6367.29 - Mozilla Firefox 124.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 123 - Microsoft Edge 123 ### [`v1.42.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.42.1) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.42.0...v1.42.1) ##### Highlights [https://github.com/microsoft/playwright/issues/29732](https://togithub.com/microsoft/playwright/issues/29732) - \[Regression]: HEAD requests to webServer.url since v1.42.0[https://github.com/microsoft/playwright/issues/29746](https://togithub.com/microsoft/playwright/issues/29746)6 - \[Regression]: Playwright CT CLI scripts fail due to broken initializePlugin impor[https://github.com/microsoft/playwright/issues/29739](https://togithub.com/microsoft/playwright/issues/29739)39 - \[Bug]: Component tests fails when imported a module with a dot in a na[https://github.com/microsoft/playwright/issues/29731](https://togithub.com/microsoft/playwright/issues/29731)731 - \[Regression]: 1.42.0 breaks some import stateme[https://github.com/microsoft/playwright/issues/29760](https://togithub.com/microsoft/playwright/issues/29760)9760 - \[Bug]: Possible regression with chained locators in v1.42 ##### Browser Versions - Chromium 123.0.6312.4 - Mozilla Firefox 123.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 122 - Microsoft Edge 123 ### [`v1.42.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.42.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.41.2...v1.42.0) #### New APIs - **Test tags** [New tag syntax](https://playwright.dev/docs/test-annotations#tag-tests) for adding tags to the tests (@​-tokens in the test title are still supported). ```js test('test customer login', { tag: ['@​fast', '@​login'] }, async ({ page }) => { // ... }); ``` Use `--grep` command line option to run only tests with certain tags. ```sh npx playwright test --grep @​fast ``` - **Annotating skipped tests** [New annotation syntax](https://playwright.dev/docs/test-annotations#annotate-tests) for test annotations allows annotating the tests that do not run. ```js test('test full report', { annotation: [ { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/23180' }, { type: 'docs', description: 'https://playwright.dev/docs/test-annotations#tag-tests' }, ], }, async ({ page }) => { // ... }); ``` - **page.addLocatorHandler()** New method [page.addLocatorHandler()](https://playwright.dev/docs/api/class-page#page-add-locator-handler) registers a callback that will be invoked when specified element becomes visible and may block Playwright actions. The callback can get rid of the overlay. Here is an example that closes a cookie dialog when it appears. ```js // Setup the handler. await page.addLocatorHandler( page.getByRole('heading', { name: 'Hej! You are in control of your cookies.' }), async () => { await page.getByRole('button', { name: 'Accept all' }).click(); }); // Write the test as usual. await page.goto('https://www.ikea.com/'); await page.getByRole('link', { name: 'Collection of blue and white' }).click(); await expect(page.getByRole('heading', { name: 'Light and easy' })).toBeVisible(); ``` - **Project wildcard filter** Playwright command line [flag](https://playwright.dev/docs/test-cli#reference) now supports '\*' wildcard when filtering by project. ```sh npx playwright test --project='*mobile*' ``` - **Other APIs** - expect(callback).toPass({ timeout }) The timeout can now be configured by `expect.toPass.timeout` option [globally](https://playwright.dev/docs/api/class-testconfig#test-config-expect) or in [project config](https://playwright.dev/docs/api/class-testproject#test-project-expect) - electronApplication.on('console') [electronApplication.on('console')](https://playwright.dev/docs/api/class-electronapplication#electron-application-event-console) event is emitted when Electron main process calls console API methods. ```js electronApp.on('console', async msg => { const values = []; for (const arg of msg.args()) values.push(await arg.jsonValue()); console.log(...values); }); await electronApp.evaluate(() => console.log('hello', 5, { foo: 'bar' })); ``` - [page.pdf()](https://playwright.dev/docs/api/class-page#page-pdf) accepts two new options [`tagged`](https://playwright.dev/docs/api/class-page#page-pdf-option-tagged) and [`outline`](https://playwright.dev/docs/api/class-page#page-pdf-option-outline). #### Breaking changes Mixing the test instances in the same suite is no longer supported. Allowing it was an oversight as it makes reasoning about the semantics unnecessarily hard. ```js const test = baseTest.extend({ item: async ({}, use) => {} }); baseTest.describe('Admin user', () => { test('1', async ({ page, item }) => {}); test('2', async ({ page, item }) => {}); }); ``` #### Announcements - ⚠️ Ubuntu 18 is not supported anymore. #### Browser Versions - Chromium 123.0.6312.4 - Mozilla Firefox 123.0 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 122 - Microsoft Edge 123 ### [`v1.41.2`](https://togithub.com/microsoft/playwright/releases/tag/v1.41.2) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.41.1...v1.41.2) ##### Highlights [https://github.com/microsoft/playwright/issues/29123](https://togithub.com/microsoft/playwright/issues/29123) - \[REGRESSION] route.continue: Protocol error (Fetch.continueRequest): Invalid InterceptionId. #### 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
swc-project/swc (@​swc/core) ### [`v1.5.7`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#157---2024-05-14) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.6...v1.5.7) ##### Documentation - **(es/typescript)** Fix example ([#​8952](https://togithub.com/swc-project/swc/issues/8952)) ([ff60960](https://togithub.com/swc-project/swc/commit/ff60960afe3f2866e5c98f0414884fa93b5ab3f6)) ### [`v1.5.6`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#156---2024-05-14) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.5...v1.5.6) ##### Bug Fixes - **(es)** Allow input source map file to be omitted ([#​8951](https://togithub.com/swc-project/swc/issues/8951)) ([606cb67](https://togithub.com/swc-project/swc/commit/606cb677c42dd43c24ba49ad0912998e33159560)) - **(es/ast)** Pin version of unicodes ([#​8941](https://togithub.com/swc-project/swc/issues/8941)) ([6362ff4](https://togithub.com/swc-project/swc/commit/6362ff4ba80afc9c887a8817582ae976a05c1d90)) - **(es/compat)** Avoid reserved name for private method ([#​8949](https://togithub.com/swc-project/swc/issues/8949)) ([7053bb1](https://togithub.com/swc-project/swc/commit/7053bb16ce19ba476760b7fe0b1627d1210d6e18)) - **(es/minifier)** Abort inliner on mutation via property ([#​8938](https://togithub.com/swc-project/swc/issues/8938)) ([257afc9](https://togithub.com/swc-project/swc/commit/257afc92c9b2a751935f8fdee1b84bc9222359b6)) - **(es/minifier)** Don't invoke IIFE containing reserved words ([#​8939](https://togithub.com/swc-project/swc/issues/8939)) ([5a3456c](https://togithub.com/swc-project/swc/commit/5a3456c254a686ceef343ce5f9ec67b3e4644138)) - **(es/minifier)** Fix evaluation of `String.charCodeAt` ([#​8946](https://togithub.com/swc-project/swc/issues/8946)) ([772c50f](https://togithub.com/swc-project/swc/commit/772c50fd7610768c43cf795b03dcae1d00f715d2)) - **(es/minifier)** Abort seq inliner on `**` ([#​8947](https://togithub.com/swc-project/swc/issues/8947)) ([3046d71](https://togithub.com/swc-project/swc/commit/3046d71daa77327e7b211cfdb641e3e6148bea5f)) ### [`v1.5.5`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#155---2024-05-08) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.3...v1.5.5) ##### Bug Fixes - **(css/modules)** Allow any order of composes ([#​8930](https://togithub.com/swc-project/swc/issues/8930)) ([7014c63](https://togithub.com/swc-project/swc/commit/7014c63625c7c9f83322931600a52c82ba8b107a)) - **(css/modules)** Fix `:global` selectors without preceding whitespace ([#​8926](https://togithub.com/swc-project/swc/issues/8926)) ([2405dc6](https://togithub.com/swc-project/swc/commit/2405dc6ba0aa227df81fda3db303fc6f523972db)) - **(es/fixer)** Wrap class expressions in callee ([#​8928](https://togithub.com/swc-project/swc/issues/8928)) ([6b60bdb](https://togithub.com/swc-project/swc/commit/6b60bdb69713f7ccf603db04696621985d200d28)) - **(es/minifier)** Respect `module: false` ([#​8925](https://togithub.com/swc-project/swc/issues/8925)) ([aca6a77](https://togithub.com/swc-project/swc/commit/aca6a77903e31099f473587eb9285ae1c4dee309)) - **(es/minifier)** Consider side effects of operands of binary expressions ([#​8929](https://togithub.com/swc-project/swc/issues/8929)) ([4d4a7a9](https://togithub.com/swc-project/swc/commit/4d4a7a9bcb39228973c0da2991310b5107feb319)) - **(es/minifier)** Fix operand handling of `**` ([#​8933](https://togithub.com/swc-project/swc/issues/8933)) ([c9d72cd](https://togithub.com/swc-project/swc/commit/c9d72cdc6aa847ba2d81eb2a99c0d0c74bc669b6)) - **(es/minifier)** Fix a bug about `Tpl` => `Str` ([#​8934](https://togithub.com/swc-project/swc/issues/8934)) ([d4be383](https://togithub.com/swc-project/swc/commit/d4be3833183b829bf39c0b53407b8892517256d9)) - **(es/module)** Resolve `.jsx` imports fully ([#​8936](https://togithub.com/swc-project/swc/issues/8936)) ([c536d2a](https://togithub.com/swc-project/swc/commit/c536d2ad6f731e3284df48902637e6446e91a721)) ##### Refactor - **(es/minifier)** Remove unnecessary check ([#​8927](https://togithub.com/swc-project/swc/issues/8927)) ([8932a1b](https://togithub.com/swc-project/swc/commit/8932a1b527a685917e7c24f5fd434a71468abcd8)) ### [`v1.5.3`](https://togithub.com/swc-project/swc/compare/v1.5.2...v1.5.3) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.2...v1.5.3) ### [`v1.5.2`](https://togithub.com/swc-project/swc/compare/v1.5.1...v1.5.2) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.1...v1.5.2) ### [`v1.5.1`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#151---2024-04-27) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.5.0...v1.5.1) ##### Bug Fixes - **(es/decorator)** Support for legacy decorators in class expressions ([#​8892](https://togithub.com/swc-project/swc/issues/8892)) ([8fe57ad](https://togithub.com/swc-project/swc/commit/8fe57adc02f1a67ece9b73769d90320ae4e72808)) - **(es/helpers)** Remove unused export from `_using_ctx.js` ([#​8891](https://togithub.com/swc-project/swc/issues/8891)) ([438d0b3](https://togithub.com/swc-project/swc/commit/438d0b32b680a1a64861e97cb4a1e14213335e48)) - **(es/minifier)** Do not add vars if `eval` exists ([#​8888](https://togithub.com/swc-project/swc/issues/8888)) ([be359fa](https://togithub.com/swc-project/swc/commit/be359fa75318d645f954feb90353b884dfa51e6e)) ### [`v1.5.0`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#150---2024-04-24) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.17...v1.5.0) ##### Bug Fixes - **(es/minifier)** Abort seq inline on recursive usage ([#​8887](https://togithub.com/swc-project/swc/issues/8887)) ([cd4548f](https://togithub.com/swc-project/swc/commit/cd4548fd8c32f67d0e8373f7a2c3cb625f43e6c4)) ##### Features - **(es/ast)** Support abstract auto-accessors ([#​8736](https://togithub.com/swc-project/swc/issues/8736)) ([1155ac7](https://togithub.com/swc-project/swc/commit/1155ac79720512625568c45bfd3542ec340c0ebd)) ### [`v1.4.17`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1417---2024-04-23) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.16...v1.4.17) ##### Bug Fixes - **(es)** Ignore `sourceMappingURL` in string literals ([#​8879](https://togithub.com/swc-project/swc/issues/8879)) ([d7188cd](https://togithub.com/swc-project/swc/commit/d7188cdb66a3bba577ebefe0c33cf77f48858d50)) - **(es/codegen)** Use `Str.raw` for es5 ([#​8873](https://togithub.com/swc-project/swc/issues/8873)) ([c7a06b1](https://togithub.com/swc-project/swc/commit/c7a06b1a5e3a59abccbd40fed1f65fcf8487fba6)) - **(es/compat)** Fix async generator ([#​8881](https://togithub.com/swc-project/swc/issues/8881)) ([063eabd](https://togithub.com/swc-project/swc/commit/063eabd33cd5ee1dbe9e248462519f76f6eacd36)) - **(es/resolver)** Prioritze `jsc.paths` by length in tsc resolver ([#​8875](https://togithub.com/swc-project/swc/issues/8875)) ([e22c368](https://togithub.com/swc-project/swc/commit/e22c3681a6705f2184f0af7032ed30103ab9bfcc)) - **(html/codegen)** Expand elements before which body isn’t elided ([#​8877](https://togithub.com/swc-project/swc/issues/8877)) ([5419a94](https://togithub.com/swc-project/swc/commit/5419a9477fa54297ed5e02b3769374e07e0921f3)) ### [`v1.4.16`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1416---2024-04-18) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.15...v1.4.16) ##### Bug Fixes - **(es/helpers)** Fix resolving of `usingCtx` helper ([#​8874](https://togithub.com/swc-project/swc/issues/8874)) ([6e9d1a4](https://togithub.com/swc-project/swc/commit/6e9d1a4ebfa705d58b576f5de32d4a17393d4e81)) ### [`v1.4.15`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1415---2024-04-17) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.14...v1.4.15) ##### Bug Fixes - **(es/codegen)** Fix `ascii_only` for identifiers ([#​8866](https://togithub.com/swc-project/swc/issues/8866)) ([2075a23](https://togithub.com/swc-project/swc/commit/2075a23373eac575240ab33778079174505cdcb4)) - **(es/minifier)** Remove `raw` of strings after modification ([#​8865](https://togithub.com/swc-project/swc/issues/8865)) ([740c0bb](https://togithub.com/swc-project/swc/commit/740c0bb00a0bb9e0f4d808c9dc71e8087d416f72)) - **(es/parser)** Fix span of `BindingIdent` ([#​8859](https://togithub.com/swc-project/swc/issues/8859)) ([fbd32fb](https://togithub.com/swc-project/swc/commit/fbd32fbff323ff4116e82d2dd1d763f7f3844de2)) - **(es/proposal)** Update explicit resource management to match spec ([#​8860](https://togithub.com/swc-project/swc/issues/8860)) ([6d24076](https://togithub.com/swc-project/swc/commit/6d240768b11cd6cabd347a54c135cb8937df2240)) ##### Features - **(es/transforms)** Allocate stacks dynamically ([#​8867](https://togithub.com/swc-project/swc/issues/8867)) ([a1c5415](https://togithub.com/swc-project/swc/commit/a1c5415b3b84fdb8f780685e5eec4a121d442e28)) ##### Refactor - **(es/minifier)** Remove `mangle.safari10` ([#​8857](https://togithub.com/swc-project/swc/issues/8857)) ([df2e056](https://togithub.com/swc-project/swc/commit/df2e056f299c84d309bcc0d26e1da55a561614af)) ##### Build - **(cargo)** Update rustc to `nightly-2024-04-03` ([#​8821](https://togithub.com/swc-project/swc/issues/8821)) ([ca9c76b](https://togithub.com/swc-project/swc/commit/ca9c76b46f26f0aaf6b7f18cb7b4c6fdb7ebd512)) - **(cargo)** Update `rustc` to `nightly-2024-04-16` ([#​8870](https://togithub.com/swc-project/swc/issues/8870)) ([f9459a8](https://togithub.com/swc-project/swc/commit/f9459a8adf28de02d44dfe1da243a1d66a6ec41e)) ### [`v1.4.14`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1414---2024-04-15) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.13...v1.4.14) ##### Bug Fixes - **(es/compat)** Handle class fields correctly ([#​8835](https://togithub.com/swc-project/swc/issues/8835)) ([5cc585b](https://togithub.com/swc-project/swc/commit/5cc585b8f3359d960420e31a91f53c761c90f3f5)) - **(es/helpers)** Add missing helpers ([#​8843](https://togithub.com/swc-project/swc/issues/8843)) ([67bfcf4](https://togithub.com/swc-project/swc/commit/67bfcf41f59699ebb5286211fcc2cf5546f94376)) - **(es/minifier)** Handle switch cases ([#​8854](https://togithub.com/swc-project/swc/issues/8854)) ([7a89e5d](https://togithub.com/swc-project/swc/commit/7a89e5da3be25d00e5cc18b46c847f0e8de54022)) - **(es/plugin)** Create `tokio` runtime only if necessary ([#​8845](https://togithub.com/swc-project/swc/issues/8845)) ([62c4f5e](https://togithub.com/swc-project/swc/commit/62c4f5efb84daa5f9e7f88bbbfddd7823bb1355d)) - **(es/resolver)** Correctly check strict mode ([#​8851](https://togithub.com/swc-project/swc/issues/8851)) ([f6ba92b](https://togithub.com/swc-project/swc/commit/f6ba92b033c3594c69672a33df124ecf6429f450)) - **(es/utils)** Preserve optional chain effect ([#​8850](https://togithub.com/swc-project/swc/issues/8850)) ([a7a32c4](https://togithub.com/swc-project/swc/commit/a7a32c4b6c2089dfbe9be2f70a0c4712e9feeef4)) ##### Documentation - **(swc_core)** Resolve build issue with `--all-features` flag ([#​8848](https://togithub.com/swc-project/swc/issues/8848)) ([c0d901e](https://togithub.com/swc-project/swc/commit/c0d901eac6539940ce1956ec5031f624c4c049f0)) ##### Refactor - **(es)** Make the code compile with `miri` ([#​8836](https://togithub.com/swc-project/swc/issues/8836)) ([3a51140](https://togithub.com/swc-project/swc/commit/3a51140dd77ccf2cc35098a72c411b05de418ff1)) - **(es/decorator)** Remove unsafe code ([#​8839](https://togithub.com/swc-project/swc/issues/8839)) ([e8c6344](https://togithub.com/swc-project/swc/commit/e8c63447f64076de64002bcb5a3124b809df44ed)) - **(visit)** Simplify `Vec::move_map` ([#​8838](https://togithub.com/swc-project/swc/issues/8838)) ([b1973d4](https://togithub.com/swc-project/swc/commit/b1973d490afc8e4bc597192caab7a3aa8eb2701d)) ##### Testing - **(es)** Update `conformance` test suite from `tsc` ([#​8834](https://togithub.com/swc-project/swc/issues/8834)) ([ea5d9cc](https://togithub.com/swc-project/swc/commit/ea5d9cc52413a1270e25af93c353baf10282fd86)) ### [`v1.4.13`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1413---2024-04-09) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.12...v1.4.13) ##### Bug Fixes - **(es/decorators)** Fix capacity overflow with decorators ([#​8818](https://togithub.com/swc-project/swc/issues/8818)) ([9ed93c1](https://togithub.com/swc-project/swc/commit/9ed93c17cdb645274392ebdb9ad87f8fbeeed971)) - **(es/minifier)** Respect `top_retain` for top-level functions ([#​8814](https://togithub.com/swc-project/swc/issues/8814)) ([811308c](https://togithub.com/swc-project/swc/commit/811308c3526003608e61c559f43408f6065ff9ee)) - **(es/minifier)** Abort IIFE invoker in function parameters ([#​8828](https://togithub.com/swc-project/swc/issues/8828)) ([ebb68db](https://togithub.com/swc-project/swc/commit/ebb68db24d7287ca12d85a68a34aabfa660eeae0)) - **(es/module)** Respect `module.resolveFully` in more cases ([#​8820](https://togithub.com/swc-project/swc/issues/8820)) ([e1f7704](https://togithub.com/swc-project/swc/commit/e1f770463d1f0402468e07fca9c637e3823bb2d1)) - **(es/transforms)** Fix capacity overflow with decorators ([#​8815](https://togithub.com/swc-project/swc/issues/8815)) ([974f5c7](https://togithub.com/swc-project/swc/commit/974f5c759c7736ab521d18c8e7bd88210691a2ab)) - **(plugin/runner)** Pin version of `virtual-fs` ([#​8827](https://togithub.com/swc-project/swc/issues/8827)) ([089f61b](https://togithub.com/swc-project/swc/commit/089f61bc37bb9c09dc94a24a5518840883827f57)) - **(visit)** Improve `Map` implementation for `Box` ([#​8819](https://togithub.com/swc-project/swc/issues/8819)) ([dc04657](https://togithub.com/swc-project/swc/commit/dc046572def13a3eb625520c5a8bfd651b86f3a3)) ### [`v1.4.12`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1412---2024-04-04) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.4.11...v1.4.12) ##### Bug Fixes - **(common)** Fix source index for `inputSourceMap` ([#​8800](https://togithub.com/swc-project/swc/issues/8800)) ([4f9ab81](https://togithub.com/swc-project/swc/commit/4f9ab8151dad9984c81c72eb10c2afe5313a7591)) - **(es)** Change default value of `inputSourceMap` to `true` ([#​8801](https://togithub.com/swc-project/swc/issues/8801)) ([9ffcd18](https://togithub.com/swc-project/swc/commit/9ffcd1823c0abdc741f654b8e1e330cdc06769a1)) - **(es/bugfixes)** Fix fn transform in nameless fns ([#​8796](https://togithub.com/swc-project/swc/issues/8796)) ([7ad004e](https://togithub.com/swc-project/swc/commit/7ad004e1899d98ee8da49909163455b3b622686d)) - **(es/helpers)** Fix metadata of decorators being `undefined` ([#​8768](https://togithub.com/swc-project/swc/issues/8768)) ([263ce6e](https://togithub.com/swc-project/swc/commit/263ce6e22bd4dbba0323099f256fb062b8e644a2)) - **(es/minifier)** Abort fn inliner if there's a spread arg ([#​8809](https://togithub.com/swc-project/swc/issues/8809)) ([730ded2](https://togithub.com/swc-project/swc/commit/730ded2a26f63f0069dea0d3bc207bb31f344444)) - **(es/module)** Fix `jsc.paths` with `resolveFully` ([#​8784](https://togithub.com/swc-project/swc/issues/8784)) ([4961bb0](https://togithub.com/swc-project/swc/commit/4961bb055df9925da97279819d2fdf740b4b3d92)) - **(es/parser)** Tweak msg of `SyntaxError::UsingDeclNotEnabled` ([#​8791](https://togithub.com/swc-project/swc/issues/8791)) ([95c822e](https://togithub.com/swc-project/swc/commit/95c822e7c43470e4c972bef00d97e7e0de02e0b0)) ##### Features - **(es/minifier)** Evaluate spread of arrays ([#​8811](https://togithub.com/swc-project/swc/issues/8811)) ([47714c5](https://togithub.com/swc-project/swc/commit/47714c52ce08b0e94617d17c11c8e8994c62dbaa)) - **(plugin/runner)** Improve error message for Wasm plugin crashes ([#​8794](https:/

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.

renovate[bot] commented 1 month 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.