chore(deps): update all non-major dependencies
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| @babel/core (source) | devDependencies | patch | 7.18.6 -> 7.18.9 |
| @babel/preset-env (source) | devDependencies | patch | 7.18.6 -> 7.18.9 |
| eslint (source) | devDependencies | minor | 8.20.0 -> 8.21.0 |
| eslint-plugin-jsdoc | devDependencies | patch | 39.3.3 -> 39.3.4 |
| i18next (source) | dependencies | patch | 21.8.14 -> 21.8.16 |
| lit (source) | dependencies | patch | 2.2.7 -> 2.2.8 |
| pdfjs-dist (source) | dependencies | minor | 2.14.305 -> 2.15.349 |
| playwright-core (source) | devDependencies | minor | 1.23.4 -> 1.24.2 |
| rollup (source) | devDependencies | patch | 2.77.0 -> 2.77.2 |
Release Notes
babel/babel
v7.18.9
🐛 Bug Fix
-
babel-plugin-transform-modules-systemjs,babel-types -
babel-generator-
#14758 fix:
returnTypewith comments generates incorrect code (@liuxingbaoyu)
-
#14758 fix:
💅 Polish
-
babel-cli-
#14748 Print a message when the watcher of
babel-cliis ready. (@liuxingbaoyu)
-
#14748 Print a message when the watcher of
🏠 Internal
-
babel-core,babel-helper-remap-async-to-generator,babel-helpers,babel-parser,babel-plugin-transform-block-scoping,babel-preset-env- #13414 Prepare for compiling Babel to native ESM (@nicolo-ribaudo)
-
babel-helper-create-class-features-plugin,babel-helper-member-expression-to-functions,babel-helper-remap-async-to-generator,babel-helper-replace-supers,babel-helper-wrap-function,babel-helpers,babel-plugin-bugfix-v8-spread-parameters-in-optional-chaining,babel-plugin-proposal-decorators,babel-plugin-proposal-object-rest-spread,babel-plugin-proposal-optional-chaining,babel-plugin-transform-block-scoping,babel-plugin-transform-classes,babel-traverse,babel-types
:running_woman: Performance
-
babel-generator- #14701 perf: Improve generator perf (@liuxingbaoyu)
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
gajus/eslint-plugin-jsdoc
v39.3.4
Bug Fixes
- avoid erring out with missing function and any context (07a9fe3)
i18next/i18next
v21.8.16
- types: fix getDataByLanguage type 1810
v21.8.15
- fix: make sure retry logic ends for failed backend reads
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 correctly https://github.com/microsoft/playwright/issues/15913 - [BUG] hooksConfig is required for mount fixture https://github.com/microsoft/playwright/issues/15932 - [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
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)
Merge 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)
Merge Requests
- #4577: broken link removed (@Jawad-H)
- #4580: Update dependencies (@lukastaegert)
- #4584: Documentation clarity and syntax improvements (@berniegp)
- #4588: Use var for IIFE (@lukastaegert)
Configuration
-
If you want to rebase/retry this MR, click this checkbox.
This MR has been generated by Renovate Bot.