release-please 17.10.3 → 17.11.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/build/src/changelog-notes/default.js +5 -1
- package/build/src/factory.js +4 -0
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/strategies/php-librarian.d.ts +6 -0
- package/build/src/strategies/php-librarian.js +35 -0
- package/build/src/strategies/ruby-librarian.d.ts +6 -0
- package/build/src/strategies/ruby-librarian.js +35 -0
- package/package.json +3 -2
|
@@ -26,6 +26,7 @@ class DefaultChangelogNotes {
|
|
|
26
26
|
this.mainTemplate = options.mainTemplate;
|
|
27
27
|
}
|
|
28
28
|
async buildNotes(commits, options) {
|
|
29
|
+
var _a;
|
|
29
30
|
const context = {
|
|
30
31
|
host: options.host || DEFAULT_HOST,
|
|
31
32
|
owner: options.owner,
|
|
@@ -40,8 +41,11 @@ class DefaultChangelogNotes {
|
|
|
40
41
|
config.types = options.changelogSections;
|
|
41
42
|
}
|
|
42
43
|
const preset = await presetFactory(config);
|
|
44
|
+
// Replace the default ", closes" keyword with ", refs" to prevent GitHub from
|
|
45
|
+
// automatically closing referenced issues when the release PR is merged.
|
|
43
46
|
preset.writerOpts.commitPartial =
|
|
44
|
-
this.commitPartial ||
|
|
47
|
+
this.commitPartial ||
|
|
48
|
+
((_a = preset.writerOpts.commitPartial) === null || _a === void 0 ? void 0 : _a.replace(/,\s*closes/g, ', refs'));
|
|
45
49
|
preset.writerOpts.headerPartial =
|
|
46
50
|
this.headerPartial || preset.writerOpts.headerPartial;
|
|
47
51
|
preset.writerOpts.mainTemplate =
|
package/build/src/factory.js
CHANGED
|
@@ -50,11 +50,13 @@ const node_librarian_1 = require("./strategies/node-librarian");
|
|
|
50
50
|
const ocaml_1 = require("./strategies/ocaml");
|
|
51
51
|
const php_1 = require("./strategies/php");
|
|
52
52
|
const php_yoshi_1 = require("./strategies/php-yoshi");
|
|
53
|
+
const php_librarian_1 = require("./strategies/php-librarian");
|
|
53
54
|
const python_1 = require("./strategies/python");
|
|
54
55
|
const python_librarian_1 = require("./strategies/python-librarian");
|
|
55
56
|
const r_1 = require("./strategies/r");
|
|
56
57
|
const ruby_1 = require("./strategies/ruby");
|
|
57
58
|
const ruby_yoshi_1 = require("./strategies/ruby-yoshi");
|
|
59
|
+
const ruby_librarian_1 = require("./strategies/ruby-librarian");
|
|
58
60
|
const rust_1 = require("./strategies/rust");
|
|
59
61
|
const sfdx_1 = require("./strategies/sfdx");
|
|
60
62
|
const simple_1 = require("./strategies/simple");
|
|
@@ -96,11 +98,13 @@ const releasers = {
|
|
|
96
98
|
ocaml: options => new ocaml_1.OCaml(options),
|
|
97
99
|
php: options => new php_1.PHP(options),
|
|
98
100
|
'php-yoshi': options => new php_yoshi_1.PHPYoshi(options),
|
|
101
|
+
'php-librarian': options => new php_librarian_1.PHPLibrarian(options),
|
|
99
102
|
python: options => new python_1.Python(options),
|
|
100
103
|
'python-librarian': options => new python_librarian_1.PythonLibrarian(options),
|
|
101
104
|
r: options => new r_1.R(options),
|
|
102
105
|
ruby: options => new ruby_1.Ruby(options),
|
|
103
106
|
'ruby-yoshi': options => new ruby_yoshi_1.RubyYoshi(options),
|
|
107
|
+
'ruby-librarian': options => new ruby_librarian_1.RubyLibrarian(options),
|
|
104
108
|
rust: options => new rust_1.Rust(options),
|
|
105
109
|
salesforce: options => new sfdx_1.Sfdx(options),
|
|
106
110
|
sfdx: options => new sfdx_1.Sfdx(options),
|
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '17.
|
|
39
|
+
exports.VERSION = '17.11.0';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,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.RubyLibrarian = void 0;
|
|
17
|
+
const ruby_yoshi_1 = require("./ruby-yoshi");
|
|
18
|
+
const librarian_yaml_1 = require("../updaters/librarian-yaml");
|
|
19
|
+
class RubyLibrarian extends ruby_yoshi_1.RubyYoshi {
|
|
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.RubyLibrarian = RubyLibrarian;
|
|
35
|
+
//# sourceMappingURL=ruby-librarian.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "release-please",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.11.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",
|
|
@@ -105,6 +105,7 @@
|
|
|
105
105
|
"overrides": {
|
|
106
106
|
"tmp": "^0.2.7",
|
|
107
107
|
"serialize-javascript": "^7.0.5",
|
|
108
|
-
"js-yaml": "^4.3.0"
|
|
108
|
+
"js-yaml": "^4.3.0",
|
|
109
|
+
"brace-expansion": "^2.1.2"
|
|
109
110
|
}
|
|
110
111
|
}
|