Skip to content

Commit d9d38bd

Browse files
committed
fix: remove engines.node from published package
The browser-only published library declared engines.node ">=24", which hard-fails consumer installs on Node 20/22 LTS under engine-strict (#165). The published dist only uses browser APIs (window, navigator, WebGL, fetch) and needs no Node runtime. The build/publish Node version is already pinned to 24 independently of this field via .nvmrc and the '24' node-version in both CI workflows, so dropping engines does not affect building or publishing. This restores the v6.0.0 behavior (no engines field). Fixes #165
1 parent 5559465 commit d9d38bd

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ getGPUTier({
145145

146146
## Requirements
147147

148-
- Node.js 24+
149148
- ESM only (CommonJS is not supported)
150149

151150
## Support

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"name": "@pmndrs/detect-gpu",
33
"version": "6.0.9",
44
"packageManager": "pnpm@10.13.1",
5-
"engines": {
6-
"node": ">=24"
7-
},
85
"description": "Classify GPU's based on their benchmark score in order to provide an adaptive experience.",
96
"author": "Tim van Scherpenzeel",
107
"license": "MIT",

0 commit comments

Comments
 (0)