Skip to content

test(util): lock supportsReadBigInts across node 22+ matrix#27

Open
solomonneas wants to merge 1 commit intosteipete:mainfrom
solomonneas:fix/issue-25-version-gate-regression-test
Open

test(util): lock supportsReadBigInts across node 22+ matrix#27
solomonneas wants to merge 1 commit intosteipete:mainfrom
solomonneas:fix/issue-25-version-gate-regression-test

Conversation

@solomonneas
Copy link
Copy Markdown

The supportsReadBigInts() gate was tightened in f7e594c to major >= 22, fixing the Chrome >=146 cookie expires_utc bigint break described in #25. The accompanying test only spot-checks 22.0.0, 24.4.0, and 21.9.0, which leaves the 24.0-24.3 window the old gate dropped on the floor completely uncovered.

Expand the matrix to:

  • supported: 22.0/22.5/22.11/22.22, 23.0, 24.0/24.3/24.4/24.10, 25.0, 30.5, 99.9
  • unsupported: 18.20, 20.18, 21.7, 21.9, empty, non-numeric

Reverting the gate to the pre-f7e594c form fails this test on the first iteration, so a future "tidy-up" of the gate cannot silently re-break Node < 24.4.

Tests-only, no source or behavior changes.

Test plan

  • pnpm test (80 passed, 16 skipped, unchanged from baseline)
  • pnpm test:bun (1 passed)
  • pnpm lint (0 warnings, 0 errors)
  • pnpm format:check (clean)
  • pnpm typecheck (clean)
  • pnpm build (clean)
  • Verified the new matrix fails when the gate is reverted to the pre-f7e594c major === 24 ? minor >= 4 : false form

The gate was tightened in f7e594c to `major >= 22`, fixing the Chrome
cookie expires_utc bigint break described in steipete#25. The accompanying
test only spot-checks 22.0.0, 24.4.0, and 21.9.0, which leaves the
24.0-24.3 window the old gate dropped on the floor.

Expand the matrix to cover:
- supported: 22.0/22.5/22.11/22.22, 23.0, 24.0/24.3/24.4/24.10, 25.0,
  30.5, 99.9
- unsupported: 18.20, 20.18, 21.7, 21.9, empty, non-numeric

Reverting the gate to the pre-f7e594c form fails this test on the
first 22.0.0 iteration, so a future "tidy-up" of the gate cannot
silently re-break Node < 24.4.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant