release-please 15.10.5 → 15.11.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [15.11.0](https://github.com/googleapis/release-please/compare/v15.10.5...v15.11.0) (2023-05-31)
8
+
9
+
10
+ ### Features
11
+
12
+ * **node:** Support package-lock.json version 3 ([#1940](https://github.com/googleapis/release-please/issues/1940)) ([77d80fb](https://github.com/googleapis/release-please/commit/77d80fb0c324cfadb91fd4a7ec656b2eb8eaeccb)), closes [#1939](https://github.com/googleapis/release-please/issues/1939)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * **helm:** Maintain any existing comments in Chart.yaml ([#1968](https://github.com/googleapis/release-please/issues/1968)) ([77de40e](https://github.com/googleapis/release-please/commit/77de40e6f8ceaac87d90948c0d7fa618dcd01163))
18
+
7
19
  ## [15.10.5](https://github.com/googleapis/release-please/compare/v15.10.4...v15.10.5) (2023-05-26)
8
20
 
9
21
 
@@ -14,7 +14,7 @@
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ChartYaml = void 0;
17
- const yaml = require("js-yaml");
17
+ const yaml = require("yaml");
18
18
  const logger_1 = require("../../util/logger");
19
19
  const default_1 = require("../default");
20
20
  /**
@@ -27,14 +27,14 @@ class ChartYaml extends default_1.DefaultUpdater {
27
27
  * @returns {string} The updated content
28
28
  */
29
29
  updateContent(content, logger = logger_1.logger) {
30
- const data = yaml.load(content, { json: true });
31
- if (data === null || data === undefined) {
30
+ const chart = yaml.parseDocument(content);
31
+ if (chart === null || chart === undefined) {
32
32
  return '';
33
33
  }
34
- const parsed = JSON.parse(JSON.stringify(data));
35
- logger.info(`updating from ${parsed.version} to ${this.version}`);
36
- parsed.version = this.version.toString();
37
- return yaml.dump(parsed);
34
+ const oldVersion = chart.get('version');
35
+ logger.info(`updating from ${oldVersion} to ${this.version}`);
36
+ chart.set('version', this.version.toString());
37
+ return chart.toString();
38
38
  }
39
39
  }
40
40
  exports.ChartYaml = ChartYaml;
@@ -26,7 +26,7 @@ class PackageLockJson extends default_1.DefaultUpdater {
26
26
  const parsed = JSON.parse(content);
27
27
  logger.info(`updating from ${parsed.version} to ${this.version}`);
28
28
  parsed.version = this.version.toString();
29
- if (parsed.lockfileVersion === 2) {
29
+ if (parsed.lockfileVersion === 2 || parsed.lockfileVersion === 3) {
30
30
  parsed.packages[''].version = this.version.toString();
31
31
  }
32
32
  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": "15.10.5",
3
+ "version": "15.11.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",
@@ -100,6 +100,7 @@
100
100
  "unist-util-visit": "^2.0.3",
101
101
  "unist-util-visit-parents": "^3.1.1",
102
102
  "xpath": "^0.0.32",
103
+ "yaml": "^2.2.2",
103
104
  "yargs": "^17.0.0"
104
105
  },
105
106
  "engines": {