🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@changesets/get-dependents-graph

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/get-dependents-graph - npm Package Compare versions

Comparing version
3.0.0-next.2
to
3.0.0-next.3
+21
LICENSE
MIT License
Copyright (c) 2019 Ben Conolly
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+17
-0
# @changesets/get-dependents-graph
## 3.0.0-next.3
### Major Changes
- [#1954](https://github.com/changesets/changesets/pull/1954) [`ed6728c`](https://github.com/changesets/changesets/commit/ed6728ce3c089caaee19f71194a0cd7029480069) Thanks [@beeequeue](https://github.com/beeequeue)! - Bumped supported Node versions to `^22.11 || ^24 || >=26`
### Minor Changes
- [#1969](https://github.com/changesets/changesets/pull/1969) [`2c7c043`](https://github.com/changesets/changesets/commit/2c7c043d7071440009f8a69eff0b0c6746ac7625) Thanks [@marcalexiei](https://github.com/marcalexiei)! - Add a named export that mirrors the current `default` export
The `default` export is slated for removal in the next major release, so this ensures a smoother transition path.
### Patch Changes
- Updated dependencies [[`ed6728c`](https://github.com/changesets/changesets/commit/ed6728ce3c089caaee19f71194a0cd7029480069), [`a0b5326`](https://github.com/changesets/changesets/commit/a0b5326570e8e7bf5e35c1cefe8f70d9a51a5cd7)]:
- @changesets/types@7.0.0-next.3
## 3.0.0-next.2

@@ -4,0 +21,0 @@

+4
-3

@@ -0,6 +1,5 @@

import path from 'node:path';
import pc from 'picocolors';
import Range from 'semver/classes/range.js';
import pc from 'picocolors';
import path from 'node:path';
// This is a modified version of the graph-getting in bolt
const DEPENDENCY_TYPES = ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"];

@@ -57,2 +56,4 @@ const getAllDependencies = (config, ignoreDevDependencies) => {

const allDependencies = getAllDependencies(pkg.packageJson, ignoreDevDependencies);
// eslint-disable-next-line prefer-const
for (let [depName, depRange] of allDependencies) {

@@ -59,0 +60,0 @@ const match = packagesByName[depName];

{
"name": "@changesets/get-dependents-graph",
"version": "3.0.0-next.2",
"version": "3.0.0-next.3",
"description": "Get the graph of dependents in a monorepo",

@@ -13,13 +13,13 @@ "type": "module",

"dependencies": {
"@changesets/types": "^7.0.0-next.2",
"picocolors": "^1.1.0",
"semver": "^7.5.3"
"semver": "^7.5.3",
"@changesets/types": "^7.0.0-next.3"
},
"devDependencies": {
"@changesets/test-utils": "0.0.9-next.2",
"vitest": "^4.1.2"
"vitest": "^4.1.5",
"@changesets/test-utils": "0.0.9-next.3"
},
"engines": {
"node": ">=20.19.0"
"node": "^22.11 || ^24 || >=26"
}
}
}
# Get Dependents Graph
[![npm package](https://img.shields.io/npm/v/@changesets/get-dependents-graph)](https://npmjs.com/package/@changesets/get-dependents-graph)
[![View changelog](https://img.shields.io/badge/Explore%20Changelog-brightgreen)](./CHANGELOG.md)
[![Open on npmx.dev](https://npmx.dev/api/registry/badge/version/@changesets/get-dependents-graph?name=true)](https://npmx.dev/package/@changesets/get-dependents-graph)
[![View changelog](https://npmx.dev/api/registry/badge/version/@changesets/cli?color=229fe4&value=View+changelog&label=+)](./CHANGELOG.md)

@@ -17,2 +17,2 @@ Small helper utility extracted from bolt to get a graph of relationships between packages.

Mostly published for use in [changesets](https://www.npmjs.com/package/@changesets/cli)
Mostly published for use in [changesets](https://npmx.dev/@changesets/cli)

@@ -1,7 +0,7 @@

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import path from "node:path";
import { stripVTControlCharacters } from "node:util";
import { temporarilySilenceLogs } from "@changesets/test-utils";
import getDependencyGraph from "./get-dependency-graph.ts";
import { Package } from "@changesets/types";
import path from "node:path";
import type { Package } from "@changesets/types";
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
import { getDependencyGraph } from "./get-dependency-graph.ts";

@@ -8,0 +8,0 @@ const consoleError = console.error;

@@ -1,6 +0,5 @@

// This is a modified version of the graph-getting in bolt
import path from "node:path";
import type { Package, Packages, PackageJSON } from "@changesets/types";
import pc from "picocolors";
import Range from "semver/classes/range.js";
import pc from "picocolors";
import type { Package, Packages, PackageJSON } from "@changesets/types";
import path from "node:path";

@@ -56,3 +55,3 @@ const DEPENDENCY_TYPES = [

export default function getDependencyGraph(
export function getDependencyGraph(
packages: Packages,

@@ -95,3 +94,3 @@ rootPackage: Package,

for (const pkg of queue) {
const { name } = pkg!.packageJson;
const { name } = pkg.packageJson;
const dependencies = [];

@@ -103,2 +102,3 @@ const allDependencies = getAllDependencies(

// eslint-disable-next-line prefer-const
for (let [depName, depRange] of allDependencies) {

@@ -105,0 +105,0 @@ const match = packagesByName[depName];

import type { Package, Packages } from "@changesets/types";
import getDependencyGraph from "./get-dependency-graph.ts";
import { getDependencyGraph } from "./get-dependency-graph.ts";

@@ -4,0 +4,0 @@ export function getDependentsGraph(