@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.
- package/LICENSE +202 -0
- package/README.md +280 -0
- package/build/src/bin/release-please.d.ts +22 -0
- package/build/src/bin/release-please.js +727 -0
- package/build/src/bootstrapper.d.ts +18 -0
- package/build/src/bootstrapper.js +64 -0
- package/build/src/changelog-notes/default.d.ts +15 -0
- package/build/src/changelog-notes/default.js +96 -0
- package/build/src/changelog-notes/github.d.ts +8 -0
- package/build/src/changelog-notes/github.js +29 -0
- package/build/src/changelog-notes.d.ts +22 -0
- package/build/src/changelog-notes.js +40 -0
- package/build/src/commit.d.ts +33 -0
- package/build/src/commit.js +422 -0
- package/build/src/errors/index.d.ts +36 -0
- package/build/src/errors/index.js +77 -0
- package/build/src/factories/changelog-notes-factory.d.ts +16 -0
- package/build/src/factories/changelog-notes-factory.js +44 -0
- package/build/src/factories/plugin-factory.d.ts +23 -0
- package/build/src/factories/plugin-factory.js +94 -0
- package/build/src/factories/versioning-strategy-factory.d.ts +16 -0
- package/build/src/factories/versioning-strategy-factory.js +52 -0
- package/build/src/factory.d.ts +18 -0
- package/build/src/factory.js +161 -0
- package/build/src/github-api.d.ts +260 -0
- package/build/src/github-api.js +714 -0
- package/build/src/github.d.ts +306 -0
- package/build/src/github.js +769 -0
- package/build/src/index.d.ts +17 -0
- package/build/src/index.js +41 -0
- package/build/src/local-github.d.ts +270 -0
- package/build/src/local-github.js +756 -0
- package/build/src/manifest.d.ts +370 -0
- package/build/src/manifest.js +1142 -0
- package/build/src/plugin.d.ts +37 -0
- package/build/src/plugin.js +57 -0
- package/build/src/plugins/cargo-workspace.d.ts +58 -0
- package/build/src/plugins/cargo-workspace.js +339 -0
- package/build/src/plugins/group-priority.d.ts +29 -0
- package/build/src/plugins/group-priority.js +82 -0
- package/build/src/plugins/linked-versions.d.ts +36 -0
- package/build/src/plugins/linked-versions.js +137 -0
- package/build/src/plugins/maven-workspace.d.ts +81 -0
- package/build/src/plugins/maven-workspace.js +431 -0
- package/build/src/plugins/merge.d.ts +27 -0
- package/build/src/plugins/merge.js +99 -0
- package/build/src/plugins/node-workspace.d.ts +50 -0
- package/build/src/plugins/node-workspace.js +352 -0
- package/build/src/plugins/sentence-case.d.ts +19 -0
- package/build/src/plugins/sentence-case.js +80 -0
- package/build/src/plugins/workspace.d.ts +173 -0
- package/build/src/plugins/workspace.js +308 -0
- package/build/src/pull-request.d.ts +11 -0
- package/build/src/pull-request.js +16 -0
- package/build/src/release-pull-request.d.ts +14 -0
- package/build/src/release-pull-request.js +16 -0
- package/build/src/release.d.ts +7 -0
- package/build/src/release.js +16 -0
- package/build/src/repository.d.ts +5 -0
- package/build/src/repository.js +16 -0
- package/build/src/scm.d.ts +80 -0
- package/build/src/scm.js +16 -0
- package/build/src/strategies/base.d.ts +162 -0
- package/build/src/strategies/base.js +494 -0
- package/build/src/strategies/bazel.d.ts +7 -0
- package/build/src/strategies/bazel.js +49 -0
- package/build/src/strategies/dart.d.ts +8 -0
- package/build/src/strategies/dart.js +73 -0
- package/build/src/strategies/dotnet-yoshi.d.ts +13 -0
- package/build/src/strategies/dotnet-yoshi.js +109 -0
- package/build/src/strategies/elixir.d.ts +5 -0
- package/build/src/strategies/elixir.js +46 -0
- package/build/src/strategies/expo.d.ts +15 -0
- package/build/src/strategies/expo.js +51 -0
- package/build/src/strategies/go-librarian.d.ts +11 -0
- package/build/src/strategies/go-librarian.js +84 -0
- package/build/src/strategies/go-yoshi.d.ts +14 -0
- package/build/src/strategies/go-yoshi.js +168 -0
- package/build/src/strategies/go.d.ts +7 -0
- package/build/src/strategies/go.js +53 -0
- package/build/src/strategies/helm.d.ts +8 -0
- package/build/src/strategies/helm.js +73 -0
- package/build/src/strategies/java-yoshi-mono-repo.d.ts +22 -0
- package/build/src/strategies/java-yoshi-mono-repo.js +308 -0
- package/build/src/strategies/java-yoshi.d.ts +20 -0
- package/build/src/strategies/java-yoshi.js +210 -0
- package/build/src/strategies/java.d.ts +28 -0
- package/build/src/strategies/java.js +176 -0
- package/build/src/strategies/krm-blueprint.d.ts +7 -0
- package/build/src/strategies/krm-blueprint.js +65 -0
- package/build/src/strategies/maven.d.ts +9 -0
- package/build/src/strategies/maven.js +56 -0
- package/build/src/strategies/node-librarian.d.ts +10 -0
- package/build/src/strategies/node-librarian.js +121 -0
- package/build/src/strategies/node.d.ts +10 -0
- package/build/src/strategies/node.js +111 -0
- package/build/src/strategies/ocaml.d.ts +5 -0
- package/build/src/strategies/ocaml.js +86 -0
- package/build/src/strategies/php-librarian.d.ts +6 -0
- package/build/src/strategies/php-librarian.js +35 -0
- package/build/src/strategies/php-yoshi.d.ts +13 -0
- package/build/src/strategies/php-yoshi.js +255 -0
- package/build/src/strategies/php.d.ts +6 -0
- package/build/src/strategies/php.js +76 -0
- package/build/src/strategies/python-librarian.d.ts +6 -0
- package/build/src/strategies/python-librarian.js +35 -0
- package/build/src/strategies/python.d.ts +11 -0
- package/build/src/strategies/python.js +175 -0
- package/build/src/strategies/r.d.ts +8 -0
- package/build/src/strategies/r.js +67 -0
- package/build/src/strategies/ruby-librarian.d.ts +6 -0
- package/build/src/strategies/ruby-librarian.js +35 -0
- package/build/src/strategies/ruby-yoshi.d.ts +13 -0
- package/build/src/strategies/ruby-yoshi.js +97 -0
- package/build/src/strategies/ruby.d.ts +9 -0
- package/build/src/strategies/ruby.js +71 -0
- package/build/src/strategies/rust.d.ts +17 -0
- package/build/src/strategies/rust.js +149 -0
- package/build/src/strategies/sfdx.d.ts +9 -0
- package/build/src/strategies/sfdx.js +67 -0
- package/build/src/strategies/simple.d.ts +7 -0
- package/build/src/strategies/simple.js +51 -0
- package/build/src/strategies/terraform-module.d.ts +7 -0
- package/build/src/strategies/terraform-module.js +90 -0
- package/build/src/strategy.d.ts +68 -0
- package/build/src/strategy.js +16 -0
- package/build/src/update.d.ts +24 -0
- package/build/src/update.js +16 -0
- package/build/src/updaters/base-xml.d.ts +19 -0
- package/build/src/updaters/base-xml.js +43 -0
- package/build/src/updaters/bazel/module-bazel.d.ts +7 -0
- package/build/src/updaters/bazel/module-bazel.js +33 -0
- package/build/src/updaters/changelog-json.d.ts +29 -0
- package/build/src/updaters/changelog-json.js +100 -0
- package/build/src/updaters/changelog.d.ts +13 -0
- package/build/src/updaters/changelog.js +55 -0
- package/build/src/updaters/composite.d.ts +20 -0
- package/build/src/updaters/composite.js +65 -0
- package/build/src/updaters/dart/pubspec-yaml.d.ts +13 -0
- package/build/src/updaters/dart/pubspec-yaml.js +50 -0
- package/build/src/updaters/default.d.ts +21 -0
- package/build/src/updaters/default.js +36 -0
- package/build/src/updaters/dotnet/apis.d.ts +18 -0
- package/build/src/updaters/dotnet/apis.js +45 -0
- package/build/src/updaters/dotnet/csproj.d.ts +12 -0
- package/build/src/updaters/dotnet/csproj.js +33 -0
- package/build/src/updaters/elixir/elixir-mix-exs.d.ts +13 -0
- package/build/src/updaters/elixir/elixir-mix-exs.js +42 -0
- package/build/src/updaters/expo/app-json.d.ts +31 -0
- package/build/src/updaters/expo/app-json.js +67 -0
- package/build/src/updaters/generic-json.d.ts +14 -0
- package/build/src/updaters/generic-json.js +54 -0
- package/build/src/updaters/generic-toml.d.ts +21 -0
- package/build/src/updaters/generic-toml.js +66 -0
- package/build/src/updaters/generic-xml.d.ts +8 -0
- package/build/src/updaters/generic-xml.js +38 -0
- package/build/src/updaters/generic-yaml.d.ts +23 -0
- package/build/src/updaters/generic-yaml.js +85 -0
- package/build/src/updaters/generic.d.ts +54 -0
- package/build/src/updaters/generic.js +187 -0
- package/build/src/updaters/go/version-go.d.ts +4 -0
- package/build/src/updaters/go/version-go.js +24 -0
- package/build/src/updaters/helm/chart-yaml.d.ts +13 -0
- package/build/src/updaters/helm/chart-yaml.js +41 -0
- package/build/src/updaters/java/java-released.d.ts +28 -0
- package/build/src/updaters/java/java-released.js +59 -0
- package/build/src/updaters/java/java-update.d.ts +21 -0
- package/build/src/updaters/java/java-update.js +80 -0
- package/build/src/updaters/java/pom-xml.d.ts +29 -0
- package/build/src/updaters/java/pom-xml.js +135 -0
- package/build/src/updaters/java/versions-manifest.d.ts +19 -0
- package/build/src/updaters/java/versions-manifest.js +71 -0
- package/build/src/updaters/krm/krm-blueprint-version.d.ts +13 -0
- package/build/src/updaters/krm/krm-blueprint-version.js +46 -0
- package/build/src/updaters/librarian-yaml.d.ts +45 -0
- package/build/src/updaters/librarian-yaml.js +149 -0
- package/build/src/updaters/node/package-json.d.ts +46 -0
- package/build/src/updaters/node/package-json.js +106 -0
- package/build/src/updaters/node/package-lock-json.d.ts +14 -0
- package/build/src/updaters/node/package-lock-json.js +83 -0
- package/build/src/updaters/node/samples-package-json.d.ts +24 -0
- package/build/src/updaters/node/samples-package-json.js +49 -0
- package/build/src/updaters/ocaml/dune-project.d.ts +13 -0
- package/build/src/updaters/ocaml/dune-project.js +37 -0
- package/build/src/updaters/ocaml/esy-json.d.ts +13 -0
- package/build/src/updaters/ocaml/esy-json.js +37 -0
- package/build/src/updaters/ocaml/opam.d.ts +13 -0
- package/build/src/updaters/ocaml/opam.js +37 -0
- package/build/src/updaters/php/php-client-version.d.ts +12 -0
- package/build/src/updaters/php/php-client-version.js +32 -0
- package/build/src/updaters/php/root-composer-update-packages.d.ts +13 -0
- package/build/src/updaters/php/root-composer-update-packages.js +60 -0
- package/build/src/updaters/python/pyproject-toml.d.ts +29 -0
- package/build/src/updaters/python/pyproject-toml.js +53 -0
- package/build/src/updaters/python/python-file-with-version.d.ts +12 -0
- package/build/src/updaters/python/python-file-with-version.js +32 -0
- package/build/src/updaters/python/setup-cfg.d.ts +12 -0
- package/build/src/updaters/python/setup-cfg.js +32 -0
- package/build/src/updaters/python/setup-py.d.ts +12 -0
- package/build/src/updaters/python/setup-py.js +32 -0
- package/build/src/updaters/r/description.d.ts +12 -0
- package/build/src/updaters/r/description.js +32 -0
- package/build/src/updaters/r/news.d.ts +12 -0
- package/build/src/updaters/r/news.js +49 -0
- package/build/src/updaters/raw-content.d.ts +19 -0
- package/build/src/updaters/raw-content.js +39 -0
- package/build/src/updaters/release-please-config.d.ts +8 -0
- package/build/src/updaters/release-please-config.js +80 -0
- package/build/src/updaters/release-please-manifest.d.ts +4 -0
- package/build/src/updaters/release-please-manifest.js +34 -0
- package/build/src/updaters/ruby/common.d.ts +17 -0
- package/build/src/updaters/ruby/common.js +46 -0
- package/build/src/updaters/ruby/gemfile-lock.d.ts +24 -0
- package/build/src/updaters/ruby/gemfile-lock.js +53 -0
- package/build/src/updaters/ruby/version-rb.d.ts +12 -0
- package/build/src/updaters/ruby/version-rb.js +34 -0
- package/build/src/updaters/rust/cargo-lock.d.ts +16 -0
- package/build/src/updaters/rust/cargo-lock.js +64 -0
- package/build/src/updaters/rust/cargo-toml.d.ts +13 -0
- package/build/src/updaters/rust/cargo-toml.js +89 -0
- package/build/src/updaters/rust/common.d.ts +54 -0
- package/build/src/updaters/rust/common.js +35 -0
- package/build/src/updaters/sfdx/sfdx-project-json.d.ts +21 -0
- package/build/src/updaters/sfdx/sfdx-project-json.js +41 -0
- package/build/src/updaters/terraform/metadata-version.d.ts +13 -0
- package/build/src/updaters/terraform/metadata-version.js +37 -0
- package/build/src/updaters/terraform/module-version.d.ts +13 -0
- package/build/src/updaters/terraform/module-version.js +37 -0
- package/build/src/updaters/terraform/readme.d.ts +12 -0
- package/build/src/updaters/terraform/readme.js +32 -0
- package/build/src/util/branch-name.d.ts +20 -0
- package/build/src/util/branch-name.js +225 -0
- package/build/src/util/code-suggester/default-options-handler.d.ts +10 -0
- package/build/src/util/code-suggester/default-options-handler.js +45 -0
- package/build/src/util/code-suggester/errors.d.ts +4 -0
- package/build/src/util/code-suggester/errors.js +24 -0
- package/build/src/util/code-suggester/github/branch.d.ts +45 -0
- package/build/src/util/code-suggester/github/branch.js +118 -0
- package/build/src/util/code-suggester/github/commit-and-push.d.ts +51 -0
- package/build/src/util/code-suggester/github/commit-and-push.js +141 -0
- package/build/src/util/code-suggester/github/create-commit.d.ts +20 -0
- package/build/src/util/code-suggester/github/create-commit.js +60 -0
- package/build/src/util/code-suggester/github/fork.d.ts +15 -0
- package/build/src/util/code-suggester/github/fork.js +48 -0
- package/build/src/util/code-suggester/github/labels.d.ts +14 -0
- package/build/src/util/code-suggester/github/labels.js +42 -0
- package/build/src/util/code-suggester/github/open-pull-request.d.ts +16 -0
- package/build/src/util/code-suggester/github/open-pull-request.js +56 -0
- package/build/src/util/code-suggester/index.d.ts +28 -0
- package/build/src/util/code-suggester/index.js +110 -0
- package/build/src/util/code-suggester/logger.d.ts +4 -0
- package/build/src/util/code-suggester/logger.js +37 -0
- package/build/src/util/code-suggester/types.d.ts +109 -0
- package/build/src/util/code-suggester/types.js +30 -0
- package/build/src/util/coerce-option.d.ts +1 -0
- package/build/src/util/coerce-option.js +40 -0
- package/build/src/util/commit-exclude.d.ts +10 -0
- package/build/src/util/commit-exclude.js +49 -0
- package/build/src/util/commit-split.d.ts +26 -0
- package/build/src/util/commit-split.js +100 -0
- package/build/src/util/commit-utils.d.ts +1 -0
- package/build/src/util/commit-utils.js +34 -0
- package/build/src/util/filter-commits.d.ts +12 -0
- package/build/src/util/filter-commits.js +59 -0
- package/build/src/util/indent-commit.d.ts +2 -0
- package/build/src/util/indent-commit.js +39 -0
- package/build/src/util/json-stringify.d.ts +1 -0
- package/build/src/util/json-stringify.js +22 -0
- package/build/src/util/logger.d.ts +24 -0
- package/build/src/util/logger.js +54 -0
- package/build/src/util/pull-request-body.d.ts +25 -0
- package/build/src/util/pull-request-body.js +147 -0
- package/build/src/util/pull-request-overflow-handler.d.ts +54 -0
- package/build/src/util/pull-request-overflow-handler.js +78 -0
- package/build/src/util/pull-request-title.d.ts +22 -0
- package/build/src/util/pull-request-title.js +146 -0
- package/build/src/util/signoff-commit-message.d.ts +1 -0
- package/build/src/util/signoff-commit-message.js +35 -0
- package/build/src/util/tag-name.d.ts +10 -0
- package/build/src/util/tag-name.js +42 -0
- package/build/src/util/toml-edit.d.ts +16 -0
- package/build/src/util/toml-edit.js +126 -0
- package/build/src/version.d.ts +35 -0
- package/build/src/version.js +74 -0
- package/build/src/versioning-strategies/always-bump-major.d.ts +10 -0
- package/build/src/versioning-strategies/always-bump-major.js +28 -0
- package/build/src/versioning-strategies/always-bump-minor.d.ts +10 -0
- package/build/src/versioning-strategies/always-bump-minor.js +28 -0
- package/build/src/versioning-strategies/always-bump-patch.d.ts +11 -0
- package/build/src/versioning-strategies/always-bump-patch.js +29 -0
- package/build/src/versioning-strategies/default.d.ts +48 -0
- package/build/src/versioning-strategies/default.js +102 -0
- package/build/src/versioning-strategies/dependency-manifest.d.ts +15 -0
- package/build/src/versioning-strategies/dependency-manifest.js +103 -0
- package/build/src/versioning-strategies/java-add-snapshot.d.ts +13 -0
- package/build/src/versioning-strategies/java-add-snapshot.js +54 -0
- package/build/src/versioning-strategies/java-snapshot.d.ts +13 -0
- package/build/src/versioning-strategies/java-snapshot.js +70 -0
- package/build/src/versioning-strategies/prerelease.d.ts +20 -0
- package/build/src/versioning-strategies/prerelease.js +163 -0
- package/build/src/versioning-strategies/service-pack.d.ts +12 -0
- package/build/src/versioning-strategies/service-pack.js +47 -0
- package/build/src/versioning-strategy.d.ts +90 -0
- package/build/src/versioning-strategy.js +82 -0
- package/package.json +113 -4
- package/schemas/config.json +513 -0
- package/schemas/manifest.json +9 -0
- package/templates/commit.hbs +2 -0
- package/templates/header.hbs +9 -0
- package/templates/template.hbs +19 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2022 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.AlwaysBumpMinor = void 0;
|
|
17
|
+
const default_1 = require("./default");
|
|
18
|
+
const versioning_strategy_1 = require("../versioning-strategy");
|
|
19
|
+
/**
|
|
20
|
+
* This VersioningStrategy always bumps the minor version.
|
|
21
|
+
*/
|
|
22
|
+
class AlwaysBumpMinor extends default_1.DefaultVersioningStrategy {
|
|
23
|
+
determineReleaseType(_version, _commits) {
|
|
24
|
+
return new versioning_strategy_1.MinorVersionUpdate();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.AlwaysBumpMinor = AlwaysBumpMinor;
|
|
28
|
+
//# sourceMappingURL=always-bump-minor.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Version } from '../version';
|
|
2
|
+
import { ConventionalCommit } from '../commit';
|
|
3
|
+
import { DefaultVersioningStrategy } from './default';
|
|
4
|
+
import { VersionUpdater } from '../versioning-strategy';
|
|
5
|
+
/**
|
|
6
|
+
* This VersioningStrategy always bumps the patch version. This
|
|
7
|
+
* strategy is useful for backport branches.
|
|
8
|
+
*/
|
|
9
|
+
export declare class AlwaysBumpPatch extends DefaultVersioningStrategy {
|
|
10
|
+
determineReleaseType(_version: Version, _commits: ConventionalCommit[]): VersionUpdater;
|
|
11
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.AlwaysBumpPatch = void 0;
|
|
17
|
+
const default_1 = require("./default");
|
|
18
|
+
const versioning_strategy_1 = require("../versioning-strategy");
|
|
19
|
+
/**
|
|
20
|
+
* This VersioningStrategy always bumps the patch version. This
|
|
21
|
+
* strategy is useful for backport branches.
|
|
22
|
+
*/
|
|
23
|
+
class AlwaysBumpPatch extends default_1.DefaultVersioningStrategy {
|
|
24
|
+
determineReleaseType(_version, _commits) {
|
|
25
|
+
return new versioning_strategy_1.PatchVersionUpdate();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.AlwaysBumpPatch = AlwaysBumpPatch;
|
|
29
|
+
//# sourceMappingURL=always-bump-patch.js.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { VersioningStrategy, VersionUpdater } from '../versioning-strategy';
|
|
2
|
+
import { ConventionalCommit } from '../commit';
|
|
3
|
+
import { Version } from '../version';
|
|
4
|
+
import { Logger } from '../util/logger';
|
|
5
|
+
export interface DefaultVersioningStrategyOptions {
|
|
6
|
+
bumpMinorPreMajor?: boolean;
|
|
7
|
+
bumpPatchForMinorPreMajor?: boolean;
|
|
8
|
+
logger?: Logger;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* This is the default VersioningStrategy for release-please. Breaking
|
|
12
|
+
* changes should bump the major, features should bump the minor, and other
|
|
13
|
+
* significant changes should bump the patch version.
|
|
14
|
+
*/
|
|
15
|
+
export declare class DefaultVersioningStrategy implements VersioningStrategy {
|
|
16
|
+
readonly bumpMinorPreMajor: boolean;
|
|
17
|
+
readonly bumpPatchForMinorPreMajor: boolean;
|
|
18
|
+
protected logger: Logger;
|
|
19
|
+
/**
|
|
20
|
+
* Create a new DefaultVersioningStrategy
|
|
21
|
+
* @param {DefaultVersioningStrategyOptions} options Configuration options
|
|
22
|
+
* @param {boolean} options.bumpMinorPreMajor If the current version is less than 1.0.0,
|
|
23
|
+
* then bump the minor version for breaking changes
|
|
24
|
+
* @param {boolean} options.bumpPatchForMinorPreMajor If the current version is less than
|
|
25
|
+
* 1.0.0, then bump the patch version for features
|
|
26
|
+
*/
|
|
27
|
+
constructor(options?: DefaultVersioningStrategyOptions);
|
|
28
|
+
/**
|
|
29
|
+
* Given the current version of an artifact and a list of commits,
|
|
30
|
+
* return a VersionUpdater that knows how to bump the version.
|
|
31
|
+
*
|
|
32
|
+
* This is useful for chaining together versioning strategies.
|
|
33
|
+
*
|
|
34
|
+
* @param {Version} version The current version
|
|
35
|
+
* @param {ConventionalCommit[]} commits The list of commits to consider
|
|
36
|
+
* @returns {VersionUpdater} Updater for bumping the next version.
|
|
37
|
+
*/
|
|
38
|
+
determineReleaseType(version: Version, commits: ConventionalCommit[]): VersionUpdater;
|
|
39
|
+
/**
|
|
40
|
+
* Given the current version of an artifact and a list of commits,
|
|
41
|
+
* return the next version.
|
|
42
|
+
*
|
|
43
|
+
* @param {Version} version The current version
|
|
44
|
+
* @param {ConventionalCommit[]} commits The list of commits to consider
|
|
45
|
+
* @returns {Version} The next version
|
|
46
|
+
*/
|
|
47
|
+
bump(version: Version, commits: ConventionalCommit[]): Version;
|
|
48
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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.DefaultVersioningStrategy = void 0;
|
|
17
|
+
const versioning_strategy_1 = require("../versioning-strategy");
|
|
18
|
+
const version_1 = require("../version");
|
|
19
|
+
const logger_1 = require("../util/logger");
|
|
20
|
+
/**
|
|
21
|
+
* This is the default VersioningStrategy for release-please. Breaking
|
|
22
|
+
* changes should bump the major, features should bump the minor, and other
|
|
23
|
+
* significant changes should bump the patch version.
|
|
24
|
+
*/
|
|
25
|
+
class DefaultVersioningStrategy {
|
|
26
|
+
/**
|
|
27
|
+
* Create a new DefaultVersioningStrategy
|
|
28
|
+
* @param {DefaultVersioningStrategyOptions} options Configuration options
|
|
29
|
+
* @param {boolean} options.bumpMinorPreMajor If the current version is less than 1.0.0,
|
|
30
|
+
* then bump the minor version for breaking changes
|
|
31
|
+
* @param {boolean} options.bumpPatchForMinorPreMajor If the current version is less than
|
|
32
|
+
* 1.0.0, then bump the patch version for features
|
|
33
|
+
*/
|
|
34
|
+
constructor(options = {}) {
|
|
35
|
+
var _a;
|
|
36
|
+
this.bumpMinorPreMajor = options.bumpMinorPreMajor === true;
|
|
37
|
+
this.bumpPatchForMinorPreMajor = options.bumpPatchForMinorPreMajor === true;
|
|
38
|
+
this.logger = (_a = options.logger) !== null && _a !== void 0 ? _a : logger_1.logger;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Given the current version of an artifact and a list of commits,
|
|
42
|
+
* return a VersionUpdater that knows how to bump the version.
|
|
43
|
+
*
|
|
44
|
+
* This is useful for chaining together versioning strategies.
|
|
45
|
+
*
|
|
46
|
+
* @param {Version} version The current version
|
|
47
|
+
* @param {ConventionalCommit[]} commits The list of commits to consider
|
|
48
|
+
* @returns {VersionUpdater} Updater for bumping the next version.
|
|
49
|
+
*/
|
|
50
|
+
determineReleaseType(version, commits) {
|
|
51
|
+
// iterate through list of commits and find biggest commit type
|
|
52
|
+
let breaking = 0;
|
|
53
|
+
let features = 0;
|
|
54
|
+
for (const commit of commits) {
|
|
55
|
+
const releaseAs = commit.notes.find(note => note.title === 'RELEASE AS');
|
|
56
|
+
if (releaseAs) {
|
|
57
|
+
// commits are handled newest to oldest, so take the first one (newest) found
|
|
58
|
+
this.logger.debug(`found Release-As: ${releaseAs.text}, forcing version`);
|
|
59
|
+
return new versioning_strategy_1.CustomVersionUpdate(version_1.Version.parse(releaseAs.text).toString());
|
|
60
|
+
}
|
|
61
|
+
// Conventional Commits types are case-insensitive, so `Feat:` counts
|
|
62
|
+
// as a feature, the same way the changelog lists it.
|
|
63
|
+
const type = commit.type.toLowerCase();
|
|
64
|
+
if (commit.breaking) {
|
|
65
|
+
breaking++;
|
|
66
|
+
}
|
|
67
|
+
else if (type === 'feat' || type === 'feature') {
|
|
68
|
+
features++;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
if (breaking > 0) {
|
|
72
|
+
if (version.isPreMajor && this.bumpMinorPreMajor) {
|
|
73
|
+
return new versioning_strategy_1.MinorVersionUpdate();
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
return new versioning_strategy_1.MajorVersionUpdate();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
else if (features > 0) {
|
|
80
|
+
if (version.isPreMajor && this.bumpPatchForMinorPreMajor) {
|
|
81
|
+
return new versioning_strategy_1.PatchVersionUpdate();
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
return new versioning_strategy_1.MinorVersionUpdate();
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return new versioning_strategy_1.PatchVersionUpdate();
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Given the current version of an artifact and a list of commits,
|
|
91
|
+
* return the next version.
|
|
92
|
+
*
|
|
93
|
+
* @param {Version} version The current version
|
|
94
|
+
* @param {ConventionalCommit[]} commits The list of commits to consider
|
|
95
|
+
* @returns {Version} The next version
|
|
96
|
+
*/
|
|
97
|
+
bump(version, commits) {
|
|
98
|
+
return this.determineReleaseType(version, commits).bump(version);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.DefaultVersioningStrategy = DefaultVersioningStrategy;
|
|
102
|
+
//# sourceMappingURL=default.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Version } from '../version';
|
|
2
|
+
import { ConventionalCommit } from '../commit';
|
|
3
|
+
import { DefaultVersioningStrategy } from './default';
|
|
4
|
+
import { VersionUpdater } from '../versioning-strategy';
|
|
5
|
+
/**
|
|
6
|
+
* This VersioningStrategy looks at `deps` type commits and tries to
|
|
7
|
+
* mirror the semantic version bump for that dependency update. For
|
|
8
|
+
* example, an update to v2, would be treated as a major version bump.
|
|
9
|
+
*
|
|
10
|
+
* It also respects the default commit types and will pick the
|
|
11
|
+
* greatest version bump.
|
|
12
|
+
*/
|
|
13
|
+
export declare class DependencyManifest extends DefaultVersioningStrategy {
|
|
14
|
+
determineReleaseType(version: Version, commits: ConventionalCommit[]): VersionUpdater;
|
|
15
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.DependencyManifest = void 0;
|
|
17
|
+
const version_1 = require("../version");
|
|
18
|
+
const semver = require("semver");
|
|
19
|
+
const default_1 = require("./default");
|
|
20
|
+
const versioning_strategy_1 = require("../versioning-strategy");
|
|
21
|
+
const DEPENDENCY_UPDATE_REGEX = /^deps: update dependency (.*) to (v[^\s]*)(\s\(#\d+\))?$/m;
|
|
22
|
+
const DEPENDABOT_DEPENDENCY_UPDATE_REGEX = /^(?:chore|build)\(deps\): bump (.*) from [^\s]* to ([^\s]*)(\s\(#\d+\))?$/m;
|
|
23
|
+
/**
|
|
24
|
+
* This VersioningStrategy looks at `deps` type commits and tries to
|
|
25
|
+
* mirror the semantic version bump for that dependency update. For
|
|
26
|
+
* example, an update to v2, would be treated as a major version bump.
|
|
27
|
+
*
|
|
28
|
+
* It also respects the default commit types and will pick the
|
|
29
|
+
* greatest version bump.
|
|
30
|
+
*/
|
|
31
|
+
class DependencyManifest extends default_1.DefaultVersioningStrategy {
|
|
32
|
+
determineReleaseType(version, commits) {
|
|
33
|
+
const regularBump = super.determineReleaseType(version, commits);
|
|
34
|
+
const dependencyUpdates = buildDependencyUpdates(commits);
|
|
35
|
+
let breaking = 0;
|
|
36
|
+
let features = 0;
|
|
37
|
+
for (const dep in dependencyUpdates) {
|
|
38
|
+
const version = dependencyUpdates[dep];
|
|
39
|
+
if (version.patch === 0) {
|
|
40
|
+
if (version.minor === 0) {
|
|
41
|
+
breaking++;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
features++;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
let dependencyBump;
|
|
49
|
+
if (breaking > 0) {
|
|
50
|
+
if (version.isPreMajor && this.bumpMinorPreMajor) {
|
|
51
|
+
dependencyBump = new versioning_strategy_1.MinorVersionUpdate();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
dependencyBump = new versioning_strategy_1.MajorVersionUpdate();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else if (features > 0) {
|
|
58
|
+
if (version.isPreMajor && this.bumpPatchForMinorPreMajor) {
|
|
59
|
+
dependencyBump = new versioning_strategy_1.PatchVersionUpdate();
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
dependencyBump = new versioning_strategy_1.MinorVersionUpdate();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
dependencyBump = new versioning_strategy_1.PatchVersionUpdate();
|
|
67
|
+
}
|
|
68
|
+
if (semver.lte(dependencyBump.bump(version).toString(), regularBump.bump(version).toString())) {
|
|
69
|
+
return regularBump;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return dependencyBump;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
exports.DependencyManifest = DependencyManifest;
|
|
77
|
+
function matchCommit(commit) {
|
|
78
|
+
return (commit.message.match(DEPENDENCY_UPDATE_REGEX) ||
|
|
79
|
+
commit.message.match(DEPENDABOT_DEPENDENCY_UPDATE_REGEX));
|
|
80
|
+
}
|
|
81
|
+
function buildDependencyUpdates(commits) {
|
|
82
|
+
const versionsMap = {};
|
|
83
|
+
for (const commit of commits) {
|
|
84
|
+
const match = matchCommit(commit);
|
|
85
|
+
if (!match)
|
|
86
|
+
continue;
|
|
87
|
+
const versionString = match[2];
|
|
88
|
+
let version;
|
|
89
|
+
try {
|
|
90
|
+
version = version_1.Version.parse(versionString);
|
|
91
|
+
}
|
|
92
|
+
catch (_a) {
|
|
93
|
+
version = version_1.Version.parse(`${versionString}.0.0`);
|
|
94
|
+
}
|
|
95
|
+
// commits are sorted by latest first, so if there is a collision,
|
|
96
|
+
// then we've already recorded the latest version
|
|
97
|
+
if (versionsMap[match[1]])
|
|
98
|
+
continue;
|
|
99
|
+
versionsMap[match[1]] = version;
|
|
100
|
+
}
|
|
101
|
+
return versionsMap;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=dependency-manifest.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VersioningStrategy, VersionUpdater } from '../versioning-strategy';
|
|
2
|
+
import { Version } from '../version';
|
|
3
|
+
import { ConventionalCommit } from '../commit';
|
|
4
|
+
/**
|
|
5
|
+
* This VersioningStrategy is used by Java releases to bump
|
|
6
|
+
* to the next snapshot version.
|
|
7
|
+
*/
|
|
8
|
+
export declare class JavaAddSnapshot implements VersioningStrategy {
|
|
9
|
+
strategy: VersioningStrategy;
|
|
10
|
+
constructor(strategy: VersioningStrategy);
|
|
11
|
+
determineReleaseType(_version: Version, _commits: ConventionalCommit[]): VersionUpdater;
|
|
12
|
+
bump(version: Version, commits: ConventionalCommit[]): Version;
|
|
13
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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.JavaAddSnapshot = void 0;
|
|
17
|
+
const version_1 = require("../version");
|
|
18
|
+
const fakeCommit = {
|
|
19
|
+
message: 'fix: fake fix',
|
|
20
|
+
type: 'fix',
|
|
21
|
+
scope: null,
|
|
22
|
+
notes: [],
|
|
23
|
+
references: [],
|
|
24
|
+
bareMessage: 'fake fix',
|
|
25
|
+
breaking: false,
|
|
26
|
+
sha: 'abc123',
|
|
27
|
+
files: [],
|
|
28
|
+
};
|
|
29
|
+
class AddSnapshotVersionUpdate {
|
|
30
|
+
constructor(strategy) {
|
|
31
|
+
this.strategy = strategy;
|
|
32
|
+
}
|
|
33
|
+
bump(version) {
|
|
34
|
+
const nextPatch = this.strategy.bump(version, [fakeCommit]);
|
|
35
|
+
return new version_1.Version(nextPatch.major, nextPatch.minor, nextPatch.patch, nextPatch.preRelease ? `${nextPatch.preRelease}-SNAPSHOT` : 'SNAPSHOT', nextPatch.build);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* This VersioningStrategy is used by Java releases to bump
|
|
40
|
+
* to the next snapshot version.
|
|
41
|
+
*/
|
|
42
|
+
class JavaAddSnapshot {
|
|
43
|
+
constructor(strategy) {
|
|
44
|
+
this.strategy = strategy;
|
|
45
|
+
}
|
|
46
|
+
determineReleaseType(_version, _commits) {
|
|
47
|
+
return new AddSnapshotVersionUpdate(this.strategy);
|
|
48
|
+
}
|
|
49
|
+
bump(version, commits) {
|
|
50
|
+
return this.determineReleaseType(version, commits).bump(version);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.JavaAddSnapshot = JavaAddSnapshot;
|
|
54
|
+
//# sourceMappingURL=java-add-snapshot.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VersioningStrategy, VersionUpdater } from '../versioning-strategy';
|
|
2
|
+
import { Version } from '../version';
|
|
3
|
+
import { ConventionalCommit } from '../commit';
|
|
4
|
+
/**
|
|
5
|
+
* This VersioningStrategy is used by Java releases to bump
|
|
6
|
+
* to the next non-snapshot version.
|
|
7
|
+
*/
|
|
8
|
+
export declare class JavaSnapshot implements VersioningStrategy {
|
|
9
|
+
strategy: VersioningStrategy;
|
|
10
|
+
constructor(strategy: VersioningStrategy);
|
|
11
|
+
determineReleaseType(version: Version, commits: ConventionalCommit[]): VersionUpdater;
|
|
12
|
+
bump(version: Version, commits: ConventionalCommit[]): Version;
|
|
13
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.JavaSnapshot = void 0;
|
|
17
|
+
const version_1 = require("../version");
|
|
18
|
+
const fakeCommit = {
|
|
19
|
+
message: 'fix: fake fix',
|
|
20
|
+
type: 'fix',
|
|
21
|
+
scope: null,
|
|
22
|
+
notes: [],
|
|
23
|
+
references: [],
|
|
24
|
+
bareMessage: 'fake fix',
|
|
25
|
+
breaking: false,
|
|
26
|
+
sha: 'abc123',
|
|
27
|
+
files: [],
|
|
28
|
+
};
|
|
29
|
+
class RemoveSnapshotVersionUpdate {
|
|
30
|
+
constructor(parent) {
|
|
31
|
+
this.parent = parent;
|
|
32
|
+
}
|
|
33
|
+
bump(version) {
|
|
34
|
+
if (this.parent) {
|
|
35
|
+
version = this.parent.bump(version);
|
|
36
|
+
}
|
|
37
|
+
return new version_1.Version(version.major, version.minor, version.patch, version.preRelease
|
|
38
|
+
? version.preRelease.replace(/-?SNAPSHOT/, '')
|
|
39
|
+
: undefined, version.build);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* This VersioningStrategy is used by Java releases to bump
|
|
44
|
+
* to the next non-snapshot version.
|
|
45
|
+
*/
|
|
46
|
+
class JavaSnapshot {
|
|
47
|
+
constructor(strategy) {
|
|
48
|
+
this.strategy = strategy;
|
|
49
|
+
}
|
|
50
|
+
determineReleaseType(version, commits) {
|
|
51
|
+
var _a;
|
|
52
|
+
const parentBump = this.strategy.determineReleaseType(version, commits);
|
|
53
|
+
if ((_a = version.preRelease) === null || _a === void 0 ? void 0 : _a.match(/-?SNAPSHOT/)) {
|
|
54
|
+
const patchBumpVersion = this.strategy
|
|
55
|
+
.determineReleaseType(version, [fakeCommit])
|
|
56
|
+
.bump(version);
|
|
57
|
+
const parentBumpVersion = parentBump.bump(version);
|
|
58
|
+
if (patchBumpVersion.toString() === parentBumpVersion.toString()) {
|
|
59
|
+
return new RemoveSnapshotVersionUpdate();
|
|
60
|
+
}
|
|
61
|
+
return new RemoveSnapshotVersionUpdate(parentBump);
|
|
62
|
+
}
|
|
63
|
+
return parentBump;
|
|
64
|
+
}
|
|
65
|
+
bump(version, commits) {
|
|
66
|
+
return this.determineReleaseType(version, commits).bump(version);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.JavaSnapshot = JavaSnapshot;
|
|
70
|
+
//# sourceMappingURL=java-snapshot.js.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DefaultVersioningStrategyOptions, DefaultVersioningStrategy } from './default';
|
|
2
|
+
import { Version } from '../version';
|
|
3
|
+
import { ConventionalCommit } from '..';
|
|
4
|
+
import { VersionUpdater } from '../versioning-strategy';
|
|
5
|
+
interface PrereleaseVersioningStrategyOptions extends DefaultVersioningStrategyOptions {
|
|
6
|
+
prereleaseType?: string;
|
|
7
|
+
prerelease?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* This versioning strategy will increment the pre-release number for patch
|
|
11
|
+
* bumps if there is a pre-release number (preserving any leading 0s).
|
|
12
|
+
* Example: 1.2.3-beta01 -> 1.2.3-beta02.
|
|
13
|
+
*/
|
|
14
|
+
export declare class PrereleaseVersioningStrategy extends DefaultVersioningStrategy {
|
|
15
|
+
readonly prereleaseType?: string;
|
|
16
|
+
readonly prerelease: boolean;
|
|
17
|
+
constructor(options?: PrereleaseVersioningStrategyOptions);
|
|
18
|
+
determineReleaseType(version: Version, commits: ConventionalCommit[]): VersionUpdater;
|
|
19
|
+
}
|
|
20
|
+
export {};
|