zx-bulk-release 2.1.1 → 2.1.3

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,13 @@
1
+ ## [2.1.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.1.2...v2.1.3) (2023-03-22)
2
+
3
+ ### Fixes & improvements
4
+ * refactor: simplify topo filter ([a69735c](https://github.com/semrel-extra/zx-bulk-release/commit/a69735cef0d6fed15ac8e1a10a3c0a7378b5874c))
5
+
6
+ ## [2.1.2](https://github.com/semrel-extra/zx-bulk-release/compare/v2.1.1...v2.1.2) (2023-03-22)
7
+
8
+ ### Fixes & improvements
9
+ * perf: reduce pkg fetch timeout ([6c5ddb8](https://github.com/semrel-extra/zx-bulk-release/commit/6c5ddb8977f2f1bf6f0aa316014269f0e6745f19))
10
+
1
11
  ## [2.1.1](https://github.com/semrel-extra/zx-bulk-release/compare/v2.1.0...v2.1.1) (2023-03-22)
2
12
 
3
13
  ### Fixes & improvements
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zx-bulk-release",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "zx-based alternative for multi-semantic-release",
5
5
  "type": "module",
6
6
  "exports": {
@@ -72,11 +72,8 @@ export const topo = async ({flags = {}, cwd} = {}) => {
72
72
  ? flags.ignore
73
73
  : []
74
74
 
75
- const filter = flags.includePrivate
76
- ? () => true
77
- : ({manifest: {private: _private, name}}) =>
78
- flags.includePrivate ? true : !_private &&
79
- !ignore.includes(name)
75
+ const filter = ({manifest: {private: _private, name}}) =>
76
+ !ignore.includes(name) && (flags.includePrivate || !_private)
80
77
 
81
78
  return _topo({cwd, filter})
82
79
  }
@@ -11,11 +11,11 @@ export const fetchPkg = async (pkg, {env = $.env} = {}) => {
11
11
  const {npmRegistry, npmToken, npmConfig} = parseEnv(env)
12
12
  const bearerToken = getBearerToken(npmRegistry, npmToken, npmConfig)
13
13
  const tarball = getTarballUrl(npmRegistry, pkg.name, pkg.version)
14
- await $.raw`wget --header='Authorization: ${bearerToken}' -qO- ${tarball} | tar -xvz --strip-components=1 --exclude='package.json' -C ${cwd}`
14
+ await $.raw`wget --timeout=10 --header='Authorization: ${bearerToken}' -qO- ${tarball} | tar -xvzk --strip-components=1 --exclude='package.json' -C ${cwd}`
15
15
 
16
16
  pkg.fetched = true
17
17
  } catch (e) {
18
- log({pkg})(`fetching '${id} failed`, e)
18
+ log({pkg, level: 'warn'})(`fetching '${id}' failed`, e)
19
19
  }
20
20
  }
21
21