ai / size-limit

Calculate the real cost to run your JS app or lib to keep good performance. Show error in pull request if the cost exceeds the limit.
MIT License
6.52k stars 1.82k forks source link

Support Node 15 in package engines declaration #269

Closed drewlustro closed 2 years ago

drewlustro commented 2 years ago

Packages published by this monorepo curiously do not support Node 15:

"engines": {
  "node": "^12.0.0 || ^14.0.0 || >=16.0.0"
}

https://github.com/ai/size-limit/blob/main/packages/file/package.json#L16-L18

I acknowledge that Node 14/16 are the bigger LTS fish, but consider:

Workaround

yarn install --ignore-engines
ai commented 2 years ago

Because odd versions are unstable versions. You should not use them in production.

ai commented 2 years ago

Another reason: Node.js Foundation doesn’t support Node.js 15 anymore. There is no security update and you should not use it anywhere right now.

https://nodejs.org/en/about/releases/