From 6d6abd19dcf289f28ecb30f745749375dde73d11 Mon Sep 17 00:00:00 2001 From: CloudQuery Bot <102256036+cq-bot@users.noreply.github.com> Date: Mon, 1 Apr 2024 13:29:57 +0300 Subject: [PATCH] chore(main): release 3.0.14 (#427) :robot: I have created a release *beep* *boop* --- ## [3.0.14](https://github.com/cloudquery/setup-cloudquery/compare/v3.0.13...v3.0.14) (2024-04-01) ### Bug Fixes * **deps:** Update commitlint monorepo ([#450](https://github.com/cloudquery/setup-cloudquery/issues/450)) ([d9c5511](https://github.com/cloudquery/setup-cloudquery/commit/d9c5511d15d455fe97b523667e40d9c2f942cc18)) * **deps:** Update commitlint monorepo to v18.6.0 ([#426](https://github.com/cloudquery/setup-cloudquery/issues/426)) ([908e714](https://github.com/cloudquery/setup-cloudquery/commit/908e7148d9880d0d70cf8c8034ebe3e287ef127e)) * **deps:** Update dependency @commitlint/config-conventional to v18.6.3 ([#472](https://github.com/cloudquery/setup-cloudquery/issues/472)) ([ea37f3f](https://github.com/cloudquery/setup-cloudquery/commit/ea37f3f6efc29310b2e34cf456903df441cbbee4)) * **deps:** Update dependency @types/node to v20.11.14 ([#428](https://github.com/cloudquery/setup-cloudquery/issues/428)) ([e897ba4](https://github.com/cloudquery/setup-cloudquery/commit/e897ba4252a9a366032408e183210566d099d7cc)) * **deps:** Update dependency @types/node to v20.11.24 ([#451](https://github.com/cloudquery/setup-cloudquery/issues/451)) ([9319b79](https://github.com/cloudquery/setup-cloudquery/commit/9319b798108f7786d2968931adcf4f011b512a90)) * **deps:** Update dependency @types/node to v20.12.2 ([#474](https://github.com/cloudquery/setup-cloudquery/issues/474)) ([f950059](https://github.com/cloudquery/setup-cloudquery/commit/f9500598f1c7fc12b460388b274362b9bc76588d)) * **deps:** Update dependency @types/pg to v8.11.0 ([#429](https://github.com/cloudquery/setup-cloudquery/issues/429)) ([b792c3e](https://github.com/cloudquery/setup-cloudquery/commit/b792c3ef402741653d864a12cc0bd345adf8bd95)) * **deps:** Update dependency @types/pg to v8.11.2 ([#452](https://github.com/cloudquery/setup-cloudquery/issues/452)) ([a070789](https://github.com/cloudquery/setup-cloudquery/commit/a0707899116f682feb7230475e28a473b71b5238)) * **deps:** Update dependency @types/pg to v8.11.4 ([#473](https://github.com/cloudquery/setup-cloudquery/issues/473)) ([1275d1b](https://github.com/cloudquery/setup-cloudquery/commit/1275d1b1fcced38fb0b1fce670df58591ab5d6ac)) * **deps:** Update dependency eslint to v8.57.0 ([#455](https://github.com/cloudquery/setup-cloudquery/issues/455)) ([343dd86](https://github.com/cloudquery/setup-cloudquery/commit/343dd8689d9e5377d134c581b2e8a895567886e5)) * **deps:** Update dependency eslint-plugin-prettier to v5.1.3 ([#425](https://github.com/cloudquery/setup-cloudquery/issues/425)) ([dfa0aa9](https://github.com/cloudquery/setup-cloudquery/commit/dfa0aa9594b6893992f41259260eb38cdbcbf60c)) * **deps:** Update dependency husky to v9.0.11 ([#453](https://github.com/cloudquery/setup-cloudquery/issues/453)) ([ea018ef](https://github.com/cloudquery/setup-cloudquery/commit/ea018ef68ef7e095cac15a5168ca3f167e047a8b)) * **deps:** Update dependency semver to v7.6.0 ([#456](https://github.com/cloudquery/setup-cloudquery/issues/456)) ([c27e3df](https://github.com/cloudquery/setup-cloudquery/commit/c27e3df30149c2300c1273d7d9348958617f7610)) * **deps:** Update dependency typescript to v5.4.3 ([#475](https://github.com/cloudquery/setup-cloudquery/issues/475)) ([ac005df](https://github.com/cloudquery/setup-cloudquery/commit/ac005dfbbc726b190eb637e3d34d632f5efda634)) * **deps:** Update typescript-eslint monorepo to v6.20.0 ([#431](https://github.com/cloudquery/setup-cloudquery/issues/431)) ([50c0aa3](https://github.com/cloudquery/setup-cloudquery/commit/50c0aa31897f9ce2894b44e04f4e254106e2f6f4)) * **deps:** Update typescript-eslint monorepo to v6.21.0 ([#476](https://github.com/cloudquery/setup-cloudquery/issues/476)) ([0825d38](https://github.com/cloudquery/setup-cloudquery/commit/0825d381cdf8488f914e4cf40d8c00db211d14ab)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 22 ++++++++++++++++++++++ dist/index.js | 27 ++++++++++++++++++++------- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 45 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b906a67..eff910a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Changelog +## [3.0.14](https://github.com/cloudquery/setup-cloudquery/compare/v3.0.13...v3.0.14) (2024-04-01) + + +### Bug Fixes + +* **deps:** Update commitlint monorepo ([#450](https://github.com/cloudquery/setup-cloudquery/issues/450)) ([d9c5511](https://github.com/cloudquery/setup-cloudquery/commit/d9c5511d15d455fe97b523667e40d9c2f942cc18)) +* **deps:** Update commitlint monorepo to v18.6.0 ([#426](https://github.com/cloudquery/setup-cloudquery/issues/426)) ([908e714](https://github.com/cloudquery/setup-cloudquery/commit/908e7148d9880d0d70cf8c8034ebe3e287ef127e)) +* **deps:** Update dependency @commitlint/config-conventional to v18.6.3 ([#472](https://github.com/cloudquery/setup-cloudquery/issues/472)) ([ea37f3f](https://github.com/cloudquery/setup-cloudquery/commit/ea37f3f6efc29310b2e34cf456903df441cbbee4)) +* **deps:** Update dependency @types/node to v20.11.14 ([#428](https://github.com/cloudquery/setup-cloudquery/issues/428)) ([e897ba4](https://github.com/cloudquery/setup-cloudquery/commit/e897ba4252a9a366032408e183210566d099d7cc)) +* **deps:** Update dependency @types/node to v20.11.24 ([#451](https://github.com/cloudquery/setup-cloudquery/issues/451)) ([9319b79](https://github.com/cloudquery/setup-cloudquery/commit/9319b798108f7786d2968931adcf4f011b512a90)) +* **deps:** Update dependency @types/node to v20.12.2 ([#474](https://github.com/cloudquery/setup-cloudquery/issues/474)) ([f950059](https://github.com/cloudquery/setup-cloudquery/commit/f9500598f1c7fc12b460388b274362b9bc76588d)) +* **deps:** Update dependency @types/pg to v8.11.0 ([#429](https://github.com/cloudquery/setup-cloudquery/issues/429)) ([b792c3e](https://github.com/cloudquery/setup-cloudquery/commit/b792c3ef402741653d864a12cc0bd345adf8bd95)) +* **deps:** Update dependency @types/pg to v8.11.2 ([#452](https://github.com/cloudquery/setup-cloudquery/issues/452)) ([a070789](https://github.com/cloudquery/setup-cloudquery/commit/a0707899116f682feb7230475e28a473b71b5238)) +* **deps:** Update dependency @types/pg to v8.11.4 ([#473](https://github.com/cloudquery/setup-cloudquery/issues/473)) ([1275d1b](https://github.com/cloudquery/setup-cloudquery/commit/1275d1b1fcced38fb0b1fce670df58591ab5d6ac)) +* **deps:** Update dependency eslint to v8.57.0 ([#455](https://github.com/cloudquery/setup-cloudquery/issues/455)) ([343dd86](https://github.com/cloudquery/setup-cloudquery/commit/343dd8689d9e5377d134c581b2e8a895567886e5)) +* **deps:** Update dependency eslint-plugin-prettier to v5.1.3 ([#425](https://github.com/cloudquery/setup-cloudquery/issues/425)) ([dfa0aa9](https://github.com/cloudquery/setup-cloudquery/commit/dfa0aa9594b6893992f41259260eb38cdbcbf60c)) +* **deps:** Update dependency husky to v9.0.11 ([#453](https://github.com/cloudquery/setup-cloudquery/issues/453)) ([ea018ef](https://github.com/cloudquery/setup-cloudquery/commit/ea018ef68ef7e095cac15a5168ca3f167e047a8b)) +* **deps:** Update dependency semver to v7.6.0 ([#456](https://github.com/cloudquery/setup-cloudquery/issues/456)) ([c27e3df](https://github.com/cloudquery/setup-cloudquery/commit/c27e3df30149c2300c1273d7d9348958617f7610)) +* **deps:** Update dependency typescript to v5.4.3 ([#475](https://github.com/cloudquery/setup-cloudquery/issues/475)) ([ac005df](https://github.com/cloudquery/setup-cloudquery/commit/ac005dfbbc726b190eb637e3d34d632f5efda634)) +* **deps:** Update typescript-eslint monorepo to v6.20.0 ([#431](https://github.com/cloudquery/setup-cloudquery/issues/431)) ([50c0aa3](https://github.com/cloudquery/setup-cloudquery/commit/50c0aa31897f9ce2894b44e04f4e254106e2f6f4)) +* **deps:** Update typescript-eslint monorepo to v6.21.0 ([#476](https://github.com/cloudquery/setup-cloudquery/issues/476)) ([0825d38](https://github.com/cloudquery/setup-cloudquery/commit/0825d381cdf8488f914e4cf40d8c00db211d14ab)) + ## [3.0.13](https://github.com/cloudquery/setup-cloudquery/compare/v3.0.12...v3.0.13) (2024-01-02) diff --git a/dist/index.js b/dist/index.js index 0950e075..232ba37e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3879,35 +3879,43 @@ const coerce = (version, options) => { let match = null if (!options.rtl) { - match = version.match(re[t.COERCE]) + match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]) } else { // Find the right-most coercible string that does not share // a terminus with a more left-ward coercible string. // Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4' + // With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4' // // Walk through the string checking with a /g regexp // Manually set the index so as to pick up overlapping matches. // Stop when we get a match that ends at the string end, since no // coercible string can be more right-ward without the same terminus. + const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL] let next - while ((next = re[t.COERCERTL].exec(version)) && + while ((next = coerceRtlRegex.exec(version)) && (!match || match.index + match[0].length !== version.length) ) { if (!match || next.index + next[0].length !== match.index + match[0].length) { match = next } - re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length + coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length } // leave it in a clean state - re[t.COERCERTL].lastIndex = -1 + coerceRtlRegex.lastIndex = -1 } if (match === null) { return null } - return parse(`${match[2]}.${match[3] || '0'}.${match[4] || '0'}`, options) + const major = match[2] + const minor = match[3] || '0' + const patch = match[4] || '0' + const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : '' + const build = options.includePrerelease && match[6] ? `+${match[6]}` : '' + + return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options) } module.exports = coerce @@ -4599,12 +4607,17 @@ createToken('XRANGELOOSE', `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`) // Coercion. // Extract anything that could conceivably be a part of a valid semver -createToken('COERCE', `${'(^|[^\\d])' + +createToken('COERCEPLAIN', `${'(^|[^\\d])' + '(\\d{1,'}${MAX_SAFE_COMPONENT_LENGTH}})` + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + - `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?` + + `(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`) +createToken('COERCE', `${src[t.COERCEPLAIN]}(?:$|[^\\d])`) +createToken('COERCEFULL', src[t.COERCEPLAIN] + + `(?:${src[t.PRERELEASE]})?` + + `(?:${src[t.BUILD]})?` + `(?:$|[^\\d])`) createToken('COERCERTL', src[t.COERCE], true) +createToken('COERCERTLFULL', src[t.COERCEFULL], true) // Tilde ranges. // Meaning is "reasonably at or greater than" diff --git a/package-lock.json b/package-lock.json index c853bb10..62ecfb32 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@cloudquery/setup-cloudquery", - "version": "3.0.13", + "version": "3.0.14", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@cloudquery/setup-cloudquery", - "version": "3.0.13", + "version": "3.0.14", "license": "MIT", "dependencies": { "@actions/core": "1.10.1", diff --git a/package.json b/package.json index 031f4884..d7ab1ce4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cloudquery/setup-cloudquery", - "version": "3.0.13", + "version": "3.0.14", "description": "Setup CloudQuery CLI in a GitHub action environment", "main": "dist/index.js", "type": "module",