Skip to content

Commit 1c200ac

Browse files
authored
chore(main): release 4.1.6 (#692)
🤖 I have created a release *beep* *boop* --- ## [4.1.6](v4.1.5...v4.1.6) (2025-05-08) ### Bug Fixes * **deps:** Update commitlint monorepo to v19.8.0 ([#691](#691)) ([c3aad04](c3aad04)) * **deps:** Update dependency @types/node to v22.14.1 ([#693](#693)) ([01a2c56](01a2c56)) * **deps:** Update dependency @types/pg to v8.11.14 ([#690](#690)) ([1638027](1638027)) * **deps:** Update dependency semver to v7.7.1 ([#694](#694)) ([21de0b1](21de0b1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
1 parent 8b88be1 commit 1c200ac

File tree

4 files changed

+42
-21
lines changed

4 files changed

+42
-21
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Changelog
22

3+
## [4.1.6](https://github.com/cloudquery/setup-cloudquery/compare/v4.1.5...v4.1.6) (2025-05-08)
4+
5+
6+
### Bug Fixes
7+
8+
* **deps:** Update commitlint monorepo to v19.8.0 ([#691](https://github.com/cloudquery/setup-cloudquery/issues/691)) ([c3aad04](https://github.com/cloudquery/setup-cloudquery/commit/c3aad044d3d42fae6eb2a635c1ffa444dcc701a9))
9+
* **deps:** Update dependency @types/node to v22.14.1 ([#693](https://github.com/cloudquery/setup-cloudquery/issues/693)) ([01a2c56](https://github.com/cloudquery/setup-cloudquery/commit/01a2c56c95fac1ec90d64a732063c62a1797774e))
10+
* **deps:** Update dependency @types/pg to v8.11.14 ([#690](https://github.com/cloudquery/setup-cloudquery/issues/690)) ([1638027](https://github.com/cloudquery/setup-cloudquery/commit/16380271efdd9ef0f24fc869761e36cf6609aaa2))
11+
* **deps:** Update dependency semver to v7.7.1 ([#694](https://github.com/cloudquery/setup-cloudquery/issues/694)) ([21de0b1](https://github.com/cloudquery/setup-cloudquery/commit/21de0b1f11790265a2bd5c947f87f4fbf5e7f3d3))
12+
313
## [4.1.5](https://github.com/cloudquery/setup-cloudquery/compare/v4.1.4...v4.1.5) (2025-04-01)
414

515

dist/index.js

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4454,7 +4454,7 @@ const testSet = (set, version, options) => {
44544454

44554455
const debug = __nccwpck_require__(1159)
44564456
const { MAX_LENGTH, MAX_SAFE_INTEGER } = __nccwpck_require__(5101)
4457-
const { safeRe: re, t } = __nccwpck_require__(5471)
4457+
const { safeRe: re, safeSrc: src, t } = __nccwpck_require__(5471)
44584458

44594459
const parseOptions = __nccwpck_require__(356)
44604460
const { compareIdentifiers } = __nccwpck_require__(3348)
@@ -4464,7 +4464,7 @@ class SemVer {
44644464

44654465
if (version instanceof SemVer) {
44664466
if (version.loose === !!options.loose &&
4467-
version.includePrerelease === !!options.includePrerelease) {
4467+
version.includePrerelease === !!options.includePrerelease) {
44684468
return version
44694469
} else {
44704470
version = version.version
@@ -4630,6 +4630,20 @@ class SemVer {
46304630
// preminor will bump the version up to the next minor release, and immediately
46314631
// down to pre-release. premajor and prepatch work the same way.
46324632
inc (release, identifier, identifierBase) {
4633+
if (release.startsWith('pre')) {
4634+
if (!identifier && identifierBase === false) {
4635+
throw new Error('invalid increment argument: identifier is empty')
4636+
}
4637+
// Avoid an invalid semver results
4638+
if (identifier) {
4639+
const r = new RegExp(`^${this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE]}$`)
4640+
const match = `-${identifier}`.match(r)
4641+
if (!match || match[1] !== identifier) {
4642+
throw new Error(`invalid identifier: ${identifier}`)
4643+
}
4644+
}
4645+
}
4646+
46334647
switch (release) {
46344648
case 'premajor':
46354649
this.prerelease.length = 0
@@ -4660,6 +4674,12 @@ class SemVer {
46604674
}
46614675
this.inc('pre', identifier, identifierBase)
46624676
break
4677+
case 'release':
4678+
if (this.prerelease.length === 0) {
4679+
throw new Error(`version ${this.raw} is not a prerelease`)
4680+
}
4681+
this.prerelease.length = 0
4682+
break
46634683

46644684
case 'major':
46654685
// If this is a pre-major version, bump up to the same major version.
@@ -4703,10 +4723,6 @@ class SemVer {
47034723
case 'pre': {
47044724
const base = Number(identifierBase) ? 1 : 0
47054725

4706-
if (!identifier && identifierBase === false) {
4707-
throw new Error('invalid increment argument: identifier is empty')
4708-
}
4709-
47104726
if (this.prerelease.length === 0) {
47114727
this.prerelease = [base]
47124728
} else {
@@ -4965,20 +4981,13 @@ const diff = (version1, version2) => {
49654981
return 'major'
49664982
}
49674983

4968-
// Otherwise it can be determined by checking the high version
4969-
4970-
if (highVersion.patch) {
4971-
// anything higher than a patch bump would result in the wrong version
4984+
// If the main part has no difference
4985+
if (lowVersion.compareMain(highVersion) === 0) {
4986+
if (lowVersion.minor && !lowVersion.patch) {
4987+
return 'minor'
4988+
}
49724989
return 'patch'
49734990
}
4974-
4975-
if (highVersion.minor) {
4976-
// anything higher than a minor bump would result in the wrong version
4977-
return 'minor'
4978-
}
4979-
4980-
// bumping major/minor/patch all have same result
4981-
return 'major'
49824991
}
49834992

49844993
// add the `pre` prefix if we are going to a prerelease version
@@ -5485,6 +5494,7 @@ exports = module.exports = {}
54855494
const re = exports.re = []
54865495
const safeRe = exports.safeRe = []
54875496
const src = exports.src = []
5497+
const safeSrc = exports.safeSrc = []
54885498
const t = exports.t = {}
54895499
let R = 0
54905500

@@ -5517,6 +5527,7 @@ const createToken = (name, value, isGlobal) => {
55175527
debug(name, index, value)
55185528
t[name] = index
55195529
src[index] = value
5530+
safeSrc[index] = safe
55205531
re[index] = new RegExp(value, isGlobal ? 'g' : undefined)
55215532
safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined)
55225533
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudquery/setup-cloudquery",
3-
"version": "4.1.5",
3+
"version": "4.1.6",
44
"description": "Setup CloudQuery CLI in a GitHub action environment",
55
"main": "dist/index.js",
66
"type": "module",

0 commit comments

Comments
 (0)