Skip to content

Commit 58c253b

Browse files
committed
Restrict supported node engines
1 parent 60b78a6 commit 58c253b

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ and this project adheres to
1010

1111
### Added
1212

13+
- Restrict node engines for better support feedback
14+
1315
### Changed
1416

1517
### Fixed

scripts/build_npm.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ await build({
2424
bugs: {
2525
url: "https://github.com/serpapi/serpapi-javascript/issues",
2626
},
27+
engines: {
28+
node: "^16.14.0 || >=17.3.0", // Because of AbortSignal.timeout https://nodejs.org/api/globals.html#static-method-abortsignaltimeoutdelay
29+
},
2730
keywords: [
2831
"serpapi",
2932
"serp api",
@@ -62,3 +65,4 @@ await build({
6265

6366
Deno.copyFileSync("LICENSE", "npm/LICENSE");
6467
Deno.copyFileSync("README.md", "npm/README.md");
68+
Deno.copyFileSync(".npmrc", "npm/.npmrc");

0 commit comments

Comments
 (0)