Skip to content

Commit

Permalink
guard against Node.js 22.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ChALkeR committed Jul 16, 2024
1 parent 2978b1d commit 3388e58
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ assert(major !== 21, 'Node.js 21.x is deprecated!') // reached EOL, no reason to
// older versions are glitchy with before/after on top-level, which is a deal-breaker
const ok = (major === 18 && minor >= 19) || (major === 20 && minor >= 7) || major >= 22
assert(ok, 'Node.js version too old or glitchy with node:test, use ^18.19.0 || ^20.7.0 || >=22.0.0')
assert(major !== 22 || minor !== 3, 'Refusing to run on Node.js 22.3.0 specifically, do not use it') // safe-guard

export { major, minor, patch }

Expand Down

0 comments on commit 3388e58

Please sign in to comment.