Bump semver from 7.6.3 to 7.7.1 (#464)

* Bump semver from 7.6.3 to 7.7.1

Bumps [semver](https://github.com/npm/node-semver) from 7.6.3 to 7.7.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v7.6.3...v7.7.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* npm run build

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Austin Valle <austinvalle@gmail.com>
This commit is contained in:
dependabot[bot] 2025-02-12 16:15:48 +01:00 committed by GitHub
parent 9e5c386f98
commit 7d2407faba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 26 deletions

45
dist/index.js vendored
View file

@ -18279,7 +18279,7 @@ const testSet = (set, version, options) => {
const debug = __nccwpck_require__(1159) const debug = __nccwpck_require__(1159)
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(5101) const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(5101)
const { safeRe: re, t } = __nccwpck_require__(5471) const { safeRe: re, safeSrc: src, t } = __nccwpck_require__(5471)
const parseOptions = __nccwpck_require__(356) const parseOptions = __nccwpck_require__(356)
const { compareIdentifiers } = __nccwpck_require__(3348) const { compareIdentifiers } = __nccwpck_require__(3348)
@ -18455,6 +18455,20 @@ class SemVer {
// preminor will bump the version up to the next minor release, and immediately // preminor will bump the version up to the next minor release, and immediately
// down to pre-release. premajor and prepatch work the same way. // down to pre-release. premajor and prepatch work the same way.
inc (release, identifier, identifierBase) { inc (release, identifier, identifierBase) {
if (release.startsWith('pre')) {
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
// Avoid an invalid semver results
if (identifier) {
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
const match = `-${identifier}`.match(r)
if (!match || match[1] !== identifier) {
throw new Error(`invalid identifier: ${identifier}`)
}
}
}
switch (release) { switch (release) {
case 'premajor': case 'premajor':
this.prerelease.length = 0 this.prerelease.length = 0
@ -18485,6 +18499,12 @@ class SemVer {
} }
this.inc('pre', identifier, identifierBase) this.inc('pre', identifier, identifierBase)
break break
case 'release':
if (this.prerelease.length === 0) {
throw new Error(`version ${this.raw} is not a prerelease`)
}
this.prerelease.length = 0
break
case 'major': case 'major':
// If this is a pre-major version, bump up to the same major version. // If this is a pre-major version, bump up to the same major version.
@ -18528,10 +18548,6 @@ class SemVer {
case 'pre': { case 'pre': {
const base = Number(identifierBase) ? 1 : 0 const base = Number(identifierBase) ? 1 : 0
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
if (this.prerelease.length === 0) { if (this.prerelease.length === 0) {
this.prerelease = [base] this.prerelease = [base]
} else { } else {
@ -18790,20 +18806,13 @@ const diff = (version1, version2) => {
return 'major' return 'major'
} }
// Otherwise it can be determined by checking the high version // If the main part has no difference
if (lowVersion.compareMain(highVersion) === 0) {
if (highVersion.patch) { if (lowVersion.minor && !lowVersion.patch) {
// anything higher than a patch bump would result in the wrong version
return 'patch'
}
if (highVersion.minor) {
// anything higher than a minor bump would result in the wrong version
return 'minor' return 'minor'
} }
return 'patch'
// bumping major/minor/patch all have same result }
return 'major'
} }
// add the `pre` prefix if we are going to a prerelease version // add the `pre` prefix if we are going to a prerelease version
@ -19310,6 +19319,7 @@ exports = module.exports = {}
const re = exports.re = [] const re = exports.re = []
const safeRe = exports.safeRe = [] const safeRe = exports.safeRe = []
const src = exports.src = [] const src = exports.src = []
const safeSrc = exports.safeSrc = []
const t = exports.t = {} const t = exports.t = {}
let R = 0 let R = 0
@ -19342,6 +19352,7 @@ const createToken = (name, value, isGlobal) => {
debug(name, index, value) debug(name, index, value)
t[name] = index t[name] = index
src[index] = value src[index] = value
safeSrc[index] = safe
re[index] = new RegExp(value, isGlobal ? 'g' : undefined) re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
} }

15
package-lock.json generated
View file

@ -15,7 +15,7 @@
"@actions/io": "^1.1.3", "@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.2", "@actions/tool-cache": "^2.0.2",
"@hashicorp/js-releases": "^1.7.3", "@hashicorp/js-releases": "^1.7.3",
"semver": "^7.6.3" "semver": "^7.7.1"
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.3",
@ -5965,9 +5965,10 @@
} }
}, },
"node_modules/semver": { "node_modules/semver": {
"version": "7.6.3", "version": "7.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
"license": "ISC",
"bin": { "bin": {
"semver": "bin/semver.js" "semver": "bin/semver.js"
}, },
@ -11156,9 +11157,9 @@
} }
}, },
"semver": { "semver": {
"version": "7.6.3", "version": "7.7.1",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
"integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==" "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA=="
}, },
"shebang-command": { "shebang-command": {
"version": "2.0.0", "version": "2.0.0",

View file

@ -24,7 +24,7 @@
"@actions/io": "^1.1.3", "@actions/io": "^1.1.3",
"@actions/tool-cache": "^2.0.2", "@actions/tool-cache": "^2.0.2",
"@hashicorp/js-releases": "^1.7.3", "@hashicorp/js-releases": "^1.7.3",
"semver": "^7.6.3" "semver": "^7.7.1"
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.3",