Skip to content

Conversation

@octogonz
Copy link
Collaborator

@octogonz octogonz commented Sep 26, 2025

Summary

Add support for PNPM 10 and fix lots of bugs with the lockfile parser

Details

This is the culmination of work from several recent PR's. It will be a major version bump for Lockfile Explorer.

How it was tested

Carefully analyzed the unit test cases for lockfile formats V5.4, V6.0, and V9.0

Impacted documentation

None.

@octogonz octogonz marked this pull request as ready for review October 3, 2025 05:50
export interface IJsonLfxDependency {
name: string;
version: string;
versionPath: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe leave a doc comment about what this is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are just the serialized versions of the corresponding fields from LfxGraph

dependencyType: LfxDependencyKind;
containingEntry: LfxGraphEntry;
peerDependencyMeta: IJsonPeerDependencyMeta;
versionPath: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These all have the same meaning as the corresponding fields in LfxGraph, since they are just its inputs


The lockfiles were built from this repistory:

https://github.com/octogonz/lockfile-explorer-edge-cases
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just check them into this repo?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should do that. I was deliberating about whether to make it a separate repo like https://github.com/microsoft/rush-example

@octogonz octogonz merged commit 7fe6d88 into microsoft:main Oct 3, 2025
5 checks passed
@github-project-automation github-project-automation bot moved this from Needs triage to Closed in Bug Triage Oct 3, 2025
@octogonz
Copy link
Collaborator Author

octogonz commented Oct 3, 2025

I'll address these minor points in the next PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants