Skip to content

Commit 6006451

Browse files
author
Sander Aalbers
committed
Remove Puppeteer KnownDevices export
1 parent 9dd1013 commit 6006451

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

MIGRATION.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Migration
2+
3+
## From version 0.15.x to 0.16.0
4+
5+
The re-exports of Puppeteer devices is removed and can be imported from Puppeteer directly.
6+
7+
```ts
8+
import { KnownDevices } from 'puppeteer';
9+
```

packages/test-runner-chrome/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as puppeteerCore from 'puppeteer-core';
22
import { ChromeLauncher, CreateBrowserContextFn, CreatePageFn } from './ChromeLauncher.js';
3-
import { PuppeteerNodeLaunchOptions, KnownDevices } from 'puppeteer-core';
3+
import { PuppeteerNodeLaunchOptions } from 'puppeteer-core';
44

55
export interface ChromeLauncherArgs {
66
puppeteer?: typeof puppeteerCore;
@@ -10,7 +10,7 @@ export interface ChromeLauncherArgs {
1010
concurrency?: number;
1111
}
1212

13-
export { ChromeLauncher, KnownDevices, puppeteerCore };
13+
export { ChromeLauncher, puppeteerCore };
1414

1515
export function chromeLauncher(args: ChromeLauncherArgs = {}) {
1616
const {
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
export { puppeteerLauncher } from './puppeteerLauncher.js';
2-
export { KnownDevices } from 'puppeteer';

0 commit comments

Comments
 (0)