@release-please-oss/release-please 0.0.0 → 17.11.3

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.
Files changed (310) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +280 -0
  3. package/build/src/bin/release-please.d.ts +22 -0
  4. package/build/src/bin/release-please.js +727 -0
  5. package/build/src/bootstrapper.d.ts +18 -0
  6. package/build/src/bootstrapper.js +64 -0
  7. package/build/src/changelog-notes/default.d.ts +15 -0
  8. package/build/src/changelog-notes/default.js +96 -0
  9. package/build/src/changelog-notes/github.d.ts +8 -0
  10. package/build/src/changelog-notes/github.js +29 -0
  11. package/build/src/changelog-notes.d.ts +22 -0
  12. package/build/src/changelog-notes.js +40 -0
  13. package/build/src/commit.d.ts +33 -0
  14. package/build/src/commit.js +422 -0
  15. package/build/src/errors/index.d.ts +36 -0
  16. package/build/src/errors/index.js +77 -0
  17. package/build/src/factories/changelog-notes-factory.d.ts +16 -0
  18. package/build/src/factories/changelog-notes-factory.js +44 -0
  19. package/build/src/factories/plugin-factory.d.ts +23 -0
  20. package/build/src/factories/plugin-factory.js +94 -0
  21. package/build/src/factories/versioning-strategy-factory.d.ts +16 -0
  22. package/build/src/factories/versioning-strategy-factory.js +52 -0
  23. package/build/src/factory.d.ts +18 -0
  24. package/build/src/factory.js +161 -0
  25. package/build/src/github-api.d.ts +260 -0
  26. package/build/src/github-api.js +714 -0
  27. package/build/src/github.d.ts +306 -0
  28. package/build/src/github.js +769 -0
  29. package/build/src/index.d.ts +17 -0
  30. package/build/src/index.js +41 -0
  31. package/build/src/local-github.d.ts +270 -0
  32. package/build/src/local-github.js +756 -0
  33. package/build/src/manifest.d.ts +370 -0
  34. package/build/src/manifest.js +1142 -0
  35. package/build/src/plugin.d.ts +37 -0
  36. package/build/src/plugin.js +57 -0
  37. package/build/src/plugins/cargo-workspace.d.ts +58 -0
  38. package/build/src/plugins/cargo-workspace.js +339 -0
  39. package/build/src/plugins/group-priority.d.ts +29 -0
  40. package/build/src/plugins/group-priority.js +82 -0
  41. package/build/src/plugins/linked-versions.d.ts +36 -0
  42. package/build/src/plugins/linked-versions.js +137 -0
  43. package/build/src/plugins/maven-workspace.d.ts +81 -0
  44. package/build/src/plugins/maven-workspace.js +431 -0
  45. package/build/src/plugins/merge.d.ts +27 -0
  46. package/build/src/plugins/merge.js +99 -0
  47. package/build/src/plugins/node-workspace.d.ts +50 -0
  48. package/build/src/plugins/node-workspace.js +352 -0
  49. package/build/src/plugins/sentence-case.d.ts +19 -0
  50. package/build/src/plugins/sentence-case.js +80 -0
  51. package/build/src/plugins/workspace.d.ts +173 -0
  52. package/build/src/plugins/workspace.js +308 -0
  53. package/build/src/pull-request.d.ts +11 -0
  54. package/build/src/pull-request.js +16 -0
  55. package/build/src/release-pull-request.d.ts +14 -0
  56. package/build/src/release-pull-request.js +16 -0
  57. package/build/src/release.d.ts +7 -0
  58. package/build/src/release.js +16 -0
  59. package/build/src/repository.d.ts +5 -0
  60. package/build/src/repository.js +16 -0
  61. package/build/src/scm.d.ts +80 -0
  62. package/build/src/scm.js +16 -0
  63. package/build/src/strategies/base.d.ts +162 -0
  64. package/build/src/strategies/base.js +494 -0
  65. package/build/src/strategies/bazel.d.ts +7 -0
  66. package/build/src/strategies/bazel.js +49 -0
  67. package/build/src/strategies/dart.d.ts +8 -0
  68. package/build/src/strategies/dart.js +73 -0
  69. package/build/src/strategies/dotnet-yoshi.d.ts +13 -0
  70. package/build/src/strategies/dotnet-yoshi.js +109 -0
  71. package/build/src/strategies/elixir.d.ts +5 -0
  72. package/build/src/strategies/elixir.js +46 -0
  73. package/build/src/strategies/expo.d.ts +15 -0
  74. package/build/src/strategies/expo.js +51 -0
  75. package/build/src/strategies/go-librarian.d.ts +11 -0
  76. package/build/src/strategies/go-librarian.js +84 -0
  77. package/build/src/strategies/go-yoshi.d.ts +14 -0
  78. package/build/src/strategies/go-yoshi.js +168 -0
  79. package/build/src/strategies/go.d.ts +7 -0
  80. package/build/src/strategies/go.js +53 -0
  81. package/build/src/strategies/helm.d.ts +8 -0
  82. package/build/src/strategies/helm.js +73 -0
  83. package/build/src/strategies/java-yoshi-mono-repo.d.ts +22 -0
  84. package/build/src/strategies/java-yoshi-mono-repo.js +308 -0
  85. package/build/src/strategies/java-yoshi.d.ts +20 -0
  86. package/build/src/strategies/java-yoshi.js +210 -0
  87. package/build/src/strategies/java.d.ts +28 -0
  88. package/build/src/strategies/java.js +176 -0
  89. package/build/src/strategies/krm-blueprint.d.ts +7 -0
  90. package/build/src/strategies/krm-blueprint.js +65 -0
  91. package/build/src/strategies/maven.d.ts +9 -0
  92. package/build/src/strategies/maven.js +56 -0
  93. package/build/src/strategies/node-librarian.d.ts +10 -0
  94. package/build/src/strategies/node-librarian.js +121 -0
  95. package/build/src/strategies/node.d.ts +10 -0
  96. package/build/src/strategies/node.js +111 -0
  97. package/build/src/strategies/ocaml.d.ts +5 -0
  98. package/build/src/strategies/ocaml.js +86 -0
  99. package/build/src/strategies/php-librarian.d.ts +6 -0
  100. package/build/src/strategies/php-librarian.js +35 -0
  101. package/build/src/strategies/php-yoshi.d.ts +13 -0
  102. package/build/src/strategies/php-yoshi.js +255 -0
  103. package/build/src/strategies/php.d.ts +6 -0
  104. package/build/src/strategies/php.js +76 -0
  105. package/build/src/strategies/python-librarian.d.ts +6 -0
  106. package/build/src/strategies/python-librarian.js +35 -0
  107. package/build/src/strategies/python.d.ts +11 -0
  108. package/build/src/strategies/python.js +175 -0
  109. package/build/src/strategies/r.d.ts +8 -0
  110. package/build/src/strategies/r.js +67 -0
  111. package/build/src/strategies/ruby-librarian.d.ts +6 -0
  112. package/build/src/strategies/ruby-librarian.js +35 -0
  113. package/build/src/strategies/ruby-yoshi.d.ts +13 -0
  114. package/build/src/strategies/ruby-yoshi.js +97 -0
  115. package/build/src/strategies/ruby.d.ts +9 -0
  116. package/build/src/strategies/ruby.js +71 -0
  117. package/build/src/strategies/rust.d.ts +17 -0
  118. package/build/src/strategies/rust.js +149 -0
  119. package/build/src/strategies/sfdx.d.ts +9 -0
  120. package/build/src/strategies/sfdx.js +67 -0
  121. package/build/src/strategies/simple.d.ts +7 -0
  122. package/build/src/strategies/simple.js +51 -0
  123. package/build/src/strategies/terraform-module.d.ts +7 -0
  124. package/build/src/strategies/terraform-module.js +90 -0
  125. package/build/src/strategy.d.ts +68 -0
  126. package/build/src/strategy.js +16 -0
  127. package/build/src/update.d.ts +24 -0
  128. package/build/src/update.js +16 -0
  129. package/build/src/updaters/base-xml.d.ts +19 -0
  130. package/build/src/updaters/base-xml.js +43 -0
  131. package/build/src/updaters/bazel/module-bazel.d.ts +7 -0
  132. package/build/src/updaters/bazel/module-bazel.js +33 -0
  133. package/build/src/updaters/changelog-json.d.ts +29 -0
  134. package/build/src/updaters/changelog-json.js +100 -0
  135. package/build/src/updaters/changelog.d.ts +13 -0
  136. package/build/src/updaters/changelog.js +55 -0
  137. package/build/src/updaters/composite.d.ts +20 -0
  138. package/build/src/updaters/composite.js +65 -0
  139. package/build/src/updaters/dart/pubspec-yaml.d.ts +13 -0
  140. package/build/src/updaters/dart/pubspec-yaml.js +50 -0
  141. package/build/src/updaters/default.d.ts +21 -0
  142. package/build/src/updaters/default.js +36 -0
  143. package/build/src/updaters/dotnet/apis.d.ts +18 -0
  144. package/build/src/updaters/dotnet/apis.js +45 -0
  145. package/build/src/updaters/dotnet/csproj.d.ts +12 -0
  146. package/build/src/updaters/dotnet/csproj.js +33 -0
  147. package/build/src/updaters/elixir/elixir-mix-exs.d.ts +13 -0
  148. package/build/src/updaters/elixir/elixir-mix-exs.js +42 -0
  149. package/build/src/updaters/expo/app-json.d.ts +31 -0
  150. package/build/src/updaters/expo/app-json.js +67 -0
  151. package/build/src/updaters/generic-json.d.ts +14 -0
  152. package/build/src/updaters/generic-json.js +54 -0
  153. package/build/src/updaters/generic-toml.d.ts +21 -0
  154. package/build/src/updaters/generic-toml.js +66 -0
  155. package/build/src/updaters/generic-xml.d.ts +8 -0
  156. package/build/src/updaters/generic-xml.js +38 -0
  157. package/build/src/updaters/generic-yaml.d.ts +23 -0
  158. package/build/src/updaters/generic-yaml.js +85 -0
  159. package/build/src/updaters/generic.d.ts +54 -0
  160. package/build/src/updaters/generic.js +187 -0
  161. package/build/src/updaters/go/version-go.d.ts +4 -0
  162. package/build/src/updaters/go/version-go.js +24 -0
  163. package/build/src/updaters/helm/chart-yaml.d.ts +13 -0
  164. package/build/src/updaters/helm/chart-yaml.js +41 -0
  165. package/build/src/updaters/java/java-released.d.ts +28 -0
  166. package/build/src/updaters/java/java-released.js +59 -0
  167. package/build/src/updaters/java/java-update.d.ts +21 -0
  168. package/build/src/updaters/java/java-update.js +80 -0
  169. package/build/src/updaters/java/pom-xml.d.ts +29 -0
  170. package/build/src/updaters/java/pom-xml.js +135 -0
  171. package/build/src/updaters/java/versions-manifest.d.ts +19 -0
  172. package/build/src/updaters/java/versions-manifest.js +71 -0
  173. package/build/src/updaters/krm/krm-blueprint-version.d.ts +13 -0
  174. package/build/src/updaters/krm/krm-blueprint-version.js +46 -0
  175. package/build/src/updaters/librarian-yaml.d.ts +45 -0
  176. package/build/src/updaters/librarian-yaml.js +149 -0
  177. package/build/src/updaters/node/package-json.d.ts +46 -0
  178. package/build/src/updaters/node/package-json.js +106 -0
  179. package/build/src/updaters/node/package-lock-json.d.ts +14 -0
  180. package/build/src/updaters/node/package-lock-json.js +83 -0
  181. package/build/src/updaters/node/samples-package-json.d.ts +24 -0
  182. package/build/src/updaters/node/samples-package-json.js +49 -0
  183. package/build/src/updaters/ocaml/dune-project.d.ts +13 -0
  184. package/build/src/updaters/ocaml/dune-project.js +37 -0
  185. package/build/src/updaters/ocaml/esy-json.d.ts +13 -0
  186. package/build/src/updaters/ocaml/esy-json.js +37 -0
  187. package/build/src/updaters/ocaml/opam.d.ts +13 -0
  188. package/build/src/updaters/ocaml/opam.js +37 -0
  189. package/build/src/updaters/php/php-client-version.d.ts +12 -0
  190. package/build/src/updaters/php/php-client-version.js +32 -0
  191. package/build/src/updaters/php/root-composer-update-packages.d.ts +13 -0
  192. package/build/src/updaters/php/root-composer-update-packages.js +60 -0
  193. package/build/src/updaters/python/pyproject-toml.d.ts +29 -0
  194. package/build/src/updaters/python/pyproject-toml.js +53 -0
  195. package/build/src/updaters/python/python-file-with-version.d.ts +12 -0
  196. package/build/src/updaters/python/python-file-with-version.js +32 -0
  197. package/build/src/updaters/python/setup-cfg.d.ts +12 -0
  198. package/build/src/updaters/python/setup-cfg.js +32 -0
  199. package/build/src/updaters/python/setup-py.d.ts +12 -0
  200. package/build/src/updaters/python/setup-py.js +32 -0
  201. package/build/src/updaters/r/description.d.ts +12 -0
  202. package/build/src/updaters/r/description.js +32 -0
  203. package/build/src/updaters/r/news.d.ts +12 -0
  204. package/build/src/updaters/r/news.js +49 -0
  205. package/build/src/updaters/raw-content.d.ts +19 -0
  206. package/build/src/updaters/raw-content.js +39 -0
  207. package/build/src/updaters/release-please-config.d.ts +8 -0
  208. package/build/src/updaters/release-please-config.js +80 -0
  209. package/build/src/updaters/release-please-manifest.d.ts +4 -0
  210. package/build/src/updaters/release-please-manifest.js +34 -0
  211. package/build/src/updaters/ruby/common.d.ts +17 -0
  212. package/build/src/updaters/ruby/common.js +46 -0
  213. package/build/src/updaters/ruby/gemfile-lock.d.ts +24 -0
  214. package/build/src/updaters/ruby/gemfile-lock.js +53 -0
  215. package/build/src/updaters/ruby/version-rb.d.ts +12 -0
  216. package/build/src/updaters/ruby/version-rb.js +34 -0
  217. package/build/src/updaters/rust/cargo-lock.d.ts +16 -0
  218. package/build/src/updaters/rust/cargo-lock.js +64 -0
  219. package/build/src/updaters/rust/cargo-toml.d.ts +13 -0
  220. package/build/src/updaters/rust/cargo-toml.js +89 -0
  221. package/build/src/updaters/rust/common.d.ts +54 -0
  222. package/build/src/updaters/rust/common.js +35 -0
  223. package/build/src/updaters/sfdx/sfdx-project-json.d.ts +21 -0
  224. package/build/src/updaters/sfdx/sfdx-project-json.js +41 -0
  225. package/build/src/updaters/terraform/metadata-version.d.ts +13 -0
  226. package/build/src/updaters/terraform/metadata-version.js +37 -0
  227. package/build/src/updaters/terraform/module-version.d.ts +13 -0
  228. package/build/src/updaters/terraform/module-version.js +37 -0
  229. package/build/src/updaters/terraform/readme.d.ts +12 -0
  230. package/build/src/updaters/terraform/readme.js +32 -0
  231. package/build/src/util/branch-name.d.ts +20 -0
  232. package/build/src/util/branch-name.js +225 -0
  233. package/build/src/util/code-suggester/default-options-handler.d.ts +10 -0
  234. package/build/src/util/code-suggester/default-options-handler.js +45 -0
  235. package/build/src/util/code-suggester/errors.d.ts +4 -0
  236. package/build/src/util/code-suggester/errors.js +24 -0
  237. package/build/src/util/code-suggester/github/branch.d.ts +45 -0
  238. package/build/src/util/code-suggester/github/branch.js +118 -0
  239. package/build/src/util/code-suggester/github/commit-and-push.d.ts +51 -0
  240. package/build/src/util/code-suggester/github/commit-and-push.js +141 -0
  241. package/build/src/util/code-suggester/github/create-commit.d.ts +20 -0
  242. package/build/src/util/code-suggester/github/create-commit.js +60 -0
  243. package/build/src/util/code-suggester/github/fork.d.ts +15 -0
  244. package/build/src/util/code-suggester/github/fork.js +48 -0
  245. package/build/src/util/code-suggester/github/labels.d.ts +14 -0
  246. package/build/src/util/code-suggester/github/labels.js +42 -0
  247. package/build/src/util/code-suggester/github/open-pull-request.d.ts +16 -0
  248. package/build/src/util/code-suggester/github/open-pull-request.js +56 -0
  249. package/build/src/util/code-suggester/index.d.ts +28 -0
  250. package/build/src/util/code-suggester/index.js +110 -0
  251. package/build/src/util/code-suggester/logger.d.ts +4 -0
  252. package/build/src/util/code-suggester/logger.js +37 -0
  253. package/build/src/util/code-suggester/types.d.ts +109 -0
  254. package/build/src/util/code-suggester/types.js +30 -0
  255. package/build/src/util/coerce-option.d.ts +1 -0
  256. package/build/src/util/coerce-option.js +40 -0
  257. package/build/src/util/commit-exclude.d.ts +10 -0
  258. package/build/src/util/commit-exclude.js +49 -0
  259. package/build/src/util/commit-split.d.ts +26 -0
  260. package/build/src/util/commit-split.js +100 -0
  261. package/build/src/util/commit-utils.d.ts +1 -0
  262. package/build/src/util/commit-utils.js +34 -0
  263. package/build/src/util/filter-commits.d.ts +12 -0
  264. package/build/src/util/filter-commits.js +59 -0
  265. package/build/src/util/indent-commit.d.ts +2 -0
  266. package/build/src/util/indent-commit.js +39 -0
  267. package/build/src/util/json-stringify.d.ts +1 -0
  268. package/build/src/util/json-stringify.js +22 -0
  269. package/build/src/util/logger.d.ts +24 -0
  270. package/build/src/util/logger.js +54 -0
  271. package/build/src/util/pull-request-body.d.ts +25 -0
  272. package/build/src/util/pull-request-body.js +147 -0
  273. package/build/src/util/pull-request-overflow-handler.d.ts +54 -0
  274. package/build/src/util/pull-request-overflow-handler.js +78 -0
  275. package/build/src/util/pull-request-title.d.ts +22 -0
  276. package/build/src/util/pull-request-title.js +146 -0
  277. package/build/src/util/signoff-commit-message.d.ts +1 -0
  278. package/build/src/util/signoff-commit-message.js +35 -0
  279. package/build/src/util/tag-name.d.ts +10 -0
  280. package/build/src/util/tag-name.js +42 -0
  281. package/build/src/util/toml-edit.d.ts +16 -0
  282. package/build/src/util/toml-edit.js +126 -0
  283. package/build/src/version.d.ts +35 -0
  284. package/build/src/version.js +74 -0
  285. package/build/src/versioning-strategies/always-bump-major.d.ts +10 -0
  286. package/build/src/versioning-strategies/always-bump-major.js +28 -0
  287. package/build/src/versioning-strategies/always-bump-minor.d.ts +10 -0
  288. package/build/src/versioning-strategies/always-bump-minor.js +28 -0
  289. package/build/src/versioning-strategies/always-bump-patch.d.ts +11 -0
  290. package/build/src/versioning-strategies/always-bump-patch.js +29 -0
  291. package/build/src/versioning-strategies/default.d.ts +48 -0
  292. package/build/src/versioning-strategies/default.js +102 -0
  293. package/build/src/versioning-strategies/dependency-manifest.d.ts +15 -0
  294. package/build/src/versioning-strategies/dependency-manifest.js +103 -0
  295. package/build/src/versioning-strategies/java-add-snapshot.d.ts +13 -0
  296. package/build/src/versioning-strategies/java-add-snapshot.js +54 -0
  297. package/build/src/versioning-strategies/java-snapshot.d.ts +13 -0
  298. package/build/src/versioning-strategies/java-snapshot.js +70 -0
  299. package/build/src/versioning-strategies/prerelease.d.ts +20 -0
  300. package/build/src/versioning-strategies/prerelease.js +163 -0
  301. package/build/src/versioning-strategies/service-pack.d.ts +12 -0
  302. package/build/src/versioning-strategies/service-pack.js +47 -0
  303. package/build/src/versioning-strategy.d.ts +90 -0
  304. package/build/src/versioning-strategy.js +82 -0
  305. package/package.json +113 -4
  306. package/schemas/config.json +513 -0
  307. package/schemas/manifest.json +9 -0
  308. package/templates/commit.hbs +2 -0
  309. package/templates/header.hbs +9 -0
  310. package/templates/template.hbs +19 -0
