Skip to content

feat!: rewrite in TypeScript with rigidDB's tooling - #1

Merged
ilkkao merged 1 commit into
masterfrom
ilkkao/modernize-tooling
Oct 25, 2026
Merged

ilkkao merged 1 commit into
masterfrom
ilkkao/modernize-tooling

Conversation

@ilkkao

@ilkkao ilkkao commented Oct 25, 2026

Copy link
Copy Markdown
Owner
  • Port the library to TypeScript, published as an ES module with type definitions (dist/), Node.js 22+
  • Test with the Node.js built-in test runner (node:test) instead of Jest; two new tests cover lock ordering and skipping a timed-out waiter
  • Same tooling as rigidDB: strict tsconfig, oxlint, c8 with 100% coverage required
  • Replace Travis CI and Coveralls with GitHub Actions (Node 22/24/26) and Codecov, and add an npm publish workflow triggered by releases
  • Bump to 1.0.0 with a CHANGELOG

Breaking: ESM only, Node.js 22+, and acquire() rejects with Error('Queue timeout') instead of the string.

Test plan

  • CI passes on Node 22, 24 and 26
  • Codecov receives the upload (enable the repo in Codecov first)
  • Set up npm trusted publishing for snap-mutex before cutting the 1.0.0 release

Port to TypeScript as an ES module, test with the Node.js built-in
test runner, measure coverage with c8 (100% required) and lint with
oxlint. Replace Travis CI and Coveralls with GitHub Actions and Codecov,
and add an npm publish workflow.

BREAKING CHANGE: ESM only, Node.js 22+, and acquire() rejects with an
Error instead of a string.
@ilkkao
ilkkao merged commit 58ded2c into master Oct 25, 2026
3 checks passed
@codecov-commenter

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

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.

2 participants