{"_id":"@almeidx/version-check","_rev":"11-57bf0ecb7847c06815601bbac082dcac","name":"@almeidx/version-check","dist-tags":{"latest":"1.0.1"},"versions":{"0.1.0":{"name":"@almeidx/version-check","version":"0.1.0","license":"Apache-2.0","_id":"@almeidx/version-check@0.1.0","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"dist":{"shasum":"3f451dc665a81249f27c128002af380d63cccfee","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.1.0.tgz","fileCount":6,"integrity":"sha512-DjQX38j/TEVCdheQmU3wAKVymY9QkPVhYcEg7sSMn+9DuzdwaCsGfKp0x+fPmVHzvBjCHoMVDGPwbPXdUkx/dg==","signatures":[{"sig":"MEQCIEIX0vH+ImdoaIMY87ajj1ZPjfiDbIlMMzQm0YSKUuA7AiADJvD9Kq9VJWo2v8rxfeXF2Y4io46JZY7vDuQbgz1MoA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35176},"type":"module","_from":"file:/var/folders/cz/s6569lpx1k710rc26v2m4rqr0000gn/T/tmp.2BJaaFuIsk/almeidx-version-check-0.1.0.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"almeidx","email":"npm@almeidx.dev"},"_resolved":"/var/folders/cz/s6569lpx1k710rc26v2m4rqr0000gn/T/tmp.2BJaaFuIsk/almeidx-version-check-0.1.0.tgz","_integrity":"sha512-DjQX38j/TEVCdheQmU3wAKVymY9QkPVhYcEg7sSMn+9DuzdwaCsGfKp0x+fPmVHzvBjCHoMVDGPwbPXdUkx/dg==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"26.2.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.1","vitest":"^4.1.8","typescript":"^6.0.3"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.1.0_1780325304380_0.20110635356213424","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-next.0":{"name":"@almeidx/version-check","version":"0.2.0-next.0","license":"Apache-2.0","_id":"@almeidx/version-check@0.2.0-next.0","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"2a691f42352812ecc39c965f2de362b19960daae","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.2.0-next.0.tgz","fileCount":11,"integrity":"sha512-O1lKJjytHw6qiCsbdyRjw9BjNriyAAj5dsgtIEiPqIvAPJc5m5Ob/jHA7nNTAFRm6IeQUOpfR0aoXPR51no/zQ==","signatures":[{"sig":"MEQCIG8pJbF8ZNasFDYkia0/x3k5HTJvh/urPl8Vk6g3ZLyEAiAo6dH0aWlYjPXvu9t/rN7Qdc6hVH8kSQEXlTdSlfM7Kg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@0.2.0-next.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":67433},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.0.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.0.tgz","_integrity":"sha512-O1lKJjytHw6qiCsbdyRjw9BjNriyAAj5dsgtIEiPqIvAPJc5m5Ob/jHA7nNTAFRm6IeQUOpfR0aoXPR51no/zQ==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.1","vitest":"^4.1.7","typescript":"^6.0.3","@types/node":"^24.12.4"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.2.0-next.0_1780410698294_0.9664236477666368","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-next.1":{"name":"@almeidx/version-check","version":"0.2.0-next.1","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@0.2.0-next.1","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"89612fa3f8cf7ac64ce6ed0852d5940146938cd7","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.2.0-next.1.tgz","fileCount":13,"integrity":"sha512-D3jEyvj/SwoMBJj4+oUzG8VeZoDaQbrNHjJPoHDheWm2h7OWUXXS0THt71/seYA+mE2hXtrduLwsCD20KaygLw==","signatures":[{"sig":"MEQCIA8pIb1AYo0gu6K3r+bZDYWxNl8zChIkQpGCrbs69jLVAiAYuu8LPGdSr7cK6XlK89m2ElFCEMG4nfyVPg4OVUpmeQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@0.2.0-next.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":69775},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.1.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.1.tgz","_integrity":"sha512-D3jEyvj/SwoMBJj4+oUzG8VeZoDaQbrNHjJPoHDheWm2h7OWUXXS0THt71/seYA+mE2hXtrduLwsCD20KaygLw==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdown":"^0.22.1","vitest":"^4.1.7","typescript":"^6.0.3","@types/node":"^24.12.4"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.2.0-next.1_1780485958350_0.9481852691467791","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-next.2":{"name":"@almeidx/version-check","version":"0.2.0-next.2","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@0.2.0-next.2","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"5ce558d7f3bad6733a374900ebfeb4e7c81fb061","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.2.0-next.2.tgz","fileCount":18,"integrity":"sha512-iF+TJw+7M0/JsLL3LyML6np43qpOjg7RbCypVQki2yLSPZ2I8qGYjtXkXvvnLV+87IlDIK5j/ddCVDMszuCmNg==","signatures":[{"sig":"MEUCIC3xzXP0X+mTc8B1Mlz8J8n1MzfLaCN6iK2QCH1SDg0DAiEArrT4w5vo+uXAxR6If7UdRwAnZdDLBtXsO6/yuI6bjl0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@0.2.0-next.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":80575},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.2.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}},"./build":{"import":{"types":"./dist/build-id.d.mts","default":"./dist/build-id.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.2.tgz","_integrity":"sha512-iF+TJw+7M0/JsLL3LyML6np43qpOjg7RbCypVQki2yLSPZ2I8qGYjtXkXvvnLV+87IlDIK5j/ddCVDMszuCmNg==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdown":"^0.22.1","vitest":"^4.1.7","typescript":"^6.0.3","@types/node":"^24.12.4"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.2.0-next.2_1780502386587_0.5095669628138007","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-next.3":{"name":"@almeidx/version-check","version":"0.2.0-next.3","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@0.2.0-next.3","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"5a83111b5d9e31e841a20437cd689b0370ce4868","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.2.0-next.3.tgz","fileCount":18,"integrity":"sha512-6bR0oQQ4t32Vhws3q2xD/yf/cdZbLtFqV4l/BdWHCOXj3dgcKrbMI0YebV/Xs8RRdA2sUbwryi4CSfxfG05YSQ==","signatures":[{"sig":"MEYCIQDqSZwWwzF3/3qo3SgFagQl3Grc8B0gj3n3p1Yeu9Re8QIhAL5MRZKHnPCVm7q5mQc+VxdRCnsO2Goos3aR36tGYSBi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@0.2.0-next.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":75313},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.3.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}},"./build":{"import":{"types":"./dist/build-id.d.mts","default":"./dist/build-id.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.3.tgz","_integrity":"sha512-6bR0oQQ4t32Vhws3q2xD/yf/cdZbLtFqV4l/BdWHCOXj3dgcKrbMI0YebV/Xs8RRdA2sUbwryi4CSfxfG05YSQ==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdown":"^0.22.1","vitest":"^4.1.7","typescript":"^6.0.3","@types/node":"^24.12.4"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.2.0-next.3_1780504617899_0.7500262199124692","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-next.4":{"name":"@almeidx/version-check","version":"0.2.0-next.4","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@0.2.0-next.4","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"f11a600d1b20748c784dae82489d9b927d8057fe","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.2.0-next.4.tgz","fileCount":18,"integrity":"sha512-kMUZb77g745KkU+IF7QizRdJmVUjSHTpnpoc4T45crmcUkS+HoZyjGIT5lG2f9Fg5AcPrbK0z94troUFrlfT+A==","signatures":[{"sig":"MEUCIQCm3tY2VbdwMX97j74nyrP7nA+r17nA/dfpaVYF5/U+aQIgedG5wDpNVXh9RO3T27CFR+fuLyY3COh52MBJNUFH0KE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@0.2.0-next.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":75654},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.4.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}},"./build":{"import":{"types":"./dist/build-id.d.mts","default":"./dist/build-id.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.4.tgz","_integrity":"sha512-kMUZb77g745KkU+IF7QizRdJmVUjSHTpnpoc4T45crmcUkS+HoZyjGIT5lG2f9Fg5AcPrbK0z94troUFrlfT+A==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdown":"^0.22.1","vitest":"^4.1.7","typescript":"^6.0.3","@types/node":"^24.12.4"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.2.0-next.4_1780910445288_0.28264484983689386","host":"s3://npm-registry-packages-npm-production"}},"0.2.0-next.5":{"name":"@almeidx/version-check","version":"0.2.0-next.5","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@0.2.0-next.5","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"9bad92bab9a8abe0f2cbc1d6eca54a9a659e121d","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-0.2.0-next.5.tgz","fileCount":18,"integrity":"sha512-WrNW4nydqVIIaT4DslWT+lzfxv2ZZiyKxwBbfBEAKJrKulXgxYh584VDwBQMpYO5zdVwiPqcWXTLTXmyJGP7KQ==","signatures":[{"sig":"MEUCIDuA7SJcerQY1coT7Ay+zhnimxKwNjfNDEe2YGX3Y4tVAiEAwtiNQC7t6R7iH8tUReedXaEJVlkM5tU/ql9umDsOL7E=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@0.2.0-next.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":76816},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.5.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}},"./build":{"import":{"types":"./dist/build-id.d.mts","default":"./dist/build-id.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-0.2.0-next.5.tgz","_integrity":"sha512-WrNW4nydqVIIaT4DslWT+lzfxv2ZZiyKxwBbfBEAKJrKulXgxYh584VDwBQMpYO5zdVwiPqcWXTLTXmyJGP7KQ==","deprecated":"Versions prior to 1.0.0 are no longer supported. Upgrade to >=1.0.0","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"tsdown":"^0.22.2","vitest":"^4.1.9","typescript":"^6.0.3","@types/node":"^24.13.2"},"_npmOperationalInternal":{"tmp":"tmp/version-check_0.2.0-next.5_1781704381946_0.128831136453313","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@almeidx/version-check","version":"1.0.0","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@1.0.0","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"29d8be9a414ff485f9b7edd5252d71c90ab2975c","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-1.0.0.tgz","fileCount":18,"integrity":"sha512-eGewF0zyxPmgzoslR5Z9cYhkB50Rdz7tU34Lnb8U00k4j9i5qCmp1trkAmaArXshNvpn+W0Xx7PN2eprrLraXQ==","signatures":[{"sig":"MEUCIQCrYB8i/U2KXZurKjKfMrp/ExxXRJPqJiGq1/oe0x0NBAIgVsflX9Z2YKbgNsxQlDGKheUScN+RiPC2m82fMT7H78U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":78283},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-1.0.0.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}},"./build":{"import":{"types":"./dist/build-id.d.mts","default":"./dist/build-id.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-1.0.0.tgz","_integrity":"sha512-eGewF0zyxPmgzoslR5Z9cYhkB50Rdz7tU34Lnb8U00k4j9i5qCmp1trkAmaArXshNvpn+W0Xx7PN2eprrLraXQ==","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.13.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.16.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.3","vitest":"^4.1.9","typescript":"^6.0.3","@types/node":"^24.13.2"},"_npmOperationalInternal":{"tmp":"tmp/version-check_1.0.0_1781798340516_0.20415656597507703","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@almeidx/version-check","version":"1.0.1","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","_id":"@almeidx/version-check@1.0.1","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","bugs":{"url":"https://github.com/almeidx/version-check/issues"},"bin":{"version-check":"bin/version-check.mjs"},"dist":{"shasum":"46bb69c04288e7a8ec323c90ef8be7207fffbaae","tarball":"https://registry.npmjs.org/@almeidx/version-check/-/version-check-1.0.1.tgz","fileCount":18,"integrity":"sha512-e6hRhEeH+CdBJcnqNY2OAGfv2ZYwJfkIyNYs02FDxSBBRdlqDWUSEDM59VwHlnC4ZUr6nfKdrJUx9iKOgzR1lA==","signatures":[{"sig":"MEYCIQC/0+4JatoyWxWcPYRrbxImzLqItyugLTi6B8glgFyCsQIhAKEvCexdb3O+Ck4PFcL1tiMzX7g9RNdZWLvT0rga4EDg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@almeidx%2fversion-check@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":79129},"type":"module","_from":"file:/home/runner/work/_temp/version-check-packages/almeidx-version-check-1.0.1.tgz","types":"./dist/index.d.mts","exports":{".":{"import":{"types":"./dist/index.d.mts","default":"./dist/index.mjs"}},"./cli":{"import":{"types":"./dist/cli.d.mts","default":"./dist/cli.mjs"}},"./build":{"import":{"types":"./dist/build-id.d.mts","default":"./dist/build-id.mjs"}}},"scripts":{"dev":"tsdown --watch","build":"tsdown","typecheck":"tsc --noEmit -p tsconfig.json"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:f2109d9b-72c6-4e3d-a2ad-84c97e298228"}},"_resolved":"/home/runner/work/_temp/version-check-packages/almeidx-version-check-1.0.1.tgz","_integrity":"sha512-e6hRhEeH+CdBJcnqNY2OAGfv2ZYwJfkIyNYs02FDxSBBRdlqDWUSEDM59VwHlnC4ZUr6nfKdrJUx9iKOgzR1lA==","repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"_npmVersion":"11.19.0","description":"Headless web app version/update detector.","directories":{},"sideEffects":false,"_nodeVersion":"24.20.0","publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.22.14","vitest":"^4.1.11","typescript":"^7.0.2","@types/node":"^24.13.3"},"_npmOperationalInternal":{"tmp":"tmp/version-check_1.0.1_1788348207796_0.1723005822095629","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2026-06-01T14:48:24.216Z","modified":"2026-09-02T11:42:45.243Z","0.1.0":"2026-06-01T14:48:24.529Z","0.2.0-next.0":"2026-06-02T14:31:38.490Z","0.2.0-next.1":"2026-06-03T11:25:58.528Z","0.2.0-next.2":"2026-06-03T15:59:46.723Z","0.2.0-next.3":"2026-06-03T16:36:58.156Z","0.2.0-next.4":"2026-06-08T09:20:45.435Z","0.2.0-next.5":"2026-06-17T13:53:02.094Z","1.0.0":"2026-06-18T15:59:00.654Z","1.0.1":"2026-09-02T11:23:27.923Z"},"bugs":{"url":"https://github.com/almeidx/version-check/issues"},"author":{"url":"https://almeidx.dev","name":"almeidx"},"license":"Apache-2.0","homepage":"https://github.com/almeidx/version-check/tree/main/packages/core#readme","keywords":["build-id","deployment","esm","frontend","polling","typescript","update-detector","version-check"],"repository":{"url":"git+https://github.com/almeidx/version-check.git","type":"git","directory":"packages/core"},"description":"Headless web app version/update detector.","maintainers":[{"name":"almeidx","email":"npm@almeidx.dev"}],"readme":"# @almeidx/version-check\n\nHeadless version/update detection for web apps.\n\n`@almeidx/version-check` polls a deployment version endpoint and reports when the deployed identity differs from the version that rendered the current page. It does not render UI, reload the page, or choose a notification system for you.\n\n## Install\n\n```sh\npnpm add @almeidx/version-check\n```\n\n## Version endpoint\n\nThe default endpoint is `/version.json`. The payload can be a string or an object with one of `version`, `buildId`, `id`, `hash`, or `sha`.\n\n```json\n{\n\t\"buildId\": \"2026-06-01T12-00-00Z\"\n}\n```\n\nGenerate a `public/version.json` file during builds with the package CLI:\n\n```sh\nversion-check generate public\n```\n\nFor package scripts:\n\n```json\n{\n\t\"scripts\": {\n\t\t\"prebuild\": \"version-check generate public\"\n\t}\n}\n```\n\nThe generated `buildId` uses `VERSION_CHECK_BUILD_ID`, `SOURCE_COMMIT`, `VERCEL_GIT_COMMIT_SHA`, `CI_COMMIT_SHA`, `GITHUB_SHA`, or `local-dev`.\n\n## Usage\n\n```ts\nimport { createVersionChecker } from \"@almeidx/version-check\";\n\nconst checker = createVersionChecker({\n\tcurrentVersion: window.__BUILD_ID__,\n\tintervalMs: 30 * 60 * 1000,\n});\n\nchecker.subscribe((state) => {\n\tif (state.updateAvailable) {\n\t\tdocument.querySelector(\"#update-banner\")?.removeAttribute(\"hidden\");\n\t}\n});\n\nchecker.start();\n```\n\n## Polling behavior\n\nThe checker polls every `intervalMs` (default 30 minutes) and also re-checks on window focus, network reconnect, and the tab becoming visible.\n\n- `pauseWhenHidden` (default `true`) pauses the interval while the tab is hidden and checks when it becomes visible again if the lifecycle cooldown has elapsed.\n- `minIntervalMs` (default 1 minute) sets a minimum gap between lifecycle-triggered checks. Set it to `0` to disable the cooldown.\n- `refetchOnWindowFocus`, `refetchOnReconnect`, and `refetchOnVisibilityChange` (each default `true`) turn off individual triggers.\n\n## Exports\n\n- `createVersionChecker`\n- `isUpdateAvailable`\n- `defaultLifecycleMinIntervalMs`\n- `fetchJsonVersion`\n- `VersionCheckError`\n- Version payload and checker option/state types\n- Node-only `@almeidx/version-check/build`: `resolveBuildId`, `writeVersionFile`, `createVersionFileContent`, `normalizeBuildId`\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}