Skip to content

Commit

Permalink
feat!: drop support for node16 (#10912)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade committed Feb 2, 2024
1 parent e04016a commit 953f420
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 26 deletions.
8 changes: 4 additions & 4 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
Expand Up @@ -87,7 +87,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.3.0"
"node": ">=18"
},
"files": [
"lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/ng-schematics/package.json
Expand Up @@ -48,7 +48,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.13.2"
"node": ">=18"
},
"dependencies": {
"@angular-devkit/architect": "^0.1701.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/puppeteer-core/package.json
Expand Up @@ -31,7 +31,7 @@
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer-core"
},
"engines": {
"node": ">=16.13.2"
"node": ">=18"
},
"scripts": {
"build:docs": "wireit",
Expand Down
4 changes: 1 addition & 3 deletions packages/puppeteer-core/src/common/BrowserConnector.ts
Expand Up @@ -14,7 +14,6 @@ import {isErrorLike} from '../util/ErrorLike.js';
import type {ConnectionTransport} from './ConnectionTransport.js';
import type {ConnectOptions} from './ConnectOptions.js';
import type {BrowserConnectOptions} from './ConnectOptions.js';
import {getFetch} from './fetch.js';

const getWebSocketTransportClass = async () => {
return isNode
Expand Down Expand Up @@ -93,9 +92,8 @@ async function getConnectionTransport(
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
Expand Up @@ -15,7 +15,6 @@ export * from './Debug.js';
export * from './Device.js';
export * from './Errors.js';
export * from './EventEmitter.js';
export * from './fetch.js';
export * from './FileChooser.js';
export * from './GetQueryHandler.js';
export * from './HandleIterator.js';
Expand Down
14 changes: 0 additions & 14 deletions packages/puppeteer-core/src/common/fetch.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/puppeteer/package.json
Expand Up @@ -32,7 +32,7 @@
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer"
},
"engines": {
"node": ">=16.13.2"
"node": ">=18"
},
"scripts": {
"build:docs": "wireit",
Expand Down

0 comments on commit 953f420

Please sign in to comment.