Skip to content

Commit e13d10a

Browse files
committed
[rush] Upgrade pnpm-sync-lib to v0.3.3 for pnpm v10 compatibility
tiktok/pnpm-sync#40 tiktok/pnpm-sync#43
1 parent 8c312b2 commit e13d10a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1180
-138
lines changed

apps/lockfile-explorer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"js-yaml": "~3.13.1",
6767
"open": "~8.4.0",
6868
"update-notifier": "~5.1.0",
69-
"@pnpm/dependency-path-lockfile-pre-v9": "npm:@pnpm/dependency-path@~2.1.2",
69+
"@rushstack/rush-pnpm-kit-v8": "workspace:*",
7070
"semver": "~7.5.4",
7171
"@rushstack/rush-sdk": "workspace:*",
7272
"@rushstack/ts-command-line": "workspace:*"

apps/lockfile-explorer/src/utils/shrinkwrap.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
22
// See LICENSE in the project root for license information.
33

4-
import * as dependencyPathLockfilePreV9 from '@pnpm/dependency-path-lockfile-pre-v9';
4+
import * as pnpmKitV8 from '@rushstack/rush-pnpm-kit-v8';
55

66
interface IPackageInfo {
77
name: string;
@@ -12,7 +12,8 @@ interface IPackageInfo {
1212
export function convertLockfileV6DepPathToV5DepPath(newDepPath: string): string {
1313
if (!newDepPath.includes('@', 2) || newDepPath.startsWith('file:')) return newDepPath;
1414
const index = newDepPath.indexOf('@', newDepPath.indexOf('/@') + 2);
15-
if (newDepPath.includes('(') && index > dependencyPathLockfilePreV9.indexOfPeersSuffix(newDepPath)) return newDepPath;
15+
if (newDepPath.includes('(') && index > pnpmKitV8.dependencyPath.indexOfPeersSuffix(newDepPath))
16+
return newDepPath;
1617
return `${newDepPath.substring(0, index)}/${newDepPath.substring(index + 1)}`;
1718
}
1819

@@ -21,7 +22,7 @@ export function parseDependencyPath(shrinkwrapFileMajorVersion: number, newDepPa
2122
if (shrinkwrapFileMajorVersion === 6) {
2223
dependencyPath = convertLockfileV6DepPathToV5DepPath(newDepPath);
2324
}
24-
const packageInfo = dependencyPathLockfilePreV9.parse(dependencyPath);
25+
const packageInfo = pnpmKitV8.dependencyPath.parse(dependencyPath);
2526
return {
2627
name: packageInfo.name as string,
2728
peersSuffix: packageInfo.peersSuffix,
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/rush",
5+
"comment": "Upgrade `pnpm-sync-lib` to v0.3.3 for pnpm v10 compatibility",
6+
"type": "none"
7+
}
8+
],
9+
"packageName": "@microsoft/rush"
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/lockfile-explorer",
5+
"comment": "Use pnpm dependency path implementation from `@rushstack/rush-pnpm-kit-v8`",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@rushstack/lockfile-explorer"
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/rush-pnpm-kit-v10",
5+
"comment": "Set up the `@rushstack/rush-pnpm-kit-v10` package to bundle all pnpm v10 related packages together.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/rush-pnpm-kit-v10"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/rush-pnpm-kit-v8",
5+
"comment": "Set up the `@rushstack/rush-pnpm-kit-v8` package to bundle all pnpm v8 related packages together.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/rush-pnpm-kit-v8"
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@rushstack/rush-pnpm-kit-v9",
5+
"comment": "Set up the `@rushstack/rush-pnpm-kit-v9` package to bundle all pnpm v9 related packages together.",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@rushstack/rush-pnpm-kit-v9"
10+
}

common/config/rush/browser-approved-packages.json

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"packages": [
55
{
66
"name": "@fluentui/react",
7-
"allowedCategories": [ "libraries", "vscode-extensions" ]
7+
"allowedCategories": [ "vscode-extensions" ]
88
},
99
{
1010
"name": "@fluentui/react-components",
@@ -50,10 +50,6 @@
5050
"name": "@ungap/structured-clone",
5151
"allowedCategories": [ "libraries" ]
5252
},
53-
{
54-
"name": "axios",
55-
"allowedCategories": [ "libraries" ]
56-
},
5753
{
5854
"name": "dependency-path",
5955
"allowedCategories": [ "libraries" ]
@@ -62,10 +58,6 @@
6258
"name": "local-web-rig",
6359
"allowedCategories": [ "libraries", "vscode-extensions" ]
6460
},
65-
{
66-
"name": "office-ui-fabric-core",
67-
"allowedCategories": [ "libraries" ]
68-
},
6961
{
7062
"name": "react",
7163
"allowedCategories": [ "libraries", "tests", "vscode-extensions" ]
@@ -96,11 +88,7 @@
9688
},
9789
{
9890
"name": "tslib",
99-
"allowedCategories": [ "libraries", "tests", "vscode-extensions" ]
100-
},
101-
{
102-
"name": "zod",
103-
"allowedCategories": [ "libraries" ]
91+
"allowedCategories": [ "tests", "vscode-extensions" ]
10492
}
10593
]
10694
}

common/config/rush/nonbrowser-approved-packages.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,18 @@
102102
"name": "@pnpm/link-bins",
103103
"allowedCategories": [ "libraries" ]
104104
},
105+
{
106+
"name": "@pnpm/lockfile-file",
107+
"allowedCategories": [ "libraries" ]
108+
},
105109
{
106110
"name": "@pnpm/lockfile-types",
107111
"allowedCategories": [ "libraries" ]
108112
},
113+
{
114+
"name": "@pnpm/lockfile.fs",
115+
"allowedCategories": [ "libraries" ]
116+
},
109117
{
110118
"name": "@pnpm/lockfile.types",
111119
"allowedCategories": [ "libraries" ]
@@ -278,6 +286,18 @@
278286
"name": "@rushstack/rush-http-build-cache-plugin",
279287
"allowedCategories": [ "libraries" ]
280288
},
289+
{
290+
"name": "@rushstack/rush-pnpm-kit-v10",
291+
"allowedCategories": [ "libraries" ]
292+
},
293+
{
294+
"name": "@rushstack/rush-pnpm-kit-v8",
295+
"allowedCategories": [ "libraries" ]
296+
},
297+
{
298+
"name": "@rushstack/rush-pnpm-kit-v9",
299+
"allowedCategories": [ "libraries" ]
300+
},
281301
{
282302
"name": "@rushstack/rush-redis-cobuild-plugin",
283303
"allowedCategories": [ "tests" ]

0 commit comments

Comments
 (0)