ianvs/prettier-plugin-sort-imports (@ianvs/prettier-plugin-sort-imports)
### [`v4.1.1`](https://togithub.com/IanVS/prettier-plugin-sort-imports/releases/tag/v4.1.1)
[Compare Source](https://togithub.com/ianvs/prettier-plugin-sort-imports/compare/v4.1.0...v4.1.1)
#### What's Changed
##### Fixes
- Fix type import specifier dupe by [@AlexJDG](https://togithub.com/AlexJDG) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/125](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/125)
- Fix vue preprocessor may replace wrong code by [@Tanimodori](https://togithub.com/Tanimodori) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/135](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/135)
##### Docs
- Add `plugins` config to README by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/114](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/114)
- recommend using ^react$ for sorting react to the top. by [@willhoney7](https://togithub.com/willhoney7) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/126](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/126)
##### Maintenance and Dependencies
- Update semver by [@useafterfree](https://togithub.com/useafterfree) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/123](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/123)
- Fix test script on windows by [@Tanimodori](https://togithub.com/Tanimodori) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/134](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/134)
- Upgrade development dependencies by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/128](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/128)
- Improve CI by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/136](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/136)
- Regenerate lockfile by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/129](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/129)
#### New Contributors
- [@useafterfree](https://togithub.com/useafterfree) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/123](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/123)
- [@willhoney7](https://togithub.com/willhoney7) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/126](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/126)
- [@AlexJDG](https://togithub.com/AlexJDG) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/125](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/125)
- [@Tanimodori](https://togithub.com/Tanimodori) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/134](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/134)
**Full Changelog**: https://github.com/IanVS/prettier-plugin-sort-imports/compare/v4.1.0...v4.1.1
microsoft/playwright (@playwright/test)
### [`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
### [`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
### [`v1.39.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.39.0)
[Compare Source](https://togithub.com/microsoft/playwright/compare/v1.38.1...v1.39.0)
#### Add custom matchers to your expect
You can extend Playwright assertions by providing custom matchers. These matchers will be available on the expect object.
```js
import { expect as baseExpect } from '@playwright/test';
export const expect = baseExpect.extend({
async toHaveAmount(locator: Locator, expected: number, options?: { timeout?: number }) {
// ... see documentation for how to write matchers.
},
});
test('pass', async ({ page }) => {
await expect(page.getByTestId('cart')).toHaveAmount(5);
});
```
See the documentation [for a full example](https://playwright.dev/docs/test-configuration#add-custom-matchers-using-expectextend).
#### Merge test fixtures
You can now merge test fixtures from multiple files or modules:
```js
import { mergeTests } from '@playwright/test';
import { test as dbTest } from 'database-test-utils';
import { test as a11yTest } from 'a11y-test-utils';
export const test = mergeTests(dbTest, a11yTest);
```
```js
import { test } from './fixtures';
test('passes', async ({ database, page, a11y }) => {
// use database and a11y fixtures.
});
```
#### Merge custom expect matchers
You can now merge custom expect matchers from multiple files or modules:
```js
import { mergeTests, mergeExpects } from '@playwright/test';
import { test as dbTest, expect as dbExpect } from 'database-test-utils';
import { test as a11yTest, expect as a11yExpect } from 'a11y-test-utils';
export const test = mergeTests(dbTest, a11yTest);
export const expect = mergeExpects(dbExpect, a11yExpect);
```
```js
import { test, expect } from './fixtures';
test('passes', async ({ page, database }) => {
await expect(database).toHaveDatabaseUser('admin');
await expect(page).toPassA11yAudit();
});
```
#### Hide implementation details: box test steps
You can mark a [`test.step()`](https://playwright.dev/docs/api/class-test#test-step) as "boxed" so that errors inside it point to the step call site.
```js
async function login(page) {
await test.step('login', async () => {
// ...
}, { box: true }); // Note the "box" option here.
}
```
```txt
Error: Timed out 5000ms waiting for expect(locator).toBeVisible()
... error details omitted ...
14 | await page.goto('https://github.com/login');
> 15 | await login(page);
| ^
16 | });
```
See [`test.step()`](https://playwright.dev/docs/api/class-test#test-step) documentation for a full example.
#### New APIs
- [`expect(locator).toHaveAttribute(name)`](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-attribute-2)
#### Browser Versions
- Chromium 119.0.6045.9
- Mozilla Firefox 118.0.1
- WebKit 17.4
This version was also tested against the following stable channels:
- Google Chrome 118
- Microsoft Edge 118
### [`v1.38.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.38.1)
[Compare Source](https://togithub.com/microsoft/playwright/compare/v1.38.0...v1.38.1)
##### Highlights
[https://github.com/microsoft/playwright/issues/27071](https://togithub.com/microsoft/playwright/issues/27071) - expect(value).toMatchSnapshot() deprecation announcement on V1.38
[https://github.com/microsoft/playwright/issues/27072](https://togithub.com/microsoft/playwright/issues/27072) - \[BUG] PWT trace viewer fails to load trace and throws TypeError[https://github.com/microsoft/playwright/issues/27073](https://togithub.com/microsoft/playwright/issues/27073)3 - \[BUG] RangeError: Invalid time valu[https://github.com/microsoft/playwright/issues/27087](https://togithub.com/microsoft/playwright/issues/27087)87 - \[REGRESSION]: npx playwright test --list prints all tests twi[https://github.com/microsoft/playwright/issues/27113](https://togithub.com/microsoft/playwright/issues/27113)113 - \[REGRESSION]: No longer able to extend PlaywrightTest.Matchers type for locators and pa[https://github.com/microsoft/playwright/issues/27144](https://togithub.com/microsoft/playwright/issues/27144)7144 - \[BUG]can not display t[https://github.com/microsoft/playwright/issues/27163](https://togithub.com/microsoft/playwright/issues/27163)27163 - \[REGRESSION] Single Quote Wrongly Escaped by Locator When Using Unicode[https://github.com/microsoft/playwright/issues/27181](https://togithub.com/microsoft/playwright/issues/27181)/27181 - \[BUG] evaluate serializing fails at 1.38
##### Browser Versions
- Chromium 117.0.5938.62
- Mozilla Firefox 117.0
- WebKit 17.0
This version was also tested against the following stable channels:
- Google Chrome 116
- Microsoft Edge 116
### [`v1.38.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.38.0)
[Compare Source](https://togithub.com/microsoft/playwright/compare/v1.37.1...v1.38.0)
#### UI Mode Updates
![Playwright UI Mode](https://togithub.com/microsoft/playwright/assets/746130/8ba27be0-58fd-4f62-8561-950480610369)
1. Zoom into time range.
2. Network panel redesign.
#### New APIs
- [`browserContext.on('weberror')`][browserContext.on('weberror')]
- [`locator.pressSequentially()`][locator.pressSequentially()]
- The [`reporter.onEnd()`][reporter.onEnd()] now reports `startTime` and total run `duration`.
#### Deprecations
- The following methods were deprecated: [`page.type()`][page.type()], [`frame.type()`][frame.type()], [`locator.type()`][locator.type()] and [`elementHandle.type()`][elementHandle.type()].
Please use [`locator.fill()`][locator.fill()] instead which is much faster. Use [`locator.pressSequentially()`][locator.pressSequentially()] only if there is a
special keyboard handling on the page, and you need to press keys one-by-one.
#### Breaking Changes: Playwright no longer downloads browsers automatically
> \[!NOTE]
> If you are using `@playwright/test` package, this change **does not** affect you.
Playwright recommends to use `@playwright/test` package and download browsers via `npx playwright install` command. If you are following this recommendation, nothing has changed for you.
However, up to v1.38, installing the `playwright` package instead of `@playwright/test` did automatically download browsers. This is no longer the case, and we recommend to explicitly download browsers via `npx playwright install` command.
**v1.37 and earlier**
`playwright` package was downloading browsers during `npm install`, while `@playwright/test` was not.
**v1.38 and later**
`playwright` and `@playwright/test` packages do not download browsers during `npm install`.
**Recommended migration**
Run `npx playwright install` to download browsers after `npm install`. For example, in your CI configuration:
```yml
- run: npm ci
- run: npx playwright install --with-deps
```
**Alternative migration option - not recommended**
Add `@playwright/browser-chromium`, `@playwright/browser-firefox` and `@playwright/browser-webkit` as a dependency. These packages download respective browsers during `npm install`. Make sure you keep the version of all playwright packages in sync:
```json5
// package.json
{
"devDependencies": {
"playwright": "1.38.0",
"@playwright/browser-chromium": "1.38.0",
"@playwright/browser-firefox": "1.38.0",
"@playwright/browser-webkit": "1.38.0"
}
}
```
##### Browser Versions
- Chromium 117.0.5938.62
- Mozilla Firefox 117.0
- WebKit 17.0
This version was also tested against the following stable channels:
- Google Chrome 116
- Microsoft Edge 116
[`browserContext.on('weberror')`]: https://playwright.dev/docs/api/class-browsercontext#browser-context-event-web-error
[`locator.pressSequentially()`]: https://playwright.dev/docs/api/class-locator#locator-press-sequentially
[`reporter.onEnd()`]: https://playwright.dev/docs/api/class-reporter#reporter-on-end
[`page.type()`]: https://playwright.dev/docs/api/class-page#page-type
[`frame.type()`]: https://playwright.dev/docs/api/class-frame#frame-type
[`locator.type()`]: https://playwright.dev/docs/api/class-locator#locator-type
[`elementHandle.type()`]: https://playwright.dev/docs/api/class-elementhandle#element-handle-type
[`locator.fill()`]: https://playwright.dev/docs/api/class-locator#locator-fill
[`expect(value).toMatchSnapshot()`]: https://playwright.dev/docs/api/class-snapshotassertions#snapshot-assertions-to-match-snapshot-1
[`expect(page).toHaveScreenshot()`]: https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1
[`expect(locator).toHaveScreenshot()`]: https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-screenshot-1
sveltejs/kit (@sveltejs/adapter-vercel)
### [`v3.1.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/adapter-vercel/CHANGELOG.md#310)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/adapter-vercel@3.0.3...@sveltejs/adapter-vercel@3.1.0)
##### Minor Changes
- feat: add support for nodejs20.x ([#11067](https://togithub.com/sveltejs/kit/pull/11067))
sveltejs/kit (@sveltejs/kit)
### [`v1.30.3`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1303)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.30.2...@sveltejs/kit@1.30.3)
##### Patch Changes
- fix: correct documentation for beforeNavigate ([#11300](https://togithub.com/sveltejs/kit/pull/11300))
### [`v1.30.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1302)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.30.1...@sveltejs/kit@1.30.2)
##### Patch Changes
- fix: revert recent 'correctly return 415' and 'correctly return 404' changes ([#11295](https://togithub.com/sveltejs/kit/pull/11295))
### [`v1.30.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1301)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.30.0...@sveltejs/kit@1.30.1)
##### Patch Changes
- fix: prerendered root page with `paths.base` config uses correct trailing slash option ([#10763](https://togithub.com/sveltejs/kit/pull/10763))
- fix: correctly return 404 when a form action is not found ([#11278](https://togithub.com/sveltejs/kit/pull/11278))
### [`v1.30.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1300)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.29.1...@sveltejs/kit@1.30.0)
##### Minor Changes
- feat: inline `response.arrayBuffer()` during ssr ([#10535](https://togithub.com/sveltejs/kit/pull/10535))
##### Patch Changes
- fix: allow `"false"` value for preload link options ([#10555](https://togithub.com/sveltejs/kit/pull/10555))
- fix: call worker `unref` instead of `terminate` ([#10120](https://togithub.com/sveltejs/kit/pull/10120))
- fix: correctly analyse exported server API methods during build ([#11019](https://togithub.com/sveltejs/kit/pull/11019))
- fix: avoid error when back navigating before page is initialized ([#10636](https://togithub.com/sveltejs/kit/pull/10636))
- fix: allow service-worker.js to import assets ([#9285](https://togithub.com/sveltejs/kit/pull/9285))
- fix: distinguish better between not-found and internal-error ([#11131](https://togithub.com/sveltejs/kit/pull/11131))
### [`v1.29.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1291)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.29.0...@sveltejs/kit@1.29.1)
##### Patch Changes
- fix: correctly return 415 when unexpected content types are submitted to actions ([#11255](https://togithub.com/sveltejs/kit/pull/11255))
- chore: deprecate `preloadCode` calls with multiple arguments ([#11266](https://togithub.com/sveltejs/kit/pull/11266))
### [`v1.29.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1290)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.28.0...@sveltejs/kit@1.29.0)
##### Minor Changes
- feat: add `resolveRoute` to `$app/paths`, deprecate `resolvePath` ([#11261](https://togithub.com/sveltejs/kit/pull/11261))
### [`v1.28.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1280)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.7...@sveltejs/kit@1.28.0)
##### Minor Changes
- chore: deprecate top level promise await behaviour ([#11175](https://togithub.com/sveltejs/kit/pull/11175))
##### Patch Changes
- fix: resolve relative cookie paths before storing ([#11253](https://togithub.com/sveltejs/kit/pull/11253))
- chore: deprecate cookies.set/delete without path option ([#11237](https://togithub.com/sveltejs/kit/pull/11237))
- fix: make sure promises from fetch handle errors ([#11228](https://togithub.com/sveltejs/kit/pull/11228))
### [`v1.27.7`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1277)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.6...@sveltejs/kit@1.27.7)
##### Patch Changes
- fix: set runes option in generated root ([#11111](https://togithub.com/sveltejs/kit/pull/11111))
- fix: retain URL query string for trailing slash redirects to prerendered pages ([#11142](https://togithub.com/sveltejs/kit/pull/11142))
### [`v1.27.6`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1276)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.5...@sveltejs/kit@1.27.6)
##### Patch Changes
- fix: use runes in generated root when detecting Svelte 5 ([#11028](https://togithub.com/sveltejs/kit/pull/11028))
- fix: correctly prerender pages that use browser globals and have SSR turned off ([#11032](https://togithub.com/sveltejs/kit/pull/11032))
- fix: correctly show 404 for prerendered dynamic routes when navigating client-side without a root layout server load ([#11025](https://togithub.com/sveltejs/kit/pull/11025))
### [`v1.27.5`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1275)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.4...@sveltejs/kit@1.27.5)
##### Patch Changes
- fix: add vite.config.js to included files in generated tsconfig ([#10788](https://togithub.com/sveltejs/kit/pull/10788))
- fix: cache location.origin on startup ([#11004](https://togithub.com/sveltejs/kit/pull/11004))
### [`v1.27.4`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1274)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.3...@sveltejs/kit@1.27.4)
##### Patch Changes
- fix: generate `__data.json` for prerendered pages when SSR is turned off ([#10988](https://togithub.com/sveltejs/kit/pull/10988))
- chore: add experimental compatibility for Svelte 5 ([#11002](https://togithub.com/sveltejs/kit/pull/11002))
### [`v1.27.3`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1273)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.2...@sveltejs/kit@1.27.3)
##### Patch Changes
- fix: use correct environment file for rendering spa fallback page ([#10963](https://togithub.com/sveltejs/kit/pull/10963))
### [`v1.27.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1272)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.1...@sveltejs/kit@1.27.2)
##### Patch Changes
- fix: missing `File` Node polyfill for Node version 18.11.0+ ([#10948](https://togithub.com/sveltejs/kit/pull/10948))
### [`v1.27.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1271)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.0...@sveltejs/kit@1.27.1)
##### Patch Changes
- fix: only apply some polyfills below node 18.11 ([#10920](https://togithub.com/sveltejs/kit/pull/10920))
### [`v1.27.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1270)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.26.0...@sveltejs/kit@1.27.0)
##### Minor Changes
- feat: add `invalidateAll` boolean option to `enhance` callback ([#9889](https://togithub.com/sveltejs/kit/pull/9889))
### [`v1.26.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1260)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.25.2...@sveltejs/kit@1.26.0)
##### Minor Changes
- feat: infer route parameter type from matcher's guard check if applicable ([#10755](https://togithub.com/sveltejs/kit/pull/10755))
##### Patch Changes
- fix: basic mime type handling for prerendered pages in preview ([#10851](https://togithub.com/sveltejs/kit/pull/10851))
- chore: use just a single library (mrmime) for mime type handling ([#10851](https://togithub.com/sveltejs/kit/pull/10851))
- chore: bump undici to address security issue ([#10885](https://togithub.com/sveltejs/kit/pull/10885))
- fix: follow whatwg fetch spec for handling redirect loops ([#10857](https://togithub.com/sveltejs/kit/pull/10857))
- fix: use `window.fetch` in `load` functions to allow libraries to patch it ([#10009](https://togithub.com/sveltejs/kit/pull/10009))
- chore(deps): update dependency undici to ~5.26.0 ([#10860](https://togithub.com/sveltejs/kit/pull/10860))
### [`v1.25.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1252)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.25.1...@sveltejs/kit@1.25.2)
##### Patch Changes
- fix: correctly update `$page.url.hash` when navigating history ([#10843](https://togithub.com/sveltejs/kit/pull/10843))
- fix: strip virtual module prefix from error messages ([#10776](https://togithub.com/sveltejs/kit/pull/10776))
- fix: cancel ongoing navigation when the browser back button is hit to prevent an incorrect page from being rendered ([#10727](https://togithub.com/sveltejs/kit/pull/10727))
- fix: only remove Vite manifest when copying files ([#10782](https://togithub.com/sveltejs/kit/pull/10782))
### [`v1.25.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1251)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.25.0...@sveltejs/kit@1.25.1)
##### Patch Changes
- fix: correct line numbers in stack trace ([#10769](https://togithub.com/sveltejs/kit/pull/10769))
- fix: correctly return 404 when navigating to a missing page and the root layout fetches a prerendered endpoint ([#10565](https://togithub.com/sveltejs/kit/pull/10565))
- fix: allow optional param in middle of route ([#10736](https://togithub.com/sveltejs/kit/pull/10736))
- chore: update `undici` ([#10641](https://togithub.com/sveltejs/kit/pull/10641))
### [`v1.25.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1250)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.24.1...@sveltejs/kit@1.25.0)
##### Minor Changes
- feat: add server endpoint catch-all method handler `fallback` ([#9755](https://togithub.com/sveltejs/kit/pull/9755))
##### Patch Changes
- fix: allow calling `fetch` for any scheme ([#10699](https://togithub.com/sveltejs/kit/pull/10699))
### [`v1.24.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1241)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.24.0...@sveltejs/kit@1.24.1)
##### Patch Changes
- fix: mark aborted/cancelled navigation as handled ([#10666](https://togithub.com/sveltejs/kit/pull/10666))
### [`v1.24.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1240)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.23.1...@sveltejs/kit@1.24.0)
##### Minor Changes
- feat: onNavigate lifecycle function ([#9605](https://togithub.com/sveltejs/kit/pull/9605))
##### Patch Changes
- fix: Use Proxy to track usage of client side load `event.route` ([#10576](https://togithub.com/sveltejs/kit/pull/10576))
### [`v1.23.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1231)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.23.0...@sveltejs/kit@1.23.1)
##### Patch Changes
- fix: process globs in `pkg.workspaces` ([#10625](https://togithub.com/sveltejs/kit/pull/10625))
### [`v1.23.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1230)
[Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.22.6...@sveltejs/kit@1.23.0)
##### Minor Changes
- feat: add warning for mistyped route filenames ([#10558](https://togithub.com/sveltejs/kit/pull/10558))
- feat: accept `URL` in `redirect` ([#10570](https://togithub.com/sveltejs/kit/pull/10570))
##### Patch Changes
- fix: adjust the type of `Navigation["type"]` ([#10599](https://togithub.com/sveltejs/kit/pull/10599))
- fix: allow logging `$page.url` during prerendering ([#10567](https://togithub.com/sveltejs/kit/pull/10567))
testing-library/svelte-testing-library (@testing-library/svelte)
### [`v4.1.0`](https://togithub.com/testing-library/svelte-testing-library/releases/tag/v4.1.0)
[Compare Source](https://togithub.com/testing-library/svelte-testing-library/compare/v4.0.6...v4.1.0)
##### Features
- **vitest:** add vitest cleanup export ([#294](https://togithub.com/testing-library/svelte-testing-library/issues/294)) ([ee1b1f7](https://togithub.com/testing-library/svelte-testing-library/commit/ee1b1f791792bfc2a1598867a076bc516c180524))
### [`v4.0.6`](https://togithub.com/testing-library/svelte-testing-library/releases/tag/v4.0.6)
[Compare Source](https://togithub.com/testing-library/svelte-testing-
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.
This PR contains the following updates:
4.1.0
->4.1.1
1.37.1
->1.41.2
3.0.3
->3.1.0
1.22.6
->1.30.3
4.0.3
->4.1.0
8.10.2
->8.11.0
1.5.1
->1.5.5
6.4.1
->6.21.0
6.4.1
->6.21.0
1.0.2
->1.1.3
10.4.15
->10.4.17
16.3.1
->16.4.4
0.19.13
->0.20.14
0.28.2
->0.29.3
8.47.0
->8.56.0
9.0.0
->9.1.0
0.268.0
->0.330.0
4.7.5
->4.12.0
8.6.12
->8.15.2
8.4.28
->8.4.35
3.0.2
->3.2.5
3.0.3
->3.2.0
0.5.3
->0.5.11
4.2.0
->4.2.10
3.5.0
->3.6.4
0.0.23
->0.0.33
3.3.3
->3.4.1
5.1.6
->5.3.3
4.4.9
->4.5.2
0.34.2
->0.34.6
3.22.2
->3.22.4
Release Notes
ianvs/prettier-plugin-sort-imports (@ianvs/prettier-plugin-sort-imports)
### [`v4.1.1`](https://togithub.com/IanVS/prettier-plugin-sort-imports/releases/tag/v4.1.1) [Compare Source](https://togithub.com/ianvs/prettier-plugin-sort-imports/compare/v4.1.0...v4.1.1) #### What's Changed ##### Fixes - Fix type import specifier dupe by [@AlexJDG](https://togithub.com/AlexJDG) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/125](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/125) - Fix vue preprocessor may replace wrong code by [@Tanimodori](https://togithub.com/Tanimodori) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/135](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/135) ##### Docs - Add `plugins` config to README by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/114](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/114) - recommend using ^react$ for sorting react to the top. by [@willhoney7](https://togithub.com/willhoney7) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/126](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/126) ##### Maintenance and Dependencies - Update semver by [@useafterfree](https://togithub.com/useafterfree) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/123](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/123) - Fix test script on windows by [@Tanimodori](https://togithub.com/Tanimodori) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/134](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/134) - Upgrade development dependencies by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/128](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/128) - Improve CI by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/136](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/136) - Regenerate lockfile by [@IanVS](https://togithub.com/IanVS) in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/129](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/129) #### New Contributors - [@useafterfree](https://togithub.com/useafterfree) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/123](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/123) - [@willhoney7](https://togithub.com/willhoney7) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/126](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/126) - [@AlexJDG](https://togithub.com/AlexJDG) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/125](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/125) - [@Tanimodori](https://togithub.com/Tanimodori) made their first contribution in [https://github.com/IanVS/prettier-plugin-sort-imports/pull/134](https://togithub.com/IanVS/prettier-plugin-sort-imports/pull/134) **Full Changelog**: https://github.com/IanVS/prettier-plugin-sort-imports/compare/v4.1.0...v4.1.1microsoft/playwright (@playwright/test)
### [`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 ### [`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 ### [`v1.39.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.39.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.38.1...v1.39.0) #### Add custom matchers to your expect You can extend Playwright assertions by providing custom matchers. These matchers will be available on the expect object. ```js import { expect as baseExpect } from '@playwright/test'; export const expect = baseExpect.extend({ async toHaveAmount(locator: Locator, expected: number, options?: { timeout?: number }) { // ... see documentation for how to write matchers. }, }); test('pass', async ({ page }) => { await expect(page.getByTestId('cart')).toHaveAmount(5); }); ``` See the documentation [for a full example](https://playwright.dev/docs/test-configuration#add-custom-matchers-using-expectextend). #### Merge test fixtures You can now merge test fixtures from multiple files or modules: ```js import { mergeTests } from '@playwright/test'; import { test as dbTest } from 'database-test-utils'; import { test as a11yTest } from 'a11y-test-utils'; export const test = mergeTests(dbTest, a11yTest); ``` ```js import { test } from './fixtures'; test('passes', async ({ database, page, a11y }) => { // use database and a11y fixtures. }); ``` #### Merge custom expect matchers You can now merge custom expect matchers from multiple files or modules: ```js import { mergeTests, mergeExpects } from '@playwright/test'; import { test as dbTest, expect as dbExpect } from 'database-test-utils'; import { test as a11yTest, expect as a11yExpect } from 'a11y-test-utils'; export const test = mergeTests(dbTest, a11yTest); export const expect = mergeExpects(dbExpect, a11yExpect); ``` ```js import { test, expect } from './fixtures'; test('passes', async ({ page, database }) => { await expect(database).toHaveDatabaseUser('admin'); await expect(page).toPassA11yAudit(); }); ``` #### Hide implementation details: box test steps You can mark a [`test.step()`](https://playwright.dev/docs/api/class-test#test-step) as "boxed" so that errors inside it point to the step call site. ```js async function login(page) { await test.step('login', async () => { // ... }, { box: true }); // Note the "box" option here. } ``` ```txt Error: Timed out 5000ms waiting for expect(locator).toBeVisible() ... error details omitted ... 14 | await page.goto('https://github.com/login'); > 15 | await login(page); | ^ 16 | }); ``` See [`test.step()`](https://playwright.dev/docs/api/class-test#test-step) documentation for a full example. #### New APIs - [`expect(locator).toHaveAttribute(name)`](https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-attribute-2) #### Browser Versions - Chromium 119.0.6045.9 - Mozilla Firefox 118.0.1 - WebKit 17.4 This version was also tested against the following stable channels: - Google Chrome 118 - Microsoft Edge 118 ### [`v1.38.1`](https://togithub.com/microsoft/playwright/releases/tag/v1.38.1) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.38.0...v1.38.1) ##### Highlights [https://github.com/microsoft/playwright/issues/27071](https://togithub.com/microsoft/playwright/issues/27071) - expect(value).toMatchSnapshot() deprecation announcement on V1.38 [https://github.com/microsoft/playwright/issues/27072](https://togithub.com/microsoft/playwright/issues/27072) - \[BUG] PWT trace viewer fails to load trace and throws TypeError[https://github.com/microsoft/playwright/issues/27073](https://togithub.com/microsoft/playwright/issues/27073)3 - \[BUG] RangeError: Invalid time valu[https://github.com/microsoft/playwright/issues/27087](https://togithub.com/microsoft/playwright/issues/27087)87 - \[REGRESSION]: npx playwright test --list prints all tests twi[https://github.com/microsoft/playwright/issues/27113](https://togithub.com/microsoft/playwright/issues/27113)113 - \[REGRESSION]: No longer able to extend PlaywrightTest.Matchers type for locators and pa[https://github.com/microsoft/playwright/issues/27144](https://togithub.com/microsoft/playwright/issues/27144)7144 - \[BUG]can not display t[https://github.com/microsoft/playwright/issues/27163](https://togithub.com/microsoft/playwright/issues/27163)27163 - \[REGRESSION] Single Quote Wrongly Escaped by Locator When Using Unicode[https://github.com/microsoft/playwright/issues/27181](https://togithub.com/microsoft/playwright/issues/27181)/27181 - \[BUG] evaluate serializing fails at 1.38 ##### Browser Versions - Chromium 117.0.5938.62 - Mozilla Firefox 117.0 - WebKit 17.0 This version was also tested against the following stable channels: - Google Chrome 116 - Microsoft Edge 116 ### [`v1.38.0`](https://togithub.com/microsoft/playwright/releases/tag/v1.38.0) [Compare Source](https://togithub.com/microsoft/playwright/compare/v1.37.1...v1.38.0) #### UI Mode Updates ![Playwright UI Mode](https://togithub.com/microsoft/playwright/assets/746130/8ba27be0-58fd-4f62-8561-950480610369) 1. Zoom into time range. 2. Network panel redesign. #### New APIs - [`browserContext.on('weberror')`][browserContext.on('weberror')] - [`locator.pressSequentially()`][locator.pressSequentially()] - The [`reporter.onEnd()`][reporter.onEnd()] now reports `startTime` and total run `duration`. #### Deprecations - The following methods were deprecated: [`page.type()`][page.type()], [`frame.type()`][frame.type()], [`locator.type()`][locator.type()] and [`elementHandle.type()`][elementHandle.type()]. Please use [`locator.fill()`][locator.fill()] instead which is much faster. Use [`locator.pressSequentially()`][locator.pressSequentially()] only if there is a special keyboard handling on the page, and you need to press keys one-by-one. #### Breaking Changes: Playwright no longer downloads browsers automatically > \[!NOTE] > If you are using `@playwright/test` package, this change **does not** affect you. Playwright recommends to use `@playwright/test` package and download browsers via `npx playwright install` command. If you are following this recommendation, nothing has changed for you. However, up to v1.38, installing the `playwright` package instead of `@playwright/test` did automatically download browsers. This is no longer the case, and we recommend to explicitly download browsers via `npx playwright install` command. **v1.37 and earlier** `playwright` package was downloading browsers during `npm install`, while `@playwright/test` was not. **v1.38 and later** `playwright` and `@playwright/test` packages do not download browsers during `npm install`. **Recommended migration** Run `npx playwright install` to download browsers after `npm install`. For example, in your CI configuration: ```yml - run: npm ci - run: npx playwright install --with-deps ``` **Alternative migration option - not recommended** Add `@playwright/browser-chromium`, `@playwright/browser-firefox` and `@playwright/browser-webkit` as a dependency. These packages download respective browsers during `npm install`. Make sure you keep the version of all playwright packages in sync: ```json5 // package.json { "devDependencies": { "playwright": "1.38.0", "@playwright/browser-chromium": "1.38.0", "@playwright/browser-firefox": "1.38.0", "@playwright/browser-webkit": "1.38.0" } } ``` ##### Browser Versions - Chromium 117.0.5938.62 - Mozilla Firefox 117.0 - WebKit 17.0 This version was also tested against the following stable channels: - Google Chrome 116 - Microsoft Edge 116 [`browserContext.on('weberror')`]: https://playwright.dev/docs/api/class-browsercontext#browser-context-event-web-error [`locator.pressSequentially()`]: https://playwright.dev/docs/api/class-locator#locator-press-sequentially [`reporter.onEnd()`]: https://playwright.dev/docs/api/class-reporter#reporter-on-end [`page.type()`]: https://playwright.dev/docs/api/class-page#page-type [`frame.type()`]: https://playwright.dev/docs/api/class-frame#frame-type [`locator.type()`]: https://playwright.dev/docs/api/class-locator#locator-type [`elementHandle.type()`]: https://playwright.dev/docs/api/class-elementhandle#element-handle-type [`locator.fill()`]: https://playwright.dev/docs/api/class-locator#locator-fill [`expect(value).toMatchSnapshot()`]: https://playwright.dev/docs/api/class-snapshotassertions#snapshot-assertions-to-match-snapshot-1 [`expect(page).toHaveScreenshot()`]: https://playwright.dev/docs/api/class-pageassertions#page-assertions-to-have-screenshot-1 [`expect(locator).toHaveScreenshot()`]: https://playwright.dev/docs/api/class-locatorassertions#locator-assertions-to-have-screenshot-1sveltejs/kit (@sveltejs/adapter-vercel)
### [`v3.1.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/adapter-vercel/CHANGELOG.md#310) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/adapter-vercel@3.0.3...@sveltejs/adapter-vercel@3.1.0) ##### Minor Changes - feat: add support for nodejs20.x ([#11067](https://togithub.com/sveltejs/kit/pull/11067))sveltejs/kit (@sveltejs/kit)
### [`v1.30.3`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1303) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.30.2...@sveltejs/kit@1.30.3) ##### Patch Changes - fix: correct documentation for beforeNavigate ([#11300](https://togithub.com/sveltejs/kit/pull/11300)) ### [`v1.30.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1302) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.30.1...@sveltejs/kit@1.30.2) ##### Patch Changes - fix: revert recent 'correctly return 415' and 'correctly return 404' changes ([#11295](https://togithub.com/sveltejs/kit/pull/11295)) ### [`v1.30.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1301) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.30.0...@sveltejs/kit@1.30.1) ##### Patch Changes - fix: prerendered root page with `paths.base` config uses correct trailing slash option ([#10763](https://togithub.com/sveltejs/kit/pull/10763)) - fix: correctly return 404 when a form action is not found ([#11278](https://togithub.com/sveltejs/kit/pull/11278)) ### [`v1.30.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1300) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.29.1...@sveltejs/kit@1.30.0) ##### Minor Changes - feat: inline `response.arrayBuffer()` during ssr ([#10535](https://togithub.com/sveltejs/kit/pull/10535)) ##### Patch Changes - fix: allow `"false"` value for preload link options ([#10555](https://togithub.com/sveltejs/kit/pull/10555)) - fix: call worker `unref` instead of `terminate` ([#10120](https://togithub.com/sveltejs/kit/pull/10120)) - fix: correctly analyse exported server API methods during build ([#11019](https://togithub.com/sveltejs/kit/pull/11019)) - fix: avoid error when back navigating before page is initialized ([#10636](https://togithub.com/sveltejs/kit/pull/10636)) - fix: allow service-worker.js to import assets ([#9285](https://togithub.com/sveltejs/kit/pull/9285)) - fix: distinguish better between not-found and internal-error ([#11131](https://togithub.com/sveltejs/kit/pull/11131)) ### [`v1.29.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1291) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.29.0...@sveltejs/kit@1.29.1) ##### Patch Changes - fix: correctly return 415 when unexpected content types are submitted to actions ([#11255](https://togithub.com/sveltejs/kit/pull/11255)) - chore: deprecate `preloadCode` calls with multiple arguments ([#11266](https://togithub.com/sveltejs/kit/pull/11266)) ### [`v1.29.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1290) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.28.0...@sveltejs/kit@1.29.0) ##### Minor Changes - feat: add `resolveRoute` to `$app/paths`, deprecate `resolvePath` ([#11261](https://togithub.com/sveltejs/kit/pull/11261)) ### [`v1.28.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1280) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.7...@sveltejs/kit@1.28.0) ##### Minor Changes - chore: deprecate top level promise await behaviour ([#11175](https://togithub.com/sveltejs/kit/pull/11175)) ##### Patch Changes - fix: resolve relative cookie paths before storing ([#11253](https://togithub.com/sveltejs/kit/pull/11253)) - chore: deprecate cookies.set/delete without path option ([#11237](https://togithub.com/sveltejs/kit/pull/11237)) - fix: make sure promises from fetch handle errors ([#11228](https://togithub.com/sveltejs/kit/pull/11228)) ### [`v1.27.7`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1277) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.6...@sveltejs/kit@1.27.7) ##### Patch Changes - fix: set runes option in generated root ([#11111](https://togithub.com/sveltejs/kit/pull/11111)) - fix: retain URL query string for trailing slash redirects to prerendered pages ([#11142](https://togithub.com/sveltejs/kit/pull/11142)) ### [`v1.27.6`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1276) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.5...@sveltejs/kit@1.27.6) ##### Patch Changes - fix: use runes in generated root when detecting Svelte 5 ([#11028](https://togithub.com/sveltejs/kit/pull/11028)) - fix: correctly prerender pages that use browser globals and have SSR turned off ([#11032](https://togithub.com/sveltejs/kit/pull/11032)) - fix: correctly show 404 for prerendered dynamic routes when navigating client-side without a root layout server load ([#11025](https://togithub.com/sveltejs/kit/pull/11025)) ### [`v1.27.5`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1275) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.4...@sveltejs/kit@1.27.5) ##### Patch Changes - fix: add vite.config.js to included files in generated tsconfig ([#10788](https://togithub.com/sveltejs/kit/pull/10788)) - fix: cache location.origin on startup ([#11004](https://togithub.com/sveltejs/kit/pull/11004)) ### [`v1.27.4`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1274) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.3...@sveltejs/kit@1.27.4) ##### Patch Changes - fix: generate `__data.json` for prerendered pages when SSR is turned off ([#10988](https://togithub.com/sveltejs/kit/pull/10988)) - chore: add experimental compatibility for Svelte 5 ([#11002](https://togithub.com/sveltejs/kit/pull/11002)) ### [`v1.27.3`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1273) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.2...@sveltejs/kit@1.27.3) ##### Patch Changes - fix: use correct environment file for rendering spa fallback page ([#10963](https://togithub.com/sveltejs/kit/pull/10963)) ### [`v1.27.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1272) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.1...@sveltejs/kit@1.27.2) ##### Patch Changes - fix: missing `File` Node polyfill for Node version 18.11.0+ ([#10948](https://togithub.com/sveltejs/kit/pull/10948)) ### [`v1.27.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1271) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.27.0...@sveltejs/kit@1.27.1) ##### Patch Changes - fix: only apply some polyfills below node 18.11 ([#10920](https://togithub.com/sveltejs/kit/pull/10920)) ### [`v1.27.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1270) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.26.0...@sveltejs/kit@1.27.0) ##### Minor Changes - feat: add `invalidateAll` boolean option to `enhance` callback ([#9889](https://togithub.com/sveltejs/kit/pull/9889)) ### [`v1.26.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1260) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.25.2...@sveltejs/kit@1.26.0) ##### Minor Changes - feat: infer route parameter type from matcher's guard check if applicable ([#10755](https://togithub.com/sveltejs/kit/pull/10755)) ##### Patch Changes - fix: basic mime type handling for prerendered pages in preview ([#10851](https://togithub.com/sveltejs/kit/pull/10851)) - chore: use just a single library (mrmime) for mime type handling ([#10851](https://togithub.com/sveltejs/kit/pull/10851)) - chore: bump undici to address security issue ([#10885](https://togithub.com/sveltejs/kit/pull/10885)) - fix: follow whatwg fetch spec for handling redirect loops ([#10857](https://togithub.com/sveltejs/kit/pull/10857)) - fix: use `window.fetch` in `load` functions to allow libraries to patch it ([#10009](https://togithub.com/sveltejs/kit/pull/10009)) - chore(deps): update dependency undici to ~5.26.0 ([#10860](https://togithub.com/sveltejs/kit/pull/10860)) ### [`v1.25.2`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1252) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.25.1...@sveltejs/kit@1.25.2) ##### Patch Changes - fix: correctly update `$page.url.hash` when navigating history ([#10843](https://togithub.com/sveltejs/kit/pull/10843)) - fix: strip virtual module prefix from error messages ([#10776](https://togithub.com/sveltejs/kit/pull/10776)) - fix: cancel ongoing navigation when the browser back button is hit to prevent an incorrect page from being rendered ([#10727](https://togithub.com/sveltejs/kit/pull/10727)) - fix: only remove Vite manifest when copying files ([#10782](https://togithub.com/sveltejs/kit/pull/10782)) ### [`v1.25.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1251) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.25.0...@sveltejs/kit@1.25.1) ##### Patch Changes - fix: correct line numbers in stack trace ([#10769](https://togithub.com/sveltejs/kit/pull/10769)) - fix: correctly return 404 when navigating to a missing page and the root layout fetches a prerendered endpoint ([#10565](https://togithub.com/sveltejs/kit/pull/10565)) - fix: allow optional param in middle of route ([#10736](https://togithub.com/sveltejs/kit/pull/10736)) - chore: update `undici` ([#10641](https://togithub.com/sveltejs/kit/pull/10641)) ### [`v1.25.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1250) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.24.1...@sveltejs/kit@1.25.0) ##### Minor Changes - feat: add server endpoint catch-all method handler `fallback` ([#9755](https://togithub.com/sveltejs/kit/pull/9755)) ##### Patch Changes - fix: allow calling `fetch` for any scheme ([#10699](https://togithub.com/sveltejs/kit/pull/10699)) ### [`v1.24.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1241) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.24.0...@sveltejs/kit@1.24.1) ##### Patch Changes - fix: mark aborted/cancelled navigation as handled ([#10666](https://togithub.com/sveltejs/kit/pull/10666)) ### [`v1.24.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1240) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.23.1...@sveltejs/kit@1.24.0) ##### Minor Changes - feat: onNavigate lifecycle function ([#9605](https://togithub.com/sveltejs/kit/pull/9605)) ##### Patch Changes - fix: Use Proxy to track usage of client side load `event.route` ([#10576](https://togithub.com/sveltejs/kit/pull/10576)) ### [`v1.23.1`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1231) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.23.0...@sveltejs/kit@1.23.1) ##### Patch Changes - fix: process globs in `pkg.workspaces` ([#10625](https://togithub.com/sveltejs/kit/pull/10625)) ### [`v1.23.0`](https://togithub.com/sveltejs/kit/blob/HEAD/packages/kit/CHANGELOG.md#1230) [Compare Source](https://togithub.com/sveltejs/kit/compare/@sveltejs/kit@1.22.6...@sveltejs/kit@1.23.0) ##### Minor Changes - feat: add warning for mistyped route filenames ([#10558](https://togithub.com/sveltejs/kit/pull/10558)) - feat: accept `URL` in `redirect` ([#10570](https://togithub.com/sveltejs/kit/pull/10570)) ##### Patch Changes - fix: adjust the type of `Navigation["type"]` ([#10599](https://togithub.com/sveltejs/kit/pull/10599)) - fix: allow logging `$page.url` during prerendering ([#10567](https://togithub.com/sveltejs/kit/pull/10567))testing-library/svelte-testing-library (@testing-library/svelte)
### [`v4.1.0`](https://togithub.com/testing-library/svelte-testing-library/releases/tag/v4.1.0) [Compare Source](https://togithub.com/testing-library/svelte-testing-library/compare/v4.0.6...v4.1.0) ##### Features - **vitest:** add vitest cleanup export ([#294](https://togithub.com/testing-library/svelte-testing-library/issues/294)) ([ee1b1f7](https://togithub.com/testing-library/svelte-testing-library/commit/ee1b1f791792bfc2a1598867a076bc516c180524)) ### [`v4.0.6`](https://togithub.com/testing-library/svelte-testing-library/releases/tag/v4.0.6) [Compare Source](https://togithub.com/testing-library/svelte-testing-Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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.