release-please 16.7.0 → 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.0";
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.0';
39
+ exports.VERSION = '16.8.0';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -126,6 +126,13 @@ class PHPYoshi extends base_1.BaseStrategy {
126
126
  version,
127
127
  }),
128
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
+ });
129
136
  if ((_c = (_b = componentInfo.composer.extra) === null || _b === void 0 ? void 0 : _b.component) === null || _c === void 0 ? void 0 : _c.entry) {
130
137
  updates.push({
131
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.0",
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",
@@ -55,7 +55,7 @@
55
55
  "@types/yargs": "^17.0.0",
56
56
  "ajv": "^8.11.0",
57
57
  "ajv-formats": "^2.1.1",
58
- "c8": "^8.0.0",
58
+ "c8": "^9.0.0",
59
59
  "chai": "^4.2.0",
60
60
  "config-chain": "^1.1.13",
61
61
  "cross-env": "^7.0.0",