@storm-software/git-tools 2.111.24 → 2.111.25

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/bin/git.cjs CHANGED
@@ -77659,6 +77659,7 @@ var chalk3 = _chunkIG6EXAQUcjs.__toESM.call(void 0, _chunkXE275LJTcjs.require_so
77659
77659
  var import_enquirer2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_enquirer(), 1);
77660
77660
  var import_semver2 = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_semver4(), 1);
77661
77661
  var import_tmp = _chunkIG6EXAQUcjs.__toESM.call(void 0, require_tmp2(), 1);
77662
+ var _titlecase = require('@stryke/string-format/title-case');
77662
77663
 
77663
77664
 
77664
77665
 
@@ -77686,6 +77687,7 @@ var _launcheditor = require('nx/src/command-line/release/utils/launch-editor');
77686
77687
  var _printchanges = require('nx/src/command-line/release/utils/print-changes');
77687
77688
  var _printconfig = require('nx/src/command-line/release/utils/print-config');
77688
77689
  var _github = require('nx/src/command-line/release/utils/remote-release-clients/github');
77690
+ var _remotereleaseclient = require('nx/src/command-line/release/utils/remote-release-clients/remote-release-client');
77689
77691
  var _resolvenxjsonerrormessage = require('nx/src/command-line/release/utils/resolve-nx-json-error-message');
77690
77692
 
77691
77693
 
@@ -77712,13 +77714,14 @@ var _workspaceroot = require('nx/src/utils/workspace-root');
77712
77714
 
77713
77715
  // src/utilities/changelog-utils.ts
77714
77716
  _chunkIG6EXAQUcjs.init_cjs_shims.call(void 0, );
77717
+
77715
77718
  var _prettier = require('prettier');
77716
77719
  async function generateChangelogContent(releaseVersion, filepath, newContent, currentContent, project, workspaceConfig) {
77717
77720
  const formatOptions = await _asyncNullishCoalesce(await _prettier.resolveConfig.call(void 0, filepath), async () => ( {}));
77718
77721
  const header = await _prettier.format.call(void 0,
77719
77722
  `${_optionalChain([workspaceConfig, 'optionalAccess', _181 => _181.release, 'access', _182 => _182.banner]) ? `![Storm Software](${_optionalChain([workspaceConfig, 'optionalAccess', _183 => _183.release, 'access', _184 => _184.banner])})
77720
77723
 
77721
- ` : ""}# Changelog ${project || _optionalChain([workspaceConfig, 'optionalAccess', _185 => _185.name]) ? "for" : ""}${_optionalChain([workspaceConfig, 'optionalAccess', _186 => _186.name]) ? ` ${titleCase(workspaceConfig.name)}` : ""}${project ? `${_optionalChain([workspaceConfig, 'optionalAccess', _187 => _187.name]) ? " -" : ""} ${titleCase(project)}` : ""}
77724
+ ` : ""}# Changelog ${project || _optionalChain([workspaceConfig, 'optionalAccess', _185 => _185.name]) ? "for" : ""}${_optionalChain([workspaceConfig, 'optionalAccess', _186 => _186.name]) ? ` ${_titlecase.titleCase.call(void 0, workspaceConfig.name)}` : ""}${project ? `${_optionalChain([workspaceConfig, 'optionalAccess', _187 => _187.name]) ? " -" : ""} ${_titlecase.titleCase.call(void 0, project)}` : ""}
77722
77725
 
77723
77726
  `,
77724
77727
  {
@@ -77754,14 +77757,6 @@ ${changelogContents}`,
77754
77757
  }
77755
77758
  );
77756
77759
  }
