bulk-release 2.5.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/package.json +1 -1
- package/src/main/js/analyze.js +3 -2
- package/src/main/js/npm.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
## [2.5.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.5.0...v2.5.1) (2023-04-11)
|
|
2
|
+
|
|
3
|
+
### Fixes & improvements
|
|
4
|
+
* perf: set connect timeout for npmFetch ([ab5a4eb](https://github.com/semrel-extra/zx-bulk-release/commit/ab5a4eba2ce8ee1b4257eff7d048fc905ddd98d1))
|
|
5
|
+
|
|
1
6
|
## [2.5.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.4.2...v2.5.0) (2023-04-09)
|
|
2
7
|
|
|
3
8
|
### Features
|
package/package.json
CHANGED
package/src/main/js/analyze.js
CHANGED
|
@@ -10,12 +10,13 @@ export const analyze = async (pkg) => {
|
|
|
10
10
|
const changes = [...semanticChanges, ...depsChanges]
|
|
11
11
|
const releaseType = getNextReleaseType(changes)
|
|
12
12
|
const pre = pkg.context.flags.snapshot ? `-snap.${pkg.context.git.sha.slice(0, 7)}` : undefined
|
|
13
|
+
const latestVersion = pkg.latest.tag?.version || pkg.latest.meta?.versio
|
|
13
14
|
|
|
14
15
|
pkg.changes = changes
|
|
15
16
|
pkg.releaseType = releaseType
|
|
16
17
|
pkg.version = resolvePkgVersion(
|
|
17
18
|
releaseType,
|
|
18
|
-
|
|
19
|
+
latestVersion,
|
|
19
20
|
pkg.manifest.version,
|
|
20
21
|
pre
|
|
21
22
|
)
|
|
@@ -23,7 +24,7 @@ export const analyze = async (pkg) => {
|
|
|
23
24
|
pkg.manifest.version = pkg.version
|
|
24
25
|
pkg.tag = releaseType ? formatTag({name: pkg.name, version: pkg.version}) : null
|
|
25
26
|
|
|
26
|
-
log({pkg})('semantic changes', changes)
|
|
27
|
+
log({pkg})('semantic changes', changes, 'nextVersion', pkg.version, 'latestVersion', latestVersion)
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export const releaseSeverityOrder = ['major', 'minor', 'patch']
|
package/src/main/js/npm.js
CHANGED
|
@@ -5,12 +5,12 @@ export const fetchPkg = async (pkg) => {
|
|
|
5
5
|
const id = `${pkg.name}@${pkg.version}`
|
|
6
6
|
|
|
7
7
|
try {
|
|
8
|
-
log({pkg})(`fetching '${id}'`)
|
|
9
8
|
const cwd = pkg.absPath
|
|
10
9
|
const {npmRegistry, npmToken, npmConfig} = pkg.config
|
|
11
10
|
const bearerToken = getBearerToken(npmRegistry, npmToken, npmConfig)
|
|
12
11
|
const tarballUrl = getTarballUrl(npmRegistry, pkg.name, pkg.version)
|
|
13
|
-
|
|
12
|
+
log({pkg})(`fetching '${id}' from ${npmRegistry}`)
|
|
13
|
+
await $.raw`wget --timeout=10 --connect-timeout=5 --header='Authorization: ${bearerToken}' -qO- ${tarballUrl} | tar -xvz --strip-components=1 --exclude='package.json' -C ${cwd}`
|
|
14
14
|
|
|
15
15
|
pkg.fetched = true
|
|
16
16
|
} catch (e) {
|