Repository navigation
fix(tsid): preserve sequencing for configured generation - #111
Merged
Merged
Conversation
Contributor
|
Preview removed because the pull request was closed. |
commit: |
jkomyno
force-pushed
the
fix/tsid-configured-generation
branch
from
November 15, 2026 20:44
434f527 to
95df72d
Compare
jkomyno
force-pushed
the
fix/tsid-configured-generation
branch
from
November 15, 2026 20:54
95df72d to
bf2896d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Repeated
tsid({ node: 1 })calls now retain the per-isolate sequence instead of drawing independent counters. Configured nodes, node-bit widths, epochs, and empty options handle counter overflow and clock rollback; explicit timestamps or counters retain their existing state-bypass behavior. Generation rejects virtual-time overflow beyond the 42-bit timestamp range.Second of three stacked PRs, based on #110. The CLI follow-up in #112 removes its live-clock batch workaround and fixes malformed inspection input.
Validation: new regressions failed before the fix, including 5,000 IDs producing only four distinct values with
nodeBits: 20. All 553 library tests now pass, coverage gates pass, and the built package passes declaration, packed-export, and import-isolation checks. Library tests also pass on Node 22.12.0 and Node 24.22.3; 63 Cloudflare tests pass.