{"_id":"bare-semver","_rev":"8-f32f7bb970cf5d4ba8a3c062ea904397","name":"bare-semver","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"bare-semver","version":"1.0.0","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"bare-semver@1.0.0","maintainers":[{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/bare-semver#readme","bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"dist":{"shasum":"c8b03cc136e929aae8c591a1d47a9a1325b1999a","tarball":"https://registry.npmjs.org/bare-semver/-/bare-semver-1.0.0.tgz","fileCount":9,"integrity":"sha512-nW9jiT8ePWnCbylz1Xtw1xV4NPwr3TTxAgEMjTC3i/y6VmBCxWzfH4qwN4UWRhpjyIELIz3pfwxCq69b823HCA==","signatures":[{"sig":"MEQCIFMQU2IAMlwsnX5vI/3eqq5lCqbxURKlxWv5fLA9S/3wAiBm9dnQ93xHFFOuTC/REIWxXHVa1d4qwnCNe86ZsXp8JA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20448},"exports":{".":"./index.js","./range":"./lib/range.js","./errors":"./lib/errors.js","./package":"./package.json","./version":"./lib/version.js","./constants":"./lib/constants.js","./comparator":"./lib/comparator.js"},"gitHead":"2736b19f0acf2d529d74ad05b9a44962007feafc","scripts":{"test":"standard && bare test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/bare-semver.git","type":"git"},"_npmVersion":"10.8.3","description":"Minimal semantic versioning library for Bare","directories":{},"_nodeVersion":"22.9.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bare-semver_1.0.0_1731496662575_0.03417780977066176","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"bare-semver","version":"1.0.1","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"bare-semver@1.0.1","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/bare-semver#readme","bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"dist":{"shasum":"4737d660785f07cb723cefa6b022089e59120a61","tarball":"https://registry.npmjs.org/bare-semver/-/bare-semver-1.0.1.tgz","fileCount":9,"integrity":"sha512-UtggzHLiTrmFOC/ogQ+Hy7VfoKoIwrP1UFcYtTxoCUdLtsIErT8+SWtOC2DH/snT9h+xDrcBEPcwKei1mzemgg==","signatures":[{"sig":"MEUCIQCK3fISzmVVbZG/csz74vZQxWxutIyKmrBxvL6dKOJkhgIgTnI3zcQCdvEDMdkpdJKUjcCjo9qLR8FiZfafLfS3jFI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20448},"exports":{".":"./index.js","./range":"./lib/range.js","./errors":"./lib/errors.js","./package":"./package.json","./version":"./lib/version.js","./constants":"./lib/constants.js","./comparator":"./lib/comparator.js"},"gitHead":"cdb7427217cc9a99795dd67da6f5ba1fbce14f9d","scripts":{"test":"standard && bare test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/bare-semver.git","type":"git"},"_npmVersion":"10.9.0","description":"Minimal semantic versioning library for Bare","directories":{},"_nodeVersion":"23.2.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","standard":"^17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bare-semver_1.0.1_1732623535093_0.5366748398820596","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"bare-semver","version":"1.0.2","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"bare-semver@1.0.2","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"},{"name":"kasperisager","email":"kasperisager@hey.com"}],"homepage":"https://github.com/holepunchto/bare-semver#readme","bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"dist":{"shasum":"3cfc47ed5d3e809b369daec534ce916b70b83b8c","tarball":"https://registry.npmjs.org/bare-semver/-/bare-semver-1.0.2.tgz","fileCount":10,"integrity":"sha512-ESVaN2nzWhcI5tf3Zzcq9aqCZ676VWzqw07eEZ0qxAcEOAFYBa0pWq8sK34OQeHLY3JsfKXZS9mDyzyxGjeLzA==","signatures":[{"sig":"MEUCIGRQxuRxsUjCirxi7tLIiHj1QpPpGAumrSbb37Sql/Z0AiEA8k0YqSrH8kbjDGvFoDahmR4zINFUQm83W6SJeoI+Zpc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":21942},"types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./range":"./lib/range.js","./errors":"./lib/errors.js","./package":"./package.json","./version":"./lib/version.js","./constants":"./lib/constants.js","./comparator":"./lib/comparator.js"},"gitHead":"50783c46b75482288b17a96b75306f935dc8aa4e","scripts":{"test":"prettier . --check && bare test.js"},"_npmUser":{"name":"kasperisager","email":"kasperisager@hey.com"},"repository":{"url":"git+https://github.com/holepunchto/bare-semver.git","type":"git"},"_npmVersion":"11.6.1","description":"Minimal semantic versioning library for Bare","directories":{},"_nodeVersion":"24.8.0","_hasShrinkwrap":false,"devDependencies":{"brittle":"^3.2.1","prettier":"^3.4.2","prettier-config-standard":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bare-semver_1.0.2_1761223821464_0.3540239454499552","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"bare-semver","version":"1.0.3","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"bare-semver@1.0.3","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/holepunchto/bare-semver#readme","bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"dist":{"shasum":"95ea13976e8b072caf455844a64847da502c39dd","tarball":"https://registry.npmjs.org/bare-semver/-/bare-semver-1.0.3.tgz","fileCount":10,"integrity":"sha512-HS/A30bi2+PiRJfU6R4+Kp+6KeLSCSByjYM2iiobOKzLAvtu1CT+S8xWfiU7wz0erknjkUoC+yXy108tzIuP5Q==","signatures":[{"sig":"MEQCIDAwDttes0u3Rsi5zatQK1FMMOJsAQ9jtaZDZvQV89zjAiBjJMlMedcSU7VK5FdiODmhSeWI27+c7ouwFvsjrCeunw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bare-semver@1.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25090},"types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./range":"./lib/range.js","./errors":"./lib/errors.js","./package":"./package.json","./version":"./lib/version.js","./constants":"./lib/constants.js","./comparator":"./lib/comparator.js"},"gitHead":"1d5be79144e80fab5d4fa74147420989691970e3","scripts":{"lint":"prettier --check . && lunte","test":"brittle-bare --coverage test.js","format":"prettier --write . && lunte --fix"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1e9491cd-ffcb-4e1f-b4db-a30eb1bd8eb2"}},"repository":{"url":"git+https://github.com/holepunchto/bare-semver.git","type":"git"},"_npmVersion":"11.11.0","description":"Minimal semantic versioning library for Bare","directories":{},"_nodeVersion":"24.14.1","_hasShrinkwrap":false,"devDependencies":{"lunte":"^1.6.0","brittle":"^3.2.1","prettier":"^3.4.2","prettier-config-holepunch":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bare-semver_1.0.3_1775678661207_0.4828521802609289","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"bare-semver","version":"1.0.4","author":{"name":"Holepunch"},"license":"Apache-2.0","_id":"bare-semver@1.0.4","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"homepage":"https://github.com/holepunchto/bare-semver#readme","bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"dist":{"shasum":"ca55a0a017cf643a117a15063bd2bc1209ce7e15","tarball":"https://registry.npmjs.org/bare-semver/-/bare-semver-1.0.4.tgz","fileCount":10,"integrity":"sha512-wJ1KMkBGMbmLg6RteZsppsdcuAY/jOwuVyjazx3MXMFqa9j5QrVP13Hc5e7IJ/ZrXTFIGeYV7KObSNkV4qqeTw==","signatures":[{"sig":"MEUCIC7Ms03/tX5N7ceU3uGmldJMWHLLlWMGX9ecT6VTQUkdAiEA05sH90YxCTELZ8OWEZ6b8vdMQe7l5DhwqpgbNIICGVM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bare-semver@1.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25130},"types":"./index.d.ts","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./range":"./lib/range.js","./errors":"./lib/errors.js","./package":"./package.json","./version":"./lib/version.js","./constants":"./lib/constants.js","./comparator":"./lib/comparator.js"},"gitHead":"c0f54e877bcc1ff3a1e953c6a1975546c65af1bc","scripts":{"lint":"prettier --check . && lunte","test":"brittle-bare --coverage test.js","format":"prettier --write . && lunte --fix"},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1e9491cd-ffcb-4e1f-b4db-a30eb1bd8eb2"}},"repository":{"url":"git+https://github.com/holepunchto/bare-semver.git","type":"git"},"_npmVersion":"11.13.0","description":"Minimal semantic versioning library for Bare","directories":{},"_nodeVersion":"24.16.0","_hasShrinkwrap":false,"devDependencies":{"lunte":"^1.6.0","brittle":"^3.2.1","prettier":"^3.4.2","prettier-config-holepunch":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/bare-semver_1.0.4_1781874145944_0.13692088168844263","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"bare-semver","version":"1.1.0","description":"Minimal semantic versioning library for Bare","exports":{".":{"types":"./index.d.ts","default":"./index.js"},"./package":"./package.json","./constants":"./lib/constants.js","./errors":"./lib/errors.js","./version":"./lib/version.js","./range":"./lib/range.js","./comparator":"./lib/comparator.js"},"scripts":{"format":"prettier --write . && lunte --fix","lint":"prettier --check . && lunte","test":"brittle-bare --coverage test.js"},"repository":{"type":"git","url":"git+https://github.com/holepunchto/bare-semver.git"},"author":{"name":"Holepunch"},"license":"Apache-2.0","bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"homepage":"https://github.com/holepunchto/bare-semver#readme","devDependencies":{"brittle":"^3.2.1","lunte":"^1.6.0","prettier":"^3.4.2","prettier-config-holepunch":"^2.0.0"},"gitHead":"25db5754521e65ccf1a32eff55a4e53f663744a9","types":"./index.d.ts","_id":"bare-semver@1.1.0","_nodeVersion":"24.16.0","_npmVersion":"11.13.0","dist":{"integrity":"sha512-1Hw5qJ7hXdVt3uPUqjeFTuxyvBUJauvz5A1I2jk8gzjZMHp04n//6nV9MDbG9CMw78JHY2lGV0w6s//LrASm2w==","shasum":"8c12d350673ee1413969039f05546aa2023ec210","tarball":"https://registry.npmjs.org/bare-semver/-/bare-semver-1.1.0.tgz","fileCount":10,"unpackedSize":31573,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/bare-semver@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDnOPa6fxYczp8/1CTqMlDGUOBlreeLEFCVV+Q4mSYXZQIgRA3iCAg73y7d4TMX53xqLRaGkQusYXYO+W9T93xDEng="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:1e9491cd-ffcb-4e1f-b4db-a30eb1bd8eb2"}},"directories":{},"maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/bare-semver_1.1.0_1782198976600_0.5077812148492618"},"_hasShrinkwrap":false}},"time":{"created":"2024-11-13T11:17:42.574Z","modified":"2026-06-23T07:16:17.067Z","1.0.0":"2024-11-13T11:17:42.727Z","1.0.1":"2024-11-26T12:18:55.269Z","1.0.2":"2025-10-23T12:50:21.675Z","1.0.3":"2026-04-08T20:04:21.415Z","1.0.4":"2026-06-19T13:02:26.083Z","1.1.0":"2026-06-23T07:16:16.716Z"},"bugs":{"url":"https://github.com/holepunchto/bare-semver/issues"},"author":{"name":"Holepunch"},"license":"Apache-2.0","homepage":"https://github.com/holepunchto/bare-semver#readme","repository":{"type":"git","url":"git+https://github.com/holepunchto/bare-semver.git"},"description":"Minimal semantic versioning library for Bare","maintainers":[{"name":"mafintosh","email":"mathiasbuus@gmail.com"}],"readme":"# bare-semver\n\nMinimal semantic versioning library for Bare.\n\n```\nnpm i bare-semver\n```\n\n## Usage\n\n```js\nconst semver = require('bare-semver')\n\nconst version = semver.Version.parse('1.2.3-alpha.1+build.42')\n\nconsole.log(version.major) // 1\nconsole.log(version.minor) // 2\nconsole.log(version.patch) // 3\n\nconst satisfied = semver.satisfies('1.2.3', '>=1.0.0 <2.0.0')\n\nconsole.log(satisfied) // true\n```\n\n## API\n\n#### `const satisfied = semver.satisfies(version, range)`\n\nTest whether `version` satisfies `range`. Both `version` and `range` may be strings, in which case they will be parsed.\n\n#### `semver.constants`\n\nAn object containing the comparison operator constants:\n\n```js\nconstants = {\n  EQ: 1,\n  LT: 2,\n  LTE: 3,\n  GT: 4,\n  GTE: 5\n}\n```\n\n#### `semver.errors`\n\nThe `SemVerError` class. Thrown when parsing invalid versions or ranges.\n\n#### `const version = new semver.Version(major, minor, patch[, options])`\n\nCreate a new version with the given `major`, `minor`, and `patch` components.\n\nOptions include:\n\n```js\noptions = {\n  prerelease: [],\n  build: []\n}\n```\n\n#### `version.major`\n\nThe major version number.\n\n#### `version.minor`\n\nThe minor version number.\n\n#### `version.patch`\n\nThe patch version number.\n\n#### `version.prerelease`\n\nAn array of prerelease tags.\n\n#### `version.build`\n\nAn array of build metadata tags.\n\n#### `const result = version.compare(other)`\n\nCompare `version` with `other`, returning `1` if `version` is greater, `-1` if less, or `0` if equal. Comparison follows the Semantic Versioning 2.0.0 specification, including prerelease precedence rules.\n\n#### `const string = version.toString()`\n\nReturn the string representation of `version`.\n\n#### `const version = semver.Version.parse(input)`\n\nParse a semantic version string into a `Version` instance. Throws a `SemVerError` with code `INVALID_VERSION` if `input` is not a valid version string.\n\n#### `const result = semver.Version.compare(a, b)`\n\nCompare two `Version` instances, returning `1`, `-1`, or `0`.\n\n#### `const comparator = new semver.Comparator(operator, version)`\n\nCreate a new comparator with the given `operator` constant and `version`.\n\n#### `comparator.operator`\n\nThe comparison operator constant.\n\n#### `comparator.version`\n\nThe `Version` instance to compare against.\n\n#### `const satisfied = comparator.test(version)`\n\nTest whether `version` satisfies the comparator.\n\n#### `const string = comparator.toString()`\n\nReturn the string representation of the comparator, e.g. `>=1.0.0`.\n\n#### `const range = new semver.Range([comparators])`\n\nCreate a new range from a two-dimensional array of `Comparator` instances. Each inner array represents a set of comparators joined by intersection, and the outer array represents the union of those sets.\n\n#### `range.comparators`\n\nThe two-dimensional array of `Comparator` instances.\n\n#### `const satisfied = range.test(version)`\n\nTest whether `version` satisfies the range.\n\n#### `const string = range.toString()`\n\nReturn the string representation of the range.\n\n#### `const range = semver.Range.parse(input)`\n\nParse a range string into a `Range` instance. Supports the following syntax, which is desugared into sets of comparators following the [npm advanced range syntax](https://www.npmjs.com/package/semver#advanced-range-syntax):\n\n- Comparison operators: `<`, `<=`, `>`, `>=`, `=`, e.g. `>=1.2.3`.\n- Logical OR of comparator sets: `||`, e.g. `1.2.3 || >=2.0.0`.\n- Caret ranges: `^1.2.3` allows changes that do not modify the left-most non-zero component, e.g. `^1.2.3` is `>=1.2.3 <2.0.0-0` and `^0.2.3` is `>=0.2.3 <0.3.0-0`.\n- Tilde ranges: `~1.2.3` allows patch-level changes if a minor version is specified and minor-level changes if not, e.g. `~1.2.3` is `>=1.2.3 <1.3.0-0` and `~1` is `>=1.0.0 <2.0.0-0`. `~>` is accepted as an alias for `~`.\n- X-ranges: `x`, `X`, or `*` stand in for a component, e.g. `1.2.x` is `>=1.2.0 <1.3.0-0` and `*` is `>=0.0.0`. Partial versions such as `1` and `1.2` are treated as X-ranges.\n- Hyphen ranges: `1.2.3 - 2.3.4` specifies an inclusive set, expanding to `>=1.2.3 <=2.3.4`. A partial upper bound caps the range, e.g. `1.2.3 - 2.3` is `>=1.2.3 <2.4.0-0`.\n\n## License\n\nApache-2.0\n","readmeFilename":"README.md"}