@storm-software/git-tools 2.124.80 → 2.124.82

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.124.78-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.124.81-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
@@ -439,10 +439,13 @@ async function createPreset(variant = "monorepo") {
439
439
  );
440
440
  }
441
441
 
442
- // ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/regex.js
442
+ // ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/regex.js
443
443
  var nomatchRegex = /(?!.*)/;
444
+ function escape(string) {
445
+ return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
446
+ }
444
447
  function join(parts, joiner) {
445
- return parts.map((val) => val.trim()).filter(Boolean).join(joiner);
448
+ return parts.map((val) => escape(val.trim())).filter(Boolean).join(joiner);
446
449
  }
447
450
  function getNotesRegex(noteKeywords, notesPattern) {
448
451
  if (!noteKeywords) {
@@ -481,7 +484,7 @@ function getParserRegexes(options = {}) {
481
484
  };
482
485
  }
483
486
 
484
- // ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/utils.js
487
+ // ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/utils.js
485
488
  var SCISSOR = "------------------------ >8 ------------------------";
486
489
  function trimNewLines(input) {
487
490
  const matches = input.match(/[^\r\n]/);
@@ -521,7 +524,7 @@ function assignMatchedCorrespondence(target, matches, correspondence) {
521
524
  return target;
522
525
  }
523
526
 
524
- // ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/options.js
527
+ // ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/options.js
525
528
  var defaultOptions = {
526
529
  noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
527
530
  issuePrefixes: ["#"],
@@ -542,12 +545,12 @@ var defaultOptions = {
542
545
  "scope",
543
546
  "subject"
544
547
  ],
545
- revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\./,
548
+ revertPattern: /^Revert\s"([\s\S]*)"\s*This reverts commit (\w*)\.?/,
546
549
  revertCorrespondence: ["header", "hash"],
547
550
  fieldPattern: /^-(.*?)-$/
548
551
  };
549
552
 
550
- // ../../node_modules/.pnpm/conventional-commits-parser@6.2.1/node_modules/conventional-commits-parser/dist/CommitParser.js
553
+ // ../../node_modules/.pnpm/conventional-commits-parser@6.3.0/node_modules/conventional-commits-parser/dist/CommitParser.js
551
554
  function createCommitObject(initialData = {}) {
552
555
  return {
553
556
  merge: null,
@@ -800,6 +803,15 @@ var CommitParser = class {
800
803
  commit.notes.forEach((note) => {
801
804
  note.text = trimNewLines(note.text);
802
805
  });
806
+ const referencesSet = /* @__PURE__ */ new Set();
807
+ commit.references = commit.references.filter((reference) => {
808
+ const uid = `${reference.action} ${reference.raw}`.toLocaleLowerCase();
809
+ const ok = !referencesSet.has(uid);
810
+ if (ok) {
811
+ referencesSet.add(uid);
812
+ }
813
+ return ok;
814
+ });
803
815
  }
804
816
  /**
805
817
  * Parse commit message string into an object.