release-please 13.10.1 → 13.10.2

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
@@ -4,6 +4,14 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ### [13.10.2](https://github.com/googleapis/release-please/compare/v13.10.1...v13.10.2) (2022-04-14)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **java:** snapshots should bump versionsMap versions ([#1386](https://github.com/googleapis/release-please/issues/1386)) ([558331c](https://github.com/googleapis/release-please/commit/558331c160a066daeda476438f6524bf958f8d41)), closes [#1381](https://github.com/googleapis/release-please/issues/1381)
13
+ * **ruby-yoshi:** Remove bolded scope and fix link removal ([#1382](https://github.com/googleapis/release-please/issues/1382)) ([f6b3202](https://github.com/googleapis/release-please/commit/f6b32024998c4e414b723a4071166f253e95b1d2))
14
+
7
15
  ### [13.10.1](https://github.com/googleapis/release-please/compare/v13.10.0...v13.10.1) (2022-04-13)
8
16
 
9
17
 
@@ -204,14 +204,8 @@ class BaseStrategy {
204
204
  return changelogEntry.split('\n').length <= 1;
205
205
  }
206
206
  async updateVersionsMap(versionsMap, conventionalCommits, _newVersion) {
207
- for (const versionKey of versionsMap.keys()) {
208
- const version = versionsMap.get(versionKey);
209
- if (!version) {
210
- logger_1.logger.warn(`didn't find version for ${versionKey}`);
211
- continue;
212
- }
213
- const newVersion = await this.versioningStrategy.bump(version, conventionalCommits);
214
- versionsMap.set(versionKey, newVersion);
207
+ for (const [component, version] of versionsMap.entries()) {
208
+ versionsMap.set(component, await this.versioningStrategy.bump(version, conventionalCommits));
215
209
  }
216
210
  return versionsMap;
217
211
  }
@@ -70,6 +70,9 @@ class Java extends base_1.BaseStrategy {
70
70
  ? await this.snapshotVersioning.bump(latestRelease.tag.version, [])
71
71
  : this.initialReleaseVersion();
72
72
  const versionsMap = await this.buildVersionsMap([]);
73
+ for (const [component, version] of versionsMap.entries()) {
74
+ versionsMap.set(component, await this.snapshotVersioning.bump(version, []));
75
+ }
73
76
  const pullRequestTitle = pull_request_title_1.PullRequestTitle.ofComponentTargetBranchVersion(component || '', this.targetBranch, newVersion);
74
77
  const branchName = component
75
78
  ? branch_name_1.BranchName.ofComponentTargetBranch(component, this.targetBranch)
@@ -82,8 +82,10 @@ class RubyYoshi extends base_1.BaseStrategy {
82
82
  return (releaseNotes
83
83
  // Remove links in version title line and standardize on h3
84
84
  .replace(/^###? \[([\d.]+)\]\([^)]*\)/gm, '### $1')
85
+ // Remove bolded scope from change lines
86
+ .replace(/^\* \*\*[\w-]+:\*\* /gm, '* ')
85
87
  // Remove PR and commit links from pull request title suffixes
86
- .replace(/ \(\[#\d+\]\([^)]*\)\)( \(\[\w+\]\([^)]*\)\))?\s*$/gm, '')
88
+ .replace(/( \(\[(\w+|#\d+)\]\(https:\/\/github\.com\/[^)]*\)\))+\s*$/gm, '')
87
89
  // Standardize on h4 for change type subheaders
88
90
  .replace(/^### (Features|Bug Fixes|Documentation)$/gm, '#### $1')
89
91
  // Collapse 2 or more blank lines
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.10.1",
3
+ "version": "13.10.2",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",
@@ -59,7 +59,7 @@
59
59
  "gts": "^3.0.0",
60
60
  "mocha": "^9.0.0",
61
61
  "nock": "^13.0.0",
62
- "sinon": "13.0.1",
62
+ "sinon": "13.0.2",
63
63
  "snap-shot-it": "^7.0.0"
64
64
  },
65
65
  "dependencies": {