{"_id":"@keyv/bigmap","_rev":"8-10b445f82bf0d51508c5b37cd1314f48","name":"@keyv/bigmap","dist-tags":{"latest":"1.3.1"},"versions":{"1.0.0":{"name":"@keyv/bigmap","version":"1.0.0","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.0.0","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"15a3cfc41d86d9059f9b813f1ccabfef170e9371","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.0.0.tgz","fileCount":7,"integrity":"sha512-N2UsRSXlWwbvYKdFVS7sKqj6oXGegELh+zr9VripWDc8grsq8KBNp8JHI+9AQuUEFiM1S7+tm6lLp/lmbBCqCw==","signatures":[{"sig":"MEQCIC0TWwbTrBfJDVLYVBzFngp7ET2NpIRcL9xSMzc95DGsAiBqv3V6Ukw2DJoy7e088u23/gLx3dInUhT8kNfgvneadw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30597},"main":"dist/index.cjs","type":"module","_from":"file:keyv-bigmap-1.0.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 20"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"xo --fix && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","test:ci":"xo && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/ef3d8cf2a76fe335cb4eba7a2e717ab3/keyv-bigmap-1.0.0.tgz","_integrity":"sha512-N2UsRSXlWwbvYKdFVS7sKqj6oXGegELh+zr9VripWDc8grsq8KBNp8JHI+9AQuUEFiM1S7+tm6lLp/lmbBCqCw==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.4.2","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"22.12.0","dependencies":{"hookified":"^1.10.0"},"_hasShrinkwrap":false,"devDependencies":{"xo":"^1.1.1","tsd":"^0.32.0","rimraf":"^6.0.1","vitest":"^3.2.4","@faker-js/faker":"^9.9.0","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.0.0_1752951788097_0.5721981711763124","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@keyv/bigmap","version":"1.0.1","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.0.1","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"fa673178ff6515cc908af95b49c94f96aca1fb0d","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.0.1.tgz","fileCount":7,"integrity":"sha512-dZ7TMshK6brpuGPPRoq4pHNzNH4KTWaxVPB7KEnPErlgJpc+jG1Oyx3sw6nBFiZ0OCKwC1zU6skMEG7H421f9g==","signatures":[{"sig":"MEUCIQCGiNMTcEjgcIcxiQO7tLTIx8Z+OnEIBW4pnHC3Ksgw0AIgbUmqUrN4N/WaEY6SREGRc982b4tkbac3vizgcU49rD4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30872},"main":"dist/index.cjs","type":"module","_from":"file:keyv-bigmap-1.0.1.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 20"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","lint:ci":"biome check --error-on-warnings","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/21e1d6ee3d8435c3b215f41b17f0ac59/keyv-bigmap-1.0.1.tgz","_integrity":"sha512-dZ7TMshK6brpuGPPRoq4pHNzNH4KTWaxVPB7KEnPErlgJpc+jG1Oyx3sw6nBFiZ0OCKwC1zU6skMEG7H421f9g==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.6.0","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"22.12.0","dependencies":{"hookified":"^1.12.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","rimraf":"^6.0.1","vitest":"^3.2.4","@biomejs/biome":"^2.2.4","@faker-js/faker":"^10.0.0","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.0.1_1758142714283_0.813579812049009","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@keyv/bigmap","version":"1.0.2","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.0.2","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"9480d168c99a4a6c2fd3b677387cd922aa82a470","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.0.2.tgz","fileCount":7,"integrity":"sha512-KR03xkEZlAZNF4IxXgVXb+uNIVNvwdh8UwI0cnc7WI6a+aQcDp8GL80qVfeB4E5NpsKJzou5jU0r6yLSSbMOtA==","signatures":[{"sig":"MEUCIFMKr15YYLGh/2+/Iqrb77ueF+W8o50/RkbjdGJe5s9eAiEAwWqVQjiEnyqgNEcvNeCEHgQVjFejBxjdcTCLW9uO9vk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30872},"main":"dist/index.cjs","type":"module","_from":"file:keyv-bigmap-1.0.2.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","lint:ci":"biome check --error-on-warnings","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/f84aa40e5995f1c6356427a776c8df65/keyv-bigmap-1.0.2.tgz","_integrity":"sha512-KR03xkEZlAZNF4IxXgVXb+uNIVNvwdh8UwI0cnc7WI6a+aQcDp8GL80qVfeB4E5NpsKJzou5jU0r6yLSSbMOtA==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.6.0","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"22.12.0","dependencies":{"hookified":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","rimraf":"^6.0.1","vitest":"^3.2.4","@biomejs/biome":"^2.2.4","@faker-js/faker":"^10.0.0","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.0.2_1758498175268_0.3603158326953606","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@keyv/bigmap","version":"1.0.3","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.0.3","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"845aafa65cd72bdd5fcc1a0e3fe707894c47d7a4","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.0.3.tgz","fileCount":7,"integrity":"sha512-jUEkNlnE9tYzX2AIBeoSe1gVUvSOfIOQ5EFPL5Un8cFHGvjD9L/fxpxlS1tEivRLHgapO2RZJ3D93HYAa049pg==","signatures":[{"sig":"MEUCIHaCMmF948DFnUaeDRwLOBkWPiBKnfCwcQ+G4qNt/oKYAiEAtL9R3QvPsR27veCYmrGO0uyHt5/C2W6KAAf5ttWtJDA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":30906},"main":"dist/index.cjs","type":"module","_from":"file:keyv-bigmap-1.0.3.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","lint:ci":"biome check --error-on-warnings","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/1f212e869c6407040f969318ad63c785/keyv-bigmap-1.0.3.tgz","_integrity":"sha512-jUEkNlnE9tYzX2AIBeoSe1gVUvSOfIOQ5EFPL5Un8cFHGvjD9L/fxpxlS1tEivRLHgapO2RZJ3D93HYAa049pg==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.6.0","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"22.12.0","dependencies":{"hookified":"^1.12.1"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","rimraf":"^6.0.1","vitest":"^3.2.4","@biomejs/biome":"^2.2.5","@faker-js/faker":"^10.0.0","@vitest/coverage-v8":"^3.2.4"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.0.3_1760073524533_0.008829527779797841","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@keyv/bigmap","version":"1.1.0","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.1.0","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"e22ca78123d898b4317854854f3cc9cac8e9af74","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.1.0.tgz","fileCount":7,"integrity":"sha512-MX7XIUNwVRK+hjZcAbNJ0Z8DREo+Weu9vinBOjGU1thEi9F6vPhICzBbk4CCf3eEefKRz7n6TfZXwUFZTSgj8Q==","signatures":[{"sig":"MEUCICYwVuiL3fu2zSWJkge6dbf7QVAhgU8/MtghkbNW7SNVAiEA65nDYnUVKvr+Yiq4k04YvhljX/kPeaclpGP9JxsNn1k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44650},"main":"dist/index.cjs","type":"module","_from":"file:keyv-bigmap-1.1.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","lint:ci":"biome check --error-on-warnings","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/4e0ad5d555ff88607e2c2fbb1d57d736/keyv-bigmap-1.1.0.tgz","_integrity":"sha512-MX7XIUNwVRK+hjZcAbNJ0Z8DREo+Weu9vinBOjGU1thEi9F6vPhICzBbk4CCf3eEefKRz7n6TfZXwUFZTSgj8Q==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.4.1","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"20.17.0","dependencies":{"hookified":"^1.12.2"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","rimraf":"^6.0.1","vitest":"^3.2.4","@biomejs/biome":"^2.2.6","@faker-js/faker":"^10.1.0","@vitest/coverage-v8":"^3.2.4"},"peerDependencies":{"keyv":"^5.5.3"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.1.0_1760821919103_0.5596090662275746","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@keyv/bigmap","version":"1.2.0","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.2.0","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"a318d465cf78b67c40d39a8c83ab8dfcc8e9c944","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.2.0.tgz","fileCount":7,"integrity":"sha512-4Lme8NejkyetZ9oJ6u8NSf0iJEFFt7I+tyDI48wZlaFmbhDEh4nZg7bEPFPwCWkpIuL50/ukWBC9AHQTmdJLUA==","signatures":[{"sig":"MEUCIQCTbbAnJGMHQ7MhTvPu17eCP77hszQ64xtac77NcCr6cQIgY0DgJAZ8+ek/Y6HuZj437vQH1krdGwb5SNMdyUuRWN4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45142},"main":"dist/index.cjs","type":"module","_from":"file:keyv-bigmap-1.2.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 18"},"exports":{".":{"import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","lint:ci":"biome check --error-on-warnings","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/h1/n3vxgc0n1sn5_9pxftc4p6l80000gn/T/4384be68a794eaf3fa70b565aab4852c/keyv-bigmap-1.2.0.tgz","_integrity":"sha512-4Lme8NejkyetZ9oJ6u8NSf0iJEFFt7I+tyDI48wZlaFmbhDEh4nZg7bEPFPwCWkpIuL50/ukWBC9AHQTmdJLUA==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.4.1","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"20.17.0","dependencies":{"hashery":"^1.2.0","hookified":"^1.12.2"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","rimraf":"^6.0.1","vitest":"^3.2.4","@biomejs/biome":"^2.2.6","@faker-js/faker":"^10.1.0","@vitest/coverage-v8":"^3.2.4"},"peerDependencies":{"keyv":"^5.5.4"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.2.0_1763064796154_0.595138647545931","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@keyv/bigmap","version":"1.3.0","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"url":"http://jaredwray.com","name":"Jared Wray","email":"me@jaredwray.com"},"license":"MIT","_id":"@keyv/bigmap@1.3.0","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"homepage":"https://github.com/jaredwray/keyv","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"tsd":{"directory":"test"},"dist":{"shasum":"f06d9bb38488a59f012cd2758e6f429dfd312fb5","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.0.tgz","fileCount":7,"integrity":"sha512-KT01GjzV6AQD5+IYrcpoYLkCu1Jod3nau1Z7EsEuViO3TZGRacSbO9MfHmbJ1WaOXFtWLxPVj169cn2WNKPkIg==","signatures":[{"sig":"MEUCIErq3XGjI/32GJa9cGC8W9ZhjNa0RuIsoKPdHr9ODKXSAiEA1ZkQ8CKKG/Ja0lXQUDGcpDpci/q5fRpRB+UIFMEQUY0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":45278},"main":"dist/index.js","type":"module","_from":"file:keyv-bigmap-1.3.0.tgz","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">= 18"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"scripts":{"lint":"biome check --write --error-on-warnings","test":"pnpm lint && vitest run --coverage","build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","clean":"rimraf ./node_modules ./coverage ./dist","lint:ci":"biome check --error-on-warnings","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage"},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/b033060743e5ab8702bc3df1c6cb8378/keyv-bigmap-1.3.0.tgz","_integrity":"sha512-KT01GjzV6AQD5+IYrcpoYLkCu1Jod3nau1Z7EsEuViO3TZGRacSbO9MfHmbJ1WaOXFtWLxPVj169cn2WNKPkIg==","repository":{"url":"git+https://github.com/jaredwray/keyv.git","type":"git"},"_npmVersion":"11.6.0","description":"Bigmap for Keyv","directories":{},"_nodeVersion":"22.12.0","dependencies":{"hashery":"^1.2.0","hookified":"^1.13.0"},"_hasShrinkwrap":false,"devDependencies":{"tsd":"^0.33.0","rimraf":"^6.1.0","vitest":"^4.0.10","@biomejs/biome":"^2.3.6","@faker-js/faker":"^10.1.0","@vitest/coverage-v8":"^4.0.10"},"peerDependencies":{"keyv":"^5.5.4"},"_npmOperationalInternal":{"tmp":"tmp/bigmap_1.3.0_1763449547044_0.5863910369665202","host":"s3://npm-registry-packages-npm-production"}},"1.3.1":{"name":"@keyv/bigmap","version":"1.3.1","description":"Bigmap for Keyv","type":"module","main":"dist/index.js","module":"dist/index.js","types":"dist/index.d.ts","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"}}},"repository":{"type":"git","url":"git+https://github.com/jaredwray/keyv.git"},"keywords":["bigmap","keyv","key","value","store","cache","ttl"],"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"homepage":"https://github.com/jaredwray/keyv","dependencies":{"hashery":"^1.4.0","hookified":"^1.15.0"},"devDependencies":{"@biomejs/biome":"^2.3.11","@faker-js/faker":"^10.2.0","@vitest/coverage-v8":"^4.0.17","rimraf":"^6.1.2","tsd":"^0.33.0","vitest":"^4.0.17"},"peerDependencies":{"keyv":"^5.6.0"},"tsd":{"directory":"test"},"engines":{"node":">= 18"},"scripts":{"build":"rimraf ./dist && tsup src/index.ts --format cjs,esm --dts --clean","lint":"biome check --write --error-on-warnings","lint:ci":"biome check --error-on-warnings","test":"pnpm lint && vitest run --coverage","test:ci":"pnpm lint:ci && vitest --run --sequence.setupFiles=list --coverage","clean":"rimraf ./node_modules ./coverage ./dist"},"_id":"@keyv/bigmap@1.3.1","_integrity":"sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==","_resolved":"/private/var/folders/q4/x95kq1ln6cd7rrnct9cby32r0000gn/T/5ca707b089a7662c597e0dd7ff5b1027/keyv-bigmap-1.3.1.tgz","_from":"file:keyv-bigmap-1.3.1.tgz","_nodeVersion":"22.12.0","_npmVersion":"11.6.0","dist":{"integrity":"sha512-WbzE9sdmQtKy8vrNPa9BRnwZh5UF4s1KTmSK0KUVLo3eff5BlQNNWDnFOouNpKfPKDnms9xynJjsMYjMaT/aFQ==","shasum":"fc82fa83947e7ff68c6798d08907db842771ef2c","tarball":"https://registry.npmjs.org/@keyv/bigmap/-/bigmap-1.3.1.tgz","fileCount":7,"unpackedSize":45279,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC/8DUJhSaaSFuF7FKDi43bG9ZAFYLyK3icaaPWQG9jOgIhAK+hfBbwNWPRaVzA3z0qBfu7UNR5+hrgkowkTNM9gGNG"}]},"_npmUser":{"name":"jaredwray","email":"me@jaredwray.com"},"directories":{},"maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bigmap_1.3.1_1768956462234_0.4500670262808315"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-19T19:03:07.991Z","modified":"2026-01-21T00:47:42.545Z","1.0.0":"2025-07-19T19:03:08.277Z","1.0.1":"2025-09-17T20:58:34.503Z","1.0.2":"2025-09-21T23:42:55.482Z","1.0.3":"2025-10-10T05:18:44.718Z","1.1.0":"2025-10-18T21:11:59.294Z","1.2.0":"2025-11-13T20:13:16.342Z","1.3.0":"2025-11-18T07:05:47.253Z","1.3.1":"2026-01-21T00:47:42.392Z"},"bugs":{"url":"https://github.com/jaredwray/keyv/issues"},"author":{"name":"Jared Wray","email":"me@jaredwray.com","url":"http://jaredwray.com"},"license":"MIT","homepage":"https://github.com/jaredwray/keyv","keywords":["bigmap","keyv","key","value","store","cache","ttl"],"repository":{"type":"git","url":"git+https://github.com/jaredwray/keyv.git"},"description":"Bigmap for Keyv","maintainers":[{"name":"jaredwray","email":"me@jaredwray.com"}],"readme":"# @keyv/bigmap [\"keyv\"](https://github.com/jaredwra/keyv)\n\n> Bigmap for Keyv\n\n[![build](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml/badge.svg)](https://github.com/jaredwray/keyv/actions/workflows/tests.yaml)\n[![codecov](https://codecov.io/gh/jaredwray/keyv/branch/main/graph/badge.svg?token=bRzR3RyOXZ)](https://codecov.io/gh/jaredwray/keyv)\n[![npm](https://img.shields.io/npm/v/@keyv/bigmap.svg)](https://www.npmjs.com/package/@keyv/bigmap)\n[![npm](https://img.shields.io/npm/dm/@keyv/bigmap)](https://npmjs.com/package/@keyv/bigmap)\n\n# Features\n* Based on the Map interface and uses the same API.\n* Lightweight with no dependencies.\n* Scales to past the 17 million key limit of a regular Map.\n* Uses a hash `djb2Hash` for fast key lookups.\n* Ability to use your own hash function.\n* Built in Typescript and Generics for type safety.\n* Used in `@cacheable/memory` for scalable in-memory caching.\n* Maintained regularly with a focus on performance and reliability.\n\n# Table of Contents\n- [Features](#features)\n- [Installation](#installation)\n- [Overview](#overview)\n- [Basic Usage](#basic-usage)\n- [Custom Store Size](#custom-store-size)\n- [Custom Hash Function](#custom-hash-function)\n- [Iteration](#iteration)\n\t- [For...of Loop](#forof-loop)\n\t- [forEach](#foreach)\n\t- [Keys, Values, and Entries](#keys-values-and-entries)\n- [Advanced Features](#advanced-features)\n\t- [Type Safety with Generics](#type-safety-with-generics)\n\t- [Large-Scale Data](#large-scale-data)\n- [Using with Keyv](#using-with-keyv)\n\t- [createKeyv](#createkeyv)\n\t- [With Custom Options](#with-custom-options)\n\t- [Type Safety](#type-safety)\n- [Integration with Keyv Ecosystem](#integration-with-keyv-ecosystem)\n- [API](#api)\n\t- [Constructor](#constructor)\n\t- [Properties](#properties)\n\t- [Methods](#methods)\n\t\t- [set](#set)\n\t\t- [get](#get)\n\t\t- [has](#has)\n\t\t- [delete](#delete)\n\t\t- [clear](#clear)\n\t\t- [forEach](#foreach)\n\t\t- [keys](#keys)\n\t\t- [values](#values)\n\t\t- [entries](#entries)\n\t\t- [Symbol.iterator](#symboliterator)\n\t\t- [getStore](#getstorekey)\n\t\t- [getStoreMap](#getstoremapindex)\n\t\t- [initStore](#initstore)\n- [Types](#types)\n- [StoreHashFunction](#storehashfunction)\n- [defaultHashFunction(key, storeSize)](#defaulthashfunctionkey-storesize)\n- [Contributing](#contributing)\n- [License](#license)\n\n# Installation\n\n```bash\nnpm install --save keyv @keyv/bigmap\n```\n\n# Overview\n\nBigMap is a scalable Map implementation that overcomes JavaScript's built-in Map limit of approximately 17 million entries. It uses a distributed hash approach with multiple internal Map instances.\n\n# Basic Usage\n\n```typescript\nimport { BigMap } from '@keyv/bigmap';\n\n// Create a new BigMap\nconst bigMap = new BigMap();\n\n// Set values\nbigMap.set('key1', 100);\nbigMap.set('key2', 200);\n\n// Get values\nconst value = bigMap.get('key1'); // 100\n\n// Check if key exists\nbigMap.has('key1'); // true\n\n// Delete a key\nbigMap.delete('key1'); // true\n\n// Get size\nconsole.log(bigMap.size); // 1\n\n// Clear all entries\nbigMap.clear();\n```\n\n# Custom Store Size\n\nBy default, BigMap uses 4 internal Map instances. You can configure this:\n\n```typescript\nconst bigMap = new BigMap({ storeSize: 10 });\n```\n\n**Note:** Changing the `storeSize` after initialization will clear all entries.\n\n# Custom Hash Function\n\nProvide your own hash function for key distribution:\n\n```typescript\nconst customHashFunction = (key: string, storeSize: number) => {\n return key.length % storeSize;\n};\n\nconst bigMap = new BigMap({\n storeHashFunction: customHashFunction\n});\n```\n\n## Using Hashery for Hash Functions\n\n[Hashery](https://github.com/jaredwray/hashery) is a powerful hashing library that provides multiple hash algorithms. You can use it for better key distribution and it is available as an export:\n\n```typescript\nimport { BigMap, Hashery } from '@keyv/bigmap';\n\nconst hashery = new Hashery();\n\n// Using Hashery's toNumberSync for deterministic key distribution\nconst bigMap = new BigMap({\n storeHashFunction: (key: string, storeSize: number) => {\n return hashery.toNumberSync(key, { min: 0, max: storeSize - 1 });\n }\n});\n\n// You can also use different algorithms\nconst hasheryFnv1 = new Hashery({ defaultAlgorithmSync: 'fnv1' });\n\nconst bigMapWithFnv1 = new BigMap({\n storeHashFunction: (key: string, storeSize: number) => {\n return hasheryFnv1.toNumberSync(key, { min: 0, max: storeSize - 1 });\n }\n});\n```\n\nHashery supports multiple synchronous hash algorithms:\n- **djb2** - Fast hash function (default)\n- **fnv1** - Excellent distribution for hash tables\n- **murmer** - MurmurHash algorithm\n- **crc32** - Cyclic Redundancy Check\n\n# Iteration\n\nBigMap supports all standard Map iteration methods:\n\n## For...of Loop\n\n```typescript\nconst bigMap = new BigMap();\nbigMap.set('a', 1);\nbigMap.set('b', 2);\n\nfor (const [key, value] of bigMap) {\n console.log(key, value);\n}\n```\n\n## forEach\n\n```typescript\nbigMap.forEach((value, key) => {\n console.log(key, value);\n});\n\n// With custom context\nconst context = { sum: 0 };\nbigMap.forEach(function(value) {\n this.sum += value;\n}, context);\n```\n\n## Keys, Values, and Entries\n\n```typescript\n// Iterate over keys\nfor (const key of bigMap.keys()) {\n console.log(key);\n}\n\n// Iterate over values\nfor (const value of bigMap.values()) {\n console.log(value);\n}\n\n// Iterate over entries\nfor (const [key, value] of bigMap.entries()) {\n console.log(key, value);\n}\n```\n\n# Advanced Features\n\n## Type Safety with Generics\n\n```typescript\ninterface User {\n id: number;\n name: string;\n}\n\nconst userMap = new BigMap();\nuserMap.set('user1', { id: 1, name: 'Alice' });\n```\n\n## Large-Scale Data\n\nBigMap is designed to handle millions of entries:\n\n```typescript\nconst bigMap = new BigMap({ storeSize: 16 });\n\n// Add 20+ million entries without hitting Map limits\nfor (let i = 0; i < 20000000; i++) {\n bigMap.set(`key${i}`, i);\n}\n\nconsole.log(bigMap.size); // 20000000\n```\n\n# Using with Keyv\n\nBigMap can be used as a storage adapter for [Keyv](https://github.com/jaredwray/keyv), providing a scalable in-memory store with TTL support.\n\n## createKeyv\n\nThe `createKeyv` function creates a Keyv instance with BigMap as the storage adapter.\n\n**Parameters:**\n- `options` (optional): BigMap configuration options\n - `storeSize` (number): Number of internal Map instances. Default: `4`\n - `storeHashFunction` (StoreHashFunction): Custom hash function for key distribution\n\n**Returns:** `Keyv` instance with BigMap adapter\n\n**Example:**\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\n// Basic usage\nconst keyv = createKeyv();\n\n// Set with TTL (in milliseconds)\nawait keyv.set('user:123', { name: 'Alice', age: 30 }, 60000); // Expires in 60 seconds\n\n// Get value\nconst user = await keyv.get('user:123');\nconsole.log(user); // { name: 'Alice', age: 30 }\n\n// Check if key exists\nconst exists = await keyv.has('user:123');\n\n// Delete key\nawait keyv.delete('user:123');\n\n// Clear all keys\nawait keyv.clear();\n```\n\n## With Custom Options\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\n// Create with custom store size for better performance with millions of keys\nconst keyv = createKeyv({ storeSize: 16 });\n\n// With custom hash function\nconst keyv = createKeyv({\n storeSize: 8,\n storeHashFunction: (key, storeSize) => {\n // Custom distribution logic\n return key.length % storeSize;\n }\n});\n```\n\n## Type Safety\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\ninterface Product {\n id: string;\n name: string;\n price: number;\n}\n\nconst keyv = createKeyv();\n\nawait keyv.set('product:1', {\n id: '1',\n name: 'Laptop',\n price: 999\n});\n\nconst product = await keyv.get('product:1');\n```\n\n# Integration with Keyv Ecosystem\n\nBigMap works seamlessly with the Keyv ecosystem:\n\n```typescript\nimport { createKeyv } from '@keyv/bigmap';\n\nconst cache = createKeyv({ storeSize: 16 });\n\n// Use with namespaces\nconst users = cache.namespace('users');\nconst products = cache.namespace('products');\n\nawait users.set('123', { name: 'Alice' });\nawait products.set('456', { name: 'Laptop' });\n\n// Iterate over keys\nfor await (const [key, value] of cache.iterator()) {\n console.log(key, value);\n}\n```\n\n# API\n\n## Constructor\n\n`new BigMap(options?)`\n\nCreates a new BigMap instance.\n\n**Parameters:**\n- `options` (optional): Configuration options\n - `storeSize` (number): Number of internal Map instances to use. Default: `4`. Must be at least 1.\n - `storeHashFunction` (StoreHashFunction): Custom hash function for key distribution. Default: `defaultHashFunction`\n\n**Example:**\n```typescript\nconst bigMap = new BigMap();\nconst customBigMap = new BigMap({\n storeSize: 10,\n storeHashFunction: (key, storeSize) => key.length % storeSize\n});\n```\n\n## Properties\n\n| Property | Type | Access | Description |\n|----------|------|--------|-------------|\n| `size` | `number` | Read-only | Gets the total number of entries in the BigMap. |\n| `storeSize` | `number` | Read/Write | Gets or sets the number of internal Map instances. **Note:** Setting this will clear all entries. Default: `4` |\n| `storeHashFunction` | `StoreHashFunction \\| undefined` | Read/Write | Gets or sets the hash function used for key distribution. |\n| `store` | `Array>` | Read-only | Gets the internal array of Map instances. |\n\n**Examples:**\n```typescript\nconst bigMap = new BigMap();\n\n// size property\nbigMap.set('key1', 100);\nconsole.log(bigMap.size); // 1\n\n// storeSize property\nconsole.log(bigMap.storeSize); // 4 (default)\nbigMap.storeSize = 8; // Changes size and clears all entries\n\n// storeHashFunction property\nbigMap.storeHashFunction = (key, storeSize) => key.length % storeSize;\n\n// store property\nconsole.log(bigMap.store.length); // 8\n```\n\n## Methods\n\n### set\n\nSets the value for a key in the map.\n\n**Parameters:**\n- `key` (K): The key to set\n- `value` (V): The value to associate with the key\n\n**Returns:** `Map` - The internal Map instance where the key was stored\n\n**Example:**\n```typescript\nbigMap.set('user123', { name: 'Alice' });\n```\n\n### get\n\nGets the value associated with a key.\n\n**Parameters:**\n- `key` (K): The key to retrieve\n\n**Returns:** `V | undefined` - The value, or undefined if not found\n\n**Example:**\n```typescript\nconst value = bigMap.get('user123');\n```\n\n### has\n\nChecks if a key exists in the map.\n\n**Parameters:**\n- `key` (K): The key to check\n\n**Returns:** `boolean` - True if the key exists, false otherwise\n\n**Example:**\n```typescript\nif (bigMap.has('user123')) {\n console.log('User exists');\n}\n```\n\n### delete\n\nDeletes a key-value pair from the map.\n\n**Parameters:**\n- `key` (K): The key to delete\n\n**Returns:** `boolean` - True if the entry was deleted, false if the key was not found\n\n**Example:**\n```typescript\nconst deleted = bigMap.delete('user123');\n```\n\n### clear\n\nRemoves all entries from the map.\n\n**Returns:** `void`\n\n**Example:**\n```typescript\nbigMap.clear();\nconsole.log(bigMap.size); // 0\n```\n\n### forEach\n\nExecutes a provided function once for each key-value pair.\n\n**Parameters:**\n- `callbackfn` (function): Function to execute for each entry\n - `value` (V): The value of the current entry\n - `key` (K): The key of the current entry\n - `map` (`Map`): The BigMap instance\n- `thisArg` (optional): Value to use as `this` when executing the callback\n\n**Returns:** `void`\n\n**Example:**\n```typescript\nbigMap.forEach((value, key) => {\n console.log(`${key}: ${value}`);\n});\n\n// With custom context\nconst context = { total: 0 };\nbigMap.forEach(function(value) {\n this.total += value;\n}, context);\n```\n\n### keys\n\nReturns an iterator of all keys in the map.\n\n**Returns:** `IterableIterator`\n\n**Example:**\n```typescript\nfor (const key of bigMap.keys()) {\n console.log(key);\n}\n```\n\n### values\n\nReturns an iterator of all values in the map.\n\n**Returns:** `IterableIterator`\n\n**Example:**\n```typescript\nfor (const value of bigMap.values()) {\n console.log(value);\n}\n```\n\n### entries\n\nReturns an iterator of all key-value pairs in the map.\n\n**Returns:** `IterableIterator<[K, V]>`\n\n**Example:**\n```typescript\nfor (const [key, value] of bigMap.entries()) {\n console.log(key, value);\n}\n```\n\n### Symbol.iterator\n\nReturns an iterator for the map (same as `entries()`). Enables `for...of` loops.\n\n**Returns:** `IterableIterator<[K, V]>`\n\n**Example:**\n```typescript\nfor (const [key, value] of bigMap) {\n console.log(key, value);\n}\n```\n\n### getStore\n\nGets the internal Map instance for a specific key.\n\n**Parameters:**\n- `key` (K): The key to find the store for\n\n**Returns:** `Map` - The internal Map instance\n\n**Example:**\n```typescript\nconst store = bigMap.getStore('user123');\n```\n\n### getStoreMap\n\nGets the internal Map instance at a specific index.\n\n**Parameters:**\n- `index` (number): The index of the Map to retrieve (0 to storeSize - 1)\n\n**Returns:** `Map` - The Map at the specified index\n\n**Throws:** Error if index is out of bounds\n\n**Example:**\n```typescript\nconst firstMap = bigMap.getStoreMap(0);\n```\n\n### initStore\n\nInitializes the internal store with empty Map instances. Called automatically during construction.\n\n**Returns:** `void`\n\n## Types\n\n### StoreHashFunction\n\nType definition for custom hash functions.\n\n```typescript\ntype StoreHashFunction = (key: string, storeSize: number) => number;\n```\n\n**Parameters:**\n- `key` (string): The key to hash (converted to string)\n- `storeSize` (number): The number of stores (adjusted for zero-based index)\n\n**Returns:** `number` - The index of the store to use (0 to storeSize - 1)\n\n### defaultHashFunction\n\nThe default hash function using DJB2 algorithm from [Hashery](https://npmjs.com/package/hashery):\n\n**Example:**\n```typescript\nimport { defaultHashFunction } from '@keyv/bigmap';\n\nconst index = defaultHashFunction('myKey', 4);\n```\n\n### djb2Hash\n\nDJB2 hash algorithm implementation.\n\n**Parameters:**\n- `string` (string): The string to hash\n- `min` (number): Minimum value. Default: `0`\n- `max` (number): Maximum value. Default: `10`\n\n**Returns:** `number` - Hash value within the specified range\n\n**Example:**\n```typescript\nimport { djb2Hash } from '@keyv/bigmap';\n\nconst hash = djb2Hash('myKey', 0, 10);\n```\n\n# Contributing\n\nPlease see our [contributing](https://github.com/jaredwray/keyv/blob/main/CONTRIBUTING.md) guide.\n\n# License\n\n[MIT © Jared Wray](LICENSE)\n","readmeFilename":"README.md"}