Skip to content

Commit

Permalink
Remove Puppeteer KnownDevices export
Browse files Browse the repository at this point in the history
  • Loading branch information
Sander Aalbers committed Mar 4, 2024
1 parent 9dd1013 commit 6006451
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Migration

## From version 0.15.x to 0.16.0

The re-exports of Puppeteer devices is removed and can be imported from Puppeteer directly.

```ts
import { KnownDevices } from 'puppeteer';
```
4 changes: 2 additions & 2 deletions packages/test-runner-chrome/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as puppeteerCore from 'puppeteer-core';
import { ChromeLauncher, CreateBrowserContextFn, CreatePageFn } from './ChromeLauncher.js';
import { PuppeteerNodeLaunchOptions, KnownDevices } from 'puppeteer-core';
import { PuppeteerNodeLaunchOptions } from 'puppeteer-core';

export interface ChromeLauncherArgs {
puppeteer?: typeof puppeteerCore;
Expand All @@ -10,7 +10,7 @@ export interface ChromeLauncherArgs {
concurrency?: number;
}

export { ChromeLauncher, KnownDevices, puppeteerCore };
export { ChromeLauncher, puppeteerCore };

export function chromeLauncher(args: ChromeLauncherArgs = {}) {
const {
Expand Down
1 change: 0 additions & 1 deletion packages/test-runner-puppeteer/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export { puppeteerLauncher } from './puppeteerLauncher.js';
export { KnownDevices } from 'puppeteer';

0 comments on commit 6006451

Please sign in to comment.