chore(deps): update all non-major dependencies
This PR contains the following updates:
Release Notes
Microsoft/playwright
v1.24.2
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/15977 - [BUG] test.use of storage state regression in 1.24
Browser Versions
- Chromium 104.0.5112.48
- Mozilla Firefox 102.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.24.1
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/15898 - [BUG] Typescript error: The type for webServer config property (TestConfigWebServer) is not typed correctlyhttps://github.com/microsoft/playwright/issues/159133 - [BUG] hooksConfig is required for mount fixturhttps://github.com/microsoft/playwright/issues/1593232 - [BUG] - Install MS Edge on CI Fails
Browser Versions
- Chromium 104.0.5112.48
- Mozilla Firefox 102.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.24.0
🌍 Multiple Web Servers in playwright.config.ts
Launch multiple web servers, databases, or other processes by passing an array of configurations:
// playwright.config.ts
import type { PlaywrightTestConfig } from '@​playwright/test';
const config: PlaywrightTestConfig = {
webServer: [
{
command: 'npm run start',
port: 3000,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
},
{
command: 'npm run backend',
port: 3333,
timeout: 120 * 1000,
reuseExistingServer: !process.env.CI,
}
],
use: {
baseURL: 'http://localhost:3000/',
},
};
export default config;
🐂 Debian 11 Bullseye Support
Playwright now supports Debian 11 Bullseye on x86_64 for Chromium, Firefox and WebKit. Let us know if you encounter any issues!
Linux support looks like this:
| Ubuntu 18.04 | Ubuntu 20.04 | Ubuntu 22.04 | Debian 11 | |
|---|---|---|---|---|
| Chromium | ✅ | ✅ | ✅ | ✅ |
| WebKit | ✅ | ✅ | ✅ | ✅ |
| Firefox | ✅ | ✅ | ✅ | ✅ |
🕵️ Anonymous Describe
It is now possible to call test.describe(callback) to create suites without a title. This is useful for giving a group of tests a common option with test.use(options).
test.describe(() => {
test.use({ colorScheme: 'dark' });
test('one', async ({ page }) => {
// ...
});
test('two', async ({ page }) => {
// ...
});
});
🧩 Component Tests Update
Playwright 1.24 Component Tests introduce beforeMount and afterMount hooks.
Use these to configure your app for tests.
Vue + Vue Router
For example, this could be used to setup App router in Vue.js:
// src/component.spec.ts
import { test } from '@​playwright/experimental-ct-vue';
import { Component } from './mycomponent';
test('should work', async ({ mount }) => {
const component = await mount(Component, {
hooksConfig: {
/* anything to configure your app */
}
});
});
// playwright/index.ts
import { router } from '../router';
import { beforeMount } from '@​playwright/experimental-ct-vue/hooks';
beforeMount(async ({ app, hooksConfig }) => {
app.use(router);
});
React + Next.js
A similar configuration in Next.js would look like this:
// src/component.spec.jsx
import { test } from '@​playwright/experimental-ct-react';
import { Component } from './mycomponent';
test('should work', async ({ mount }) => {
const component = await mount(<Component></Component>, {
// Pass mock value from test into `beforeMount`.
hooksConfig: {
router: {
query: { page: 1, per_page: 10 },
asPath: '/posts'
}
}
});
});
// playwright/index.js
import router from 'next/router';
import { beforeMount } from '@​playwright/experimental-ct-react/hooks';
beforeMount(async ({ hooksConfig }) => {
// Before mount, redefine useRouter to return mock value from test.
router.useRouter = () => hooksConfig.router;
});
Browser Versions
- Chromium 104.0.5112.48
- Mozilla Firefox 102.0
- WebKit 16.0
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.23.4
Highlights
This patch includes the following bug fix:
https://github.com/microsoft/playwright/issues/15717 - [REGRESSION]: Suddenly stopped working despite nothing having changed (experimentalLoader.js:load did not call the next hook in its chain and did not explicitly signal a short circuit)
Browser Versions
- Chromium 104.0.5112.20
- Mozilla Firefox 100.0.2
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.23.3
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/15557 - [REGRESSION]: Event Listeners not being removed if same handler is used for different events
Browser Versions
- Chromium 104.0.5112.20
- Mozilla Firefox 100.0.2
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.23.2
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/15273 - [BUG] LaunchOptions config has no effect after update to v1.23.0https://github.com/microsoft/playwright/issues/153511 - [REGRESSION]: Component testing project does not compile anymorhttps://github.com/microsoft/playwright/issues/1543131 - [BUG] Regression: page.on('console') is ignored in 1.23
Browser Versions
- Chromium 104.0.5112.20
- Mozilla Firefox 100.0.2
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.23.1
Highlights
This patch includes the following bug fixes:
https://github.com/microsoft/playwright/issues/15219 - [REGRESSION]: playwright-core 1.23.0 issue with 'TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument'
Browser Versions
- Chromium 104.0.5112.20
- Mozilla Firefox 100.0.2
- WebKit 15.4
This version was also tested against the following stable channels:
- Google Chrome 103
- Microsoft Edge 103
v1.23.0
Network Replay
Now you can record network traffic into a HAR file and re-use the data in your tests.
To record network into HAR file:
npx playwright open --save-har=github.har.zip https://github.com/microsoft
Alternatively, you can record HAR programmatically:
const context = await browser.newContext({
recordHar: { path: 'github.har.zip' }
});
// ... do stuff ...
await context.close();
Use the new methods page.routeFromHAR() or browserContext.routeFromHAR() to serve matching responses from the HAR file:
await context.routeFromHAR('github.har.zip');
Read more in our documentation.
Advanced Routing
You can now use route.fallback() to defer routing to other handlers.
Consider the following example:
// Remove a header from all requests.
test.beforeEach(async ({ page }) => {
await page.route('**/*', route => {
const headers = route.request().headers();
delete headers['if-none-match'];
route.fallback({ headers });
});
});
test('should work', async ({ page }) => {
await page.route('**/*', route => {
if (route.request().resourceType() === 'image')
route.abort();
else
route.fallback();
});
});
Note that the new methods page.routeFromHAR() and browserContext.routeFromHAR() also participate in routing and could be deferred to.
Web-First Assertions Update
- New method
expect(locator).toHaveValues()that asserts all selected values of<select multiple>element. - Methods
expect(locator).toContainText()andexpect(locator).toHaveText()now acceptignoreCaseoption.
Component Tests Update
- Support for Vue2 via the
@playwright/experimental-ct-vue2package. - Support for component tests for create-react-app with components in
.jsfiles.
Read more about component testing with Playwright.
Miscellaneous
- If there's a service worker that's in your way, you can now easily disable it with a new context option
serviceWorkers:// playwright.config.ts export default { use: { serviceWorkers: 'block', } } - Using
.zippath forrecordHarcontext option automatically zips the resulting HAR:const context = await browser.newContext({ recordHar: { path: 'github.har.zip', } }); - If you intend to edit HAR by hand, consider using the
"minimal"HAR recording mode that only records information that is essential for replaying:const context = await browser.newContext({ recordHar: { path: 'github.har.zip', mode: 'minimal', } }); - Playwright now runs on Ubuntu 22 amd64 and Ubuntu 22 arm64. We also publish new docker image
mcr.microsoft.com/playwright:v1.23.0-focal.
⚠️ Breaking Changes ⚠️
WebServer is now considered "ready" if request to the specified port has any of the following HTTP status codes:
-
200-299 -
300-399(new) -
400,401,402,403(new)
rollup/plugins
v8.3.4
2022-07-28
Bugfixes
- fix: fix declaration file generation for single file outputs (#1201)
typescript-eslint/typescript-eslint (@typescript-eslint/eslint-plugin)
v5.33.0
Bug Fixes
- eslint-plugin: [no-extra-parens] handle await with type assertion (#5428) (e03826f)
- website: add explicit frontmatter description to rule docs (#5429) (63cba5f)
Features
- eslint-plugin: [member-ordering] support static blocks (#5417) (5983e5a)
- eslint-plugin: [prefer-as-const] adds support for class properties (#5413) (d2394f8)
v5.32.0
Features
v5.31.0
Bug Fixes
- eslint-plugin: [typedef] Support nested array destructuring with type annotation (#5311) (6d19efe)
- scope-manager: handle typeParameters of TSInstantiationExpression (#5355) (2595ccf)
Features
- eslint-plugin: [consistent-generic-ctors] check class field declaration (#5288) (48f996e)
- eslint-plugin: [prefer-nullish-coalescing] add ignoreTernaryTests option (#4965) (f82727f)
5.30.7 (2022-07-18)
Bug Fixes
- eslint-plugin: [no-inferrable] fix optional param to valid code (#5342) (98f6d5e)
- eslint-plugin: [no-unused-vars] highlight last write reference (#5267) (c3f199a)
5.30.6 (2022-07-11)
Note: Version bump only for package @typescript-eslint/eslint-plugin
5.30.5 (2022-07-04)
Bug Fixes
- eslint-plugin: [consistent-indexed-object-style] fix record mode fixer for generics with a default value (#5280) (57f032c)
5.30.4 (2022-07-03)
Note: Version bump only for package @typescript-eslint/eslint-plugin
5.30.3 (2022-07-01)
Note: Version bump only for package @typescript-eslint/eslint-plugin
5.30.2 (2022-07-01)
Note: Version bump only for package @typescript-eslint/eslint-plugin
5.30.1 (2022-07-01)
Bug Fixes
v5.30.7
Bug Fixes
- eslint-plugin: [no-inferrable] fix optional param to valid code (#5342) (98f6d5e)
- eslint-plugin: [no-unused-vars] highlight last write reference (#5267) (c3f199a)
v5.30.6
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.30.5
Bug Fixes
- eslint-plugin: [consistent-indexed-object-style] fix record mode fixer for generics with a default value (#5280) (57f032c)
v5.30.4
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.30.3
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.30.2
Note: Version bump only for package @typescript-eslint/eslint-plugin
v5.30.1
Bug Fixes
v5.30.0
Features
typescript-eslint/typescript-eslint (@typescript-eslint/parser)
v5.33.0
Note: Version bump only for package @typescript-eslint/parser
v5.32.0
Note: Version bump only for package @typescript-eslint/parser
v5.31.0
Note: Version bump only for package @typescript-eslint/parser
5.30.7 (2022-07-18)
Bug Fixes
5.30.6 (2022-07-11)
Note: Version bump only for package @typescript-eslint/parser
5.30.5 (2022-07-04)
Note: Version bump only for package @typescript-eslint/parser
5.30.4 (2022-07-03)
Note: Version bump only for package @typescript-eslint/parser
5.30.3 (2022-07-01)
Note: Version bump only for package @typescript-eslint/parser
5.30.2 (2022-07-01)
Note: Version bump only for package @typescript-eslint/parser
5.30.1 (2022-07-01)
Note: Version bump only for package @typescript-eslint/parser
v5.30.7
Bug Fixes
v5.30.6
Note: Version bump only for package @typescript-eslint/parser
v5.30.5
Note: Version bump only for package @typescript-eslint/parser
v5.30.4
Note: Version bump only for package @typescript-eslint/parser
v5.30.3
Note: Version bump only for package @typescript-eslint/parser
v5.30.2
Note: Version bump only for package @typescript-eslint/parser
v5.30.1
Note: Version bump only for package @typescript-eslint/parser
v5.30.0
Note: Version bump only for package @typescript-eslint/parser
eslint/eslint
v8.21.0
Features
-
7b43ea1feat: Implement FlatESLint (#16149) (Nicholas C. Zakas) -
92bf49afeat: improve the key width calculation inkey-spacingrule (#16154) (Nitin Kumar) -
c461542feat: add newallowLineSeparatedGroupsoption to thesort-keysrule (#16138) (Nitin Kumar) -
1cdcbcafeat: add deprecation warnings for legacy API inRuleTester(#16063) (Nitin Kumar)
Bug Fixes
-
0396775fix: lines-around-comment applyallowBlockStartfor switch statements (#16153) (Nitin Kumar)
Documentation
Chores
-
8892511chore: Upgrade to Espree 9.3.3 (#16173) (Brandon Mills) -
1233beechore: switch to eslint-plugin-node's maintained fork (#16150) (唯然) -
97b95c0chore: upgrade puppeteer v13 (#16151) (唯然)
v8.20.0
Features
Bug Fixes
-
30be0edfix: no-warning-comments rule escapes special RegEx characters in terms (#16090) (Lachlan Hunt) -
bfe5e88fix: ignore spacing before]and}in comma-spacing (#16113) (Milos Djermanovic)
Documentation
-
845c4f4docs: Add website team details (#16115) (Nicholas C. Zakas) -
5a0dfdbdocs: Link to blog post in no-constant-binary-expression (#16112) (Jordan Eldredge) -
bc692a9docs: remove install command (#16084) (Strek) -
49ca3f0docs: don't show toc when content not found (#16095) (Amaresh S M) -
ba19e3fdocs: enhance 404 page UI (#16097) (Amaresh S M) -
a75d3b4docs: remove unused meta.docs.category field in working-with-rules page (#16109) (Brandon Scott) -
cdc0206docs: add formatters page edit link (#16094) (Amaresh S M) -
4d1ed22docs: preselect default theme (#16098) (Strek) -
4b79612docs: add missing correct/incorrect containers (#16087) (Milos Djermanovic) -
09f6acbdocs: fix UI bug on rules index and details pages (#16082) (Deepshika S) -
f5db264docs: remove remaining duplicate rule descriptions (#16093) (Milos Djermanovic) -
32a6b2adocs: Add scroll behaviour smooth (#16056) (Amaresh S M)
Chores
-
bbf8df4chore: Mark autogenerated release blog post as draft (#16130) (Nicholas C. Zakas) -
eee4306chore: update internal lint dependencies (#16088) (Bryan Mishkin) -
9615a42chore: update formatter examples template to avoid markdown lint error (#16085) (Milos Djermanovic) -
62541edchore: fix markdown linting error (#16083) (唯然)
v8.19.0
Features
-
7023628feat: add importNames support for patterns in no-restricted-imports (#16059) (Brandon Scott) -
472c368feat: fix handling of blocklesswithstatements in indent rule (#16068) (Milos Djermanovic)
Bug Fixes
Documentation
-
3ae0574docs: Remove duplicate rule descriptions (#16052) (Amaresh S M) -
f50cf43docs: Add base href to each page to fix relative URLs (#16046) (Nicholas C. Zakas) -
ae4b449docs: make logo link clickable on small width screens (#16058) (Milos Djermanovic) -
280f898docs: use only fenced code blocks (#16044) (Milos Djermanovic) -
f5d63b9docs: add listener only if element exists (#16045) (Amaresh S M) -
8b639ccdocs: add missing migrating-to-8.0.0 in the user guide (#16048) (唯然) -
b8e68c1docs: Update release process (#16036) (Nicholas C. Zakas) -
6d0cb11docs: remove table of contents from markdown text (#15999) (Nitin Kumar)
Chores
-
e884933chore: usegithub-sluggerfor markdown anchors (#16067) (Strek) -
02e9cb0chore: revamp carbon ad style (#16078) (Amaresh S M) -
b6aee95chore: remove unwanted comments from rules markdown (#16054) (Strek) -
6840940chore: correctly use .markdownlintignore in Makefile (#16060) (Bryan Mishkin) -
48904fbchore: add missing images (#16017) (Amaresh S M) -
910f741chore: add architecture to nav (#16039) (Strek) -
9bb24c1chore: add correct incorrect in all rules doc (#16021) (Deepshika S) -
5a96af8chore: prepare versions data file (#16035) (Nicholas C. Zakas) -
50afe6fchore: Included githubactions in the dependabot config (#15985) (Naveen) -
473411echore: add deploy workflow for playground (#16034) (Milos Djermanovic) -
a30b66cchore: fix print style (#16025) (Amaresh S M) -
f4dad59chore: add noindex meta tag (#16016) (Milos Djermanovic) -
db387a8chore: fix sitemap (#16026) (Milos Djermanovic) -
285fbc5chore: remove TOC from printable (#16020) (Strek) -
8e84c21chore: remove ligatures from fonts (#16019) (Strek)
facebook/jest
v28.1.3
Features
-
[jest-leak-detector]Use nativeFinalizationRegistrywhen it exists to get rid of external C dependency (#12973)
Fixes
-
[jest-changed-files]Fix a lock-up after repeated invocations (#12757) -
[@jest/expect-utils]Fix deep equality of ImmutableJS OrderedSets (#12977) -
[jest-mock]Add index signature support forspyOntypes (#13013, #13020) -
[jest-snapshot]Fix indentation of awaited inline snapshots (#12986)
Chore & Maintenance
-
[*]Replace internal usage ofpretty-format/ConvertAnsiwithjest-serializer-ansi-escapes(#12935, #13004) -
[docs]Update spyOn docs (#13000)
v28.1.2
Fixes
-
[jest-runtime]Avoid star type import from@jest/globals(#12949)
Chore & Maintenance
-
[docs]Mention that jest-codemods now supports Sinon (#12898)
rollup/rollup
v2.77.2
2022-07-27
Bug Fixes
- Avoid a rendering failure when mixing outputs with inlined and non-inlined dynamic imports (#4589)
Pull Requests
- #4589: Handle generating non-inlined imports after inlined ones (@lukastaegert)
v2.77.1
2022-07-26
Bug Fixes
- Ensure IIFE output generates a global variable when generating ES5 (#4588)
Pull Requests
- #4577: broken link removed (@Jawad-H)
- #4580: Update dependencies (@lukastaegert)
- #4584: Documentation clarity and syntax improvements (@berniegp)
- #4588: Use var for IIFE (@lukastaegert)
v2.77.0
2022-07-15
Features
- Introduce
maxParallelFileOpsto limit both read and write operations, default to 20 and replacesmaxParallelFileRead(#4570)
Bug Fixes
- Avoid including variables referenced from return statements that are never reached (#4573)
Pull Requests
- #4570: Introduce maxParallelFileOps to limit parallel writes (@lukastaegert)
- #4572: Document more ways to read package.json in ESM (@berniegp)
Configuration
📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
