release-please 16.7.1 → 16.8.0

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.
@@ -14,4 +14,4 @@ export { Logger, setLogger } from './util/logger';
14
14
  export { GitHub } from './github';
15
15
  export declare const configSchema: any;
16
16
  export declare const manifestSchema: any;
17
- export declare const VERSION = "16.7.1";
17
+ export declare const VERSION = "16.8.0";
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
36
36
  exports.configSchema = require('../../schemas/config.json');
37
37
  exports.manifestSchema = require('../../schemas/manifest.json');
38
38
  // x-release-please-start-version
39
- exports.VERSION = '16.7.1';
39
+ exports.VERSION = '16.8.0';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -77,7 +77,6 @@ class PHPYoshi extends base_1.BaseStrategy {
77
77
  };
78
78
  const newVersion = await this.versioningStrategy.bump(version, splitCommits[directory]);
79
79
  versionsMap.set(composer.name, newVersion);
80
- versionsMap.set('version', newVersion);
81
80
  const partialReleaseNotes = await this.changelogNotes.buildNotes(splitCommits[directory], {
82
81
  host: this.changelogHost,
83
82
  owner: this.repository.owner,
@@ -127,6 +126,13 @@ class PHPYoshi extends base_1.BaseStrategy {
127
126
  version,
128
127
  }),
129
128
  });
129
+ updates.push({
130
+ path: this.addPath(`${directory}/composer.json`),
131
+ createIfMissing: false,
132
+ updater: new root_composer_update_packages_1.RootComposerUpdatePackages({
133
+ version,
134
+ }),
135
+ });
130
136
  if ((_c = (_b = componentInfo.composer.extra) === null || _b === void 0 ? void 0 : _b.component) === null || _c === void 0 ? void 0 : _c.entry) {
131
137
  updates.push({
132
138
  path: this.addPath(`${directory}/${componentInfo.composer.extra.component.entry}`),
@@ -43,7 +43,6 @@ class PHP extends base_1.BaseStrategy {
43
43
  const updates = [];
44
44
  const version = options.newVersion;
45
45
  const versionsMap = new Map();
46
- versionsMap.set('version', version);
47
46
  updates.push({
48
47
  path: this.addPath(this.changelogPath),
49
48
  createIfMissing: true,
@@ -27,11 +27,17 @@ class RootComposerUpdatePackages extends default_1.DefaultUpdater {
27
27
  * @returns {string} The updated content
28
28
  */
29
29
  updateContent(content, logger = logger_1.logger) {
30
- if (!this.versionsMap || this.versionsMap.size === 0) {
30
+ if (!this.version && (!this.versionsMap || this.versionsMap.size === 0)) {
31
31
  logger.info('no updates necessary');
32
32
  return content;
33
33
  }
34
34
  const parsed = JSON.parse(content);
35
+ if (parsed['version']) {
36
+ const fromVersion = parsed['version'];
37
+ const toVersion = this.version.toString() || '1.0.0';
38
+ parsed['version'] = toVersion;
39
+ logger.info(`updating "version" from ${fromVersion} to ${toVersion}`);
40
+ }
35
41
  if (this.versionsMap) {
36
42
  for (const [key, version] of this.versionsMap.entries()) {
37
43
  const toVersion = version.toString() || '1.0.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "16.7.1",
3
+ "version": "16.8.0",
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",