release-please 13.15.0 → 13.15.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,14 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
### [13.15.1](https://github.com/googleapis/release-please/compare/v13.15.0...v13.15.1) (2022-05-05)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **cargo-workspace:** stop defaulting to updating all components ([#1414](https://github.com/googleapis/release-please/issues/1414)) ([532637c](https://github.com/googleapis/release-please/commit/532637c399d38962e1c0a8622656d61e0fe7e405))
|
|
13
|
+
* node-workspace should not bump versions for peer dependencies ([#1413](https://github.com/googleapis/release-please/issues/1413)) ([cc4eaaa](https://github.com/googleapis/release-please/commit/cc4eaaa864b7a6444e4dc72d1c75a596932d7b62)), closes [#1403](https://github.com/googleapis/release-please/issues/1403)
|
|
14
|
+
|
|
7
15
|
## [13.15.0](https://github.com/googleapis/release-please/compare/v13.14.0...v13.15.0) (2022-04-27)
|
|
8
16
|
|
|
9
17
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { CandidateReleasePullRequest
|
|
2
|
-
import { WorkspacePlugin, DependencyGraph
|
|
1
|
+
import { CandidateReleasePullRequest } from '../manifest';
|
|
2
|
+
import { WorkspacePlugin, DependencyGraph } from './workspace';
|
|
3
3
|
import { CargoManifest } from '../updaters/rust/common';
|
|
4
4
|
import { VersionsMap, Version } from '../version';
|
|
5
|
-
import { GitHub } from '../github';
|
|
6
5
|
interface CrateInfo {
|
|
7
6
|
/**
|
|
8
7
|
* e.g. `crates/crate-a`
|
|
@@ -37,7 +36,6 @@ interface CrateInfo {
|
|
|
37
36
|
* into a single rust package.
|
|
38
37
|
*/
|
|
39
38
|
export declare class CargoWorkspace extends WorkspacePlugin<CrateInfo> {
|
|
40
|
-
constructor(github: GitHub, targetBranch: string, repositoryConfig: RepositoryConfig, options?: WorkspacePluginOptions);
|
|
41
39
|
protected buildAllPackages(candidates: CandidateReleasePullRequest[]): Promise<{
|
|
42
40
|
allPackages: CrateInfo[];
|
|
43
41
|
candidatesByPackage: Record<string, CandidateReleasePullRequest>;
|
|
@@ -35,12 +35,6 @@ const cargo_lock_1 = require("../updaters/rust/cargo-lock");
|
|
|
35
35
|
* into a single rust package.
|
|
36
36
|
*/
|
|
37
37
|
class CargoWorkspace extends workspace_1.WorkspacePlugin {
|
|
38
|
-
constructor(github, targetBranch, repositoryConfig, options = {}) {
|
|
39
|
-
super(github, targetBranch, repositoryConfig, {
|
|
40
|
-
...options,
|
|
41
|
-
updateAllPackages: true,
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
38
|
async buildAllPackages(candidates) {
|
|
45
39
|
var _a, _b, _c, _d;
|
|
46
40
|
const cargoManifestContent = await this.github.getFileContentsOnBranch('Cargo.toml', this.targetBranch);
|
|
@@ -211,7 +211,7 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
211
211
|
return candidates;
|
|
212
212
|
}
|
|
213
213
|
async buildGraph(allPackages) {
|
|
214
|
-
var _a, _b, _c
|
|
214
|
+
var _a, _b, _c;
|
|
215
215
|
const graph = new Map();
|
|
216
216
|
const workspacePackageNames = new Set(allPackages.map(packageJson => packageJson.name));
|
|
217
217
|
for (const packageJson of allPackages) {
|
|
@@ -219,7 +219,6 @@ class NodeWorkspace extends workspace_1.WorkspacePlugin {
|
|
|
219
219
|
...((_a = packageJson.dependencies) !== null && _a !== void 0 ? _a : {}),
|
|
220
220
|
...((_b = packageJson.devDependencies) !== null && _b !== void 0 ? _b : {}),
|
|
221
221
|
...((_c = packageJson.optionalDependencies) !== null && _c !== void 0 ? _c : {}),
|
|
222
|
-
...((_d = packageJson.peerDependencies) !== null && _d !== void 0 ? _d : {}),
|
|
223
222
|
});
|
|
224
223
|
const workspaceDeps = allDeps.filter(dep => workspacePackageNames.has(dep));
|
|
225
224
|
graph.set(packageJson.name, {
|
|
@@ -132,6 +132,7 @@ class WorkspacePlugin extends plugin_1.ManifestPlugin {
|
|
|
132
132
|
* being updated.
|
|
133
133
|
*/
|
|
134
134
|
buildGraphOrder(graph, packageNamesToUpdate) {
|
|
135
|
+
logger_1.logger.info(`building graph order, existing package names: ${packageNamesToUpdate}`);
|
|
135
136
|
// invert the graph so it's dependency name => packages that depend on it
|
|
136
137
|
const dependentGraph = this.invertGraph(graph);
|
|
137
138
|
const visited = new Set();
|
package/package.json
CHANGED