release-please 13.19.4 → 13.19.5
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.5](https://github.com/googleapis/release-please/compare/v13.19.4...v13.19.5) (2022-07-26)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **dart:** add multiline flag to replace regex ([#1524](https://github.com/googleapis/release-please/issues/1524)) ([fd7b73b](https://github.com/googleapis/release-please/commit/fd7b73b8f9288dbfa84f37a6ce2e77f6c1b49db8)), closes [#1523](https://github.com/googleapis/release-please/issues/1523)
|
|
13
|
+
|
|
7
14
|
## [13.19.4](https://github.com/googleapis/release-please/compare/v13.19.3...v13.19.4) (2022-07-25)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -26,19 +26,24 @@ class PubspecYaml extends default_1.DefaultUpdater {
|
|
|
26
26
|
* @returns {string} The updated content
|
|
27
27
|
*/
|
|
28
28
|
updateContent(content) {
|
|
29
|
-
const oldVersion = content.match(
|
|
29
|
+
const oldVersion = content.match(/^version: ([0-9.]+)\+?(.*$)/m);
|
|
30
30
|
let buildNumber = '';
|
|
31
31
|
if (oldVersion) {
|
|
32
|
-
buildNumber =
|
|
33
|
-
|
|
32
|
+
buildNumber = oldVersion[2];
|
|
33
|
+
const parsedBuild = parseInt(buildNumber);
|
|
34
|
+
if (!isNaN(parsedBuild)) {
|
|
35
|
+
buildNumber = `+${parsedBuild + 1}`;
|
|
36
|
+
logger_1.logger.info(`updating from ${oldVersion[1]}+${oldVersion[2]} to ${this.version}${buildNumber}`);
|
|
37
|
+
}
|
|
38
|
+
else if (buildNumber.length > 0) {
|
|
34
39
|
buildNumber = `+${buildNumber}`;
|
|
35
|
-
logger_1.logger.info(`updating from ${oldVersion[1]}
|
|
40
|
+
logger_1.logger.info(`updating from ${oldVersion[1]}+${oldVersion[2]} to ${this.version}${buildNumber}`);
|
|
36
41
|
}
|
|
37
42
|
else {
|
|
38
43
|
logger_1.logger.info(`updating from ${oldVersion[1]} to ${this.version}`);
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
|
-
return content.replace(
|
|
46
|
+
return content.replace(/^version: .*$/m, `version: ${this.version}${buildNumber}`);
|
|
42
47
|
}
|
|
43
48
|
}
|
|
44
49
|
exports.PubspecYaml = PubspecYaml;
|
package/package.json
CHANGED