{"_id":"@bscotch/semver-hotfix","_rev":"7-d6aa5048a2bcdae99a7f302a443b0518","name":"@bscotch/semver-hotfix","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@bscotch/semver-hotfix","version":"1.0.0","keywords":["semver"],"author":{"name":"Adam Coster"},"license":"MIT","_id":"@bscotch/semver-hotfix@1.0.0","maintainers":[{"name":"bscotchshi","email":"shi@bscotch.net"},{"name":"bscotchadam","email":"npm@bscotch.net"}],"homepage":"https://bitbucket.org/bscotchRepos/bscotch-semver-hotfix#readme","dist":{"shasum":"c061f12ca6f66c498d4a85712ac1f57ed9608efc","tarball":"https://registry.npmjs.org/@bscotch/semver-hotfix/-/semver-hotfix-1.0.0.tgz","fileCount":16,"integrity":"sha512-t6uUWSqpPUtFMYrll3jZMA09NRRfotanoXQ2rqqSBvFzzrYZjy36mRORIy3zme8E863p0zx6latp1QpWuI5ObA==","signatures":[{"sig":"MEYCIQD5aGEym3fio7q9KO2xUbwg0Dg5P3mTTenYXCv7SMTNJwIhAIgzLh8H6g6XfUPZP6vpksb3n31VUDn0PJkjVoCS1N0I","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16696,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5+9pCRA9TVsSAnZWagAAOi0P/2thH6o2TYbIh3QJsyvI\nqTDYFHSaEnScoCp2FlglDVjrePAp3hci/ec/AfTwZjRMDVLBzA0Muii9KlsP\nuyI+w6u14DcYeZj6uLCRyJghYX5C1gYSXNGmXRiYWGrCxtXbBXmx9VYnpS0l\ntvwXKbq0+7cNAIsKYx2C5//0TK8O35OjtW5hMfBYY3/lmpCj2UkrKsobRiCP\nH4vvuS0PiKNW/+B6r+AkdMYN8pauHu3caj2hINSdc1QvuIsBskwm3gr8J5Of\nMAoSgjls4/KKCOjtl4GGgYz5ltQSPc389X2psPZ64zPb+KnZqv7aEWQD//iC\nc2sgUld4lfOayFUdk5zttZUnwTVq0KJKTRYigFnMHb6UbP2Z9mQf/XOyT3zb\nBRfjmfkBCjc7ksE3ETiKWc2nAWqqAuR8KyYSFd1SKoE5lRM0fx7yQdfoKSvK\nnBeGMKgLvoo1ZKNbVIEIBVDFPcsf2TM6LtFZEMwpxo3ZAODIWdJbcf0u/5Ev\nsTGHervZcP+pWsWIbZS4tStubqz01qkO26k7K2VFDG/BCqlIyJ3zOTylTLjQ\naLpI/ma17z6tvaBU2uQM9DZyvLTKtwDPjMnvtJzjqq+mAcbq9FTtkHMCnM5Z\nE52r2uBFLGuOBYtendblB9QV38onPPUPtFJQLdIoztGOXyxaNjbl8bq/rYUy\nDX/t\r\n=sY2y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/index.js","gitHead":"49b56d77a78af1651fe7ddc0deeec77f8db9732e","scripts":{"test":"npx mocha build/test","build":"rm -rf build && npx tsc","prepare":"npm run build","preversion":"npm run prepare && npm test"},"_npmUser":{"name":"bscotchadam","email":"npm@bscotch.net"},"repository":{"url":"git+ssh://git@bitbucket.org/bscotchRepos/bscotch-semver-hotfix.git","type":"git"},"_npmVersion":"6.12.1","description":"Semver, but where 'hotfix' pre-releases are treated as post-releases.","directories":{},"_nodeVersion":"12.13.1","dependencies":{"semver":"^6.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.2.2","eslint":"^6.6.0","typescript":"^3.7.2","@types/chai":"^4.2.5","@types/node":"^12.12.5","@types/mocha":"^5.2.7","@types/semver":"^6.2.0","@typescript-eslint/parser":"^2.7.0","@typescript-eslint/eslint-plugin":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/semver-hotfix_1.0.0_1575481192550_0.6487252318754904","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@bscotch/semver-hotfix","version":"1.1.0","keywords":["semver"],"author":{"name":"Adam Coster"},"license":"MIT","_id":"@bscotch/semver-hotfix@1.1.0","maintainers":[{"name":"bscotchadam","email":"npm@bscotch.net"},{"name":"bscotchshi","email":"shi@bscotch.net"}],"homepage":"https://bitbucket.org/bscotchRepos/bscotch-semver-hotfix#readme","dist":{"shasum":"65aabf9663a2248c73fe2edd0de58e446c30214e","tarball":"https://registry.npmjs.org/@bscotch/semver-hotfix/-/semver-hotfix-1.1.0.tgz","fileCount":36,"integrity":"sha512-GipWh+oFds5lSWM2Q4jkeQazLXJp33Oa04mIuC2GObqSV62/FM24Bak6Az8ooMFimDzXv10xqrdVkc+2GX4fHg==","signatures":[{"sig":"MEYCIQD8MgqW5MKa1PLYAN/KOBe2uCeDhOMD1pXL9hnojdFaJgIhAK12JWYT/GXsHxkThVQ8HdKxvbI2XLA6oLq25beo77Yz","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25625,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5/eBCRA9TVsSAnZWagAAWG8P/AynIyHRLJwm/J72tBvY\nh+G55Nwnz47Je6V8TlYHriM+8IWxNN3ibanYES6dSlIQbLpmU4JFdrLP0jRL\n9dnSHTJBFtx+V8itN/DuLgn380VU7HHKQsMDL6aet7AT+gsEV3KuRLjtuJHy\nhSjuWKjOcf3x2Fmxl9Lvc9030moIHf6Wjk0azC35KZvBM1JZnIL9XJbyKyMQ\nwcRbg53lpCOcK7uewD7MxVd65YHJ1l6stqEXt4/CF9+34AF5FrEH2qfzLYVk\nxUnJz6DReKe96c32g12ERn1/GIbAwumyO817e9QeQsugMPbBTw2Vbsrry/Lo\nshLdYsZQ633aCFbGyyIyWHbBK9b9YhUwkh2JLKzLR3K11Jly99AJ1wjBjYbv\n8zAqUAN+wW8aheSI0PCENQVu0tKTLsNhCxtyE/5+8eSanAdF+boir5stgReU\n0djr3PQpHZTqUXuveKaHDg3NUNsd8AXJ2bOB9gDgR1qT4VkxT93avlFVYgxt\n1u0WaZFW7ObwrSERcKM9t7iC9gfWSGmoUgZn5eVrdwxms5R5k0qaHUE/7bB8\nVwQvGljOaByGJ0zgu8KIxznCcpU+98Rr2WJVtuTY4GLAq9poTvBTw3GLg/bi\npCmMvntCkiwLzrAkzwAh7hg9pdLeAoanuKS6yshm1ZCI/HPsGx6sMDTZZXvg\nstPe\r\n=dyJ2\r\n-----END PGP SIGNATURE-----\r\n"},"main":"./build/index.js","gitHead":"e5dbde99bf9dc5d46ae5a08c9945a0870180aa5a","scripts":{"test":"npx mocha build/test","build":"rm -rf build && npx tsc","prepare":"npm run build","preversion":"npm run prepare && npm test"},"_npmUser":{"name":"bscotchadam","email":"npm@bscotch.net"},"repository":{"url":"git+ssh://git@bitbucket.org/bscotchRepos/bscotch-semver-hotfix.git","type":"git"},"_npmVersion":"6.12.1","description":"Semver, but where 'hotfix' pre-releases are treated as post-releases.","directories":{},"_nodeVersion":"12.13.1","dependencies":{"semver":"^6.3.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.2.0","mocha":"^6.2.2","eslint":"^6.6.0","typescript":"^3.7.2","@types/chai":"^4.2.5","@types/node":"^12.12.5","@types/mocha":"^5.2.7","@types/semver":"^6.2.0","@typescript-eslint/parser":"^2.7.0","@typescript-eslint/eslint-plugin":"^2.7.0"},"_npmOperationalInternal":{"tmp":"tmp/semver-hotfix_1.1.0_1575483265095_0.6288214892417137","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-12-04T17:39:52.549Z","modified":"2025-11-03T17:22:10.624Z","1.0.0":"2019-12-04T17:39:52.711Z","1.1.0":"2019-12-04T18:14:25.225Z"},"author":{"name":"Adam Coster"},"license":"MIT","homepage":"https://bitbucket.org/bscotchRepos/bscotch-semver-hotfix#readme","keywords":["semver"],"repository":{"url":"git+ssh://git@bitbucket.org/bscotchRepos/bscotch-semver-hotfix.git","type":"git"},"description":"Semver, but where 'hotfix' pre-releases are treated as post-releases.","maintainers":[{"email":"npm@bscotch.net","name":"bscotchadam"}],"readme":"# Semver Hotfix\n\nThe [semver spec](https://semver.org/) allows for *pre-lease* versioning, but not *post-release* (hotfix) versioning.\n\nThis package provides semver utility functions that place `-hotfix` suffixes *ahead* of release versions in priority, so that the semver-strict sort order of:\n\n+ 1.0.0\n+ 1.0.0-alpha.0\n+ 1.0.0-hotfix.3\n\nWould become:\n\n+ 1.0.0-hotfix.3\n+ 1.0.0\n+ 1.0.0-alpha.0\n\nThis package uses the same functions as [semver package](https://www.npmjs.com/package/semver), implementing replacements where the hotfix interpretation matters (e.g. in comparisons) and serving as a pass-through where they do not.\n\nFunctions that would be impacted by the hotfix interpretation but that are not yet implemented here are *not* passed through to semver.\n\n## Installation\n\n`npm install @bscotch/semver-hotfix`\n\n## Usage\n\nTypescript:\n\n```ts\nimport {compare} from \"@bscotch/semver-hotfix\"\nconst toSort = [\n  \"1.0.0\".\n  \"1.0.0-alpha.0\".\n  \"1.0.0-hotfix.3\"\n].sort(compare);\nconsole.log(toSort);\n// ['1.0.0-hotfix.3','1.0.0','1.0.0-alpha.0']\n```\n\nFor regular Javascript/Node, you'll probably use `const {compare} = require(\"@bscotch/semver-hotfix\")`\n\nSee the [semver package](https://www.npmjs.com/package/semver) for documentation, as this package serves as either a pass-through for functions in that package or re-implements them with the same arguments and output.\n\n### Implemented functions\n\n+ `compare`\n+ `rcompare`\n+ `gt`\n+ `gte`\n+ `lt`\n+ `lte`\n\n### Pass-through functions\n\n+ `valid`\n+ `inc`\n+ `prerelease`\n+ `major`\n+ `minor`\n+ `patch`\n+ `parse`\n\nTo get Typescript support for the pass-through functions, you'll need to run `npm i -D @types/semver`.","readmeFilename":"README.md"}