@rushstack/lockfile-explorer 2.2.10 → 2.2.12

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.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "@rushstack/lockfile-explorer",
3
3
  "entries": [
4
+ {
5
+ "version": "2.2.12",
6
+ "tag": "@rushstack/lockfile-explorer_v2.2.12",
7
+ "date": "Thu, 09 Apr 2026 00:15:07 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/node-core-library\" to `5.22.0`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/terminal\" to `0.22.5`"
15
+ },
16
+ {
17
+ "comment": "Updating dependency \"@rushstack/ts-command-line\" to `5.3.5`"
18
+ },
19
+ {
20
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.2.11`"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ {
26
+ "version": "2.2.11",
27
+ "tag": "@rushstack/lockfile-explorer_v2.2.11",
28
+ "date": "Sat, 04 Apr 2026 00:14:00 GMT",
29
+ "comments": {
30
+ "dependency": [
31
+ {
32
+ "comment": "Updating dependency \"@rushstack/heft\" to `1.2.10`"
33
+ }
34
+ ]
35
+ }
36
+ },
4
37
  {
5
38
  "version": "2.2.10",
6
39
  "tag": "@rushstack/lockfile-explorer_v2.2.10",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Change Log - @rushstack/lockfile-explorer
2
2
 
3
- This log was last generated on Wed, 01 Apr 2026 15:13:38 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 09 Apr 2026 00:15:07 GMT and should not be manually modified.
4
+
5
+ ## 2.2.12
6
+ Thu, 09 Apr 2026 00:15:07 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 2.2.11
11
+ Sat, 04 Apr 2026 00:14:00 GMT
12
+
13
+ _Version update only_
4
14
 
5
15
  ## 2.2.10
6
16
  Wed, 01 Apr 2026 15:13:38 GMT
@@ -9,13 +9,14 @@ exports.LfxGraph = exports.LfxGraphEntry = exports.LfxGraphDependency = void 0;
9
9
  class LfxGraphDependency {
10
10
  constructor(options) {
11
11
  this.resolvedEntry = undefined;
12
- this.name = options.name;
13
- this.versionPath = options.versionPath;
14
- this.entryId = options.entryId;
15
- this.originalSpecifier = options.originalSpecifier;
16
- this.dependencyKind = options.dependencyKind;
17
- this.peerDependencyMeta = options.peerDependencyMeta;
18
- this.containingEntry = options.containingEntry;
12
+ const { name, versionPath, entryId, originalSpecifier, dependencyKind, peerDependencyMeta, containingEntry } = options;
13
+ this.name = name;
14
+ this.versionPath = versionPath;
15
+ this.entryId = entryId;
16
+ this.originalSpecifier = originalSpecifier;
17
+ this.dependencyKind = dependencyKind;
18
+ this.peerDependencyMeta = peerDependencyMeta;
19
+ this.containingEntry = containingEntry;
19
20
  }
20
21
  }
21
22
  exports.LfxGraphDependency = LfxGraphDependency;
@@ -41,14 +42,15 @@ class LfxGraphEntry {
41
42
  * A list of entries that specify this entry as a dependency.
42
43
  */
43
44
  this.referrers = [];
44
- this.kind = options.kind;
45
- this.entryId = options.entryId;
46
- this.rawEntryId = options.rawEntryId;
47
- this.packageJsonFolderPath = options.packageJsonFolderPath;
48
- this.entryPackageName = options.entryPackageName;
49
- this.displayText = options.displayText;
50
- this.entryPackageVersion = options.entryPackageVersion;
51
- this.entrySuffix = options.entrySuffix;
45
+ const { kind, entryId, rawEntryId, packageJsonFolderPath, entryPackageName, displayText, entryPackageVersion, entrySuffix } = options;
46
+ this.kind = kind;
47
+ this.entryId = entryId;
48
+ this.rawEntryId = rawEntryId;
49
+ this.packageJsonFolderPath = packageJsonFolderPath;
50
+ this.entryPackageName = entryPackageName;
51
+ this.displayText = displayText;
52
+ this.entryPackageVersion = entryPackageVersion;
53
+ this.entrySuffix = entrySuffix;
52
54
  }
53
55
  }
54
56
  exports.LfxGraphEntry = LfxGraphEntry;
@@ -1 +1 @@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AmB,CAAC;QACvD,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;IACzC,CAAC;CACF;AAnED,sCAmEC;AAED,MAAa,QAAQ;IAInB,YAAmB,SAA4B;QAF/B,YAAO,GAAoB,EAAE,CAAC;QAG5C,IAAI,CAAC,SAAS,qBAAQ,SAAS,CAAE,CAAC;IACpC,CAAC;CACF;AAPD,4BAOC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LfxDependencyKind, IJsonPeerDependencyMeta, LfxGraphEntryKind } from './IJsonLfxGraph';\nimport type { IJsonLfxWorkspace } from './IJsonLfxWorkspace';\n\nexport interface ILfxGraphDependencyOptions {\n name: string;\n versionPath: string;\n\n entryId: string;\n\n originalSpecifier: string;\n dependencyKind: LfxDependencyKind;\n peerDependencyMeta: IJsonPeerDependencyMeta;\n\n containingEntry: LfxGraphEntry;\n}\n\n/**\n * Represents an graph edge, which is an exact dependency version obtained from the lockfile.\n */\nexport class LfxGraphDependency {\n /**\n * The referenced package name.\n * Example: `@scope/package-name`\n */\n public readonly name: string;\n\n /**\n * The lockfile's raw string that either indicates an external reference such as `link:../target-folder`,\n * or else can be combined with the `name` field to construct an `entryId` found in the lockfile.\n * The exact syntax varies between lockfile file format versions.\n *\n * Example: `link:../target-folder`\n *\n * Example: `1.0.0`\n *\n * Example: `1.0.0_@rushstack+m@1.0.0` (version 5.4)\n * Example: `1.0.0(@rushstack/m@1.0.0)` (version 6.0 and 9.0)\n */\n public readonly versionPath: string;\n\n /**\n * If this dependency refers to an entry in the lockfile, this field should match a corresponding\n * {@link LfxGraphEntry.entryId} and `resolvedEntry` will be defined (unless the loader encountered an error).\n *\n * For external references such as `link:../target-folder`, the `entryId` is the empty string.\n */\n public readonly entryId: string;\n\n /**\n * The lockfile sometimes records the original SemVer specifier that was used to choose the versionPath,\n * usually either because it can change (e.g. a workspace project's dependencies) or because it's a peer dependency\n * that affects graph relationships beyond the current node. If not, then `originalSpecifier` will be the\n * empty string.\n *\n * @remarks\n * Because this field is only available for certain dependencies, it is generally less useful than specifiers\n * obtained from the package.json files.\n */\n public readonly originalSpecifier: string;\n public readonly dependencyKind: LfxDependencyKind;\n public readonly peerDependencyMeta: IJsonPeerDependencyMeta;\n\n public readonly containingEntry: LfxGraphEntry;\n public resolvedEntry: LfxGraphEntry | undefined = undefined;\n\n public constructor(options: ILfxGraphDependencyOptions) {\n this.name = options.name;\n this.versionPath = options.versionPath;\n this.entryId = options.entryId;\n this.originalSpecifier = options.originalSpecifier;\n this.dependencyKind = options.dependencyKind;\n this.peerDependencyMeta = options.peerDependencyMeta;\n\n this.containingEntry = options.containingEntry;\n }\n}\n\nexport interface ILfxGraphEntryOptions {\n kind: LfxGraphEntryKind;\n entryId: string;\n rawEntryId: string;\n packageJsonFolderPath: string;\n entryPackageName: string;\n displayText: string;\n entryPackageVersion: string;\n entrySuffix: string;\n}\n\n/**\n * Represents a project or package listed in the pnpm lockfile.\n *\n * @remarks\n * Each project or package will have its own LockfileEntry, which is created when the lockfile is first parsed.\n * The fields for the LockfileEntry are outlined below:\n */\nexport class LfxGraphEntry {\n /**\n * Whether this entry is a project or a package (specified by importers or packages in the lockfile).\n */\n public readonly kind: LfxGraphEntryKind;\n\n /**\n * A unique identifier for this lockfile entry, based on `rawEntryId` but adjusted to be unique for both\n * project and external package entries.\n */\n public readonly entryId: string;\n\n /**\n * The unique identifier assigned to this project/package in the lockfile.\n * e.g. `/@emotion/core/10.3.1_qjwx5m6wssz3lnb35xwkc3pz6q:`\n *\n * @remarks\n * In the `pnpm-lock.yaml` file, \"importers\" (workspace projects) and \"packages\" (external packages)\n * are tracked separately, so it's not required for their keys to be unique. `entryId` solves this problem\n * by adding a `project:` prefix for importers.\n */\n public readonly rawEntryId: string;\n\n /**\n * Where the package.json is for this project or package.\n */\n public readonly packageJsonFolderPath: string;\n\n /**\n * Just the name of the package with no specifiers.\n */\n public readonly entryPackageName: string;\n\n /**\n * A human friendly name for the project or package.\n */\n public readonly displayText: string;\n\n public readonly entryPackageVersion: string;\n public readonly entrySuffix: string;\n\n /**\n * A list of all the dependencies for this entry.\n * Note that dependencies, dev dependencies, as well as peer dependencies are all included.\n */\n public readonly dependencies: LfxGraphDependency[] = [];\n\n /**\n * A list of dependencies that are listed under the \"transitivePeerDependencies\" in the pnpm lockfile.\n */\n public readonly transitivePeerDependencies: Set<string> = new Set();\n\n /**\n * A list of entries that specify this entry as a dependency.\n */\n public readonly referrers: LfxGraphEntry[] = [];\n\n public constructor(options: ILfxGraphEntryOptions) {\n this.kind = options.kind;\n this.entryId = options.entryId;\n this.rawEntryId = options.rawEntryId;\n this.packageJsonFolderPath = options.packageJsonFolderPath;\n this.entryPackageName = options.entryPackageName;\n this.displayText = options.displayText;\n this.entryPackageVersion = options.entryPackageVersion;\n this.entrySuffix = options.entrySuffix;\n }\n}\n\nexport class LfxGraph {\n public readonly workspace: IJsonLfxWorkspace;\n public readonly entries: LfxGraphEntry[] = [];\n\n public constructor(workspace: IJsonLfxWorkspace) {\n this.workspace = { ...workspace };\n }\n}\n"]}
1
+ {"version":3,"file":"LfxGraph.js","sourceRoot":"","sources":["../../../src/packlets/lfx-shared/LfxGraph.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;AAkB3D;;GAEG;AACH,MAAa,kBAAkB;IA8C7B,YAAmB,OAAmC;QAF/C,kBAAa,GAA8B,SAAS,CAAC;QAG1D,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,kBAAkB,EAAE,eAAe,EAAE,GAC1G,OAAO,CAAC;QACV,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;QAC3C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAE7C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IACzC,CAAC;CACF;AA1DD,gDA0DC;AAaD;;;;;;GAMG;AACH,MAAa,aAAa;IAyDxB,YAAmB,OAA8B;QAhBjD;;;WAGG;QACa,iBAAY,GAAyB,EAAE,CAAC;QAExD;;WAEG;QACa,+BAA0B,GAAgB,IAAI,GAAG,EAAE,CAAC;QAEpE;;WAEG;QACa,cAAS,GAAoB,EAAE,CAAC;QAG9C,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,UAAU,EACV,qBAAqB,EACrB,gBAAgB,EAChB,WAAW,EACX,mBAAmB,EACnB,WAAW,EACZ,GAAG,OAAO,CAAC;QACZ,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;QACnD,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;CACF;AA7ED,sCA6EC;AAED,MAAa,QAAQ;IAInB,YAAmB,SAA4B;QAF/B,YAAO,GAAoB,EAAE,CAAC;QAG5C,IAAI,CAAC,SAAS,qBAAQ,SAAS,CAAE,CAAC;IACpC,CAAC;CACF;AAPD,4BAOC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport type { LfxDependencyKind, IJsonPeerDependencyMeta, LfxGraphEntryKind } from './IJsonLfxGraph';\nimport type { IJsonLfxWorkspace } from './IJsonLfxWorkspace';\n\nexport interface ILfxGraphDependencyOptions {\n name: string;\n versionPath: string;\n\n entryId: string;\n\n originalSpecifier: string;\n dependencyKind: LfxDependencyKind;\n peerDependencyMeta: IJsonPeerDependencyMeta;\n\n containingEntry: LfxGraphEntry;\n}\n\n/**\n * Represents an graph edge, which is an exact dependency version obtained from the lockfile.\n */\nexport class LfxGraphDependency {\n /**\n * The referenced package name.\n * Example: `@scope/package-name`\n */\n public readonly name: string;\n\n /**\n * The lockfile's raw string that either indicates an external reference such as `link:../target-folder`,\n * or else can be combined with the `name` field to construct an `entryId` found in the lockfile.\n * The exact syntax varies between lockfile file format versions.\n *\n * Example: `link:../target-folder`\n *\n * Example: `1.0.0`\n *\n * Example: `1.0.0_@rushstack+m@1.0.0` (version 5.4)\n * Example: `1.0.0(@rushstack/m@1.0.0)` (version 6.0 and 9.0)\n */\n public readonly versionPath: string;\n\n /**\n * If this dependency refers to an entry in the lockfile, this field should match a corresponding\n * {@link LfxGraphEntry.entryId} and `resolvedEntry` will be defined (unless the loader encountered an error).\n *\n * For external references such as `link:../target-folder`, the `entryId` is the empty string.\n */\n public readonly entryId: string;\n\n /**\n * The lockfile sometimes records the original SemVer specifier that was used to choose the versionPath,\n * usually either because it can change (e.g. a workspace project's dependencies) or because it's a peer dependency\n * that affects graph relationships beyond the current node. If not, then `originalSpecifier` will be the\n * empty string.\n *\n * @remarks\n * Because this field is only available for certain dependencies, it is generally less useful than specifiers\n * obtained from the package.json files.\n */\n public readonly originalSpecifier: string;\n public readonly dependencyKind: LfxDependencyKind;\n public readonly peerDependencyMeta: IJsonPeerDependencyMeta;\n\n public readonly containingEntry: LfxGraphEntry;\n public resolvedEntry: LfxGraphEntry | undefined = undefined;\n\n public constructor(options: ILfxGraphDependencyOptions) {\n const { name, versionPath, entryId, originalSpecifier, dependencyKind, peerDependencyMeta, containingEntry } =\n options;\n this.name = name;\n this.versionPath = versionPath;\n this.entryId = entryId;\n this.originalSpecifier = originalSpecifier;\n this.dependencyKind = dependencyKind;\n this.peerDependencyMeta = peerDependencyMeta;\n\n this.containingEntry = containingEntry;\n }\n}\n\nexport interface ILfxGraphEntryOptions {\n kind: LfxGraphEntryKind;\n entryId: string;\n rawEntryId: string;\n packageJsonFolderPath: string;\n entryPackageName: string;\n displayText: string;\n entryPackageVersion: string;\n entrySuffix: string;\n}\n\n/**\n * Represents a project or package listed in the pnpm lockfile.\n *\n * @remarks\n * Each project or package will have its own LockfileEntry, which is created when the lockfile is first parsed.\n * The fields for the LockfileEntry are outlined below:\n */\nexport class LfxGraphEntry {\n /**\n * Whether this entry is a project or a package (specified by importers or packages in the lockfile).\n */\n public readonly kind: LfxGraphEntryKind;\n\n /**\n * A unique identifier for this lockfile entry, based on `rawEntryId` but adjusted to be unique for both\n * project and external package entries.\n */\n public readonly entryId: string;\n\n /**\n * The unique identifier assigned to this project/package in the lockfile.\n * e.g. `/@emotion/core/10.3.1_qjwx5m6wssz3lnb35xwkc3pz6q:`\n *\n * @remarks\n * In the `pnpm-lock.yaml` file, \"importers\" (workspace projects) and \"packages\" (external packages)\n * are tracked separately, so it's not required for their keys to be unique. `entryId` solves this problem\n * by adding a `project:` prefix for importers.\n */\n public readonly rawEntryId: string;\n\n /**\n * Where the package.json is for this project or package.\n */\n public readonly packageJsonFolderPath: string;\n\n /**\n * Just the name of the package with no specifiers.\n */\n public readonly entryPackageName: string;\n\n /**\n * A human friendly name for the project or package.\n */\n public readonly displayText: string;\n\n public readonly entryPackageVersion: string;\n public readonly entrySuffix: string;\n\n /**\n * A list of all the dependencies for this entry.\n * Note that dependencies, dev dependencies, as well as peer dependencies are all included.\n */\n public readonly dependencies: LfxGraphDependency[] = [];\n\n /**\n * A list of dependencies that are listed under the \"transitivePeerDependencies\" in the pnpm lockfile.\n */\n public readonly transitivePeerDependencies: Set<string> = new Set();\n\n /**\n * A list of entries that specify this entry as a dependency.\n */\n public readonly referrers: LfxGraphEntry[] = [];\n\n public constructor(options: ILfxGraphEntryOptions) {\n const {\n kind,\n entryId,\n rawEntryId,\n packageJsonFolderPath,\n entryPackageName,\n displayText,\n entryPackageVersion,\n entrySuffix\n } = options;\n this.kind = kind;\n this.entryId = entryId;\n this.rawEntryId = rawEntryId;\n this.packageJsonFolderPath = packageJsonFolderPath;\n this.entryPackageName = entryPackageName;\n this.displayText = displayText;\n this.entryPackageVersion = entryPackageVersion;\n this.entrySuffix = entrySuffix;\n }\n}\n\nexport class LfxGraph {\n public readonly workspace: IJsonLfxWorkspace;\n public readonly entries: LfxGraphEntry[] = [];\n\n public constructor(workspace: IJsonLfxWorkspace) {\n this.workspace = { ...workspace };\n }\n}\n"]}