Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
27 changes: 20 additions & 7 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down