release-please 16.14.0 → 16.14.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/build/src/commit.js
CHANGED
|
@@ -328,7 +328,7 @@ function splitMessages(message) {
|
|
|
328
328
|
messages[0] = messages[0] + rest.join('END_NESTED_COMMIT');
|
|
329
329
|
}
|
|
330
330
|
const conventionalCommits = messages[0]
|
|
331
|
-
.split(/\n(?=(?:feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.*?\))?: )/)
|
|
331
|
+
.split(/\r?\n\r?\n(?=(?:feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(?:\(.*?\))?: )/)
|
|
332
332
|
.filter(Boolean);
|
|
333
333
|
return [...conventionalCommits, ...messages.slice(1)];
|
|
334
334
|
}
|
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -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.14.
|
|
39
|
+
exports.VERSION = '16.14.1';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GenericJson = void 0;
|
|
17
|
-
const
|
|
17
|
+
const jsonpath_plus_1 = require("jsonpath-plus");
|
|
18
18
|
const json_stringify_1 = require("../util/json-stringify");
|
|
19
19
|
const logger_1 = require("../util/logger");
|
|
20
20
|
const VERSION_REGEX = /(?<major>\d+)\.(?<minor>\d+)\.(?<patch>\d+)(-(?<preRelease>[\w.]+))?(\+(?<build>[-\w.]+))?/;
|
|
@@ -30,21 +30,23 @@ class GenericJson {
|
|
|
30
30
|
*/
|
|
31
31
|
updateContent(content, logger = logger_1.logger) {
|
|
32
32
|
const data = JSON.parse(content);
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
33
|
+
(0, jsonpath_plus_1.JSONPath)({
|
|
34
|
+
resultType: 'all',
|
|
35
|
+
path: this.jsonpath,
|
|
36
|
+
json: data,
|
|
37
|
+
callback: (payload, _payloadType, _fullPayload) => {
|
|
38
|
+
if (typeof payload.value !== 'string') {
|
|
39
|
+
logger.warn(`No string in ${this.jsonpath}. Skipping.`);
|
|
40
|
+
return payload;
|
|
41
|
+
}
|
|
42
|
+
if (!payload.value.match(VERSION_REGEX)) {
|
|
43
|
+
logger.warn(`No version found in ${this.jsonpath}. Skipping.`);
|
|
44
|
+
return payload;
|
|
45
|
+
}
|
|
46
|
+
payload.parent[payload.parentProperty] = payload.parent[payload.parentProperty].replace(VERSION_REGEX, this.version.toString());
|
|
47
|
+
return payload;
|
|
48
|
+
},
|
|
43
49
|
});
|
|
44
|
-
if (!nodes) {
|
|
45
|
-
logger.warn(`No entries modified in ${this.jsonpath}`);
|
|
46
|
-
return content;
|
|
47
|
-
}
|
|
48
50
|
return (0, json_stringify_1.jsonStringify)(data, content);
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GenericToml = void 0;
|
|
17
|
-
const
|
|
17
|
+
const jsonpath_plus_1 = require("jsonpath-plus");
|
|
18
18
|
const toml_edit_1 = require("../util/toml-edit");
|
|
19
19
|
const logger_1 = require("../util/logger");
|
|
20
20
|
/**
|
|
@@ -43,7 +43,12 @@ class GenericToml {
|
|
|
43
43
|
logger.warn('Invalid toml, cannot be parsed', e);
|
|
44
44
|
return content;
|
|
45
45
|
}
|
|
46
|
-
const
|
|
46
|
+
const pointers = (0, jsonpath_plus_1.JSONPath)({
|
|
47
|
+
path: this.jsonpath,
|
|
48
|
+
json: data,
|
|
49
|
+
resultType: 'pointer',
|
|
50
|
+
});
|
|
51
|
+
const paths = pointers.map(pointer => pointer.split('/').filter(Boolean));
|
|
47
52
|
if (!paths || paths.length === 0) {
|
|
48
53
|
logger.warn(`No entries modified in ${this.jsonpath}`);
|
|
49
54
|
return content;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// limitations under the License.
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.GenericYaml = void 0;
|
|
17
|
-
const
|
|
17
|
+
const jsonpath_plus_1 = require("jsonpath-plus");
|
|
18
18
|
const yaml = require("js-yaml");
|
|
19
19
|
const logger_1 = require("../util/logger");
|
|
20
20
|
const DOCUMENT_SEPARATOR = '---\n';
|
|
@@ -50,12 +50,20 @@ class GenericYaml {
|
|
|
50
50
|
// Update each document
|
|
51
51
|
let modified = false;
|
|
52
52
|
docs.forEach(data => {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
(0, jsonpath_plus_1.JSONPath)({
|
|
54
|
+
resultType: 'all',
|
|
55
|
+
path: this.jsonpath,
|
|
56
|
+
json: data,
|
|
57
|
+
callback: (payload, _payloadType, _fullPayload) => {
|
|
58
|
+
if (typeof payload.value !== 'string') {
|
|
59
|
+
logger.warn(`No string in ${this.jsonpath}. Skipping.`);
|
|
60
|
+
return payload;
|
|
61
|
+
}
|
|
62
|
+
modified = true;
|
|
63
|
+
payload.parent[payload.parentProperty] = this.version.toString();
|
|
64
|
+
return payload;
|
|
65
|
+
},
|
|
55
66
|
});
|
|
56
|
-
if (nodes && nodes.length) {
|
|
57
|
-
modified = true;
|
|
58
|
-
}
|
|
59
67
|
});
|
|
60
68
|
// If nothing was modified, return original content
|
|
61
69
|
if (!modified) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "16.14.
|
|
3
|
+
"version": "16.14.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",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"http-proxy-agent": "^7.0.0",
|
|
87
87
|
"https-proxy-agent": "^7.0.0",
|
|
88
88
|
"js-yaml": "^4.0.0",
|
|
89
|
-
"jsonpath": "^
|
|
89
|
+
"jsonpath-plus": "^9.0.0",
|
|
90
90
|
"node-html-parser": "^6.0.0",
|
|
91
91
|
"parse-github-repo-url": "^1.4.1",
|
|
92
92
|
"semver": "^7.5.3",
|