@@ -0,0 +1,121 @@
1
+ "use strict";
2
+ // Copyright 2026 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.NodeLibrarian = void 0;
17
+ const base_1 = require("./base");
18
+ const changelog_json_1 = require("../updaters/changelog-json");
19
+ const package_lock_json_1 = require("../updaters/node/package-lock-json");
20
+ const samples_package_json_1 = require("../updaters/node/samples-package-json");
21
+ const changelog_1 = require("../updaters/changelog");
22
+ const package_json_1 = require("../updaters/node/package-json");
23
+ const librarian_yaml_1 = require("../updaters/librarian-yaml");
24
+ const errors_1 = require("../errors");
25
+ const filter_commits_1 = require("../util/filter-commits");
26
+ class NodeLibrarian extends base_1.BaseStrategy {
27
+ async buildUpdates(options) {
28
+ var _a;
29
+ const updates = [];
30
+ const version = options.newVersion;
31
+ const versionsMap = options.versionsMap;
32
+ const packageName = (_a = (await this.getPackageName())) !== null && _a !== void 0 ? _a : '';
33
+ const lockFiles = ['package-lock.json', 'npm-shrinkwrap.json'];
34
+ lockFiles.forEach(lockFile => {
35
+ updates.push({
36
+ path: this.addPath(lockFile),
37
+ createIfMissing: false,
38
+ updater: new package_lock_json_1.PackageLockJson({
39
+ version,
40
+ versionsMap,
41
+ }),
42
+ });
43
+ });
44
+ updates.push({
45
+ path: this.addPath('samples/package.json'),
46
+ createIfMissing: false,
47
+ updater: new samples_package_json_1.SamplesPackageJson({
48
+ version,
49
+ packageName,
50
+ }),
51
+ });
52
+ !this.skipChangelog &&
53
+ updates.push({
54
+ path: this.addPath(this.changelogPath),
55
+ createIfMissing: true,
56
+ updater: new changelog_1.Changelog({
57
+ version,
58
+ changelogEntry: options.changelogEntry,
59
+ }),
60
+ });
61
+ updates.push({
62
+ path: this.addPath('package.json'),
63
+ createIfMissing: false,
64
+ cachedFileContents: this.pkgJsonContents,
65
+ updater: new package_json_1.PackageJson({
66
+ version,
67
+ }),
68
+ });
69
+ // If a machine readable changelog.json exists update it:
70
+ if (options.commits && packageName && !this.skipChangelog) {
71
+ const commits = (0, filter_commits_1.filterCommits)(options.commits, this.changelogSections);
72
+ updates.push({
73
+ path: 'changelog.json',
74
+ createIfMissing: false,
75
+ updater: new changelog_json_1.ChangelogJson({
76
+ artifactName: packageName,
77
+ version,
78
+ commits,
79
+ language: 'JAVASCRIPT',
80
+ }),
81
+ });
82
+ }
83
+ // Update librarian.yaml if this package exists within it.
84
+ updates.push({
85
+ path: 'librarian.yaml',
86
+ createIfMissing: false,
87
+ updater: new librarian_yaml_1.LibrarianYamlUpdater({
88
+ version,
89
+ packagePath: this.path,
90
+ }),
91
+ });
92
+ return updates;
93
+ }
94
+ async getDefaultPackageName() {
95
+ const pkgJsonContents = await this.getPkgJsonContents();
96
+ const pkg = JSON.parse(pkgJsonContents.parsedContent);
97
+ return pkg.name;
98
+ }
99
+ normalizeComponent(component) {
100
+ if (!component) {
101
+ return '';
102
+ }
103
+ return component.match(/^@[\w-]+\//) ? component.split('/')[1] : component;
104
+ }
105
+ async getPkgJsonContents() {
106
+ if (!this.pkgJsonContents) {
107
+ try {
108
+ this.pkgJsonContents = await this.github.getFileContentsOnBranch(this.addPath('package.json'), this.targetBranch);
109
+ }
110
+ catch (e) {
111
+ if (e instanceof errors_1.FileNotFoundError) {
112
+ throw new errors_1.MissingRequiredFileError(this.addPath('package.json'), 'node', `${this.repository.owner}/${this.repository.repo}`);
113
+ }
114
+ throw e;
115
+ }
116
+ }
117
+ return this.pkgJsonContents;
118
+ }
119
+ }
120
+ exports.NodeLibrarian = NodeLibrarian;
121
+ //# sourceMappingURL=node-librarian.js.map
@@ -0,0 +1,10 @@
1
+ import { BaseStrategy, BuildUpdatesOptions } from './base';
2
+ import { Update } from '../update';
3
+ import { GitHubFileContents } from '@google-automations/git-file-utils';
4
+ export declare class Node extends BaseStrategy {
5
+ private pkgJsonContents?;
6
+ protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
7
+ getDefaultPackageName(): Promise<string | undefined>;
8
+ protected normalizeComponent(component: string | undefined): string;
9
+ protected getPkgJsonContents(): Promise<GitHubFileContents>;
10
+ }
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ // Copyright 2019 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Node = void 0;
17
+ const base_1 = require("./base");
18
+ const changelog_json_1 = require("../updaters/changelog-json");
19
+ const package_lock_json_1 = require("../updaters/node/package-lock-json");
20
+ const samples_package_json_1 = require("../updaters/node/samples-package-json");
21
+ const changelog_1 = require("../updaters/changelog");
22
+ const package_json_1 = require("../updaters/node/package-json");
23
+ const errors_1 = require("../errors");
24
+ const filter_commits_1 = require("../util/filter-commits");
25
+ class Node extends base_1.BaseStrategy {
26
+ async buildUpdates(options) {
27
+ var _a;
28
+ const updates = [];
29
+ const version = options.newVersion;
30
+ const versionsMap = options.versionsMap;
31
+ const packageName = (_a = (await this.getPackageName())) !== null && _a !== void 0 ? _a : '';
32
+ const lockFiles = ['package-lock.json', 'npm-shrinkwrap.json'];
33
+ lockFiles.forEach(lockFile => {
34
+ updates.push({
35
+ path: this.addPath(lockFile),
36
+ createIfMissing: false,
37
+ updater: new package_lock_json_1.PackageLockJson({
38
+ version,
39
+ versionsMap,
40
+ }),
41
+ });
42
+ });
43
+ updates.push({
44
+ path: this.addPath('samples/package.json'),
45
+ createIfMissing: false,
46
+ updater: new samples_package_json_1.SamplesPackageJson({
47
+ version,
48
+ packageName,
49
+ }),
50
+ });
51
+ !this.skipChangelog &&
52
+ updates.push({
53
+ path: this.addPath(this.changelogPath),
54
+ createIfMissing: true,
55
+ updater: new changelog_1.Changelog({
56
+ version,
57
+ changelogEntry: options.changelogEntry,
58
+ }),
59
+ });
60
+ updates.push({
61
+ path: this.addPath('package.json'),
62
+ createIfMissing: false,
63
+ cachedFileContents: this.pkgJsonContents,
64
+ updater: new package_json_1.PackageJson({
65
+ version,
66
+ }),
67
+ });
68
+ // If a machine readable changelog.json exists update it:
69
+ if (options.commits && packageName && !this.skipChangelog) {
70
+ const commits = (0, filter_commits_1.filterCommits)(options.commits, this.changelogSections);
71
+ updates.push({
72
+ path: 'changelog.json',
73
+ createIfMissing: false,
74
+ updater: new changelog_json_1.ChangelogJson({
75
+ artifactName: packageName,
76
+ version,
77
+ commits,
78
+ language: 'JAVASCRIPT',
79
+ }),
80
+ });
81
+ }
82
+ return updates;
83
+ }
84
+ async getDefaultPackageName() {
85
+ const pkgJsonContents = await this.getPkgJsonContents();
86
+ const pkg = JSON.parse(pkgJsonContents.parsedContent);
87
+ return pkg.name;
88
+ }
89
+ normalizeComponent(component) {
90
+ if (!component) {
91
+ return '';
92
+ }
93
+ return component.match(/^@[\w-]+\//) ? component.split('/')[1] : component;
94
+ }
95
+ async getPkgJsonContents() {
96
+ if (!this.pkgJsonContents) {
97
+ try {
98
+ this.pkgJsonContents = await this.github.getFileContentsOnBranch(this.addPath('package.json'), this.targetBranch);
99
+ }
100
+ catch (e) {
101
+ if (e instanceof errors_1.FileNotFoundError) {
102
+ throw new errors_1.MissingRequiredFileError(this.addPath('package.json'), 'node', `${this.repository.owner}/${this.repository.repo}`);
103
+ }
104
+ throw e;
105
+ }
106
+ }
107
+ return this.pkgJsonContents;
108
+ }
109
+ }
110
+ exports.Node = Node;
111
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1,5 @@
1
+ import { BaseStrategy, BuildUpdatesOptions } from './base';
2
+ import { Update } from '../update';
3
+ export declare class OCaml extends BaseStrategy {
4
+ protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
5
+ }
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ // Copyright 2021 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.OCaml = void 0;
17
+ // Generic
18
+ const changelog_1 = require("../updaters/changelog");
19
+ // OCaml
20
+ const opam_1 = require("../updaters/ocaml/opam");
21
+ const esy_json_1 = require("../updaters/ocaml/esy-json");
22
+ const dune_project_1 = require("../updaters/ocaml/dune-project");
23
+ const base_1 = require("./base");
24
+ const notEsyLock = (path) => !path.startsWith('esy.lock');
25
+ class OCaml extends base_1.BaseStrategy {
26
+ async buildUpdates(options) {
27
+ const updates = [];
28
+ const version = options.newVersion;
29
+ !this.skipChangelog &&
30
+ updates.push({
31
+ path: this.addPath(this.changelogPath),
32
+ createIfMissing: true,
33
+ updater: new changelog_1.Changelog({
34
+ version,
35
+ changelogEntry: options.changelogEntry,
36
+ }),
37
+ });
38
+ const jsonPaths = await this.github.findFilesByExtension('json', this.path);
39
+ for (const path of jsonPaths) {
40
+ if (notEsyLock(path)) {
41
+ const contents = await this.github.getFileContents(this.addPath(path));
42
+ const pkg = JSON.parse(contents.parsedContent);
43
+ if (pkg.version !== undefined) {
44
+ updates.push({
45
+ path: this.addPath(path),
46
+ createIfMissing: false,
47
+ cachedFileContents: contents,
48
+ updater: new esy_json_1.EsyJson({
49
+ version,
50
+ }),
51
+ });
52
+ }
53
+ }
54
+ }
55
+ const opamPaths = await this.github.findFilesByExtension('opam', this.path);
56
+ opamPaths.filter(notEsyLock).forEach(path => {
57
+ updates.push({
58
+ path: this.addPath(path),
59
+ createIfMissing: false,
60
+ updater: new opam_1.Opam({
61
+ version,
62
+ }),
63
+ });
64
+ });
65
+ const opamLockedPaths = await this.github.findFilesByExtension('opam.locked', this.path);
66
+ opamLockedPaths.filter(notEsyLock).forEach(path => {
67
+ updates.push({
68
+ path: this.addPath(path),
69
+ createIfMissing: false,
70
+ updater: new opam_1.Opam({
71
+ version,
72
+ }),
73
+ });
74
+ });
75
+ updates.push({
76
+ path: this.addPath('dune-project'),
77
+ createIfMissing: false,
78
+ updater: new dune_project_1.DuneProject({
79
+ version,
80
+ }),
81
+ });
82
+ return updates;
83
+ }
84
+ }
85
+ exports.OCaml = OCaml;
86
+ //# sourceMappingURL=ocaml.js.map
@@ -0,0 +1,6 @@
1
+ import { PHPYoshi } from './php-yoshi';
2
+ import { BuildUpdatesOptions } from './base';
3
+ import { Update } from '../update';
4
+ export declare class PHPLibrarian extends PHPYoshi {
5
+ protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
6
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ // Copyright 2026 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PHPLibrarian = void 0;
17
+ const php_yoshi_1 = require("./php-yoshi");
18
+ const librarian_yaml_1 = require("../updaters/librarian-yaml");
19
+ class PHPLibrarian extends php_yoshi_1.PHPYoshi {
20
+ async buildUpdates(options) {
21
+ const updates = await super.buildUpdates(options);
22
+ // Update librarian.yaml if this package exists within it.
23
+ updates.push({
24
+ path: 'librarian.yaml',
25
+ createIfMissing: false,
26
+ updater: new librarian_yaml_1.LibrarianYamlUpdater({
27
+ version: options.newVersion,
28
+ packagePath: this.path,
29
+ }),
30
+ });
31
+ return updates;
32
+ }
33
+ }
34
+ exports.PHPLibrarian = PHPLibrarian;
35
+ //# sourceMappingURL=php-librarian.js.map
@@ -0,0 +1,13 @@
1
+ import { BaseStrategy, BuildUpdatesOptions, BaseStrategyOptions } from './base';
2
+ import { Update } from '../update';
3
+ import { Commit } from '../commit';
4
+ import { Release } from '../release';
5
+ import { ReleasePullRequest } from '../release-pull-request';
6
+ import { PullRequestBody } from '../util/pull-request-body';
7
+ import { BumpReleaseOptions } from '../strategy';
8
+ export declare class PHPYoshi extends BaseStrategy {
9
+ constructor(options: BaseStrategyOptions);
10
+ buildReleasePullRequest(commits: Commit[], latestRelease?: Release, draft?: boolean, labels?: string[], bumpOnlyOptions?: BumpReleaseOptions): Promise<ReleasePullRequest | undefined>;
11
+ protected parsePullRequestBody(pullRequestBody: string): Promise<PullRequestBody | undefined>;
12
+ protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
13
+ }
@@ -0,0 +1,255 @@
1
+ "use strict";
2
+ // Copyright 2021 Google LLC
3
+ //
4
+ // Licensed under the Apache License, Version 2.0 (the "License");
5
+ // you may not use this file except in compliance with the License.
6
+ // You may obtain a copy of the License at
7
+ //
8
+ // http://www.apache.org/licenses/LICENSE-2.0
9
+ //
10
+ // Unless required by applicable law or agreed to in writing, software
11
+ // distributed under the License is distributed on an "AS IS" BASIS,
12
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ // See the License for the specific language governing permissions and
14
+ // limitations under the License.
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PHPYoshi = void 0;
17
+ const base_1 = require("./base");
18
+ const changelog_1 = require("../updaters/changelog");
19
+ const root_composer_update_packages_1 = require("../updaters/php/root-composer-update-packages");
20
+ const php_client_version_1 = require("../updaters/php/php-client-version");
21
+ const version_1 = require("../version");
22
+ const commit_1 = require("../commit");
23
+ const commit_split_1 = require("../util/commit-split");
24
+ const default_1 = require("../updaters/default");
25
+ const tag_name_1 = require("../util/tag-name");
26
+ const pull_request_title_1 = require("../util/pull-request-title");
27
+ const branch_name_1 = require("../util/branch-name");
28
+ const pull_request_body_1 = require("../util/pull-request-body");
29
+ const errors_1 = require("../errors");
30
+ const CHANGELOG_SECTIONS = [
31
+ { type: 'feat', section: 'Features' },
32
+ { type: 'fix', section: 'Bug Fixes' },
33
+ { type: 'perf', section: 'Performance Improvements' },
34
+ { type: 'revert', section: 'Reverts' },
35
+ { type: 'docs', section: 'Documentation' },
36
+ { type: 'misc', section: 'Miscellaneous' },
37
+ { type: 'chore', section: 'Chores', hidden: true },
38
+ { type: 'style', section: 'Styles', hidden: true },
39
+ { type: 'refactor', section: 'Code Refactoring', hidden: true },
40
+ { type: 'test', section: 'Tests', hidden: true },
41
+ { type: 'build', section: 'Build System', hidden: true },
42
+ { type: 'ci', section: 'Continuous Integration', hidden: true },
43
+ ];
44
+ class PHPYoshi extends base_1.BaseStrategy {
45
+ constructor(options) {
46
+ super({
47
+ ...options,
48
+ changelogSections: CHANGELOG_SECTIONS,
49
+ });
50
+ }
51
+ async buildReleasePullRequest(commits, latestRelease, draft, labels = [], bumpOnlyOptions) {
52
+ var _a, _b, _c;
53
+ const conventionalCommits = await this.postProcessCommits((0, commit_1.parseConventionalCommits)(commits, this.logger));
54
+ if (!bumpOnlyOptions && conventionalCommits.length === 0) {
55
+ this.logger.info(`No commits for path: ${this.path}, skipping`);
56
+ return undefined;
57
+ }
58
+ const versionOverrides = {};
59
+ commits.forEach(commit => {
60
+ var _a;
61
+ Object.entries(parseVersionOverrides(((_a = commit.pullRequest) === null || _a === void 0 ? void 0 : _a.body) || '')).forEach(([directory, version]) => {
62
+ versionOverrides[directory] = version;
63
+ });
64
+ });
65
+ const newVersion = latestRelease
66
+ ? await this.versioningStrategy.bump(latestRelease.tag.version, conventionalCommits)
67
+ : this.initialReleaseVersion();
68
+ const cs = new commit_split_1.CommitSplit();
69
+ const splitCommits = cs.split(conventionalCommits);
70
+ const topLevelDirectories = Object.keys(splitCommits).sort();
71
+ const versionsMap = new Map();
72
+ const directoryVersionContents = {};
73
+ const component = await this.getComponent();
74
+ const newVersionTag = new tag_name_1.TagName(newVersion, component, this.tagSeparator, this.includeVInTag);
75
+ let releaseNotesBody = `## ${newVersion.toString()}`;
76
+ for (const directory of topLevelDirectories) {
77
+ try {
78
+ const contents = await this.github.getFileContentsOnBranch(this.addPath(`${directory}/VERSION`), this.targetBranch);
79
+ const composer = await this.github.getFileJson(this.addPath(`${directory}/composer.json`), this.targetBranch);
80
+ directoryVersionContents[directory] = {
81
+ versionContents: contents,
82
+ composer,
83
+ };
84
+ const newVersion = versionOverrides[directory]
85
+ ? version_1.Version.parse(versionOverrides[directory])
86
+ : await this.versioningStrategy.bump(version_1.Version.parse(contents.parsedContent), splitCommits[directory]);
87
+ versionsMap.set(composer.name, newVersion);
88
+ const partialReleaseNotes = await this.changelogNotes.buildNotes(splitCommits[directory], {
89
+ host: this.changelogHost,
90
+ owner: this.repository.owner,
91
+ repository: this.repository.repo,
92
+ version: newVersion.toString(),
93
+ previousTag: (_a = latestRelease === null || latestRelease === void 0 ? void 0 : latestRelease.tag) === null || _a === void 0 ? void 0 : _a.toString(),
94
+ currentTag: newVersionTag.toString(),
95
+ targetBranch: this.targetBranch,
96
+ changelogSections: this.changelogSections,
97
+ });
98
+ releaseNotesBody = updatePHPChangelogEntry(`${composer.name} ${newVersion.toString()}`, releaseNotesBody, partialReleaseNotes);
99
+ }
100
+ catch (err) {
101
+ if (err instanceof errors_1.FileNotFoundError) {
102
+ // if the updated path has no VERSION, assume this isn't a
103
+ // module that needs updating.
104
+ continue;
105
+ }
106
+ else {
107
+ throw err;
108
+ }
109
+ }
110
+ }
111
+ const pullRequestTitle = pull_request_title_1.PullRequestTitle.ofComponentTargetBranchVersion(component || '', this.targetBranch, newVersion);
112
+ const branchName = component
113
+ ? branch_name_1.BranchName.ofComponentTargetBranch(component, this.targetBranch)
114
+ : branch_name_1.BranchName.ofTargetBranch(this.targetBranch);
115
+ const updates = await this.buildUpdates({
116
+ changelogEntry: releaseNotesBody,
117
+ skipChangelog: this.skipChangelog,
118
+ newVersion,
119
+ versionsMap,
120
+ latestVersion: latestRelease === null || latestRelease === void 0 ? void 0 : latestRelease.tag.version,
121
+ commits: conventionalCommits, // TODO(@bcoe): these commits will need to be divided into multiple changelog.json updates.
122
+ });
123
+ for (const directory in directoryVersionContents) {
124
+ const componentInfo = directoryVersionContents[directory];
125
+ const version = versionsMap.get(componentInfo.composer.name);
126
+ if (!version) {
127
+ this.logger.warn(`No version found for ${componentInfo.composer.name}`);
128
+ continue;
129
+ }
130
+ updates.push({
131
+ path: this.addPath(`${directory}/VERSION`),
132
+ createIfMissing: false,
133
+ cachedFileContents: componentInfo.versionContents,
134
+ updater: new default_1.DefaultUpdater({
135
+ version,
136
+ }),
137
+ });
138
+ updates.push({
139
+ path: this.addPath(`${directory}/composer.json`),
140
+ createIfMissing: false,
141
+ updater: new root_composer_update_packages_1.RootComposerUpdatePackages({
142
+ version,
143
+ }),
144
+ });
145
+ if ((_c = (_b = componentInfo.composer.extra) === null || _b === void 0 ? void 0 : _b.component) === null || _c === void 0 ? void 0 : _c.entry) {
146
+ updates.push({
147
+ path: this.addPath(`${directory}/${componentInfo.composer.extra.component.entry}`),
148
+ createIfMissing: false,
149
+ updater: new php_client_version_1.PHPClientVersion({
150
+ version,
151
+ }),
152
+ });
153
+ }
154
+ }
155
+ // TODO use pullrequest header here?
156
+ const pullRequestBody = new pull_request_body_1.PullRequestBody([
157
+ {
158
+ component,
159
+ version: newVersion,
160
+ notes: releaseNotesBody,
161
+ },
162
+ ]);
163
+ return {
164
+ title: pullRequestTitle,
165
+ body: pullRequestBody,
166
+ updates,
167
+ labels: [...labels, ...this.extraLabels],
168
+ headRefName: branchName.toString(),
169
+ version: newVersion,
170
+ draft: draft !== null && draft !== void 0 ? draft : false,
171
+ };
172
+ }
173
+ async parsePullRequestBody(pullRequestBody) {
174
+ const body = pull_request_body_1.PullRequestBody.parse(pullRequestBody, this.logger);
175
+ if (!body) {
176
+ return undefined;
177
+ }
178
+ const component = await this.getComponent();
179
+ const notes = body.releaseData
180
+ .map(release => {
181
+ var _a;
182
+ return `<details><summary>${release.component}: ${(_a = release.version) === null || _a === void 0 ? void 0 : _a.toString()}</summary>\n\n${release.notes}\n</details>`;
183
+ })
184
+ .join('\n\n');
185
+ return new pull_request_body_1.PullRequestBody([{ component, notes }], {
186
+ footer: body.footer,
187
+ header: body.header,
188
+ });
189
+ }
190
+ async buildUpdates(options) {
191
+ const updates = [];
192
+ const version = options.newVersion;
193
+ const versionsMap = options.versionsMap;
194
+ !this.skipChangelog &&
195
+ updates.push({
196
+ path: this.addPath(this.changelogPath),
197
+ createIfMissing: true,
198
+ updater: new changelog_1.Changelog({
199
+ version,
200
+ changelogEntry: options.changelogEntry,
201
+ }),
202
+ });
203
+ // update VERSION file
204
+ updates.push({
205
+ path: this.addPath('VERSION'),
206
+ createIfMissing: false,
207
+ updater: new default_1.DefaultUpdater({
208
+ version,
209
+ }),
210
+ });
211
+ // update the aggregate package information in the root composer.json
212
+ updates.push({
213
+ path: this.addPath('composer.json'),
214
+ createIfMissing: false,
215
+ updater: new root_composer_update_packages_1.RootComposerUpdatePackages({
216
+ version,
217
+ versionsMap,
218
+ }),
219
+ });
220
+ return updates;
221
+ }
222
+ }
223
+ exports.PHPYoshi = PHPYoshi;
224
+ function parseVersionOverrides(body) {
225
+ // look for 'BEGIN_VERSION_OVERRIDE' section of pull request body
226
+ const versionOverrides = {};
227
+ if (body) {
228
+ const overrideMessage = (body.split('BEGIN_VERSION_OVERRIDE')[1] || '')
229
+ .split('END_VERSION_OVERRIDE')[0]
230
+ .trim();
231
+ if (overrideMessage) {
232
+ overrideMessage.split('\n').forEach(line => {
233
+ const [directory, version] = line.split(':');
234
+ versionOverrides[directory.trim()] = version.trim();
235
+ });
236
+ }
237
+ }
238
+ return versionOverrides;
239
+ }
240
+ function updatePHPChangelogEntry(pkgKey, changelogEntry, entryUpdate) {
241
+ // Remove the first line of the entry, in favor of <summary>.
242
+ // This also allows us to use the same regex for extracting release
243
+ // notes (since the string "## v0.0.0" doesn't show up multiple times).
244
+ const entryUpdateSplit = entryUpdate.split(/\r?\n/);
245
+ entryUpdateSplit.shift();
246
+ entryUpdate = entryUpdateSplit.join('\n');
247
+ return `${changelogEntry}
248
+
249
+ <details><summary>${pkgKey}</summary>
250
+
251
+ ${entryUpdate}
252
+
253
+ </details>`;
254
+ }
255
+ //# sourceMappingURL=php-yoshi.js.map
@@ -0,0 +1,6 @@
1
+ import { BaseStrategy, BuildUpdatesOptions, BaseStrategyOptions } from './base';
2
+ import { Update } from '../update';
3
+ export declare class PHP extends BaseStrategy {
4
+ constructor(options: BaseStrategyOptions);
5
+ protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
6
+ }