release-please 14.8.0 → 14.9.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,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [14.9.0](https://github.com/googleapis/release-please/compare/v14.8.0...v14.9.0) (2022-09-30)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Add initial version to base strategy ([#1665](https://github.com/googleapis/release-please/issues/1665)) ([c867403](https://github.com/googleapis/release-please/commit/c867403e50cacbb88ddf545b2c0888f2c500edcc))
|
|
13
|
+
|
|
7
14
|
## [14.8.0](https://github.com/googleapis/release-please/compare/v14.7.2...v14.8.0) (2022-09-28)
|
|
8
15
|
|
|
9
16
|
|
package/build/src/manifest.d.ts
CHANGED
|
@@ -53,6 +53,7 @@ export interface ReleaserConfig {
|
|
|
53
53
|
separatePullRequests?: boolean;
|
|
54
54
|
labels?: string[];
|
|
55
55
|
releaseLabels?: string[];
|
|
56
|
+
initialVersion?: string;
|
|
56
57
|
changelogSections?: ChangelogSection[];
|
|
57
58
|
changelogPath?: string;
|
|
58
59
|
changelogType?: ChangelogNotesType;
|
|
@@ -98,6 +99,7 @@ interface ReleaserConfigJson {
|
|
|
98
99
|
'version-file'?: string;
|
|
99
100
|
'snapshot-label'?: string;
|
|
100
101
|
'skip-snapshot'?: boolean;
|
|
102
|
+
'initial-version'?: string;
|
|
101
103
|
}
|
|
102
104
|
export interface ManifestOptions {
|
|
103
105
|
bootstrapSha?: string;
|
package/build/src/manifest.js
CHANGED
|
@@ -743,6 +743,7 @@ function extractReleaserConfig(config) {
|
|
|
743
743
|
labels: (_a = config['label']) === null || _a === void 0 ? void 0 : _a.split(','),
|
|
744
744
|
releaseLabels: (_b = config['release-label']) === null || _b === void 0 ? void 0 : _b.split(','),
|
|
745
745
|
skipSnapshot: config['skip-snapshot'],
|
|
746
|
+
initialVersion: config['initial-version'],
|
|
746
747
|
};
|
|
747
748
|
}
|
|
748
749
|
/**
|
|
@@ -949,7 +950,7 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, config,
|
|
|
949
950
|
return candidateTagVersion.sort((a, b) => b.compare(a))[0];
|
|
950
951
|
}
|
|
951
952
|
function mergeReleaserConfig(defaultConfig, pathConfig) {
|
|
952
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
|
|
953
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
|
|
953
954
|
return {
|
|
954
955
|
releaseType: (_b = (_a = pathConfig.releaseType) !== null && _a !== void 0 ? _a : defaultConfig.releaseType) !== null && _b !== void 0 ? _b : 'node',
|
|
955
956
|
bumpMinorPreMajor: (_c = pathConfig.bumpMinorPreMajor) !== null && _c !== void 0 ? _c : defaultConfig.bumpMinorPreMajor,
|
|
@@ -974,6 +975,7 @@ function mergeReleaserConfig(defaultConfig, pathConfig) {
|
|
|
974
975
|
pullRequestHeader: (_x = pathConfig.pullRequestHeader) !== null && _x !== void 0 ? _x : defaultConfig.pullRequestHeader,
|
|
975
976
|
separatePullRequests: (_y = pathConfig.separatePullRequests) !== null && _y !== void 0 ? _y : defaultConfig.separatePullRequests,
|
|
976
977
|
skipSnapshot: (_z = pathConfig.skipSnapshot) !== null && _z !== void 0 ? _z : defaultConfig.skipSnapshot,
|
|
978
|
+
initialVersion: (_0 = pathConfig.initialVersion) !== null && _0 !== void 0 ? _0 : defaultConfig.initialVersion,
|
|
977
979
|
};
|
|
978
980
|
}
|
|
979
981
|
/**
|
|
@@ -47,6 +47,7 @@ export interface BaseStrategyOptions {
|
|
|
47
47
|
snapshotLabels?: string[];
|
|
48
48
|
skipSnapshot?: boolean;
|
|
49
49
|
logger?: Logger;
|
|
50
|
+
initialVersion?: string;
|
|
50
51
|
}
|
|
51
52
|
/**
|
|
52
53
|
* A strategy is responsible for determining which files are
|
|
@@ -68,6 +69,7 @@ export declare abstract class BaseStrategy implements Strategy {
|
|
|
68
69
|
private releaseAs?;
|
|
69
70
|
protected includeComponentInTag: boolean;
|
|
70
71
|
protected includeVInTag: boolean;
|
|
72
|
+
protected initialVersion?: string;
|
|
71
73
|
readonly pullRequestTitlePattern?: string;
|
|
72
74
|
readonly pullRequestHeader?: string;
|
|
73
75
|
readonly extraFiles: ExtraFile[];
|
|
@@ -62,6 +62,7 @@ class BaseStrategy {
|
|
|
62
62
|
this.pullRequestTitlePattern = options.pullRequestTitlePattern;
|
|
63
63
|
this.pullRequestHeader = options.pullRequestHeader;
|
|
64
64
|
this.extraFiles = options.extraFiles || [];
|
|
65
|
+
this.initialVersion = options.initialVersion;
|
|
65
66
|
}
|
|
66
67
|
/**
|
|
67
68
|
* Return the component for this strategy. This may be a computed field.
|
|
@@ -368,6 +369,9 @@ class BaseStrategy {
|
|
|
368
369
|
* Override this to handle the initial version of a new library.
|
|
369
370
|
*/
|
|
370
371
|
initialReleaseVersion() {
|
|
372
|
+
if (this.initialVersion) {
|
|
373
|
+
return version_1.Version.parse(this.initialVersion);
|
|
374
|
+
}
|
|
371
375
|
return version_1.Version.parse('1.0.0');
|
|
372
376
|
}
|
|
373
377
|
/**
|
package/package.json
CHANGED
package/schemas/config.json
CHANGED
|
@@ -199,6 +199,10 @@
|
|
|
199
199
|
"skip-snapshot": {
|
|
200
200
|
"description": "If set, do not propose snapshot pull requests. Used by `java` strategies.",
|
|
201
201
|
"type": "boolean"
|
|
202
|
+
},
|
|
203
|
+
"initial-version": {
|
|
204
|
+
"description": "Releases the initial library with a specified version",
|
|
205
|
+
"type": "string"
|
|
202
206
|
}
|
|
203
207
|
}
|
|
204
208
|
}
|