Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Commit

Permalink
Specify Node LTS as the miniumum version (#3413)
Browse files Browse the repository at this point in the history
This is not a panacea, but at least it draws a line in the sand. In particular, this won't prevent people who _install_ these npm packages from having a lower Node version, but it will prevent development on the packages themselves on a Node version lower than LTS.

LTS at the time of writing was 20.18.0.

Closes #1680.
  • Loading branch information
steveluscher authored Oct 22, 2024
1 parent 4a5a091 commit d0adee1
Show file tree
Hide file tree
Showing 79 changed files with 173 additions and 3 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
auto-install-peers=true
engine-strict=true
workspaces-update=false
1 change: 1 addition & 0 deletions packages/accounts/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/accounts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/addresses/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/assertions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/build-scripts/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/build-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@
"@types/jscodeshift": "^0.12.0",
"browserslist-to-esbuild": "^2.1.1",
"jscodeshift": "^17.0.0"
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/codecs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/codecs-data-structures/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/codecs-numbers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/codecs-strings/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/codecs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/codecs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/crypto-impl/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
2 changes: 1 addition & 1 deletion packages/crypto-impl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@
"maintained node versions"
],
"engines": {
"node": ">=18"
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/fast-stable-stringify/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/fast-stable-stringify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/fetch-impl/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/fetch-impl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"devDependencies": {
"tinybench": "^2.9.0",
"undici": "^6.20.0"
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/functional/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/functional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/instructions/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/instructions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@
},
"devDependencies": {
"tinybench": "^2.9.0"
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/library/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/options/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/programs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/programs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/promises/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/promises/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-api/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-graphql/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-parsed-types/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-parsed-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-spec-types/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-spec-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-spec/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-subscriptions-api/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-subscriptions-channel-websocket/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions-channel-websocket/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-subscriptions-spec/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions-spec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-subscriptions/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-subscriptions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-transformers/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-transformers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-transport-http/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-transport-http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc-types/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/rpc/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions packages/rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/signers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/subscribable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
3 changes: 3 additions & 0 deletions packages/sysvars/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,8 @@
"path": "./dist/index*.js"
}
]
},
"engines": {
"node": ">=20.18.0"
}
}
1 change: 1 addition & 0 deletions packages/test-config/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
Loading

0 comments on commit d0adee1

Please sign in to comment.