Skip to content

fix(tsid): preserve sequencing for configured generation - #111

Merged
jkomyno merged 2 commits into
mainfrom
fix/tsid-configured-generation
Nov 15, 2026
Merged

jkomyno merged 2 commits into
mainfrom
fix/tsid-configured-generation

Conversation

@jkomyno

@jkomyno jkomyno commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

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.

@jkomyno
jkomyno added this pull request to stack #113 November 15, 2026 20:34
@jkomyno jkomyno changed the title fix/tsid configured generation fix(tsid): preserve sequencing for configured generation Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Preview removed because the pull request was closed.

@pkg-pr-new

pkg-pr-new Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@uniku/cli@111
pnpm add https://pkg.pr.new/uniku@111

commit: 95df72d

@jkomyno
jkomyno force-pushed the fix/tsid-configured-generation branch from 434f527 to 95df72d Compare November 15, 2026 20:44
Base automatically changed from chore/reference-dependencies-latest to main November 15, 2026 20:54
@jkomyno
jkomyno force-pushed the fix/tsid-configured-generation branch from 95df72d to bf2896d Compare November 15, 2026 20:54
@jkomyno
jkomyno merged commit 6d0725e into main Nov 15, 2026
12 of 14 checks passed
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