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 Jan 16, 2024
1 parent 8b71db7 commit 8b496c2
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ jobs:
fail-fast: false
matrix:
node:
- 18
- lts/*
pkg_manager:
- npm
os:
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.3.0"
"node": ">=18.17.1"
},
"files": [
"lib",
Expand Down
2 changes: 1 addition & 1 deletion packages/ng-schematics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"author": "The Chromium Authors",
"license": "Apache-2.0",
"engines": {
"node": ">=16.13.2"
"node": ">=18.17.1"
},
"dependencies": {
"@angular-devkit/architect": "^0.1700.7",
Expand Down
2 changes: 1 addition & 1 deletion 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.13.2"
"node": ">=18.17.1"
},
"scripts": {
"build:docs": "wireit",
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 @@ -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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"url": "https://github.com/puppeteer/puppeteer/tree/main/packages/puppeteer"
},
"engines": {
"node": ">=16.13.2"
"node": ">=18.17.1"
},
"scripts": {
"build:docs": "wireit",
Expand Down

0 comments on commit 8b496c2

Please sign in to comment.