release-please 13.18.5 → 13.18.6
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 +8 -0
- package/build/src/strategies/dotnet-yoshi.d.ts +1 -0
- package/build/src/strategies/dotnet-yoshi.js +8 -2
- package/build/src/updaters/changelog.d.ts +2 -0
- package/build/src/updaters/changelog.js +4 -1
- package/build/src/updaters/changelog.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [13.18.6](https://github.com/googleapis/release-please/compare/v13.18.5...v13.18.6) (2022-06-27)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **dotnet-yoshi:** autodetect component from path ([563ef02](https://github.com/googleapis/release-please/commit/563ef02210cc8bd52eedbfaa0a00787bc2e41ee6))
|
|
13
|
+
* **dotnet-yoshi:** handle existing google-cloud-dotnet history format ([#1486](https://github.com/googleapis/release-please/issues/1486)) ([563ef02](https://github.com/googleapis/release-please/commit/563ef02210cc8bd52eedbfaa0a00787bc2e41ee6))
|
|
14
|
+
|
|
7
15
|
## [13.18.5](https://github.com/googleapis/release-please/compare/v13.18.4...v13.18.5) (2022-06-24)
|
|
8
16
|
|
|
9
17
|
|
|
@@ -8,5 +8,6 @@ export declare class DotnetYoshi extends BaseStrategy {
|
|
|
8
8
|
constructor(options: BaseStrategyOptions);
|
|
9
9
|
protected buildReleaseNotes(conventionalCommits: ConventionalCommit[], newVersion: Version, newVersionTag: TagName, latestRelease?: Release): Promise<string>;
|
|
10
10
|
private getApi;
|
|
11
|
+
getDefaultComponent(): Promise<string | undefined>;
|
|
11
12
|
protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
|
|
12
13
|
}
|
|
@@ -63,6 +63,11 @@ class DotnetYoshi extends base_1.BaseStrategy {
|
|
|
63
63
|
throw e;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
async getDefaultComponent() {
|
|
67
|
+
// default component is based on the path
|
|
68
|
+
const pathParts = this.path.split('/');
|
|
69
|
+
return pathParts[pathParts.length - 1];
|
|
70
|
+
}
|
|
66
71
|
async buildUpdates(options) {
|
|
67
72
|
const updates = [];
|
|
68
73
|
const version = options.newVersion;
|
|
@@ -78,17 +83,18 @@ class DotnetYoshi extends base_1.BaseStrategy {
|
|
|
78
83
|
updater: new changelog_1.Changelog({
|
|
79
84
|
version,
|
|
80
85
|
changelogEntry: options.changelogEntry,
|
|
86
|
+
versionHeaderRegex: '\n## Version [0-9[]+',
|
|
81
87
|
}),
|
|
82
88
|
});
|
|
83
89
|
}
|
|
84
|
-
if (!
|
|
90
|
+
if (!component) {
|
|
85
91
|
logger_1.logger.warn('Dotnet strategy expects to use components, could not update all files');
|
|
86
92
|
return updates;
|
|
87
93
|
}
|
|
88
94
|
updates.push({
|
|
89
95
|
path: 'apis/apis.json',
|
|
90
96
|
createIfMissing: false,
|
|
91
|
-
updater: new apis_1.Apis(
|
|
97
|
+
updater: new apis_1.Apis(component, version),
|
|
92
98
|
});
|
|
93
99
|
return updates;
|
|
94
100
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { DefaultUpdater, UpdateOptions } from './default';
|
|
2
2
|
interface ChangelogOptions extends UpdateOptions {
|
|
3
3
|
changelogEntry: string;
|
|
4
|
+
versionHeaderRegex?: string;
|
|
4
5
|
}
|
|
5
6
|
export declare class Changelog extends DefaultUpdater {
|
|
6
7
|
changelogEntry: string;
|
|
8
|
+
readonly versionHeaderRegex: RegExp;
|
|
7
9
|
constructor(options: ChangelogOptions);
|
|
8
10
|
updateContent(content: string | undefined): string;
|
|
9
11
|
private header;
|
|
@@ -15,15 +15,18 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.Changelog = void 0;
|
|
17
17
|
const default_1 = require("./default");
|
|
18
|
+
const DEFAULT_VERSION_HEADER_REGEX = '\n###? v?[0-9[]';
|
|
18
19
|
class Changelog extends default_1.DefaultUpdater {
|
|
19
20
|
constructor(options) {
|
|
21
|
+
var _a;
|
|
20
22
|
super(options);
|
|
21
23
|
this.changelogEntry = options.changelogEntry;
|
|
24
|
+
this.versionHeaderRegex = new RegExp((_a = options.versionHeaderRegex) !== null && _a !== void 0 ? _a : DEFAULT_VERSION_HEADER_REGEX, 's');
|
|
22
25
|
}
|
|
23
26
|
updateContent(content) {
|
|
24
27
|
content = content || '';
|
|
25
28
|
// Handle both H2 (features/BREAKING CHANGES) and H3 (fixes).
|
|
26
|
-
const lastEntryIndex = content.search(
|
|
29
|
+
const lastEntryIndex = content.search(this.versionHeaderRegex);
|
|
27
30
|
if (lastEntryIndex === -1) {
|
|
28
31
|
return `${this.header()}\n${this.changelogEntry}\n`;
|
|
29
32
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../../src/updaters/changelog.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uCAAwD;
|
|
1
|
+
{"version":3,"file":"changelog.js","sourceRoot":"","sources":["../../../src/updaters/changelog.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uCAAwD;AAOxD,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAEvD,MAAa,SAAU,SAAQ,wBAAc;IAI3C,YAAY,OAAyB;;QACnC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;QAC7C,IAAI,CAAC,kBAAkB,GAAG,IAAI,MAAM,CAClC,MAAA,OAAO,CAAC,kBAAkB,mCAAI,4BAA4B,EAC1D,GAAG,CACJ,CAAC;IACJ,CAAC;IAED,aAAa,CAAC,OAA2B;QACvC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QACxB,6DAA6D;QAC7D,MAAM,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC/D,IAAI,cAAc,KAAK,CAAC,CAAC,EAAE;YACzB,OAAO,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC,cAAc,IAAI,CAAC;SACrD;aAAM;YACL,MAAM,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;YAChD,MAAM,KAAK,GAAG,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;YAC5C,OAAO,GAAG,MAAM,KAAK,IAAI,CAAC,cAAc,KAAK,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,IAAI,CAAC;SACpE;IACH,CAAC;IACO,MAAM;QACZ,OAAO;;CAEV,CAAC;IACA,CAAC;CACF;AA9BD,8BA8BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "13.18.
|
|
3
|
+
"version": "13.18.6",
|
|
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",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@octokit/types": "
|
|
40
|
+
"@octokit/types": "6.37.0",
|
|
41
41
|
"@types/chai": "^4.1.7",
|
|
42
42
|
"@types/diff": "^5.0.2",
|
|
43
43
|
"@types/iarna__toml": "^2.0.1",
|