release-please 14.16.0 → 14.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ## [14.17.0](https://github.com/googleapis/release-please/compare/v14.16.0...v14.17.0) (2022-11-11)
8
+
9
+
10
+ ### Features
11
+
12
+ * add always-bump-major versioning strategy ([7526ca8](https://github.com/googleapis/release-please/commit/7526ca8be4fec4d785b44bfb8c8c70078ad7fc73))
13
+ * Add always-bump-minor versioning strategy ([#1744](https://github.com/googleapis/release-please/issues/1744)) ([7526ca8](https://github.com/googleapis/release-please/commit/7526ca8be4fec4d785b44bfb8c8c70078ad7fc73))
14
+
7
15
  ## [14.16.0](https://github.com/googleapis/release-please/compare/v14.15.3...v14.16.0) (2022-11-03)
8
16
 
9
17
 
@@ -16,11 +16,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.getVersioningStrategyTypes = exports.unregisterVersioningStrategy = exports.registerVersioningStrategy = exports.buildVersioningStrategy = void 0;
17
17
  const default_1 = require("../versioning-strategies/default");
18
18
  const always_bump_patch_1 = require("../versioning-strategies/always-bump-patch");
19
+ const always_bump_minor_1 = require("../versioning-strategies/always-bump-minor");
20
+ const always_bump_major_1 = require("../versioning-strategies/always-bump-major");
19
21
  const service_pack_1 = require("../versioning-strategies/service-pack");
20
22
  const errors_1 = require("../errors");
21
23
  const versioningTypes = {
22
24
  default: options => new default_1.DefaultVersioningStrategy(options),
23
25
  'always-bump-patch': options => new always_bump_patch_1.AlwaysBumpPatch(options),
26
+ 'always-bump-minor': options => new always_bump_minor_1.AlwaysBumpMinor(options),
27
+ 'always-bump-major': options => new always_bump_major_1.AlwaysBumpMajor(options),
24
28
  'service-pack': options => new service_pack_1.ServicePackVersioningStrategy(options),
25
29
  };
26
30
  function buildVersioningStrategy(options) {
@@ -0,0 +1,10 @@
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 major version.
7
+ */
8
+ export declare class AlwaysBumpMajor extends DefaultVersioningStrategy {
9
+ determineReleaseType(_version: Version, _commits: ConventionalCommit[]): VersionUpdater;
10
+ }
@@ -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.AlwaysBumpMajor = void 0;
17
+ const default_1 = require("./default");
18
+ const versioning_strategy_1 = require("../versioning-strategy");
19
+ /**
20
+ * This VersioningStrategy always bumps the major version.
21
+ */
22
+ class AlwaysBumpMajor extends default_1.DefaultVersioningStrategy {
23
+ determineReleaseType(_version, _commits) {
24
+ return new versioning_strategy_1.MajorVersionUpdate();
25
+ }
26
+ }
27
+ exports.AlwaysBumpMajor = AlwaysBumpMajor;
28
+ //# sourceMappingURL=always-bump-major.js.map
@@ -0,0 +1,10 @@
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 minor version.
7
+ */
8
+ export declare class AlwaysBumpMinor extends DefaultVersioningStrategy {
9
+ determineReleaseType(_version: Version, _commits: ConventionalCommit[]): VersionUpdater;
10
+ }
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "14.16.0",
3
+ "version": "14.17.0",
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",
@@ -63,7 +63,7 @@
63
63
  "gts": "^3.1.0",
64
64
  "mocha": "^9.2.2",
65
65
  "nock": "^13.0.0",
66
- "sinon": "14.0.1",
66
+ "sinon": "14.0.2",
67
67
  "snap-shot-it": "^7.0.0"
68
68
  },
69
69
  "dependencies": {