zx-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 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zx-bulk-release",
3
3
  "alias": "bulk-release",
4
- "version": "2.5.0",
4
+ "version": "2.5.1",
5
5
  "description": "zx-based alternative for multi-semantic-release",
6
6
  "type": "module",
7
7
  "exports": {
@@ -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
- pkg.latest.tag?.version || pkg.latest.meta?.version,
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']
@@ -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
- await $.raw`wget --timeout=10 --header='Authorization: ${bearerToken}' -qO- ${tarballUrl} | tar -xvz --strip-components=1 --exclude='package.json' -C ${cwd}`
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) {