@storm-software/git-tools 2.131.25 → 2.131.27

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/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-2.131.11-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-2.131.24-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/bin/git.cjs CHANGED
@@ -983,10 +983,10 @@ async function lint(message, config5) {
983
983
  throw new Error(`Could not find rule implementation for ${name}`);
984
984
  }
985
985
  const executableRule = rule;
986
- const [valid2, message2] = await executableRule(parsed, when, value);
986
+ const [valid3, message2] = await executableRule(parsed, when, value);
987
987
  return {
988
988
  level,
989
- valid: valid2,
989
+ valid: valid3,
990
990
  name,
991
991
  message: message2
992
992
  };
@@ -1000,9 +1000,9 @@ async function lint(message, config5) {
1000
1000
  const warnings = results.filter(
1001
1001
  (result) => result.level === 1 /* Warning */ && !result.valid
1002
1002
  );
1003
- const valid = errors.length === 0;
1003
+ const valid2 = errors.length === 0;
1004
1004
  return {
1005
- valid,
1005
+ valid: valid2,
1006
1006
  errors,
1007
1007
  warnings,
1008
1008
  input: buildCommitMessage(parsed)
@@ -2914,7 +2914,16 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
2914
2914
  `Using latest preid tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2915
2915
  workspaceConfig
2916
2916
  );
2917
- return git.extractTagAndVersion(preidReleaseTags[0], tagRegexp, options);
2917
+ return preidReleaseTags.reduce(
2918
+ (ret, releaseTag) => {
2919
+ const result = git.extractTagAndVersion(releaseTag, tagRegexp, options);
2920
+ if (semver.valid(result.extractedVersion) && semver.gt(result.extractedVersion, ret.extractedVersion)) {
2921
+ return result;
2922
+ }
2923
+ return ret;
2924
+ },
2925
+ git.extractTagAndVersion(preidReleaseTags[0], tagRegexp, options)
2926
+ );
2918
2927
  }
2919
2928
  }
2920
2929
  if (stableReleaseTags.length > 0) {
@@ -2922,7 +2931,16 @@ async function getLatestGitTagForPattern(workspaceConfig, releaseTagPattern, add
2922
2931
  `Using latest stable tag for release tag pattern "${releaseTagPattern}" (Interpolated tag pattern: ${interpolatedTagPattern})`,
2923
2932
  workspaceConfig
2924
2933
  );
2925
- return git.extractTagAndVersion(stableReleaseTags[0], tagRegexp, options);
2934
+ return stableReleaseTags.reduce(
2935
+ (ret, releaseTag) => {
2936
+ const result = git.extractTagAndVersion(releaseTag, tagRegexp, options);
2937
+ if (semver.valid(result.extractedVersion) && semver.gt(result.extractedVersion, ret.extractedVersion)) {
2938
+ return result;
2939
+ }
2940
+ return ret;
2941
+ },
2942
+ git.extractTagAndVersion(stableReleaseTags[0], tagRegexp, options)
2943
+ );
2926
2944
  }
2927
2945
  return null;
2928
2946
  } catch {