microsoft/playwright (@playwright/test)
### [`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
swc-project/swc (@swc/core)
### [`v1.3.93`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1393---2023-10-13)
[Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.92...v1.3.93)
##### Bug Fixes
- **(ci)** Fix CI ([#8079](https://togithub.com/swc-project/swc/issues/8079)) ([7073e83](https://togithub.com/swc-project/swc/commit/7073e83f65ed5e98ee294c8e366a80b0a0f5921f))
- **(es/codegen)** Fix codegen of type-only imports ([#8070](https://togithub.com/swc-project/swc/issues/8070)) ([6f45b46](https://togithub.com/swc-project/swc/commit/6f45b4693e6d35bf05bacb89b65c7f013d0366a2))
- **(es/compat)** Handle `__proto__` edge case in `shorthand` pass ([#8077](https://togithub.com/swc-project/swc/issues/8077)) ([a912937](https://togithub.com/swc-project/swc/commit/a912937cea672ad4fbda057efc3a09283e3635fe))
- **(es/compat)** Handle export default decorator only if not empty ([#8099](https://togithub.com/swc-project/swc/issues/8099)) ([bf523f5](https://togithub.com/swc-project/swc/commit/bf523f53513311d6c7d4a94f9a36bedd42230c09))
- **(es/decorators)** Fix a regression about class expressions ([#8102](https://togithub.com/swc-project/swc/issues/8102)) ([cb4361f](https://togithub.com/swc-project/swc/commit/cb4361f2931cf222edbb449db6fe2c261c4b735d))
- **(es/helpers)** Override mistake in `_interop_require_wildcard` ([#8076](https://togithub.com/swc-project/swc/issues/8076)) ([1346528](https://togithub.com/swc-project/swc/commit/1346528477bd8c587f0ee0d5fa6969f397739ddb))
- **(es/minifier)** Don't inline functions if `keep_fnames` is enabled ([#8093](https://togithub.com/swc-project/swc/issues/8093)) ([94bb42e](https://togithub.com/swc-project/swc/commit/94bb42e29418a8697ba0ab41dad2ffe63f1c32c7))
- **(es/parser)** Fix parsing of `await using` ([#8101](https://togithub.com/swc-project/swc/issues/8101)) ([e1043fa](https://togithub.com/swc-project/swc/commit/e1043fae77ca9e33b2d65ce6edc9559917a895ec))
- **(xtask)** Fix nightly command ([#8105](https://togithub.com/swc-project/swc/issues/8105)) ([db4ca65](https://togithub.com/swc-project/swc/commit/db4ca650e445e602f289f7964b24f7e2647beacd))
##### Features
- **(css/parser)** Store lexed comments ([#8091](https://togithub.com/swc-project/swc/issues/8091)) ([d1097cc](https://togithub.com/swc-project/swc/commit/d1097ccb599c4343e3f80ca9bd793bbfce424e8b))
##### Miscellaneous Tasks
- **(es/minifier)** Fix script for extracting test cases from next.js app ([#8092](https://togithub.com/swc-project/swc/issues/8092)) ([a2d0779](https://togithub.com/swc-project/swc/commit/a2d077958f071752dbc347fbf414622e0146e1fd))
##### Refactor
- **(atoms)** Remove usage of `js_word!` to drop `string-cache` ([#7976](https://togithub.com/swc-project/swc/issues/7976)) ([84cec87](https://togithub.com/swc-project/swc/commit/84cec8766db77062cc984c777dd716358ee8fd6e))
- **(es/compat)** Split `swc_ecma_transforms_compat` ([#8110](https://togithub.com/swc-project/swc/issues/8110)) ([affb6fb](https://togithub.com/swc-project/swc/commit/affb6fb5e3e363f1eb4d42d4501a4a806c4060f7))
- **(es/module)** Reimplement some functions of module/typescript ([#8063](https://togithub.com/swc-project/swc/issues/8063)) ([3e5b062](https://togithub.com/swc-project/swc/commit/3e5b062cd2792703371bbbfeaf1be309e8280abd))
- **(es/parser)** Introduce `TokenKind` along with `Token` ([#8071](https://togithub.com/swc-project/swc/issues/8071)) ([9b9bc51](https://togithub.com/swc-project/swc/commit/9b9bc51c28fee51de9eeedf6d49fbe115d6052e6))
- **(es/preset-env)** Rename parameter to avoid confusion ([#8106](https://togithub.com/swc-project/swc/issues/8106)) ([95eb147](https://togithub.com/swc-project/swc/commit/95eb147742ea1aa207845807a306847afc859702))
pnpm/pnpm (pnpm)
### [`v8.9.2`](https://togithub.com/pnpm/pnpm/releases/tag/v8.9.2)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.9.1...v8.9.2)
#### Patch Changes
- Don't use reflink on Windows [#7186](https://togithub.com/pnpm/pnpm/issues/7186).
- Do not run node-gyp rebuild if `preinstall` lifecycle script is present [#7206](https://togithub.com/pnpm/pnpm/pull/7206).
#### Our Gold Sponsors
#### Our Silver Sponsors
### [`v8.9.1`](https://togithub.com/pnpm/pnpm/releases/tag/v8.9.1)
[Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.9.0...v8.9.1)
#### Patch Changes
- Optimize selection result output of `pnpm update --interactive` [7109](https://togithub.com/pnpm/pnpm/issues/7109)
- When `shared-workspace-lockfile` is set to `false`, read the pnpm settings from `package.json` files that are nested. This was broken in pnpm v8.9.0 [#7184](https://togithub.com/pnpm/pnpm/issues/7184).
- Fix file cloning to `node_modules` on Windows Dev Drives [#7186](https://togithub.com/pnpm/pnpm/issues/7186). This is a fix to a regression that was shipped with v8.9.0.
- `pnpm dlx` should ignore any settings that are in a `package.json` file found in the current working directory [#7198](https://togithub.com/pnpm/pnpm/issues/7198).
#### Our Gold Sponsors
#### Our Silver Sponsors
styled-components/styled-components (styled-components)
### [`v6.1.0`](https://togithub.com/styled-components/styled-components/releases/tag/v6.1.0)
[Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.0.9...v6.1.0)
#### What's Changed
- fix(native): bump postcss version from 8.4.23 to 8.4.31 by [@davidlacasse](https://togithub.com/davidlacasse) in [https://github.com/styled-components/styled-components/pull/4188](https://togithub.com/styled-components/styled-components/pull/4188)
- fix(native): solve ts warning by [@krudos](https://togithub.com/krudos) in [https://github.com/styled-components/styled-components/pull/4190](https://togithub.com/styled-components/styled-components/pull/4190)
- chore: remove babel macro due to lack of usage by [@probablyup](https://togithub.com/probablyup) in [https://github.com/styled-components/styled-components/pull/4193](https://togithub.com/styled-components/styled-components/pull/4193)
#### New Contributors
- [@davidlacasse](https://togithub.com/davidlacasse) made their first contribution in [https://github.com/styled-components/styled-components/pull/4188](https://togithub.com/styled-components/styled-components/pull/4188)
**Full Changelog**: https://github.com/styled-components/styled-components/compare/v6.0.9...v6.1.0
### [`v6.0.9`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.9)
[Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.0.8...v6.0.9)
fix bundling to not hardcode `window` (should fix some testing use cases that were incorrectly assuming a server environment when JSDOM and similar are in use)
**Full Changelog**: https://github.com/styled-components/styled-components/compare/v6.0.8...v6.0.9
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
^1.38.1
->^1.39.0
^1.3.92
->^1.3.93
^2.5.87
->^2.5.92
^1.5.87
->^1.5.92
^18.18.4
->^18.18.5
^18.2.27
->^18.2.28
^18.2.12
->^18.2.13
8.9.0
->8.9.2
^6.0.8
->^6.1.0
Release Notes
microsoft/playwright (@playwright/test)
### [`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 118swc-project/swc (@swc/core)
### [`v1.3.93`](https://togithub.com/swc-project/swc/blob/HEAD/CHANGELOG.md#1393---2023-10-13) [Compare Source](https://togithub.com/swc-project/swc/compare/v1.3.92...v1.3.93) ##### Bug Fixes - **(ci)** Fix CI ([#8079](https://togithub.com/swc-project/swc/issues/8079)) ([7073e83](https://togithub.com/swc-project/swc/commit/7073e83f65ed5e98ee294c8e366a80b0a0f5921f)) - **(es/codegen)** Fix codegen of type-only imports ([#8070](https://togithub.com/swc-project/swc/issues/8070)) ([6f45b46](https://togithub.com/swc-project/swc/commit/6f45b4693e6d35bf05bacb89b65c7f013d0366a2)) - **(es/compat)** Handle `__proto__` edge case in `shorthand` pass ([#8077](https://togithub.com/swc-project/swc/issues/8077)) ([a912937](https://togithub.com/swc-project/swc/commit/a912937cea672ad4fbda057efc3a09283e3635fe)) - **(es/compat)** Handle export default decorator only if not empty ([#8099](https://togithub.com/swc-project/swc/issues/8099)) ([bf523f5](https://togithub.com/swc-project/swc/commit/bf523f53513311d6c7d4a94f9a36bedd42230c09)) - **(es/decorators)** Fix a regression about class expressions ([#8102](https://togithub.com/swc-project/swc/issues/8102)) ([cb4361f](https://togithub.com/swc-project/swc/commit/cb4361f2931cf222edbb449db6fe2c261c4b735d)) - **(es/helpers)** Override mistake in `_interop_require_wildcard` ([#8076](https://togithub.com/swc-project/swc/issues/8076)) ([1346528](https://togithub.com/swc-project/swc/commit/1346528477bd8c587f0ee0d5fa6969f397739ddb)) - **(es/minifier)** Don't inline functions if `keep_fnames` is enabled ([#8093](https://togithub.com/swc-project/swc/issues/8093)) ([94bb42e](https://togithub.com/swc-project/swc/commit/94bb42e29418a8697ba0ab41dad2ffe63f1c32c7)) - **(es/parser)** Fix parsing of `await using` ([#8101](https://togithub.com/swc-project/swc/issues/8101)) ([e1043fa](https://togithub.com/swc-project/swc/commit/e1043fae77ca9e33b2d65ce6edc9559917a895ec)) - **(xtask)** Fix nightly command ([#8105](https://togithub.com/swc-project/swc/issues/8105)) ([db4ca65](https://togithub.com/swc-project/swc/commit/db4ca650e445e602f289f7964b24f7e2647beacd)) ##### Features - **(css/parser)** Store lexed comments ([#8091](https://togithub.com/swc-project/swc/issues/8091)) ([d1097cc](https://togithub.com/swc-project/swc/commit/d1097ccb599c4343e3f80ca9bd793bbfce424e8b)) ##### Miscellaneous Tasks - **(es/minifier)** Fix script for extracting test cases from next.js app ([#8092](https://togithub.com/swc-project/swc/issues/8092)) ([a2d0779](https://togithub.com/swc-project/swc/commit/a2d077958f071752dbc347fbf414622e0146e1fd)) ##### Refactor - **(atoms)** Remove usage of `js_word!` to drop `string-cache` ([#7976](https://togithub.com/swc-project/swc/issues/7976)) ([84cec87](https://togithub.com/swc-project/swc/commit/84cec8766db77062cc984c777dd716358ee8fd6e)) - **(es/compat)** Split `swc_ecma_transforms_compat` ([#8110](https://togithub.com/swc-project/swc/issues/8110)) ([affb6fb](https://togithub.com/swc-project/swc/commit/affb6fb5e3e363f1eb4d42d4501a4a806c4060f7)) - **(es/module)** Reimplement some functions of module/typescript ([#8063](https://togithub.com/swc-project/swc/issues/8063)) ([3e5b062](https://togithub.com/swc-project/swc/commit/3e5b062cd2792703371bbbfeaf1be309e8280abd)) - **(es/parser)** Introduce `TokenKind` along with `Token` ([#8071](https://togithub.com/swc-project/swc/issues/8071)) ([9b9bc51](https://togithub.com/swc-project/swc/commit/9b9bc51c28fee51de9eeedf6d49fbe115d6052e6)) - **(es/preset-env)** Rename parameter to avoid confusion ([#8106](https://togithub.com/swc-project/swc/issues/8106)) ([95eb147](https://togithub.com/swc-project/swc/commit/95eb147742ea1aa207845807a306847afc859702))pnpm/pnpm (pnpm)
### [`v8.9.2`](https://togithub.com/pnpm/pnpm/releases/tag/v8.9.2) [Compare Source](https://togithub.com/pnpm/pnpm/compare/v8.9.1...v8.9.2) #### Patch Changes - Don't use reflink on Windows [#7186](https://togithub.com/pnpm/pnpm/issues/7186). - Do not run node-gyp rebuild if `preinstall` lifecycle script is present [#7206](https://togithub.com/pnpm/pnpm/pull/7206). #### Our Gold Sponsorsstyled-components/styled-components (styled-components)
### [`v6.1.0`](https://togithub.com/styled-components/styled-components/releases/tag/v6.1.0) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.0.9...v6.1.0) #### What's Changed - fix(native): bump postcss version from 8.4.23 to 8.4.31 by [@davidlacasse](https://togithub.com/davidlacasse) in [https://github.com/styled-components/styled-components/pull/4188](https://togithub.com/styled-components/styled-components/pull/4188) - fix(native): solve ts warning by [@krudos](https://togithub.com/krudos) in [https://github.com/styled-components/styled-components/pull/4190](https://togithub.com/styled-components/styled-components/pull/4190) - chore: remove babel macro due to lack of usage by [@probablyup](https://togithub.com/probablyup) in [https://github.com/styled-components/styled-components/pull/4193](https://togithub.com/styled-components/styled-components/pull/4193) #### New Contributors - [@davidlacasse](https://togithub.com/davidlacasse) made their first contribution in [https://github.com/styled-components/styled-components/pull/4188](https://togithub.com/styled-components/styled-components/pull/4188) **Full Changelog**: https://github.com/styled-components/styled-components/compare/v6.0.9...v6.1.0 ### [`v6.0.9`](https://togithub.com/styled-components/styled-components/releases/tag/v6.0.9) [Compare Source](https://togithub.com/styled-components/styled-components/compare/v6.0.8...v6.0.9) fix bundling to not hardcode `window` (should fix some testing use cases that were incorrectly assuming a server environment when JSDOM and similar are in use) **Full Changelog**: https://github.com/styled-components/styled-components/compare/v6.0.8...v6.0.9Configuration
📅 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.