Skip to content

Conversation

@hexsprite
Copy link
Owner

@hexsprite hexsprite commented Nov 9, 2025

  • Add polyfill for Array.prototype.toSorted to support older Node versions
  • Import polyfill in entry point (index.ts) and test files
  • toSorted is an ES2023 feature not available in Node 14
  • Polyfill creates a sorted copy using slice().sort()

Note

Adds Array.toSorted/at polyfills and imports them app-wide; updates package metadata and scripts to support Node >=14.

  • Compatibility:
    • Add src/polyfills.ts providing Array.prototype.toSorted (ES2023) and Array.prototype.at (ES2022).
    • Import polyfills in src/index.ts, src/IntervalTree.spec.ts, src/Node.spec.ts, and src/modelCheck.ts.
  • Package:
    • Declare engines node >=14.0.0 in package.json.
    • Add scripts: test:watch, model-check, model-check:quick, model-check:ci.

Written by Cursor Bugbot for commit 22c8a8c. This will update automatically on new commits. Configure here.

- Add polyfill for Array.prototype.toSorted to support older Node versions
- Import polyfill in entry point (index.ts) and test files
- toSorted is an ES2023 feature not available in Node 14
- Polyfill creates a sorted copy using slice().sort()
- Updated package-lock.json to lockfileVersion 3
- Resolved dependencies after npm install
- Add polyfill for Array.prototype.at (ES2022 feature)
- at() is used in tests and modelCheck.ts to access array elements with negative indices
- Node 14 doesn't support this method natively
- Add engines field specifying Node >=14.0.0
- Documents official Node 14 support with polyfills
- Sync lock file after adding engines field
- Added 8 packages, removed 1, changed 10
@cursor
Copy link

cursor bot commented Nov 9, 2025

You have run out of free Bugbot PR reviews for this billing cycle. This will reset on December 16.

To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

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.

3 participants