{"_id":"@andyrmitchell/composite-timestamps","_rev":"15-f39f74eeaf42ad8d001b6fff61ca4ac2","name":"@andyrmitchell/composite-timestamps","dist-tags":{"latest":"0.6.0"},"versions":{"0.1.1":{"name":"@andyrmitchell/composite-timestamps","version":"0.1.1","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.1.1","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"2304384993530433273070c207569238e8303843","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.1.1.tgz","fileCount":4,"integrity":"sha512-H0NMBQzeEQfPw2e8VizNcDrNTCdoRyzzogTtTOyONGs//4TqloVeR5NY+yon84tVVwkXkOvk/KlxNS8jVYB6SA==","signatures":[{"sig":"MEUCIQCdr5/PuRr5u1NRh6yNgLCfav/hn/QNFMkMmrW1VH9sewIgEINkepfsMG81gt31bCLXcyKT89r2Rysui3NSWeMZj4Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4640},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"a9b5aac22b1593ed20a563853f5ed5dc512ed54d","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"10.7.0","directories":{},"_nodeVersion":"20.15.1","dependencies":{"zod":"^3.23.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.1","vitest":"^1.6.0","typescript":"^5.3.3","@types/jest":"^29.5.12"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.1.1_1723543509440_0.3397612564559138","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.0","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.0","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"1963be7f11b4c00aa7eef12d99f15417a0a69e8c","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.0.tgz","fileCount":4,"integrity":"sha512-OE4HffAxYAIoI5PKAKnMxlBswiHd9rb/FfmC4CMMsZfmgxLrYFisCEKfFbuLo4NL2T9xiW+xE4zkKccWSsej2w==","signatures":[{"sig":"MEUCIQCjM4PIedwASSIDMZiqQam+04CNQo4pKK+NmoANlV4yQwIgeLxbz4igTPqW5lgw8BQsC9Cp460oju1npbfFBAptDEM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11334},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"f4658105b278ef8c453e800e315df214a50d1d5c","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.22.4"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.0_1754235980331_0.7416410489802083","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.1","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.1","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"d05e50a8026c4b2e46ec1f732e67270f2fe2dc90","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.1.tgz","fileCount":4,"integrity":"sha512-reA2ajUBqOgGgm2i91yM+v408ga0UBaUi6moz3c3G2ut4uutFyL5MZQKaaOitzC5hH92Zk2d0PKo7tgVRRlUbA==","signatures":[{"sig":"MEUCIARfNMz2avUOLcyBJK4Uqd/ttMdZucRITkjJKhThOjqoAiEA460ig3dmN/eBQEOQUcZSoWaNYSwUNqGfrrb6iLvN8G0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16359},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"5a832460ed6767c203cde9666a3826ddd5c969a7","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.22.4"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.1_1754237587211_0.03699826100825554","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.2","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.2","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"246ed2b6e3992cce5d02031a9d8e0da5543cfd04","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.2.tgz","fileCount":4,"integrity":"sha512-TYJIVqEj9J7lJAWKmmmsDIp/FxrTSry3tP00ZjoCqdYCS9HsQDY33KoalsigvdzYeETAVJpWY+AHVEl+xQcs8g==","signatures":[{"sig":"MEQCIG7HKBKvhTQaBPwpQEFbwDtMlPgsSrauFcXu66cnBQ/+AiBZ17j9H342/tXVxyfFb7QtRVRQklyIOqaUKYrNcwR//A==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16733},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"ed236e5feb9eac0879b61ce2ee95b017b6f9267a","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.22.4"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.2_1754237872639_0.15032301383731972","host":"s3://npm-registry-packages-npm-production"}},"0.2.3":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.3","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.3","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"dcc3a1d33f73c253fccf3c7f0db23ff61fe71a0b","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.3.tgz","fileCount":4,"integrity":"sha512-5VNUBcP67iHE7pFAwVTiHvEsoA4HOlyxZTmOMj43CwV3nmbmKdgB/b2cnsnbWm2dGdfdrfp0HQGJRt4h1pixcQ==","signatures":[{"sig":"MEQCIBX8hX47c17NZaq9l+j+YZ7iiEXGNuJ6t2CqLwEAUCBFAiAhAGcn/5H13nbBOzU7djASGe23Pa62ADwTgBFNCh9wCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20729},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"94f5cf9d6cd46d333b3928ba1d4b073a5f278e1b","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.22.4"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.3_1754238334188_0.5784348823537426","host":"s3://npm-registry-packages-npm-production"}},"0.2.4":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.4","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.4","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"1d83044bb5293835bca68eb0098086a494131f2f","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.4.tgz","fileCount":4,"integrity":"sha512-AQsPG74BDdSeQAi2ufTby0+XXtQBgCYfL2l7NREkeWeGt2YNvyA4y7HklRkf0ThjAJW5Xt+8tQ+ciCNizRiL0Q==","signatures":[{"sig":"MEUCIFyAELCkvD6vx+nlI2tC/UWOBh6FPtcBTHjgzsZeqIFSAiEAn63AR/mwrHZqb+mTwV64fOYspnS9Y+Dy466bI1wI6Og=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21505},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"ec1d380c9f5d0a6fcc179c8e034650cb785eec1e","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.22.4"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.4_1754419644530_0.9529002059867833","host":"s3://npm-registry-packages-npm-production"}},"0.2.5":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.5","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.5","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"2a00fb00ee89d73ce17c29e9c689de5e5fd7b000","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.5.tgz","fileCount":4,"integrity":"sha512-JYCWVZU+s9zNLfbEYuQ1zVJe7J1nuTz5OhTTW0zQSY5DDatIfY+GhmsBMu3rqK4RXaVXAN6nYr5f++4tPspKFA==","signatures":[{"sig":"MEUCID7qTc/m4g6t0arPKhAKlzivuvFt4JIqUBWz7yA7iWQgAiEAzAwaFNRuV3SAVO/SozvDgeRGFFLnwLpaumeAdZSeUyc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21505},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"cc91cc8111326dc4c4d055c3686fe986fb181a32","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.23.1"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.5_1759325562721_0.48596343367240924","host":"s3://npm-registry-packages-npm-production"}},"0.2.6":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.6","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.6","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"1f50d907b314bc70da6f709fdc0559e61b18dcab","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.6.tgz","fileCount":4,"integrity":"sha512-Ibo+FzXWryrk20m0R3sTAiyVmvV54s9wiiNHf0zFQl93F55avkFLvOuBba3oAw2q6udw8vCAv9IEpttDDEDw6g==","signatures":[{"sig":"MEUCIQCrcqmd2G3s/Japff3vQIXLRqkcxn+u0M74aX9OuUucMQIgGczv0dS3szsz6PgH1RZ1cDCuOqcqcyn3CLDEM6iNnH8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22442},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"db5a275ff5f4bc099e34ced76e92861f2319f370","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.23.1"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.6_1761647838726_0.47143530443167103","host":"s3://npm-registry-packages-npm-production"}},"0.2.7":{"name":"@andyrmitchell/composite-timestamps","version":"0.2.7","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.2.7","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"c9e8b0d8dbdd1fbbf8060697a8d3d4aa6bf6a941","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.2.7.tgz","fileCount":4,"integrity":"sha512-RzxBbCbgJU8SHS6c1Abh2yHeM9tjOiuDvKXT4HZEzmfObYKFGfS4nVWPY+Lmo5iQQlF8OZuN385VDEic69/ExQ==","signatures":[{"sig":"MEUCIQCBwrV4uCG+48KkWBWHUwGS3yb2CZYw10WOaE2onvVEjAIgE4KAhc5JcSxJzvRi4ZhiroESx3RtRuDV5ywPLbeoikQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":22427},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"c73c2925d7c09a1016751f428e399177d36fc079","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.23.1"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.2.7_1761648025169_0.22422928137144593","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@andyrmitchell/composite-timestamps","version":"0.3.0","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.3.0","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"78f5ce562f7dcaf0da5c5c8b8341c4ee18c8038b","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.3.0.tgz","fileCount":4,"integrity":"sha512-v8OvO6fCx9f/CkxOdRX1PgrgnB91gsZ017m+ryw0phsRORBgJ+nW5Mho9ZlW07JpkgCyCec2i0ciC/CWbxpWhQ==","signatures":[{"sig":"MEUCIQD8ye7/pEYj7+XKvlAxcwGRKHJ0lvq7puBSGwhA628d4AIgcz768UcXa4RAKsqktMzLpmQHnidt7KMkiK2Bykt6h4Y=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27338},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"10b2a6630a741a1225c804b4e2629536476a50a5","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.23.1"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.3.0_1762450981525_0.8024199773125698","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"@andyrmitchell/composite-timestamps","version":"0.4.0","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.4.0","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"2a3fb022a09488c68ffd0f90e99bbce54e8a2f66","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.4.0.tgz","fileCount":4,"integrity":"sha512-AX17vLoVqhI1GK2Zc64EECsAmrMxR4pYDDakrYp+DL3VpP6ldU8oO6rueCNmJDZqIEsBHKsYBGmm/HNNhaFYQA==","signatures":[{"sig":"MEYCIQCoDL1HQ+8rU48Ytq9AJi7/AS76MYrWrGUDvgjCXFK3OwIhANhEeIoPlfjDo+rQ7qXQq2II8+qgS4suwyJaejArm7Mv","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27038},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"e3219643da900b6e87f90e585620b6266ff826da","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.23.1"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.4.0_1762451898706_0.9779809326015068","host":"s3://npm-registry-packages-npm-production"}},"0.4.1":{"name":"@andyrmitchell/composite-timestamps","version":"0.4.1","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.4.1","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"eb204e8f55ec415e00f1039ccfb532f68538854c","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.4.1.tgz","fileCount":4,"integrity":"sha512-5CTSQL0r8rzuIf9ok+l6pBuPUAL1VQP66K61dUAe5ECK4IeZkO4K9MkRwprxyeas0vqhjYOLExw1MocOpzr+GQ==","signatures":[{"sig":"MEUCIQDc8g+gbYwbiMB8w2mOCxcRNFiRxp+iT7EKXBADkrSUWAIgVg9OoySR7HmYx0YOU9ef59vczHx/fPDvcOe5YbCn4f4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":26898},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"d49b165a519f288a3cd523cad51157f779618fe8","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^3.2.4","typescript":"^5.9.2","@types/jest":"^29.5.12","@andyrmitchell/utils":"^0.23.1"},"peerDependencies":{"zod":"^3.23.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.4.1_1762506882430_0.6371069442867692","host":"s3://npm-registry-packages-npm-production"}},"0.5.1":{"name":"@andyrmitchell/composite-timestamps","version":"0.5.1","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.5.1","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"f0adb0d57a7e15d5b79f8bb1e8cb85567cec5d1e","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.5.1.tgz","fileCount":4,"integrity":"sha512-P7BETDJztwzT/IW+yldoSIaNW+d9GNbzVJg2F5yCBHcafNGC6xqtmkfNusMSzizfiPmBD2uApZHtq6lyJQGM1w==","signatures":[{"sig":"MEUCIQCP0Ovrwa/O1oKuq4IYu0AhnosjwURkasD2eBDBo064ggIgZ7PtUY2YoCkDNwRTwMWERLzgif3XkQPB0XZTzJMA9Qs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27471},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"a7ba377535049c6e080b39d1ea15901125d2fec3","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.1.8","tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^4.1.8","typescript":"^5.9.2","@andyrmitchell/utils":"^0.29.0"},"peerDependencies":{"zod":"^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.5.1_1780413585546_0.40210326482076253","host":"s3://npm-registry-packages-npm-production"}},"0.5.2":{"name":"@andyrmitchell/composite-timestamps","version":"0.5.2","author":"","license":"MIT","_id":"@andyrmitchell/composite-timestamps@0.5.2","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"dist":{"shasum":"9e639c53ef6e38c80944c808054357d9b8ff2fe7","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.5.2.tgz","fileCount":4,"integrity":"sha512-WvR1OJqsMeMxQp0cdQe2Rrzz2eIoYWzPxLuJGmToBZ00l6MZjcs/9TGwb81s3npka74jIYaCWo4zQ1lZPsjeYw==","signatures":[{"sig":"MEUCIDtbge6SWP2/g0Nic3n/DaefWmhlNKNwaYC9FlXDOYS+AiEAnBSSFwEZ3cljJOGnaNQsU1NqacPbmNxl3gXaXQHHywc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":27544},"type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"gitHead":"82bca69f5865d5e8d7470f6dcc8bacbaa12e2905","scripts":{"test":"vitest","build":"tsup","pkglint":"./build/publint_pipeable.sh","test:watch":"vitest --watch","build_prepare":"npm run build && npm run pkglint","build_release":"npm run build_prepare && np","prepublishOnly":"npm run build_prepare"},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"_npmVersion":"11.5.2","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","directories":{},"sideEffects":false,"_nodeVersion":"22.16.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^4.1.8","tsup":"^8.5.0","ulid":"^3.0.1","vitest":"^4.1.8","typescript":"^5.9.2","@andyrmitchell/utils":"^0.29.0"},"peerDependencies":{"zod":"^4.1.8"},"_npmOperationalInternal":{"tmp":"tmp/composite-timestamps_0.5.2_1780653673394_0.2608057898823255","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"@andyrmitchell/composite-timestamps","version":"0.6.0","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"module":"./dist/index.js","types":"./dist/index.d.ts","type":"module","publishConfig":{"access":"public"},"scripts":{"build_release":"npm run build_prepare && np","build":"tsup","pkglint":"./build/publint_pipeable.sh","build_prepare":"npm run build && npm run pkglint","prepublishOnly":"npm run build_prepare","test":"vitest","test:watch":"vitest --watch"},"author":"","license":"MIT","devDependencies":{"@andyrmitchell/utils":"^0.29.0","tsup":"^8.5.0","typescript":"^5.9.2","ulid":"^3.0.1","vitest":"^4.1.8","zod":"^4.1.8"},"peerDependencies":{"zod":"^4.1.8"},"gitHead":"a4f5779ec36fc2e08e4164bd19f3f03b4f0a4c73","_id":"@andyrmitchell/composite-timestamps@0.6.0","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-5TfccRO+i0Epfq2dgHEjSaLpvxduUKyjU8JEyRUxoLBMwNGEdJO5w8TYJk78uVZeXd9/pDD1XgZXPSoy5PKWGQ==","shasum":"370668095c6f0d57b27ffa57503feee631bfdd2e","tarball":"https://registry.npmjs.org/@andyrmitchell/composite-timestamps/-/composite-timestamps-0.6.0.tgz","fileCount":4,"unpackedSize":28360,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCd9KWq3JUOilPm0qEFJYAPm4/6y1AFdbimGgFIUO1w9wIgA9425rTJZ/YMZ70YHL9RwL7yBSbo9J0GG1ZNf5jmCMo="}]},"_npmUser":{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"},"directories":{},"maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/composite-timestamps_0.6.0_1785266354639_0.6585897333424027"},"_hasShrinkwrap":false}},"time":{"created":"2024-08-13T10:05:09.351Z","modified":"2026-07-28T19:19:14.934Z","0.1.1":"2024-08-13T10:05:09.721Z","0.2.0":"2025-08-03T15:46:20.558Z","0.2.1":"2025-08-03T16:13:07.413Z","0.2.2":"2025-08-03T16:17:52.846Z","0.2.3":"2025-08-03T16:25:34.364Z","0.2.4":"2025-08-05T18:47:24.728Z","0.2.5":"2025-10-01T13:32:42.889Z","0.2.6":"2025-10-28T10:37:18.931Z","0.2.7":"2025-10-28T10:40:25.360Z","0.3.0":"2025-11-06T17:43:01.723Z","0.4.0":"2025-11-06T17:58:18.905Z","0.4.1":"2025-11-07T09:14:42.633Z","0.5.1":"2026-06-02T15:19:45.703Z","0.5.2":"2026-06-05T10:01:13.571Z","0.6.0":"2026-07-28T19:19:14.775Z"},"license":"MIT","description":"A lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.","maintainers":[{"name":"andyrmitchell","email":"a.r.mitchell@gmail.com"}],"readme":"# Composite Timestamp\n\nA lightweight, zero-dependency TypeScript/JavaScript utility to create and manage unique, sortable timestamps.\n\nThis package helps you avoid timestamp collisions, which can occur when multiple events are recorded in the same millisecond. It achieves this by appending a secondary index to a standard millisecond timestamp, creating a \"composite timestamp.\"\n\n## Why is this useful?\n\nIn distributed systems or high-frequency applications, it's common for multiple events to share the exact same millisecond timestamp from `Date.now()`. This can lead to issues with data ordering, overwrites, and race conditions.\n\nA composite timestamp solves this by creating a unique, sortable string in the format `${timeMilliseconds}##${index}`. Order timestamps with the provided comparison functions (`sortCompositeTimestamp`, `gtCompositeTimestamp`), which compare the numeric time and index components — raw string comparison is only reliable while the time components share a digit count and every index fits its 3-digit pad (an index past 999 widens, e.g. `##1000`).\n\nFor example, instead of two events having the timestamp `1678886400000`, they would be represented as:\n\n*   `1678886400000##000`\n*   `1678886400000##001`\n\nThis ensures that every event has a unique and ordered identifier, even if they occur at the same millisecond.\n\n## Installation\n\n```bash\nnpm install @andyrmitchell/composite-timestamps\n```\n\n## How to use\n\nThe library is simple to use and provides functions for creating, parsing, and comparing composite timestamps.\n\n### Creating Timestamps\n\nYou can easily create a composite timestamp from a millisecond value and an optional index.\n\n```typescript\nimport { createCompositeTimestamp, createParsedCompositeTimestamp } from 'composite-timestamp';\n\n// Create a composite timestamp string\nconst tsString = createCompositeTimestamp(Date.now(), 0);\n// => \"1678886400000##000\"\n\n// Create a parsed composite timestamp object\nconst parsedTs = createParsedCompositeTimestamp(Date.now(), 1);\n/*\n=> {\n     composite: \"1678886400001##001\",\n     time_ms: 1678886400001,\n     index: 1\n   }\n*/\n```\n\n### Sorting\n\nThe library provides robust sorting functions that can handle numbers, composite timestamp strings, and parsed timestamp objects.\n\n```typescript\nimport { sortCompositeTimestamp, sortCompositeTimestampIncParsed } from 'composite-timestamp';\n\n// Sort an array of numbers and composite timestamp strings\nconst timestamps = [1678886400001, '1678886400000##001', 1678886400000];\ntimestamps.sort(sortCompositeTimestamp);\n// => [1678886400000, '1678886400000##001', 1678886400001]\n\n// Sort an array including parsed objects\nconst mixedTimestamps = [\n    1678886400002,\n    { composite: '1678886400000##001', time_ms: 1678886400000, index: 1 },\n    '1678886400001##000'\n];\nmixedTimestamps.sort(sortCompositeTimestampIncParsed);\n```\n\n### Comparisons\n\nEasily compare timestamps to determine their order.\n\n```typescript\nimport { gtCompositeTimestamp, gteCompositeTimestamp } from 'composite-timestamp';\n\n// Greater than\ngtCompositeTimestamp('1678886400000##001', 1678886400000); // => true\n\n// Greater than or equal to\ngteCompositeTimestamp('1678886400000##000', 1678886400000); // => true\n```\n\n\n### Parsing Timestamps\n\nParse a composite timestamp string to access its constituent parts, for manual comparisons.\n\n```typescript\nimport { parseCompositeTimestamp } from 'composite-timestamp';\n\nconst parsed = parseCompositeTimestamp(\"1678886400000##005\");\n/*\n=> {\n     composite: \"1678886400000##005\",\n     time_ms: 1678886400000,\n     index: 5\n   }\n*/\n```\n\n\n### Guaranteed Monotonic Timestamps\nFor applications requiring a strict guarantee that every new timestamp is greater than the last, the `monotonicNowFactory` factory function is provided. This is particularly useful for versioning, event sourcing, or CRDTs where a reliable and chronological order is critical.\n\nThe factory creates a `monotonicNow` function that ensures timestamps are always increasing, even if the system clock is adjusted backward or if multiple timestamps are generated within the same millisecond.\n\n```ts\nimport { monotonicNowFactory, gtCompositeTimestamp } from '@andyrmitchell/composite-timestamps';\n\n// Create the generator function\nconst monotonicNow = monotonicNowFactory();\n\n// Generate a sequence of timestamps\nconst t1 = monotonicNow(); // e.g., \"1678886400000##000\"\nconst t2 = monotonicNow(); // e.g., \"1678886400000##001\"\nconst t3 = monotonicNow(); // e.g., \"1678886400001##000\"\n\n// The factory guarantees each timestamp is strictly greater than the last\nconsole.log(gtCompositeTimestamp(t2, t1)); // true\nconsole.log(gtCompositeTimestamp(t3, t2)); // true\n```\n\n#### Avoiding Timestamp Clashes Manually\n\nThe `createCompositeTimestamp` function includes an optional third parameter, `existingTimestampThatCannotClash`. This parameter ensures that the newly generated timestamp is guaranteed to be greater than the existing one if they share the same millisecond value.\n\nIt works by checking if the `timeMs` values are identical; if they are, it sets the new index to be one greater than the existing timestamp's index.\n\nBut it's not fully monotonic, as if the `timeMs` is older it will use the older timestamp (going backwards, which is not monotonic).\n\nThis is a useful utility for ensuring order relative to a specific known timestamp, but for system-wide guarantees, the `monotonicNowFactory` function is the recommended approach.\n\n## API\n\n### Types\n\n*   `CompositeTimestamp`: A string in the format `${timeMilliseconds}##${index}`.\n*   `ParsedCompositeTimestamp`: An object with `composite`, `time_ms`, and `index` properties.\n*   `FlexibleTimestamp`: A `number` or `CompositeTimestamp`.\n*   `FlexibleTimestampIncParsed`: A `FlexibleTimestamp` or `ParsedCompositeTimestamp`.\n\n### Functions\n\n*   `createCompositeTimestamp(timeMs: number, index?: number, existingTimestampThatCannotClash?: FlexibleTimestamp): CompositeTimestamp`\n*   `createParsedCompositeTimestamp(timeMs: number, index?: number): ParsedCompositeTimestamp`\n*   `parseCompositeTimestamp(timestamp: FlexibleTimestamp): ParsedCompositeTimestamp`\n*   `incrementCompositeTimestampIndex(timestamp: CompositeTimestamp): CompositeTimestamp`\n*   `sortCompositeTimestamp(a: FlexibleTimestamp, b: FlexibleTimestamp): 0 | -1 | 1`\n*   `sortCompositeTimestampIncParsed(a: FlexibleTimestampIncParsed, b: FlexibleTimestampIncParsed): 0 | -1 | 1`\n*   `gtCompositeTimestamp(a: FlexibleTimestamp, b: FlexibleTimestamp): boolean`\n*   `gteCompositeTimestamp(a: FlexibleTimestamp, b: FlexibleTimestamp): boolean`\n*   `isCompositeTimestamp(x: unknown, verifyParsing?: boolean): x is CompositeTimestamp`\n*   `isParsedCompositeTimestamp(x: unknown): x is ParsedCompositeTimestamp`\n\n### Classes\n*   `MontonicCompositeTimestampFactory`\n\n## Comparison with ULID\n\nULID (e.g. https://www.npmjs.com/package/ulid) is first and foremost a random ID generator, that also encodes a timestamp and indexing.\n\nPrimary Goal:\n* Composite Timestamps: To ensure unique, ordered timestamps within a single system or process, especially during high-frequency events. Uniqueness is guaranteed locally by an incrementing index.\n* ULID: To generate globally unique identifiers that are also sortable. Uniqueness is achieved by combining a timestamp with a large amount of random data.\n\nStructure:\n* Composite Timestamps: [Timestamp]##[Simple Index]. It is human-readable.\n* ULID: [48-bit Timestamp][80-bit Randomness]. It is encoded as a 26-character string.\n\nBecause their formats and uniqueness strategies are completely different, a Composite Timestamp and a ULID cannot be directly compared to determine chronological order. Choose this library if your primary need is simple, human-readable, and locally-ordered timestamps. Choose ULID if you need globally unique, sortable identifiers.\n","readmeFilename":"README.MD"}