release-please 13.19.8 → 13.19.9

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,13 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [13.19.9](https://github.com/googleapis/release-please/compare/v13.19.8...v13.19.9) (2022-08-08)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * php root-composer-update-packages version replace ([#1553](https://github.com/googleapis/release-please/issues/1553)) ([41127e6](https://github.com/googleapis/release-please/commit/41127e688597a0af6502957d85ba8cd6214e9008))
13
+
7
14
  ## [13.19.8](https://github.com/googleapis/release-please/compare/v13.19.7...v13.19.8) (2022-08-03)
8
15
 
9
16
 
package/README.md CHANGED
@@ -206,6 +206,8 @@ This library follows [Semantic Versioning](http://semver.org/).
206
206
 
207
207
  Contributions welcome! See the [Contributing Guide](https://github.com/googleapis/release-please/blob/main/CONTRIBUTING.md).
208
208
 
209
+ For more information on the design of the library, see [design](https://github.com/googleapis/release-please/blob/main/docs/design.md).
210
+
209
211
  ## License
210
212
 
211
213
  Apache Version 2.0
@@ -33,11 +33,18 @@ class RootComposerUpdatePackages extends default_1.DefaultUpdater {
33
33
  }
34
34
  const parsed = JSON.parse(content);
35
35
  if (this.versionsMap) {
36
- // eslint-disable-next-line prefer-const
37
- for (let [key, version] of this.versionsMap.entries()) {
38
- version = version || '1.0.0';
39
- logger_1.logger.info(`updating ${key} from ${parsed.replace[key]} to ${version}`);
40
- parsed.replace[key] = version.toString();
36
+ for (const [key, version] of this.versionsMap.entries()) {
37
+ const toVersion = version.toString() || '1.0.0';
38
+ let fromVersion;
39
+ if (parsed.replace) {
40
+ fromVersion = parsed.replace[key];
41
+ parsed.replace[key] = toVersion;
42
+ }
43
+ if (parsed[key]) {
44
+ fromVersion !== null && fromVersion !== void 0 ? fromVersion : (fromVersion = parsed[key]);
45
+ parsed[key] = toVersion;
46
+ }
47
+ logger_1.logger.info(`updating ${key} from ${fromVersion} to ${toVersion}`);
41
48
  }
42
49
  }
43
50
  return (0, json_stringify_1.jsonStringify)(parsed, content);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.19.8",
3
+ "version": "13.19.9",
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",