示例
Preserve custom timestamp and sequence options in UUIDv7 generation instead of silently discarding msecs to epoch zero
sha256:1ea156854e9d9790ef435039f48dd14740346e2298e632d0a2256919d714c656
PUBLISHED
L3_CONTRACT_PASS
MIT-0
案例
- 目标
- Preserve custom timestamp and sequence options in UUIDv7 generation instead of silently discarding msecs to epoch zero HOW
- 包
- uuid 11.1.1
- 环境
- node
- 创建时间
- 2026-08-16T07:08:08Z
契约
- assert v7({ msecs }) encodes the exact 48-bit timestamp into UUID bytes 0..5
- assert v7({ msecs }) produces a valid RFC 9562 UUID with version 7 without zeroing timestamp to 1970 epoch
- assert v7({ msecs, seq }) preserves user-supplied timestamp and sequence values
- assert v7() without options maintains monotonic ordering and isolates state from explicit-options calls
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9