release-please 16.10.0 → 16.10.2

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.
@@ -14,4 +14,4 @@ export { Logger, setLogger } from './util/logger';
14
14
  export { GitHub } from './github';
15
15
  export declare const configSchema: any;
16
16
  export declare const manifestSchema: any;
17
- export declare const VERSION = "16.10.0";
17
+ export declare const VERSION = "16.10.2";
@@ -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.10.0';
39
+ exports.VERSION = '16.10.2';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -69,6 +69,7 @@ export interface ReleaserConfig {
69
69
  releaseLabels?: string[];
70
70
  extraLabels?: string[];
71
71
  initialVersion?: string;
72
+ signoff?: string;
72
73
  changelogSections?: ChangelogSection[];
73
74
  changelogPath?: string;
74
75
  changelogType?: ChangelogNotesType;
@@ -99,6 +100,7 @@ interface ReleaserConfigJson {
99
100
  'changelog-sections'?: ChangelogSection[];
100
101
  'release-as'?: string;
101
102
  'skip-github-release'?: boolean;
103
+ signoff?: string;
102
104
  draft?: boolean;
103
105
  prerelease?: boolean;
104
106
  'draft-pull-request'?: boolean;
@@ -814,6 +814,7 @@ function extractReleaserConfig(config) {
814
814
  skipSnapshot: config['skip-snapshot'],
815
815
  initialVersion: config['initial-version'],
816
816
  excludePaths: config['exclude-paths'],
817
+ signoff: config['signoff'],
817
818
  };
818
819
  }
819
820
  /**
@@ -1026,7 +1027,7 @@ async function latestReleaseVersion(github, targetBranch, releaseFilter, config,
1026
1027
  return candidateTagVersion.sort((a, b) => b.compare(a))[0];
1027
1028
  }
1028
1029
  function mergeReleaserConfig(defaultConfig, pathConfig) {
1029
- 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, _1, _2, _3, _4;
1030
+ 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, _1, _2, _3, _4, _5;
1030
1031
  return {
1031
1032
  releaseType: (_b = (_a = pathConfig.releaseType) !== null && _a !== void 0 ? _a : defaultConfig.releaseType) !== null && _b !== void 0 ? _b : 'node',
1032
1033
  bumpMinorPreMajor: (_c = pathConfig.bumpMinorPreMajor) !== null && _c !== void 0 ? _c : defaultConfig.bumpMinorPreMajor,
@@ -1040,22 +1041,23 @@ function mergeReleaserConfig(defaultConfig, pathConfig) {
1040
1041
  releaseAs: (_l = pathConfig.releaseAs) !== null && _l !== void 0 ? _l : defaultConfig.releaseAs,
1041
1042
  skipGithubRelease: (_m = pathConfig.skipGithubRelease) !== null && _m !== void 0 ? _m : defaultConfig.skipGithubRelease,
1042
1043
  draft: (_o = pathConfig.draft) !== null && _o !== void 0 ? _o : defaultConfig.draft,
1043
- prerelease: (_p = pathConfig.prerelease) !== null && _p !== void 0 ? _p : defaultConfig.prerelease,
1044
- component: (_q = pathConfig.component) !== null && _q !== void 0 ? _q : defaultConfig.component,
1045
- packageName: (_r = pathConfig.packageName) !== null && _r !== void 0 ? _r : defaultConfig.packageName,
1046
- versionFile: (_s = pathConfig.versionFile) !== null && _s !== void 0 ? _s : defaultConfig.versionFile,
1047
- extraFiles: (_t = pathConfig.extraFiles) !== null && _t !== void 0 ? _t : defaultConfig.extraFiles,
1048
- includeComponentInTag: (_u = pathConfig.includeComponentInTag) !== null && _u !== void 0 ? _u : defaultConfig.includeComponentInTag,
1049
- includeVInTag: (_v = pathConfig.includeVInTag) !== null && _v !== void 0 ? _v : defaultConfig.includeVInTag,
1050
- tagSeparator: (_w = pathConfig.tagSeparator) !== null && _w !== void 0 ? _w : defaultConfig.tagSeparator,
1051
- pullRequestTitlePattern: (_x = pathConfig.pullRequestTitlePattern) !== null && _x !== void 0 ? _x : defaultConfig.pullRequestTitlePattern,
1052
- pullRequestHeader: (_y = pathConfig.pullRequestHeader) !== null && _y !== void 0 ? _y : defaultConfig.pullRequestHeader,
1053
- pullRequestFooter: (_z = pathConfig.pullRequestFooter) !== null && _z !== void 0 ? _z : defaultConfig.pullRequestFooter,
1054
- separatePullRequests: (_0 = pathConfig.separatePullRequests) !== null && _0 !== void 0 ? _0 : defaultConfig.separatePullRequests,
1055
- skipSnapshot: (_1 = pathConfig.skipSnapshot) !== null && _1 !== void 0 ? _1 : defaultConfig.skipSnapshot,
1056
- initialVersion: (_2 = pathConfig.initialVersion) !== null && _2 !== void 0 ? _2 : defaultConfig.initialVersion,
1057
- extraLabels: (_3 = pathConfig.extraLabels) !== null && _3 !== void 0 ? _3 : defaultConfig.extraLabels,
1058
- excludePaths: (_4 = pathConfig.excludePaths) !== null && _4 !== void 0 ? _4 : defaultConfig.excludePaths,
1044
+ draftPullRequest: (_p = pathConfig.draftPullRequest) !== null && _p !== void 0 ? _p : defaultConfig.draftPullRequest,
1045
+ prerelease: (_q = pathConfig.prerelease) !== null && _q !== void 0 ? _q : defaultConfig.prerelease,
1046
+ component: (_r = pathConfig.component) !== null && _r !== void 0 ? _r : defaultConfig.component,
1047
+ packageName: (_s = pathConfig.packageName) !== null && _s !== void 0 ? _s : defaultConfig.packageName,
1048
+ versionFile: (_t = pathConfig.versionFile) !== null && _t !== void 0 ? _t : defaultConfig.versionFile,
1049
+ extraFiles: (_u = pathConfig.extraFiles) !== null && _u !== void 0 ? _u : defaultConfig.extraFiles,
1050
+ includeComponentInTag: (_v = pathConfig.includeComponentInTag) !== null && _v !== void 0 ? _v : defaultConfig.includeComponentInTag,
1051
+ includeVInTag: (_w = pathConfig.includeVInTag) !== null && _w !== void 0 ? _w : defaultConfig.includeVInTag,
1052
+ tagSeparator: (_x = pathConfig.tagSeparator) !== null && _x !== void 0 ? _x : defaultConfig.tagSeparator,
1053
+ pullRequestTitlePattern: (_y = pathConfig.pullRequestTitlePattern) !== null && _y !== void 0 ? _y : defaultConfig.pullRequestTitlePattern,
1054
+ pullRequestHeader: (_z = pathConfig.pullRequestHeader) !== null && _z !== void 0 ? _z : defaultConfig.pullRequestHeader,
1055
+ pullRequestFooter: (_0 = pathConfig.pullRequestFooter) !== null && _0 !== void 0 ? _0 : defaultConfig.pullRequestFooter,
1056
+ separatePullRequests: (_1 = pathConfig.separatePullRequests) !== null && _1 !== void 0 ? _1 : defaultConfig.separatePullRequests,
1057
+ skipSnapshot: (_2 = pathConfig.skipSnapshot) !== null && _2 !== void 0 ? _2 : defaultConfig.skipSnapshot,
1058
+ initialVersion: (_3 = pathConfig.initialVersion) !== null && _3 !== void 0 ? _3 : defaultConfig.initialVersion,
1059
+ extraLabels: (_4 = pathConfig.extraLabels) !== null && _4 !== void 0 ? _4 : defaultConfig.extraLabels,
1060
+ excludePaths: (_5 = pathConfig.excludePaths) !== null && _5 !== void 0 ? _5 : defaultConfig.excludePaths,
1059
1061
  };
1060
1062
  }
1061
1063
  /**
@@ -114,6 +114,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
114
114
  const updater = new package_json_1.PackageJson({
115
115
  version: newVersion,
116
116
  versionsMap: updatedVersions,
117
+ updatePeerDependencies: this.updatePeerDependencies,
117
118
  });
118
119
  const dependencyNotes = getChangelogDepsNotes(pkg, updatedPackage, updatedVersions, this.logger);
119
120
  existingCandidate.pullRequest.updates =
@@ -194,6 +195,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
194
195
  updater: new package_json_1.PackageJson({
195
196
  version: newVersion,
196
197
  versionsMap: updatedVersions,
198
+ updatePeerDependencies: this.updatePeerDependencies,
197
199
  }),
198
200
  },
199
201
  {
@@ -202,6 +204,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
202
204
  updater: new package_json_1.PackageJson({
203
205
  version: newVersion,
204
206
  versionsMap: updatedVersions,
207
+ updatePeerDependencies: this.updatePeerDependencies,
205
208
  }),
206
209
  },
207
210
  {
@@ -1,6 +1,6 @@
1
1
  import { Logger } from '../../util/logger';
2
2
  import { Version, VersionsMap } from '../../version';
3
- import { DefaultUpdater } from '../default';
3
+ import { DefaultUpdater, UpdateOptions } from '../default';
4
4
  export type PackageJsonDescriptor = {
5
5
  name?: string;
6
6
  resolved?: string;
@@ -11,10 +11,15 @@ export type PackageJsonDescriptor = {
11
11
  peerDependencies?: Record<string, string>;
12
12
  optionalDependencies?: Record<string, string>;
13
13
  };
14
+ export interface PackageJsonOptions extends UpdateOptions {
15
+ updatePeerDependencies?: boolean;
16
+ }
14
17
  /**
15
18
  * This updates a Node.js package.json file's main version.
16
19
  */
17
20
  export declare class PackageJson extends DefaultUpdater {
21
+ private updatePeerDependencies;
22
+ constructor(options: PackageJsonOptions);
18
23
  /**
19
24
  * Given initial file contents, return updated contents.
20
25
  * @param {string} content The initial content
@@ -21,6 +21,11 @@ const default_1 = require("../default");
21
21
  * This updates a Node.js package.json file's main version.
22
22
  */
23
23
  class PackageJson extends default_1.DefaultUpdater {
24
+ constructor(options) {
25
+ super(options);
26
+ this.updatePeerDependencies = false;
27
+ this.updatePeerDependencies = options.updatePeerDependencies || false;
28
+ }
24
29
  /**
25
30
  * Given initial file contents, return updated contents.
26
31
  * @param {string} content The initial content
@@ -40,7 +45,7 @@ class PackageJson extends default_1.DefaultUpdater {
40
45
  if (parsed.devDependencies) {
41
46
  updateDependencies(parsed.devDependencies, this.versionsMap);
42
47
  }
43
- if (parsed.peerDependencies) {
48
+ if (parsed.peerDependencies && this.updatePeerDependencies) {
44
49
  updateDependencies(parsed.peerDependencies, this.versionsMap);
45
50
  }
46
51
  if (parsed.optionalDependencies) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "16.10.0",
3
+ "version": "16.10.2",
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",
@@ -54,7 +54,7 @@
54
54
  "@types/xmldom": "^0.1.31",
55
55
  "@types/yargs": "^17.0.0",
56
56
  "ajv": "^8.11.0",
57
- "ajv-formats": "^2.1.1",
57
+ "ajv-formats": "^3.0.0",
58
58
  "c8": "^9.0.0",
59
59
  "chai": "^4.2.0",
60
60
  "config-chain": "^1.1.13",