bulk-release 2.13.3 → 2.14.0

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.14.0](https://github.com/semrel-extra/zx-bulk-release/compare/v2.13.3...v2.14.0) (2023-12-19)
2
+
3
+ ### Features
4
+ * feat: log commit delta from initial if another from ref is not specified ([e04e236](https://github.com/semrel-extra/zx-bulk-release/commit/e04e236a703c24e462a0e500d2232d4509028101))
5
+
1
6
  ## [2.13.3](https://github.com/semrel-extra/zx-bulk-release/compare/v2.13.2...v2.13.3) (2023-12-19)
2
7
 
3
8
  ### 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.13.3",
4
+ "version": "2.14.0",
5
5
  "description": "zx-based alternative for multi-semantic-release",
6
6
  "type": "module",
7
7
  "exports": {
@@ -87,9 +87,11 @@ export const getOrigin = memoizeBy(async (cwd) =>
87
87
  )
88
88
 
89
89
  export const getCommits = async (cwd, from, to = 'HEAD') => ctx(async ($) => {
90
- const ref = from ? `${from}..${to}` : to
91
-
92
90
  $.cwd = cwd
91
+
92
+ const _from = from || await $`git rev-list --max-parents=0 HEAD`
93
+ const ref = `${_from}..${to}`
94
+
93
95
  return (await $.raw`git log ${ref} --format=+++%s__%b__%h__%H -- ${cwd}`)
94
96
  .toString()
95
97
  .split('+++')