Skip to content

Commit

Permalink
feat!: drop support for node16
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Sep 14, 2023
1 parent e8640ff commit 206ed08
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 138 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ jobs:
- macos-latest
- windows-latest
node:
- 18
- lts/*
pkg_manager:
- npm
steps:
Expand Down
115 changes: 12 additions & 103 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/browsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.3.0"
"node": ">=18.17.1"
},
"files": [
"lib",
Expand Down
4 changes: 2 additions & 2 deletions packages/ng-schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.3.0"
"node": ">=18.17.1"
},
"dependencies": {
"@angular-devkit/architect": "^0.1602.0",
"@angular-devkit/core": "^16.2.0",
"@angular-devkit/schematics": "^16.2.0"
},
"devDependencies": {
"@types/node": "^16.11.7",
"@types/node": "^18.17.15",
"@schematics/angular": "^16.2.0",
"@angular/cli": "^16.2.0",
"rxjs": "7.8.1"
Expand Down
3 changes: 1 addition & 2 deletions packages/puppeteer-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core"
},
"engines": {
"node": ">=16.3.0"
"node": ">=18.17.1"
},
"scripts": {
"build:docs": "wireit",
Expand Down Expand Up @@ -142,7 +142,6 @@
"dependencies": {
"@puppeteer/browsers": "1.7.1",
"chromium-bidi": "0.4.27",
"cross-fetch": "4.0.0",
"debug": "4.3.4",
"devtools-protocol": "0.0.1179426",
"ws": "8.14.1"
Expand Down
4 changes: 1 addition & 3 deletions packages/puppeteer-core/src/common/BrowserConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import {isErrorLike} from '../util/ErrorLike.js';
import {CdpBrowser} from './Browser.js';
import {Connection} from './Connection.js';
import {ConnectionTransport} from './ConnectionTransport.js';
import {getFetch} from './fetch.js';
import type {ConnectOptions} from './Puppeteer.js';
import {Viewport} from './PuppeteerViewport.js';
import {debugError} from './util.js';
Expand Down Expand Up @@ -155,9 +154,8 @@ export async function _connectToCdpBrowser(
async function getWSEndpoint(browserURL: string): Promise<string> {
const endpointURL = new URL('/json/version', browserURL);

const fetch = await getFetch();
try {
const result = await fetch(endpointURL.toString(), {
const result = await globalThis.fetch(endpointURL.toString(), {
method: 'GET',
});
if (!result.ok) {
Expand Down
1 change: 0 additions & 1 deletion packages/puppeteer-core/src/common/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,5 @@ export * from './Tracing.js';
export * from './USKeyboardLayout.js';
export * from './WaitTask.js';
export * from './WebWorker.js';
export * from './fetch.js';
export * from './types.js';
export * from './util.js';
24 changes: 0 additions & 24 deletions packages/puppeteer-core/src/common/fetch.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/puppeteer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer"
},
"engines": {
"node": ">=16.3.0"
"node": ">=18.17.1"
},
"scripts": {
"build:docs": "wireit",
Expand Down

0 comments on commit 206ed08

Please sign in to comment.