release-please 16.4.1 → 16.5.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.
@@ -43,12 +43,14 @@ class GitHub {
43
43
  this.getCommitFiles = wrapAsync(async (sha) => {
44
44
  this.logger.debug(`Backfilling file list for commit: ${sha}`);
45
45
  const files = [];
46
- for await (const resp of this.octokit.paginate.iterator(this.octokit.repos.getCommit, {
46
+ for await (const resp of this.octokit.paginate.iterator('GET /repos/{owner}/{repo}/commits/{ref}', {
47
47
  owner: this.repository.owner,
48
48
  repo: this.repository.repo,
49
49
  ref: sha,
50
50
  })) {
51
- for (const f of resp.data.files || []) {
51
+ // Paginate plugin doesn't have types for listing files on a commit
52
+ const data = resp.data;
53
+ for (const f of data.files || []) {
52
54
  if (f.filename) {
53
55
  files.push(f.filename);
54
56
  }
@@ -711,7 +713,7 @@ class GitHub {
711
713
  MERGED: 'closed',
712
714
  };
713
715
  let results = 0;
714
- for await (const { data: pulls } of this.octokit.paginate.iterator(this.octokit.rest.pulls.list, {
716
+ for await (const { data: pulls } of this.octokit.paginate.iterator('GET /repos/{owner}/{repo}/pulls', {
715
717
  state: statusMap[status],
716
718
  owner: this.repository.owner,
717
719
  repo: this.repository.repo,
@@ -921,7 +923,7 @@ class GitHub {
921
923
  async *tagIterator(options = {}) {
922
924
  const maxResults = options.maxResults || Number.MAX_SAFE_INTEGER;
923
925
  let results = 0;
924
- for await (const response of this.octokit.paginate.iterator(this.octokit.rest.repos.listTags, {
926
+ for await (const response of this.octokit.paginate.iterator('GET /repos/{owner}/{repo}/tags', {
925
927
  owner: this.repository.owner,
926
928
  repo: this.repository.repo,
927
929
  })) {
@@ -14,3 +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.5.1";
@@ -13,7 +13,7 @@
13
13
  // See the License for the specific language governing permissions and
14
14
  // limitations under the License.
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.manifestSchema = exports.configSchema = exports.GitHub = exports.setLogger = exports.registerVersioningStrategy = exports.getVersioningStrategyTypes = exports.registerPlugin = exports.getPluginTypes = exports.registerChangelogNotes = exports.getChangelogTypes = exports.registerReleaseType = exports.getReleaserTypes = exports.Manifest = exports.Errors = void 0;
16
+ exports.VERSION = exports.manifestSchema = exports.configSchema = exports.GitHub = exports.setLogger = exports.registerVersioningStrategy = exports.getVersioningStrategyTypes = exports.registerPlugin = exports.getPluginTypes = exports.registerChangelogNotes = exports.getChangelogTypes = exports.registerReleaseType = exports.getReleaserTypes = exports.Manifest = exports.Errors = void 0;
17
17
  exports.Errors = require("./errors");
18
18
  var manifest_1 = require("./manifest");
19
19
  Object.defineProperty(exports, "Manifest", { enumerable: true, get: function () { return manifest_1.Manifest; } });
@@ -35,4 +35,7 @@ var github_1 = require("./github");
35
35
  Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () { return github_1.GitHub; } });
36
36
  exports.configSchema = require('../../schemas/config.json');
37
37
  exports.manifestSchema = require('../../schemas/manifest.json');
38
+ // x-release-please-start-version
39
+ exports.VERSION = '16.5.1';
40
+ // x-release-please-end
38
41
  //# sourceMappingURL=index.js.map
@@ -54,10 +54,10 @@ var SUPPORTED_RANGE_PREFIXES;
54
54
  (function (SUPPORTED_RANGE_PREFIXES) {
55
55
  SUPPORTED_RANGE_PREFIXES["CARET"] = "^";
56
56
  SUPPORTED_RANGE_PREFIXES["TILDE"] = "~";
57
- SUPPORTED_RANGE_PREFIXES["GREATER_THAN"] = ">";
58
- SUPPORTED_RANGE_PREFIXES["LESS_THAN"] = "<";
59
57
  SUPPORTED_RANGE_PREFIXES["EQUAL_OR_GREATER_THAN"] = ">=";
60
58
  SUPPORTED_RANGE_PREFIXES["EQUAL_OR_LESS_THAN"] = "<=";
59
+ SUPPORTED_RANGE_PREFIXES["GREATER_THAN"] = ">";
60
+ SUPPORTED_RANGE_PREFIXES["LESS_THAN"] = "<";
61
61
  })(SUPPORTED_RANGE_PREFIXES || (SUPPORTED_RANGE_PREFIXES = {}));
62
62
  function detectRangePrefix(version) {
63
63
  return (Object.values(SUPPORTED_RANGE_PREFIXES).find(supportedRangePrefix => version.startsWith(supportedRangePrefix)) || '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "16.4.1",
3
+ "version": "16.5.1",
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",
@@ -67,7 +67,7 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@conventional-commits/parser": "^0.4.1",
70
- "@google-automations/git-file-utils": "^1.2.5",
70
+ "@google-automations/git-file-utils": "^2.0.0",
71
71
  "@iarna/toml": "^3.0.0",
72
72
  "@octokit/graphql": "^5.0.0",
73
73
  "@octokit/request": "^6.0.0",
@@ -94,7 +94,7 @@
94
94
  "typescript": "^4.6.4",
95
95
  "unist-util-visit": "^2.0.3",
96
96
  "unist-util-visit-parents": "^3.1.1",
97
- "xpath": "^0.0.32",
97
+ "xpath": "^0.0.34",
98
98
  "yaml": "^2.2.2",
99
99
  "yargs": "^17.0.0"
100
100
  },