{"_id":"@snyk/go-semver","_rev":"4624804","name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","dist-tags":{"latest":"1.4.0"},"maintainers":[{"name":"snyk-admin","email":""}],"time":{"modified":"2026-04-10T18:36:50.000Z","created":"2020-03-04T13:32:29.571Z","1.4.0":"2024-06-05T09:10:53.791Z","1.3.0":"2023-06-15T08:59:09.621Z","1.2.1":"2023-05-15T11:27:54.503Z","1.2.0":"2020-06-30T10:07:19.648Z","1.1.1":"2020-06-10T07:45:07.939Z","1.1.0":"2020-06-09T08:06:13.171Z","1.0.1":"2020-03-04T13:32:29.571Z"},"users":{},"author":{"name":"Snyk","email":"https://snyk.io"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"versions":{"1.4.0":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","build-dev":"tsc -w","format":"prettier --write '{lib,test}/**/*.?s'","lint:eslint":"eslint 'lib/**/*.ts' && (cd test && eslint '**/*.ts')","lint:prettier":"prettier --check '{lib,test}/**/*.ts'","lint":"npm run lint:eslint && npm run lint:prettier","test":"jest --verbose --runInBand","test:coverage":"npm run test -- --coverage","prepare":"npm run build"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"tslib":"^2"},"devDependencies":{"@types/jest":"^29.5.1","@types/node":"^12","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","eslint":"^8.40.0","eslint-config-prettier":"^8.8.0","jest":"^29.5.0","prettier":"^2.8.8","ts-jest":"^29.1.0","typescript":"^5.0.4"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=12"},"version":"1.4.0","gitHead":"35f206f69316728a4dd0d415745f5d9ac117af64","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.4.0","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"shasum":"aa555aecdda1de29b9566bcd84a9868a1f4587ac","size":21481,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.4.0.tgz"},"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"maintainers":[{"name":"snyk-admin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.4.0_1717578653609_0.14018169902193334"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-06-05T09:10:53.791Z","publish_time":1717578653791,"_source_registry_name":"default","_cnpm_publish_time":1717578653791},"1.3.0":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","build-dev":"tsc -w","format":"prettier --write '{lib,test}/**/*.?s'","lint:eslint":"eslint 'lib/**/*.ts' && (cd test && eslint '**/*.ts')","lint:prettier":"prettier --check '{lib,test}/**/*.ts'","lint":"npm run lint:eslint && npm run lint:prettier","test":"jest --verbose --runInBand","test:coverage":"npm run test -- --coverage","prepare":"npm run build"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"tslib":"^2"},"devDependencies":{"@types/jest":"^29.5.1","@types/node":"^12","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","eslint":"^8.40.0","eslint-config-prettier":"^8.8.0","jest":"^29.5.0","prettier":"^2.8.8","ts-jest":"^29.1.0","typescript":"^5.0.4"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=12"},"version":"1.3.0","gitHead":"3a215d33764f702a36bd8208e08615243cf447fc","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.3.0","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"shasum":"2fa4b8e49774c0af21310a568d64d2239a6e6b87","size":21355,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.3.0.tgz"},"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"maintainers":[{"name":"snyk-admin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.3.0_1686819549438_0.47804758722481067"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-15T08:59:09.621Z","publish_time":1686819549621,"_source_registry_name":"default","_cnpm_publish_time":1686819549621},"1.2.1":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","build-dev":"tsc -w","format":"prettier --write '{lib,test}/**/*.?s'","lint:eslint":"eslint 'lib/**/*.ts' && (cd test && eslint '**/*.ts')","lint:prettier":"prettier --check '{lib,test}/**/*.ts'","lint":"npm run lint:eslint && npm run lint:prettier","test":"jest --verbose --runInBand","test:coverage":"npm run test -- --coverage","prepare":"npm run build"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"tslib":"^2"},"devDependencies":{"@types/jest":"^29.5.1","@types/node":"^12","@typescript-eslint/eslint-plugin":"^5.59.5","@typescript-eslint/parser":"^5.59.5","eslint":"^8.40.0","eslint-config-prettier":"^8.8.0","jest":"^29.5.0","prettier":"^2.8.8","ts-jest":"^29.1.0","typescript":"^5.0.4"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=12"},"version":"1.2.1","gitHead":"02d6b75f8a5a60812a222e39365339518eeeac6a","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.2.1","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"shasum":"723df6a4420b58935880091594be6a37a6ec5603","size":21135,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.2.1.tgz"},"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"maintainers":[{"name":"snyk-admin","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.2.1_1684150074346_0.4025502977910409"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-15T11:27:54.503Z","publish_time":1684150074503,"_source_registry_name":"default","_cnpm_publish_time":1684150074503},"1.2.0":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","format":"prettier --write '{lib,test}/**/*.ts' && eslint --fix lib/**/*.ts && (cd test && eslint **/*.ts)","lint":"prettier --check '{lib,test}/**/*.ts' && eslint lib/**/*.ts && (cd test && eslint **/*.ts)","prepare":"npm run build && npm run snyk-protect","snyk-protect":"snyk protect","test":"npm run lint && npm run test:unit","test:coverage":"npm run test:unit -- --coverage","test:watch":"tsc-watch --onSuccess 'npm run test:unit'","test:unit":"jest"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"@types/lodash":"^4.14.149","@types/node":"^13.7.4","@types/source-map-support":"^0.5.0","lodash":"^4.17.15","source-map-support":"^0.5.16","tslib":"^1.10.0","typescript":"^3.7.2"},"devDependencies":{"@types/jest":"^24.9.1","@typescript-eslint/eslint-plugin":"^2.8.0","@typescript-eslint/parser":"^2.8.0","eslint":"^6.6.0","eslint-config-prettier":"^6.5.0","jest":"^24.9.0","prettier":"^1.18.2","ts-jest":"^24.1.0","tsc-watch":"^4.0.0"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=10"},"version":"1.2.0","gitHead":"3d8b9c964fb522aecff82947ae878431f5428764","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.2.0","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"436e8d7fef7fef0e73acc6d112e99d52ff63b4e6","size":32933,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.2.0.tgz"},"maintainers":[{"name":"snyk-admin","email":""}],"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.2.0_1593511639514_0.6888928084933625"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2020-06-30T10:07:19.648Z","publish_time":1593511639648,"_source_registry_name":"default","_cnpm_publish_time":1593511639648},"1.1.1":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","format":"prettier --write '{lib,test}/**/*.ts' && eslint --fix lib/**/*.ts && (cd test && eslint **/*.ts)","lint":"prettier --check '{lib,test}/**/*.ts' && eslint lib/**/*.ts && (cd test && eslint **/*.ts)","prepare":"npm run build && npm run snyk-protect","snyk-protect":"snyk protect","test":"npm run lint && npm run test:unit","test:coverage":"npm run test:unit -- --coverage","test:watch":"tsc-watch --onSuccess 'npm run test:unit'","test:unit":"jest"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"@types/lodash":"^4.14.149","@types/node":"^13.7.4","@types/source-map-support":"^0.5.0","lodash":"^4.17.15","source-map-support":"^0.5.16","tslib":"^1.10.0","typescript":"^3.7.2"},"devDependencies":{"@types/jest":"^24.9.1","@typescript-eslint/eslint-plugin":"^2.8.0","@typescript-eslint/parser":"^2.8.0","eslint":"^6.6.0","eslint-config-prettier":"^6.5.0","jest":"^24.9.0","prettier":"^1.18.2","ts-jest":"^24.1.0","tsc-watch":"^4.0.0"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=10"},"version":"1.1.1","gitHead":"e4f19863e753eeb8bd25944bbd66070d7e71bcd4","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.1.1","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"145d7db958079421af2753eb1d1f91c4c46e0e42","size":32720,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.1.1.tgz"},"maintainers":[{"name":"snyk-admin","email":""}],"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.1.1_1591775107783_0.8568439521278155"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2020-06-10T07:45:07.939Z","publish_time":1591775107939,"_source_registry_name":"default","_cnpm_publish_time":1591775107939},"1.1.0":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc","format":"prettier --write '{lib,test}/**/*.ts' && eslint --fix lib/**/*.ts && (cd test && eslint **/*.ts)","lint":"prettier --check '{lib,test}/**/*.ts' && eslint lib/**/*.ts && (cd test && eslint **/*.ts)","prepare":"npm run build && npm run snyk-protect","snyk-protect":"snyk protect","test":"npm run lint && npm run test:unit","test:coverage":"npm run test:unit -- --coverage","test:watch":"tsc-watch --onSuccess 'npm run test:unit'","test:unit":"jest"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"@types/lodash":"^4.14.149","@types/node":"^13.7.4","@types/source-map-support":"^0.5.0","lodash":"^4.17.15","source-map-support":"^0.5.16","tslib":"^1.10.0","typescript":"^3.7.2"},"devDependencies":{"@types/jest":"^24.9.1","@typescript-eslint/eslint-plugin":"^2.8.0","@typescript-eslint/parser":"^2.8.0","eslint":"^6.6.0","eslint-config-prettier":"^6.5.0","jest":"^24.9.0","prettier":"^1.18.2","ts-jest":"^24.1.0","tsc-watch":"^4.0.0"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=10"},"version":"1.1.0","gitHead":"6ee9ddf5406499a0776b6d9fe702214c6de6ddab","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.1.0","_nodeVersion":"10.21.0","_npmVersion":"6.14.4","dist":{"shasum":"807755a996f7e34d2ee73e42f06412b3846b0cab","size":32635,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.1.0.tgz"},"maintainers":[{"name":"snyk-admin","email":""}],"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.1.0_1591689972881_0.18796406649531283"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2020-06-09T08:06:13.171Z","publish_time":1591689973171,"_source_registry_name":"default","_cnpm_publish_time":1591689973171},"1.0.1":{"name":"@snyk/go-semver","description":"node-semver compatible API with Go modules dependencies semantics","main":"index.js","scripts":{"build":"tsc","format":"prettier --write '{lib,test}/**/*.ts' && eslint --fix lib/**/*.ts && (cd test && eslint **/*.ts)","lint":"prettier --check '{lib,test}/**/*.ts' && eslint lib/**/*.ts && (cd test && eslint **/*.ts)","prepare":"npm run build && npm run snyk-protect","snyk-protect":"snyk protect","test":"npm run lint && npm run test:unit","test:coverage":"npm run test:unit -- --coverage","test:watch":"tsc-watch --onSuccess 'npm run test:unit'","test:unit":"jest"},"author":{"name":"Snyk","email":"https://snyk.io"},"license":"Apache-2.0","dependencies":{"@types/lodash":"^4.14.149","@types/node":"^13.7.4","@types/source-map-support":"^0.5.0","lodash":"^4.17.15","source-map-support":"^0.5.16","tslib":"^1.10.0","typescript":"^3.7.2"},"devDependencies":{"@types/jest":"^24.9.1","@typescript-eslint/eslint-plugin":"^2.8.0","@typescript-eslint/parser":"^2.8.0","eslint":"^6.6.0","eslint-config-prettier":"^6.5.0","jest":"^24.9.0","prettier":"^1.18.2","ts-jest":"^24.1.0","tsc-watch":"^4.0.0"},"repository":{"type":"git","url":"git+https://github.com/snyk/go-semver.git"},"engines":{"node":">=10"},"version":"1.0.1","gitHead":"2cd7af33a0db89c36417d31e278b780b908706be","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"homepage":"https://github.com/snyk/go-semver#readme","_id":"@snyk/go-semver@1.0.1","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"shasum":"328cdb722111131c065c3a1e42271994d0bd3ad4","size":31283,"noattachment":false,"key":"/@snyk/go-semver/-/@snyk/go-semver-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@snyk/go-semver/download/@snyk/go-semver-1.0.1.tgz"},"maintainers":[{"name":"snyk-admin","email":""}],"_npmUser":{"name":"snyk-admin","email":"npmjs+snyk-admin@snyk.io"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-semver_1.0.1_1583328749320_0.020383864817347996"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2020-03-04T13:32:29.571Z","publish_time":1583328749571,"_source_registry_name":"default","_cnpm_publish_time":1583328749571}},"readme":"[![Snyk logo](https://snyk.io/style/asset/logo/snyk-print.svg)](https://snyk.io)\n\n[![Known Vulnerabilities](https://snyk.io/test/github/snyk/go-semver/badge.svg)](https://snyk.io/test/github/snyk/go-semver)\n\n---\n\n# go-semver\n\nA semver parser that uses Go modules dependency semantics with node-semver's api.\n\nGo generally uses semver, with support for pre-releases, special builds, and using untagged revisions from source control repos. For some details, see [the Pseudo-Versions section of the go command's documentation](https://golang.org/cmd/go/#hdr-Pseudo_versions).\n\n## Ranges\n\nThis also supports additional syntax for defining version ranges, as well as logic for checking whether a version satisfies a range and whether two ranges intersect. The syntax used is based on the style used by Ruby Gems. Example ranges:\n\n    >=v0.0.0\n    >=v0.0.0, <v1.0.0\n    <=v1.0.0 || >= 3.0.0\n","_attachments":{},"homepage":"https://github.com/snyk/go-semver#readme","bugs":{"url":"https://github.com/snyk/go-semver/issues"},"license":"Apache-2.0"}