Skip to content

Commit 5547bd9

Browse files
committed
Refactor global.json formatting for consistency; add TODO for JSON deserialization in Bun package manager
1 parent 937522c commit 5547bd9

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

global.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"sdk": {
3-
"version": "10.0.103",
4-
"rollForward": "latestPatch"
5-
}
2+
"sdk": {
3+
"version": "10.0.103",
4+
"rollForward": "latestPatch"
5+
}
66
}

src/UniGetUI.PackageEngine.Managers.Bun/Bun.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,9 @@ internal static IReadOnlyList<Package> ParseInstalledPackages(
323323
/// If preferLatest is true, uses "Latest" (parts[4], may have breaking changes).
324324
/// If preferLatest is false (default), uses "Update" (parts[3], safe semantic version).
325325
/// </summary>
326+
// TODO: Replace table parsing with JSON deserialization when bun outdated adds --json flag.
327+
// Track: https://github.com/oven-sh/bun/issues — once --json is available, this entire
328+
// method should be swapped for a simple JsonNode.Parse() call.
326329
internal static IEnumerable<(string Id, string Version, string NewVersion)> ParseBunOutdatedTable(
327330
string output,
328331
bool preferLatest = false)

0 commit comments

Comments
 (0)