release-please 13.4.0 → 13.4.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@
4
4
 
5
5
  [1]: https://www.npmjs.com/package/release-please?activeTab=versions
6
6
 
7
+ ### [13.4.1](https://github.com/googleapis/release-please/compare/v13.4.0...v13.4.1) (2022-01-20)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * handle windows newlines in pull request body ([#1239](https://github.com/googleapis/release-please/issues/1239)) ([69a424f](https://github.com/googleapis/release-please/commit/69a424ff2671ccfb661efd376aede155caee42ce))
13
+ * **python:** fix version regex to find multiple digit patch versions ([#1238](https://github.com/googleapis/release-please/issues/1238)) ([e03a3bf](https://github.com/googleapis/release-please/commit/e03a3bf81f0706b96bc76f217ab420a0f90b4152)), closes [#1237](https://github.com/googleapis/release-please/issues/1237)
14
+ * **python:** restore default changelog config for python ([#1240](https://github.com/googleapis/release-please/issues/1240)) ([54007ea](https://github.com/googleapis/release-please/commit/54007ea6d7d6c12f5757eeb2b5abdf13a8b524be))
15
+
7
16
  ## [13.4.0](https://github.com/googleapis/release-please/compare/v13.3.2...v13.4.0) (2022-01-18)
8
17
 
9
18
 
@@ -1,7 +1,8 @@
1
- import { BaseStrategy, BuildUpdatesOptions } from './base';
1
+ import { BaseStrategy, BuildUpdatesOptions, BaseStrategyOptions } from './base';
2
2
  import { Update } from '../update';
3
3
  import { Version } from '../version';
4
4
  export declare class Python extends BaseStrategy {
5
+ constructor(options: BaseStrategyOptions);
5
6
  protected buildUpdates(options: BuildUpdatesOptions): Promise<Update[]>;
6
7
  private getPyProject;
7
8
  protected initialReleaseVersion(): Version;
@@ -22,7 +22,26 @@ const setup_py_1 = require("../updaters/python/setup-py");
22
22
  const pyproject_toml_1 = require("../updaters/python/pyproject-toml");
23
23
  const logger_1 = require("../util/logger");
24
24
  const python_file_with_version_1 = require("../updaters/python/python-file-with-version");
25
+ const CHANGELOG_SECTIONS = [
26
+ { type: 'feat', section: 'Features' },
27
+ { type: 'fix', section: 'Bug Fixes' },
28
+ { type: 'perf', section: 'Performance Improvements' },
29
+ { type: 'deps', section: 'Dependencies' },
30
+ { type: 'revert', section: 'Reverts' },
31
+ { type: 'docs', section: 'Documentation' },
32
+ { type: 'style', section: 'Styles', hidden: true },
33
+ { type: 'chore', section: 'Miscellaneous Chores', hidden: true },
34
+ { type: 'refactor', section: 'Code Refactoring', hidden: true },
35
+ { type: 'test', section: 'Tests', hidden: true },
36
+ { type: 'build', section: 'Build System', hidden: true },
37
+ { type: 'ci', section: 'Continuous Integration', hidden: true },
38
+ ];
25
39
  class Python extends base_1.BaseStrategy {
40
+ constructor(options) {
41
+ var _a;
42
+ options.changelogSections = (_a = options.changelogSections) !== null && _a !== void 0 ? _a : CHANGELOG_SECTIONS;
43
+ super(options);
44
+ }
26
45
  async buildUpdates(options) {
27
46
  var _a;
28
47
  const updates = [];
@@ -25,7 +25,7 @@ class SetupPy extends default_1.DefaultUpdater {
25
25
  * @returns {string} The updated content
26
26
  */
27
27
  updateContent(content) {
28
- return content.replace(/(version ?= ?["'])[0-9]+\.[0-9]+\.[0-9](?:-\w+)?(["'])/, `$1${this.version}$2`);
28
+ return content.replace(/(version ?= ?["'])[0-9]+\.[0-9]+\.[0-9]+(?:-\w+)?(["'])/, `$1${this.version}$2`);
29
29
  }
30
30
  }
31
31
  exports.SetupPy = SetupPy;
@@ -70,7 +70,7 @@ ${this.footer}`;
70
70
  }
71
71
  exports.PullRequestBody = PullRequestBody;
72
72
  function splitBody(body) {
73
- const lines = body.trim().split('\n');
73
+ const lines = body.trim().replace(/\r\n/g, '\n').split('\n');
74
74
  const index = lines.indexOf(NOTES_DELIMITER);
75
75
  if (index === -1) {
76
76
  return undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "13.4.0",
3
+ "version": "13.4.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",