release-please 15.10.0 → 15.10.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/CHANGELOG.md +7 -0
- package/build/src/updaters/base-xml.js +5 -1
- package/package.json +1 -1
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
|
+
## [15.10.1](https://github.com/googleapis/release-please/compare/v15.10.0...v15.10.1) (2023-04-10)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **xml:** Preserve trailing newline if the xml file had one ([#1911](https://github.com/googleapis/release-please/issues/1911)) ([b899da6](https://github.com/googleapis/release-please/commit/b899da6637a5152fc13be5b89688c5f70c85563d))
|
|
13
|
+
|
|
7
14
|
## [15.10.0](https://github.com/googleapis/release-please/compare/v15.9.3...v15.10.0) (2023-04-10)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -28,7 +28,11 @@ class BaseXml {
|
|
|
28
28
|
const document = new dom.DOMParser().parseFromString(content);
|
|
29
29
|
const updated = this.updateDocument(document);
|
|
30
30
|
if (updated) {
|
|
31
|
-
|
|
31
|
+
const newContent = new dom.XMLSerializer().serializeToString(document);
|
|
32
|
+
if (content.endsWith('\n') && !newContent.endsWith('\n')) {
|
|
33
|
+
return `${newContent}\n`;
|
|
34
|
+
}
|
|
35
|
+
return newContent;
|
|
32
36
|
}
|
|
33
37
|
else {
|
|
34
38
|
return content;
|
package/package.json
CHANGED