@pnpm/lockfile.types 1001.1.0 → 1002.0.0

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/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { type PatchFile } from '@pnpm/patching.types';
2
2
  import { type DependenciesMeta, type DepPath, type ProjectId } from '@pnpm/types';
3
+ import { type PlatformAssetTarget } from '@pnpm/resolver-base';
3
4
  export type { PatchFile, ProjectId };
4
5
  export * from './lockfileFileTypes';
5
6
  export interface LockfileSettings {
@@ -95,12 +96,23 @@ export interface GitRepositoryResolution {
95
96
  commit: string;
96
97
  path?: string;
97
98
  }
98
- export interface NodeRuntimeResolution {
99
- type: 'nodeRuntime';
99
+ export interface BinaryResolution {
100
+ type: 'binary';
101
+ url: string;
100
102
  integrity: string;
103
+ bin: string;
104
+ archive: 'zip' | 'tarball';
101
105
  }
102
- export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | NodeRuntimeResolution;
103
- export type LockfileResolution = Resolution | {
106
+ export interface PlatformAssetResolution {
107
+ resolution: Resolution;
108
+ targets: PlatformAssetTarget[];
109
+ }
110
+ export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution;
111
+ export interface VariationsResolution {
112
+ type: 'variations';
113
+ variants: PlatformAssetResolution[];
114
+ }
115
+ export type LockfileResolution = Resolution | VariationsResolution | {
104
116
  integrity: string;
105
117
  };
106
118
  export type PackageSnapshot = LockfilePackageInfo & LockfilePackageSnapshot;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,sDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,sDAAmC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.types",
3
- "version": "1001.1.0",
3
+ "version": "1002.0.0",
4
4
  "description": "Types for the pnpm-lock.yaml lockfile",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -26,11 +26,12 @@
26
26
  "!*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "@pnpm/types": "1000.7.0",
30
- "@pnpm/patching.types": "1000.1.0"
29
+ "@pnpm/patching.types": "1000.1.0",
30
+ "@pnpm/resolver-base": "1005.0.0",
31
+ "@pnpm/types": "1000.7.0"
31
32
  },
32
33
  "devDependencies": {
33
- "@pnpm/lockfile.types": "1001.1.0"
34
+ "@pnpm/lockfile.types": "1002.0.0"
34
35
  },
35
36
  "engines": {
36
37
  "node": ">=18.12"