bulk-release 2.15.22 → 2.15.24

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.15.24](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.23...v2.15.24) (2024-10-10)
2
+
3
+ ### Fixes & improvements
4
+ * perf: memoize to config loader ([e16847f](https://github.com/semrel-extra/zx-bulk-release/commit/e16847f3c6dfd36ba7579a538943818c49485924))
5
+
6
+ ## [2.15.23](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.22...v2.15.23) (2024-09-22)
7
+
8
+ ### Fixes & improvements
9
+ * fix(deps): update dependency zx-extra to v3.0.22 ([3074fd9](https://github.com/semrel-extra/zx-bulk-release/commit/3074fd9bd0274fbdf79d20f3d9eed83e8ada9fba))
10
+
1
11
  ## [2.15.22](https://github.com/semrel-extra/zx-bulk-release/compare/v2.15.21...v2.15.22) (2024-08-30)
2
12
 
3
13
  ### Fixes & improvements
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bulk-release",
3
3
  "alias": "bulk-release",
4
- "version": "2.15.22",
4
+ "version": "2.15.24",
5
5
  "description": "zx-based alternative for multi-semantic-release",
6
6
  "type": "module",
7
7
  "exports": {
@@ -29,13 +29,13 @@
29
29
  "cosmiconfig": "^9.0.0",
30
30
  "queuefy": "^1.2.1",
31
31
  "tar-stream": "^3.1.7",
32
- "zx-extra": "3.0.21"
32
+ "zx-extra": "3.0.22"
33
33
  },
34
34
  "devDependencies": {
35
35
  "c8": "^10.1.2",
36
- "esbuild": "^0.23.1",
36
+ "esbuild": "^0.24.0",
37
37
  "uvu": "^0.5.6",
38
- "verdaccio": "^5.32.1"
38
+ "verdaccio": "^6.0.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -1,5 +1,5 @@
1
1
  import { cosmiconfig } from 'cosmiconfig'
2
- import { camelize } from './util.js'
2
+ import { camelize, memoizeBy } from './util.js'
3
3
 
4
4
  const CONFIG_NAME = 'release'
5
5
  const CONFIG_FILES = [
@@ -25,14 +25,14 @@ export const defaultConfig = {
25
25
  }
26
26
 
27
27
  export const getPkgConfig = async (...cwds) =>
28
- normalizePkgConfig((await Promise.all(cwds.map(
29
- cwd => cosmiconfig(CONFIG_NAME, {
30
- searchPlaces: CONFIG_FILES,
31
- searchStrategy: 'global', // https://github.com/cosmiconfig/cosmiconfig/releases/tag/v9.0.0
32
- })
33
- .search(cwd)
34
- .then(r => r?.config)
35
- ))).find(Boolean) || defaultConfig)
28
+ normalizePkgConfig((await Promise.all(cwds.map(readPkgConfig))).find(Boolean) || defaultConfig)
29
+
30
+ export const readPkgConfig = memoizeBy(async (cwd) => cosmiconfig(CONFIG_NAME, {
31
+ searchPlaces: CONFIG_FILES,
32
+ searchStrategy: 'global', // https://github.com/cosmiconfig/cosmiconfig/releases/tag/v9.0.0
33
+ })
34
+ .search(cwd)
35
+ .then(r => r?.config))
36
36
 
37
37
  export const normalizePkgConfig = (config, env) => ({
38
38
  ...parseEnv(env),