77757
- var titleCase = (input) => {
77758
- if (!input) {
77759
- return "";
77760
- }
77761
- return input.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
77762
- (s) => s ? s.toLowerCase().charAt(0).toUpperCase() + s.toLowerCase().slice(1) : s
77763
- ).join(" ");
77764
- };
77765
77760
  function generateChangelogTitle(version2, project, workspaceConfig) {
77766
77761
  if (!_optionalChain([workspaceConfig, 'optionalAccess', _188 => _188.name]) || !project) {
77767
77762
  return version2;
@@ -81407,13 +81402,10 @@ Follow up in the browser to manually create the release:
81407
81402
  ` + chalk2.underline(chalk2.cyan(result2.url)) + "\n"
81408
81403
  );
81409
81404
  });
81410
- }
81411
- if (result2.status === "manual") {
81412
81405
  if (result2.error) {
81413
81406
  console.error(result2.error);
81414
81407
  process.exitCode = 1;
81415
81408
  }
81416
- const open2 = (init_open(), _chunkIG6EXAQUcjs.__toCommonJS.call(void 0, open_exports));
81417
81409
  await open2(result2.url).then(() => {
81418
81410
  console.info(
81419
81411
  `Follow up in the browser to manually create the release.`
@@ -81578,10 +81570,6 @@ function formatReferences(references, repoData) {
81578
81570
 
81579
81571
  // src/release/changelog-renderer.ts
81580
81572
  var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.default {
81581
- /**
81582
- * The Storm workspace configuration object, which is loaded from the storm-workspace.json file.
81583
- */
81584
- __init43() {this.workspaceConfig = null}
81585
81573
  /**
81586
81574
  * A ChangelogRenderer class takes in the determined changes and other relevant metadata and returns a string, or a Promise of a string of changelog contents (usually markdown).
81587
81575
  *
@@ -81589,7 +81577,12 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81589
81577
  */
81590
81578
  constructor(config) {
81591
81579
  super(config);_class16.prototype.__init43.call(this);;
81580
+ this.config = config;
81592
81581
  }
81582
+ /**
81583
+ * The Storm workspace configuration object, which is loaded from the storm-workspace.json file.
81584
+ */
81585
+ __init43() {this.workspaceConfig = null}
81593
81586
  async render() {
81594
81587
  this.workspaceConfig = await _chunkXE275LJTcjs.getWorkspaceConfig.call(void 0, );
81595
81588
  return await super.render();
@@ -81690,7 +81683,7 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81690
81683
  }
81691
81684
  }
81692
81685
  }
81693
- if (this.repoData && this.changelogRenderOptions.mapAuthorsToGitHubUsernames) {
81686
+ if (this.config.repoData && this.changelogRenderOptions.mapAuthorsToGitHubUsernames) {
81694
81687
  await Promise.all(
81695
81688
  [..._authors.keys()].map(async (authorName) => {
81696
81689
  const meta = _authors.get(authorName);
@@ -81747,8 +81740,11 @@ var StormChangelogRenderer = (_class16 = class extends _changelogrenderer2.defau
81747
81740
  extraLinesStr = extraLines.filter((l) => l.trim().length > 0).map((l) => `${indentation}${l}`).join("\n");
81748
81741
  }
81749
81742
  let changeLine = "- " + (!this.isVersionPlans && change.scope ? `**${change.scope.trim()}:** ` : "") + description;
81750
- if (this.repoData && this.changelogRenderOptions.commitReferences && change.githubReferences) {
81751
- changeLine += formatReferences(change.githubReferences, this.repoData);
81743
+ if (this.config.repoData && this.changelogRenderOptions.commitReferences && change.githubReferences) {
81744
+ changeLine += formatReferences(
81745
+ change.githubReferences,
81746
+ this.config.repoData
81747
+ );
81752
81748
  }
81753
81749
  if (extraLinesStr) {
81754
81750
  changeLine += "\n\n" + extraLinesStr;
@@ -82452,11 +82448,9 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
82452
82448
  async function generateChangelogForWorkspace({
82453
82449
  tree,
82454
82450
  args,
82455
- projectGraph,
82456
82451
  nxReleaseConfig,
82457
82452
  workspaceChangelogVersion,
82458
- changes,
82459
- commits
82453
+ changes
82460
82454
  }) {
82461
82455
  const workspaceConfig = await _chunkXE275LJTcjs.getWorkspaceConfig.call(void 0, );
82462
82456
  if (!workspaceConfig) {
@@ -82523,6 +82517,10 @@ async function generateChangelogForWorkspace({
82523
82517
  });
82524
82518
  }
82525
82519
  const githubRepoData = getGitHubRepoData(gitRemote, config.createRelease);
82520
+ const remoteReleaseClient = await _remotereleaseclient.createRemoteReleaseClient.call(void 0,
82521
+ config.createRelease,
82522
+ gitRemote
82523
+ );
82526
82524
  const changelogRenderer = new StormChangelogRenderer({
82527
82525
  changes,
82528
82526
  changelogEntryVersion: releaseVersion.rawVersion,
@@ -82531,7 +82529,8 @@ async function generateChangelogForWorkspace({
82531
82529
  repoData: githubRepoData,
82532
82530
  entryWhenNoChanges: config.entryWhenNoChanges,
82533
82531
  changelogRenderOptions: config.renderOptions,
82534
- conventionalCommitsConfig: nxReleaseConfig.conventionalCommits
82532
+ conventionalCommitsConfig: nxReleaseConfig.conventionalCommits,
82533
+ remoteReleaseClient
82535
82534
  });
82536
82535
  let contents = await changelogRenderer.render();
82537
82536
  if (interactive) {
@@ -82616,6 +82615,10 @@ async function generateChangelogForProjects({
82616
82615
  gitRemote,
82617
82616
  config.createRelease
82618
82617
  );
82618
+ const remoteReleaseClient = await _remotereleaseclient.createRemoteReleaseClient.call(void 0,
82619
+ config.createRelease,
82620
+ gitRemote
82621
+ );
82619
82622
  const changelogRenderer = new StormChangelogRenderer({
82620
82623
  changes,
82621
82624
  changelogEntryVersion: releaseVersion.rawVersion,
@@ -82629,7 +82632,8 @@ async function generateChangelogForProjects({
82629
82632
  changelogRenderOptions: config.renderOptions,
82630
82633
  isVersionPlans: !!releaseGroup.versionPlans,
82631
82634
  conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
82632
- dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
82635
+ dependencyBumps: projectToAdditionalDependencyBumps.get(project.name),
82636
+ remoteReleaseClient
82633
82637
  });
82634
82638
  let contents = await changelogRenderer.render();
82635
82639
  _output.output.log({
@@ -82777,16 +82781,16 @@ function formatGithubReleaseNotes(releaseVersion, content, projectName, workspac
82777
82781
  if (!workspaceConfig) {
82778
82782
  return content;
82779
82783
  }
82780
- return `![${_optionalChain([titleCase, 'call', _292 => _292(workspaceConfig.organization), 'optionalAccess', _293 => _293.replaceAll, 'call', _294 => _294(" ", "-")])}](${workspaceConfig.release.banner})
82784
+ return `![${_optionalChain([_titlecase.titleCase.call(void 0, workspaceConfig.organization), 'optionalAccess', _292 => _292.replaceAll, 'call', _293 => _293(" ", "-")])}](${workspaceConfig.release.banner})
82781
82785
  ${workspaceConfig.release.header || ""}
82782
82786
 
82783
- # ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion.rawVersion}
82787
+ # ${projectName ? `${_titlecase.titleCase.call(void 0, projectName)} ` : ""}v${releaseVersion.rawVersion}
82784
82788
 
82785
- We at [${titleCase(workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
82789
+ We at [${_titlecase.titleCase.call(void 0, workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? _titlecase.titleCase.call(void 0, projectName) : workspaceConfig.name ? _titlecase.titleCase.call(void 0, workspaceConfig.name) : "Storm Software"} project! \u{1F680}
82786
82790
 
82787
82791
  These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}). You can find guides, API references, and other documentation around this release (and much more) on [our documentation site](${workspaceConfig.docs}).
82788
82792
 
82789
- If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([titleCase, 'call', _295 => _295(projectName), 'optionalAccess', _296 => _296.replaceAll, 'call', _297 => _297(" ", "%20")])}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
82793
+ If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${_optionalChain([_titlecase.titleCase.call(void 0, projectName), 'optionalAccess', _294 => _294.replaceAll, 'call', _295 => _295(" ", "%20")])}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
82790
82794
 
82791
82795
  ## Release Notes
82792
82796
 
@@ -82823,6 +82827,8 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
82823
82827
  version: {
82824
82828
  groupPreVersionCommand: "pnpm build",
82825
82829
  useLegacyVersioning: true,
82830
+ currentVersionResolver: "git-tag",
82831
+ specifierSource: "conventional-commits",
82826
82832
  generator: "@storm-software/workspace-tools:release-version",
82827
82833
  generatorOptions: {
82828
82834
  currentVersionResolver: "git-tag",
@@ -82853,6 +82859,8 @@ var DEFAULT_RELEASE_CONFIG = {
82853
82859
  version: {
82854
82860
  preVersionCommand: "pnpm build",
82855
82861
  useLegacyVersioning: true,
82862
+ currentVersionResolver: "git-tag",
82863
+ specifierSource: "conventional-commits",
82856
82864
  generator: "@storm-software/workspace-tools:release-version",
82857
82865
  generatorOptions: {
82858
82866
  currentVersionResolver: "git-tag",
@@ -82882,10 +82890,10 @@ var runRelease = async (config, options) => {
82882
82890
  `,
82883
82891
  config
82884
82892
  );
82885
- if (_optionalChain([nxJson, 'access', _298 => _298.release, 'optionalAccess', _299 => _299.groups])) {
82893
+ if (_optionalChain([nxJson, 'access', _296 => _296.release, 'optionalAccess', _297 => _297.groups])) {
82886
82894
  nxJson.release.groups = Object.keys(nxJson.release.groups).reduce(
82887
82895
  (ret, groupName) => {
82888
- const groupConfig = _optionalChain([nxJson, 'access', _300 => _300.release, 'optionalAccess', _301 => _301.groups, 'optionalAccess', _302 => _302[groupName]]);
82896
+ const groupConfig = _optionalChain([nxJson, 'access', _298 => _298.release, 'optionalAccess', _299 => _299.groups, 'optionalAccess', _300 => _300[groupName]]);
82889
82897
  ret[groupName] = _chunkFMYKTN2Zcjs.defu.call(void 0, groupConfig, DEFAULT_RELEASE_GROUP_CONFIG);
82890
82898
  return ret;
82891
82899
  },
@@ -82915,7 +82923,7 @@ var runRelease = async (config, options) => {
82915
82923
  });
82916
82924
  await releaseChangelog({
82917
82925
  ...options,
82918
- version: _optionalChain([nxReleaseConfig, 'optionalAccess', _303 => _303.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
82926
+ version: _optionalChain([nxReleaseConfig, 'optionalAccess', _301 => _301.projectsRelationship]) !== "fixed" ? void 0 : workspaceVersion,
82919
82927
  versionData: projectsVersionData,
82920
82928
  dryRun: false,
82921
82929
  verbose: _chunkXE275LJTcjs.isVerbose.call(void 0, config.logLevel),
@@ -82932,7 +82940,7 @@ var runRelease = async (config, options) => {
82932
82940
  );
82933
82941
  } else {
82934
82942
  const changedProjects = Object.keys(projectsVersionData).filter(
82935
- (key) => _optionalChain([projectsVersionData, 'access', _304 => _304[key], 'optionalAccess', _305 => _305.newVersion])
82943
+ (key) => _optionalChain([projectsVersionData, 'access', _302 => _302[key], 'optionalAccess', _303 => _303.newVersion])
82936
82944
  );
82937
82945
  if (changedProjects.length > 0) {
82938
82946
  _chunkXE275LJTcjs.writeInfo.call(void 0,
@@ -82948,14 +82956,14 @@ ${changedProjects.map((changedProject) => ` - ${changedProject}`).join("\n")}
82948
82956
  verbose: _chunkXE275LJTcjs.isVerbose.call(void 0, config.logLevel)
82949
82957
  });
82950
82958
  const failedProjects = Object.keys(result2).filter(
82951
- (key) => _optionalChain([result2, 'access', _306 => _306[key], 'optionalAccess', _307 => _307.code]) && _optionalChain([result2, 'access', _308 => _308[key], 'optionalAccess', _309 => _309.code]) > 0
82959
+ (key) => _optionalChain([result2, 'access', _304 => _304[key], 'optionalAccess', _305 => _305.code]) && _optionalChain([result2, 'access', _306 => _306[key], 'optionalAccess', _307 => _307.code]) > 0
82952
82960
  );
82953
82961
  if (failedProjects.length > 0) {
82954
82962
  throw new Error(
82955
82963
  `The Storm release process was not completed successfully! One or more errors occured while running the \`nx-release-publish\` executor tasks.
82956
82964
 
82957
82965
  Please review the workflow details for the following project(s):
82958
- ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _310 => _310[failedProject], 'optionalAccess', _311 => _311.code])})`).join("\n")}
82966
+ ${failedProjects.map((failedProject) => ` - ${failedProject} (Error Code: ${_optionalChain([result2, 'access', _308 => _308[failedProject], 'optionalAccess', _309 => _309.code])})`).join("\n")}
82959
82967
  `
82960
82968
  );
82961
82969
  }
@@ -82977,7 +82985,7 @@ async function updatePackageManifests(projectsVersionData, config) {
82977
82985
  await Promise.all(
82978
82986
  Object.keys(projectsVersionData).map(async (node) => {
82979
82987
  const projectNode = projectGraph.nodes[node];
82980
- if (!_optionalChain([projectNode, 'optionalAccess', _312 => _312.data, 'access', _313 => _313.root])) {
82988
+ if (!_optionalChain([projectNode, 'optionalAccess', _310 => _310.data, 'access', _311 => _311.root])) {
82981
82989
  _chunkXE275LJTcjs.writeWarning.call(void 0,
82982
82990
  `Project node ${node} not found in the project graph. Skipping manifest update.`,
82983
82991
  config
@@ -82985,7 +82993,7 @@ async function updatePackageManifests(projectsVersionData, config) {
82985
82993
  return;
82986
82994
  }
82987
82995
  const versionData = projectsVersionData[node];
82988
- if (_optionalChain([projectNode, 'optionalAccess', _314 => _314.data, 'access', _315 => _315.root]) && versionData && versionData.newVersion !== null) {
82996
+ if (_optionalChain([projectNode, 'optionalAccess', _312 => _312.data, 'access', _313 => _313.root]) && versionData && versionData.newVersion !== null) {
82989
82997
  _chunkXE275LJTcjs.writeTrace.call(void 0,
82990
82998
  `Writing version ${versionData.newVersion} update to manifest file for ${node}
82991
82999
  `,
package/bin/git.js CHANGED
@@ -87909,6 +87909,7 @@ var chalk3 = __toESM(require_source(), 1);
87909
87909
  var import_enquirer2 = __toESM(require_enquirer(), 1);
87910
87910
  var import_semver2 = __toESM(require_semver4(), 1);
87911
87911
  var import_tmp = __toESM(require_tmp2(), 1);
87912
+ import { titleCase as titleCase2 } from "@stryke/string-format/title-case";
87912
87913
  import { readFileSync as readFileSync4, rmSync as rmSync2, writeFileSync as writeFileSync3 } from "node:fs";
87913
87914
  import {
87914
87915
  createNxReleaseConfig,
@@ -87936,6 +87937,7 @@ import { launchEditor } from "nx/src/command-line/release/utils/launch-editor";
87936
87937
  import { printAndFlushChanges } from "nx/src/command-line/release/utils/print-changes";
87937
87938
  import { printConfigAndExit } from "nx/src/command-line/release/utils/print-config";
87938
87939
  import { defaultCreateReleaseProvider as defaultCreateReleaseProvider2 } from "nx/src/command-line/release/utils/remote-release-clients/github";
87940
+ import { createRemoteReleaseClient } from "nx/src/command-line/release/utils/remote-release-clients/remote-release-client";
87939
87941
  import { resolveNxJsonConfigErrorMessage } from "nx/src/command-line/release/utils/resolve-nx-json-error-message";
87940
87942
  import {
87941
87943
  ReleaseVersion as ReleaseVersion2,
@@ -87962,6 +87964,7 @@ import { workspaceRoot } from "nx/src/utils/workspace-root";
87962
87964
 
87963
87965
  // src/utilities/changelog-utils.ts
87964
87966
  init_esm_shims();
87967
+ import { titleCase } from "@stryke/string-format/title-case";
87965
87968
  import { format, resolveConfig } from "prettier";
87966
87969
  async function generateChangelogContent(releaseVersion, filepath, newContent, currentContent, project, workspaceConfig) {
87967
87970
  const formatOptions = await resolveConfig(filepath) ?? {};
@@ -88004,14 +88007,6 @@ ${changelogContents}`,
88004
88007
  }
88005
88008
  );
88006
88009
  }
88007
- var titleCase = (input) => {
88008
- if (!input) {
88009
- return "";
88010
- }
88011
- return input.split(/(?=[A-Z])|[\.\-\s_]/).map((s) => s.trim()).filter((s) => !!s).map(
88012
- (s) => s ? s.toLowerCase().charAt(0).toUpperCase() + s.toLowerCase().slice(1) : s
88013
- ).join(" ");
88014
- };
88015
88010
  function generateChangelogTitle(version3, project, workspaceConfig) {
88016
88011
  if (!workspaceConfig?.name || !project) {
88017
88012
  return version3;
@@ -91657,13 +91652,10 @@ Follow up in the browser to manually create the release:
91657
91652
  ` + chalk2.underline(chalk2.cyan(result2.url)) + "\n"
91658
91653
  );
91659
91654
  });
91660
- }
91661
- if (result2.status === "manual") {
91662
91655
  if (result2.error) {
91663
91656
  console.error(result2.error);
91664
91657
  process.exitCode = 1;
91665
91658
  }
91666
- const open2 = (init_open(), __toCommonJS(open_exports));
91667
91659
  await open2(result2.url).then(() => {
91668
91660
  console.info(
91669
91661
  `Follow up in the browser to manually create the release.`
@@ -91828,10 +91820,6 @@ function formatReferences(references, repoData) {
91828
91820
 
91829
91821
  // src/release/changelog-renderer.ts
91830
91822
  var StormChangelogRenderer = class extends DefaultChangelogRenderer {
91831
- /**
91832
- * The Storm workspace configuration object, which is loaded from the storm-workspace.json file.
91833
- */
91834
- workspaceConfig = null;
91835
91823
  /**
91836
91824
  * A ChangelogRenderer class takes in the determined changes and other relevant metadata and returns a string, or a Promise of a string of changelog contents (usually markdown).
91837
91825
  *
@@ -91839,7 +91827,12 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
91839
91827
  */
91840
91828
  constructor(config) {
91841
91829
  super(config);
91830
+ this.config = config;
91842
91831
  }
91832
+ /**
91833
+ * The Storm workspace configuration object, which is loaded from the storm-workspace.json file.
91834
+ */
91835
+ workspaceConfig = null;
91843
91836
  async render() {
91844
91837
  this.workspaceConfig = await getWorkspaceConfig();
91845
91838
  return await super.render();
@@ -91940,7 +91933,7 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
91940
91933
  }
91941
91934
  }
91942
91935
  }
91943
- if (this.repoData && this.changelogRenderOptions.mapAuthorsToGitHubUsernames) {
91936
+ if (this.config.repoData && this.changelogRenderOptions.mapAuthorsToGitHubUsernames) {
91944
91937
  await Promise.all(
91945
91938
  [..._authors.keys()].map(async (authorName) => {
91946
91939
  const meta = _authors.get(authorName);
@@ -91997,8 +91990,11 @@ var StormChangelogRenderer = class extends DefaultChangelogRenderer {
91997
91990
  extraLinesStr = extraLines.filter((l2) => l2.trim().length > 0).map((l2) => `${indentation}${l2}`).join("\n");
91998
91991
  }
91999
91992
  let changeLine = "- " + (!this.isVersionPlans && change.scope ? `**${change.scope.trim()}:** ` : "") + description;
92000
- if (this.repoData && this.changelogRenderOptions.commitReferences && change.githubReferences) {
92001
- changeLine += formatReferences(change.githubReferences, this.repoData);
91993
+ if (this.config.repoData && this.changelogRenderOptions.commitReferences && change.githubReferences) {
91994
+ changeLine += formatReferences(
91995
+ change.githubReferences,
91996
+ this.config.repoData
91997
+ );
92002
91998
  }
92003
91999
  if (extraLinesStr) {
92004
92000
  changeLine += "\n\n" + extraLinesStr;
@@ -92702,11 +92698,9 @@ async function applyChangesAndExit(args, nxReleaseConfig, tree, toSHA, postGitTa
92702
92698
  async function generateChangelogForWorkspace({
92703
92699
  tree,
92704
92700
  args,
92705
- projectGraph,
92706
92701
  nxReleaseConfig,
92707
92702
  workspaceChangelogVersion,
92708
- changes,
92709
- commits
92703
+ changes
92710
92704
  }) {
92711
92705
  const workspaceConfig = await getWorkspaceConfig();
92712
92706
  if (!workspaceConfig) {
@@ -92773,6 +92767,10 @@ async function generateChangelogForWorkspace({
92773
92767
  });
92774
92768
  }
92775
92769
  const githubRepoData = getGitHubRepoData(gitRemote, config.createRelease);
92770
+ const remoteReleaseClient = await createRemoteReleaseClient(
92771
+ config.createRelease,
92772
+ gitRemote
92773
+ );
92776
92774
  const changelogRenderer = new StormChangelogRenderer({
92777
92775
  changes,
92778
92776
  changelogEntryVersion: releaseVersion.rawVersion,
@@ -92781,7 +92779,8 @@ async function generateChangelogForWorkspace({
92781
92779
  repoData: githubRepoData,
92782
92780
  entryWhenNoChanges: config.entryWhenNoChanges,
92783
92781
  changelogRenderOptions: config.renderOptions,
92784
- conventionalCommitsConfig: nxReleaseConfig.conventionalCommits
92782
+ conventionalCommitsConfig: nxReleaseConfig.conventionalCommits,
92783
+ remoteReleaseClient
92785
92784
  });
92786
92785
  let contents = await changelogRenderer.render();
92787
92786
  if (interactive) {
@@ -92866,6 +92865,10 @@ async function generateChangelogForProjects({
92866
92865
  gitRemote,
92867
92866
  config.createRelease
92868
92867
  );
92868
+ const remoteReleaseClient = await createRemoteReleaseClient(
92869
+ config.createRelease,
92870
+ gitRemote
92871
+ );
92869
92872
  const changelogRenderer = new StormChangelogRenderer({
92870
92873
  changes,
92871
92874
  changelogEntryVersion: releaseVersion.rawVersion,
@@ -92879,7 +92882,8 @@ async function generateChangelogForProjects({
92879
92882
  changelogRenderOptions: config.renderOptions,
92880
92883
  isVersionPlans: !!releaseGroup.versionPlans,
92881
92884
  conventionalCommitsConfig: releaseGroup.versionPlans ? null : nxReleaseConfig.conventionalCommits,
92882
- dependencyBumps: projectToAdditionalDependencyBumps.get(project.name)
92885
+ dependencyBumps: projectToAdditionalDependencyBumps.get(project.name),
92886
+ remoteReleaseClient
92883
92887
  });
92884
92888
  let contents = await changelogRenderer.render();
92885
92889
  output2.log({
@@ -93027,16 +93031,16 @@ function formatGithubReleaseNotes(releaseVersion, content, projectName, workspac
93027
93031
  if (!workspaceConfig) {
93028
93032
  return content;
93029
93033
  }
93030
- return `![${titleCase(workspaceConfig.organization)?.replaceAll(" ", "-")}](${workspaceConfig.release.banner})
93034
+ return `![${titleCase2(workspaceConfig.organization)?.replaceAll(" ", "-")}](${workspaceConfig.release.banner})
93031
93035
  ${workspaceConfig.release.header || ""}
93032
93036
 
93033
- # ${projectName ? `${titleCase(projectName)} ` : ""}v${releaseVersion.rawVersion}
93037
+ # ${projectName ? `${titleCase2(projectName)} ` : ""}v${releaseVersion.rawVersion}
93034
93038
 
93035
- We at [${titleCase(workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? titleCase(projectName) : workspaceConfig.name ? titleCase(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
93039
+ We at [${titleCase2(workspaceConfig.organization)}](${workspaceConfig.homepage}) are very excited to announce the v${releaseVersion.rawVersion} release of the ${projectName ? titleCase2(projectName) : workspaceConfig.name ? titleCase2(workspaceConfig.name) : "Storm Software"} project! \u{1F680}
93036
93040
 
93037
93041
  These changes are released under the ${workspaceConfig.license.includes("license") ? workspaceConfig.license : `${workspaceConfig.license} license`}. You can find more details on [our licensing page](${workspaceConfig.licensing}). You can find guides, API references, and other documentation around this release (and much more) on [our documentation site](${workspaceConfig.docs}).
93038
93042
 
93039
- If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${titleCase(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
93043
+ If you have any questions or comments, feel free to reach out to the team on [Discord](${workspaceConfig.account.discord}) or [our contact page](${workspaceConfig.contact}). Please help us spread the word by giving [this repository](https://github.com/${workspaceConfig.organization}/${workspaceConfig.name}) a star \u2B50 on GitHub or [posting on X (Twitter)](https://x.com/intent/tweet?text=Check%20out%20the%20latest%20@${workspaceConfig.account.twitter}%20release%20${projectName ? `${titleCase2(projectName)?.replaceAll(" ", "%20")}%20` : ""}v${releaseVersion.rawVersion}%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/${workspaceConfig.organization}/${workspaceConfig.name}/releases/tag/${releaseVersion.gitTag}) about this release!
93040
93044
 
93041
93045
  ## Release Notes
93042
93046
 
@@ -93073,6 +93077,8 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
93073
93077
  version: {
93074
93078
  groupPreVersionCommand: "pnpm build",
93075
93079
  useLegacyVersioning: true,
93080
+ currentVersionResolver: "git-tag",
93081
+ specifierSource: "conventional-commits",
93076
93082
  generator: "@storm-software/workspace-tools:release-version",
93077
93083
  generatorOptions: {
93078
93084
  currentVersionResolver: "git-tag",
@@ -93103,6 +93109,8 @@ var DEFAULT_RELEASE_CONFIG = {
93103
93109
  version: {
93104
93110
  preVersionCommand: "pnpm build",
93105
93111
  useLegacyVersioning: true,
93112
+ currentVersionResolver: "git-tag",
93113
+ specifierSource: "conventional-commits",
93106
93114
  generator: "@storm-software/workspace-tools:release-version",
93107
93115
  generatorOptions: {
93108
93116
  currentVersionResolver: "git-tag",
@@ -27,6 +27,8 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
27
27
  version: {
28
28
  groupPreVersionCommand: "pnpm build",
29
29
  useLegacyVersioning: true,
30
+ currentVersionResolver: "git-tag",
31
+ specifierSource: "conventional-commits",
30
32
  generator: "@storm-software/workspace-tools:release-version",
31
33
  generatorOptions: {
32
34
  currentVersionResolver: "git-tag",
@@ -57,6 +59,8 @@ var DEFAULT_RELEASE_CONFIG = {
57
59
  version: {
58
60
  preVersionCommand: "pnpm build",
59
61
  useLegacyVersioning: true,
62
+ currentVersionResolver: "git-tag",
63
+ specifierSource: "conventional-commits",
60
64
  generator: "@storm-software/workspace-tools:release-version",
61
65
  generatorOptions: {
62
66
  currentVersionResolver: "git-tag",
@@ -27,6 +27,8 @@ var DEFAULT_RELEASE_GROUP_CONFIG = {
27
27
  version: {
28
28
  groupPreVersionCommand: "pnpm build",
29
29
  useLegacyVersioning: true,
30
+ currentVersionResolver: "git-tag",
31
+ specifierSource: "conventional-commits",
30
32
  generator: "@storm-software/workspace-tools:release-version",
31
33
  generatorOptions: {
32
34
  currentVersionResolver: "git-tag",
@@ -57,6 +59,8 @@ var DEFAULT_RELEASE_CONFIG = {
57
59
  version: {
58
60
  preVersionCommand: "pnpm build",
59
61
  useLegacyVersioning: true,
62
+ currentVersionResolver: "git-tag",
63
+ specifierSource: "conventional-commits",
60
64
  generator: "@storm-software/workspace-tools:release-version",
61
65
  generatorOptions: {
62
66
  currentVersionResolver: "git-tag",
package/dist/index.cjs CHANGED
@@ -5,7 +5,7 @@ var _chunk3V3F7TB7cjs = require('./chunk-3V3F7TB7.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkZKXBGRHWcjs = require('./chunk-ZKXBGRHW.cjs');
8
+ var _chunkC6VZWVYKcjs = require('./chunk-C6VZWVYK.cjs');
9
9
 
10
10
 
11
11
 
@@ -25,4 +25,4 @@ var _chunkEQZ3BKYLcjs = require('./chunk-EQZ3BKYL.cjs');
25
25
 
26
26
 
27
27
 
28
- exports.DEFAULT_COMMIT_CONFIG = _chunk3V3F7TB7cjs.DEFAULT_COMMIT_CONFIG; exports.DEFAULT_COMMIT_MESSAGE_FORMAT = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_COMMIT_PROMPT_MESSAGES = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_PROMPT_MESSAGES; exports.DEFAULT_COMMIT_QUESTIONS = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_QUESTIONS; exports.DEFAULT_COMMIT_SETTINGS = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_SETTINGS; exports.DEFAULT_COMMIT_TYPES = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_TYPES; exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG = _chunkZKXBGRHWcjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; exports.DEFAULT_RELEASE_CONFIG = _chunkZKXBGRHWcjs.DEFAULT_RELEASE_CONFIG; exports.DEFAULT_RELEASE_GROUP_CONFIG = _chunkZKXBGRHWcjs.DEFAULT_RELEASE_GROUP_CONFIG; exports.RuleConfigSeverity = _chunkEQZ3BKYLcjs.RuleConfigSeverity;
28
+ exports.DEFAULT_COMMIT_CONFIG = _chunk3V3F7TB7cjs.DEFAULT_COMMIT_CONFIG; exports.DEFAULT_COMMIT_MESSAGE_FORMAT = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_MESSAGE_FORMAT; exports.DEFAULT_COMMIT_PROMPT_MESSAGES = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_PROMPT_MESSAGES; exports.DEFAULT_COMMIT_QUESTIONS = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_QUESTIONS; exports.DEFAULT_COMMIT_SETTINGS = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_SETTINGS; exports.DEFAULT_COMMIT_TYPES = _chunkEQZ3BKYLcjs.DEFAULT_COMMIT_TYPES; exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG = _chunkC6VZWVYKcjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; exports.DEFAULT_RELEASE_CONFIG = _chunkC6VZWVYKcjs.DEFAULT_RELEASE_CONFIG; exports.DEFAULT_RELEASE_GROUP_CONFIG = _chunkC6VZWVYKcjs.DEFAULT_RELEASE_GROUP_CONFIG; exports.RuleConfigSeverity = _chunkEQZ3BKYLcjs.RuleConfigSeverity;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
6
6
  DEFAULT_RELEASE_CONFIG,
7
7
  DEFAULT_RELEASE_GROUP_CONFIG
8
- } from "./chunk-JHC42VE5.js";
8
+ } from "./chunk-G57AJLLK.js";
9
9
  import {
10
10
  DEFAULT_COMMIT_MESSAGE_FORMAT,
11
11
  DEFAULT_COMMIT_PROMPT_MESSAGES,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZKXBGRHWcjs = require('../chunk-ZKXBGRHW.cjs');
5
+ var _chunkC6VZWVYKcjs = require('../chunk-C6VZWVYK.cjs');
6
6
  require('../chunk-EQZ3BKYL.cjs');
7
7
 
8
8
 
9
9
 
10
10
 
11
- exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG = _chunkZKXBGRHWcjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; exports.DEFAULT_RELEASE_CONFIG = _chunkZKXBGRHWcjs.DEFAULT_RELEASE_CONFIG; exports.DEFAULT_RELEASE_GROUP_CONFIG = _chunkZKXBGRHWcjs.DEFAULT_RELEASE_GROUP_CONFIG;
11
+ exports.DEFAULT_CONVENTIONAL_COMMITS_CONFIG = _chunkC6VZWVYKcjs.DEFAULT_CONVENTIONAL_COMMITS_CONFIG; exports.DEFAULT_RELEASE_CONFIG = _chunkC6VZWVYKcjs.DEFAULT_RELEASE_CONFIG; exports.DEFAULT_RELEASE_GROUP_CONFIG = _chunkC6VZWVYKcjs.DEFAULT_RELEASE_GROUP_CONFIG;
@@ -209,6 +209,8 @@ declare const DEFAULT_RELEASE_GROUP_CONFIG: {
209
209
  version: {
210
210
  groupPreVersionCommand: string;
211
211
  useLegacyVersioning: boolean;
212
+ currentVersionResolver: string;
213
+ specifierSource: string;
212
214
  generator: string;
213
215
  generatorOptions: {
214
216
  currentVersionResolver: string;
@@ -425,6 +427,8 @@ declare const DEFAULT_RELEASE_CONFIG: {
425
427
  version: {
426
428
  preVersionCommand: string;
427
429
  useLegacyVersioning: boolean;
430
+ currentVersionResolver: string;
431
+ specifierSource: string;
428
432
  generator: string;
429
433
  generatorOptions: {
430
434
  currentVersionResolver: string;
@@ -209,6 +209,8 @@ declare const DEFAULT_RELEASE_GROUP_CONFIG: {
209
209
  version: {
210
210
  groupPreVersionCommand: string;
211
211
  useLegacyVersioning: boolean;
212
+ currentVersionResolver: string;
213
+ specifierSource: string;
212
214
  generator: string;
213
215
  generatorOptions: {
214
216
  currentVersionResolver: string;
@@ -425,6 +427,8 @@ declare const DEFAULT_RELEASE_CONFIG: {
425
427
  version: {
426
428
  preVersionCommand: string;
427
429
  useLegacyVersioning: boolean;
430
+ currentVersionResolver: string;
431
+ specifierSource: string;
428
432
  generator: string;
429
433
  generatorOptions: {
430
434
  currentVersionResolver: string;
@@ -2,7 +2,7 @@ import {
2
2
  DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
3
3
  DEFAULT_RELEASE_CONFIG,
4
4
  DEFAULT_RELEASE_GROUP_CONFIG
5
- } from "../chunk-JHC42VE5.js";
5
+ } from "../chunk-G57AJLLK.js";
6
6
  import "../chunk-D7HN6Y5M.js";
7
7
  export {
8
8
  DEFAULT_CONVENTIONAL_COMMITS_CONFIG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/git-tools",
3
- "version": "2.111.24",
3
+ "version": "2.111.25",
4
4
  "type": "module",
5
5
  "description": "Tools for managing Git repositories within a Nx workspace.",
6
6
  "repository": {
@@ -240,6 +240,7 @@
240
240
  "@inquirer/select": "4.0.4",
241
241
  "@nx/devkit": "21.0.3",
242
242
  "@nx/js": "21.0.3",
243
+ "@stryke/string-format": "0.4.11",
243
244
  "@textlint/ast-node-types": "14.4.2",
244
245
  "@textlint/markdown-to-ast": "14.4.2",
245
246
  "@types/node": "^22.10.2",