release-please 14.14.0 → 14.15.1

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,25 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [14.15.1](https://github.com/googleapis/release-please/compare/v14.15.0...v14.15.1) (2022-10-28)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * **maven-workspace:** SNAPSHOT versions should not be included in the manifest ([#1727](https://github.com/googleapis/release-please/issues/1727)) ([d926c84](https://github.com/googleapis/release-please/commit/d926c840ec99de013a0b5cb198f9fb2700930cf7))
13
+
14
+ ## [14.15.0](https://github.com/googleapis/release-please/compare/v14.14.0...v14.15.0) (2022-10-27)
15
+
16
+
17
+ ### Features
18
+
19
+ * **php-yoshi:** Add "misc" as trigger, hide "chore" ([#1725](https://github.com/googleapis/release-please/issues/1725)) ([f7a9d09](https://github.com/googleapis/release-please/commit/f7a9d091670f0a70a13a1b641fbc6d07ec000da2))
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **deps:** Update dependency type-fest to v3 ([#1649](https://github.com/googleapis/release-please/issues/1649)) ([d3c3a3e](https://github.com/googleapis/release-please/commit/d3c3a3eae6557994ad244c0bdd79e1782971d2c1))
25
+
7
26
  ## [14.14.0](https://github.com/googleapis/release-please/compare/v14.13.2...v14.14.0) (2022-10-25)
8
27
 
9
28
 
@@ -63,6 +63,13 @@ export declare class MavenWorkspace extends WorkspacePlugin<MavenArtifact> {
63
63
  updatedPathVersions: VersionsMap;
64
64
  }>;
65
65
  protected buildGraph(allPackages: MavenArtifact[]): Promise<DependencyGraph<MavenArtifact>>;
66
+ /**
67
+ * Given a release version, determine if we should bump the manifest
68
+ * version as well. For maven artifacts, SNAPSHOT versions are not
69
+ * considered releases.
70
+ * @param {Version} version The release version
71
+ */
72
+ protected isReleaseVersion(version: Version): boolean;
66
73
  protected bumpVersion(artifact: MavenArtifact): Version;
67
74
  protected updateCandidate(existingCandidate: CandidateReleasePullRequest, artifact: MavenArtifact, updatedVersions: VersionsMap): CandidateReleasePullRequest;
68
75
  protected newCandidate(artifact: MavenArtifact, updatedVersions: VersionsMap): CandidateReleasePullRequest;
@@ -155,7 +155,8 @@ class MavenWorkspace extends workspace_1.WorkspacePlugin {
155
155
  this.logger.warn(`${pomUpdate.path} does not have cached contents`);
156
156
  }
157
157
  }
158
- if (candidate.pullRequest.version) {
158
+ if (candidate.pullRequest.version &&
159
+ this.isReleaseVersion(candidate.pullRequest.version)) {
159
160
  updatedPathVersions.set(candidate.path, candidate.pullRequest.version);
160
161
  }
161
162
  }
@@ -176,7 +177,9 @@ class MavenWorkspace extends workspace_1.WorkspacePlugin {
176
177
  else {
177
178
  this.logger.debug(`version: ${version} forced bump`);
178
179
  updatedVersions.set(packageName, version);
179
- updatedPathVersions.set(this.pathFromPackage(pkg), version);
180
+ if (this.isReleaseVersion(version)) {
181
+ updatedPathVersions.set(this.pathFromPackage(pkg), version);
182
+ }
180
183
  }
181
184
  }
182
185
  }
@@ -207,6 +210,16 @@ class MavenWorkspace extends workspace_1.WorkspacePlugin {
207
210
  }
208
211
  return graph;
209
212
  }
213
+ /**
214
+ * Given a release version, determine if we should bump the manifest
215
+ * version as well. For maven artifacts, SNAPSHOT versions are not
216
+ * considered releases.
217
+ * @param {Version} version The release version
218
+ */
219
+ isReleaseVersion(version) {
220
+ var _a;
221
+ return !((_a = version.preRelease) === null || _a === void 0 ? void 0 : _a.includes('SNAPSHOT'));
222
+ }
210
223
  bumpVersion(artifact) {
211
224
  const strategy = new java_snapshot_1.JavaSnapshot(new always_bump_patch_1.AlwaysBumpPatch());
212
225
  return strategy.bump(version_1.Version.parse(artifact.version), [FAKE_COMMIT]);
@@ -74,6 +74,12 @@ export declare abstract class WorkspacePlugin<T> extends ManifestPlugin {
74
74
  updatedVersions: VersionsMap;
75
75
  updatedPathVersions: VersionsMap;
76
76
  }>;
77
+ /**
78
+ * Given a release version, determine if we should bump the manifest
79
+ * version as well.
80
+ * @param {Version} _version The release version
81
+ */
82
+ protected isReleaseVersion(_version: Version): boolean;
77
83
  /**
78
84
  * Given a package, return the new bumped version after updating
79
85
  * the dependency.
@@ -173,7 +173,9 @@ class WorkspacePlugin extends plugin_1.ManifestPlugin {
173
173
  const version = this.bumpVersion(pkg);
174
174
  this.logger.debug(`version: ${version} forced bump`);
175
175
  updatedVersions.set(packageName, version);
176
- updatedPathVersions.set(this.pathFromPackage(pkg), version);
176
+ if (this.isReleaseVersion(version)) {
177
+ updatedPathVersions.set(this.pathFromPackage(pkg), version);
178
+ }
177
179
  }
178
180
  }
179
181
  return {
@@ -181,6 +183,14 @@ class WorkspacePlugin extends plugin_1.ManifestPlugin {
181
183
  updatedPathVersions,
182
184
  };
183
185
  }
186
+ /**
187
+ * Given a release version, determine if we should bump the manifest
188
+ * version as well.
189
+ * @param {Version} _version The release version
190
+ */
191
+ isReleaseVersion(_version) {
192
+ return true;
193
+ }
184
194
  /**
185
195
  * Helper to invert the graph from package => packages that it depends on
186
196
  * to package => packages that depend on it.
@@ -34,7 +34,8 @@ const CHANGELOG_SECTIONS = [
34
34
  { type: 'perf', section: 'Performance Improvements' },
35
35
  { type: 'revert', section: 'Reverts' },
36
36
  { type: 'docs', section: 'Documentation' },
37
- { type: 'chore', section: 'Miscellaneous Chores' },
37
+ { type: 'misc', section: 'Miscellaneous' },
38
+ { type: 'chore', section: 'Chores', hidden: true },
38
39
  { type: 'style', section: 'Styles', hidden: true },
39
40
  { type: 'refactor', section: 'Code Refactoring', hidden: true },
40
41
  { type: 'test', section: 'Tests', hidden: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "14.14.0",
3
+ "version": "14.15.1",
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",
@@ -95,7 +95,7 @@
95
95
  "node-html-parser": "^6.0.0",
96
96
  "parse-github-repo-url": "^1.4.1",
97
97
  "semver": "^7.0.0",
98
- "type-fest": "^2.0.0",
98
+ "type-fest": "^3.0.0",
99
99
  "typescript": "^4.6.4",
100
100
  "unist-util-visit": "^2.0.3",
101
101
  "unist-util-visit-parents": "^3.1.1",