-
Notifications
You must be signed in to change notification settings - Fork 666
[lockfile-explorer] Architecture improvents #5357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1d1f3c4
Add launch.json
octogonz 0d26de0
Rename getPackageFiles.ts -> lfxApiClient.ts
octogonz 0606b06
Fix broken devServer configuration
octogonz a8c8139
Fix broken IntelliSense due to missing dev dependency
octogonz ff30b7e
Initial work on replacing server-only IAppState with client ILfxWorks…
octogonz 40dea3a
Add missing tslib dependency; bump to tslib 2.8.1
octogonz 7e262c0
Extract the parsing/construction from LockfileEntry.ts and LockfileDe…
octogonz 04d5981
Normalize TSDoc
octogonz c8fcb5a
Rename IDependencyType -> DependencyKind
octogonz ba8dbdf
Consolidate LockfileDependency.ts and LockfileEntry.ts into LfxGraph.ts
octogonz aa24ba1
Implement JSON serializer/deserializer
octogonz 349cead
rush change
octogonz b8c298b
Remove debug code
octogonz c0c6112
Revert version bump that broke test
octogonz b1b3e00
PR feedback
octogonz 7f3fa16
PR feedback: eliminate path.resolve() and fix some Rush API docs
octogonz 0f53f01
Code cleanup, fix "key in string" mistake
octogonz 284abe6
Revert change that didn't compile
octogonz ad80fc9
PR feedback: Make Lfxgraph more readonly
octogonz a837891
PR feedback: Detect "6.1" without accidentally detecting "60.0"
octogonz f2e332f
Fix lint error
octogonz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. | ||
| // See LICENSE in the project root for license information. | ||
|
|
||
| import type { DependencyKind, LockfileEntryFilter } from './LfxGraph'; | ||
|
|
||
| export interface IJsonPeerDependencyMeta { | ||
| name?: string; | ||
| version?: string; | ||
| optional?: boolean; | ||
| } | ||
|
|
||
| export interface IJsonLfxDependency { | ||
| name: string; | ||
| version: string; | ||
| entryId: string; | ||
| dependencyType: DependencyKind; | ||
|
|
||
| resolvedEntryJsonId?: number; | ||
|
|
||
| peerDependencyMeta: IJsonPeerDependencyMeta; | ||
| } | ||
|
|
||
| export interface IJsonLfxEntry { | ||
| /** | ||
| * A unique ID used when serializing graph links. | ||
| * | ||
| * @remarks | ||
| * This is just the `IJsonLfxGraph.entries` array index, but debugging is easier if we include | ||
| * it in the serialized representation. | ||
| */ | ||
| jsonId: number; | ||
|
|
||
| kind: LockfileEntryFilter; | ||
| entryId: string; | ||
| rawEntryId: string; | ||
| packageJsonFolderPath: string; | ||
| entryPackageName: string; | ||
| displayText: string; | ||
| entryPackageVersion: string; | ||
| entrySuffix: string; | ||
|
|
||
| // Lists | ||
| dependencies: IJsonLfxDependency[]; | ||
| transitivePeerDependencies: string[]; | ||
| referrerJsonIds: number[]; | ||
| } | ||
|
|
||
| export interface IJsonLfxGraph { | ||
| entries: IJsonLfxEntry[]; | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That isn't a problem in other Rush repos. VSCode should be able to fall back to TypeScript that it ships with.