@pnpm/lockfile.types 1002.1.0 → 1100.0.1

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,8 +1,8 @@
1
- import { type PatchFile } from '@pnpm/patching.types';
2
- import { type DependenciesMeta, type DepPath, type ProjectId } from '@pnpm/types';
3
- import { type PlatformAssetTarget } from '@pnpm/resolver-base';
4
- export type { PatchFile, ProjectId };
1
+ import type { PlatformAssetTarget } from '@pnpm/resolving.resolver-base';
2
+ import type { DependenciesMeta, DepPath, ProjectId } from '@pnpm/types';
3
+ export type { ProjectId };
5
4
  export * from './lockfileFileTypes.js';
5
+ import type { SpecifierAndResolution } from './lockfileFileTypes.js';
6
6
  export interface LockfileSettings {
7
7
  autoInstallPeers?: boolean;
8
8
  dedupePeers?: boolean;
@@ -16,7 +16,7 @@ export interface LockfileBase {
16
16
  lockfileVersion: string;
17
17
  overrides?: Record<string, string>;
18
18
  packageExtensionsChecksum?: string;
19
- patchedDependencies?: Record<string, PatchFile>;
19
+ patchedDependencies?: Record<string, string>;
20
20
  pnpmfileChecksum?: string;
21
21
  settings?: LockfileSettings;
22
22
  time?: Record<string, string>;
@@ -101,14 +101,24 @@ export interface BinaryResolution {
101
101
  type: 'binary';
102
102
  url: string;
103
103
  integrity: string;
104
- bin: string;
104
+ bin: string | Record<string, string>;
105
105
  archive: 'zip' | 'tarball';
106
106
  }
107
107
  export interface PlatformAssetResolution {
108
108
  resolution: Resolution;
109
109
  targets: PlatformAssetTarget[];
110
110
  }
111
- export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution;
111
+ /**
112
+ * Custom resolution type for custom resolver-provided packages.
113
+ * The type field must be prefixed with 'custom:' to differentiate it from built-in resolution types.
114
+ *
115
+ * Example: { type: 'custom:cdn', cdnUrl: '...' }
116
+ */
117
+ export interface CustomResolution {
118
+ type: `custom:${string}`;
119
+ [key: string]: unknown;
120
+ }
121
+ export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution | CustomResolution;
112
122
  export interface VariationsResolution {
113
123
  type: 'variations';
114
124
  variants: PlatformAssetResolution[];
@@ -129,6 +139,18 @@ export type PackageBin = string | {
129
139
  * }
130
140
  */
131
141
  export type ResolvedDependencies = Record<string, string>;
142
+ export interface EnvImporterSnapshot {
143
+ configDependencies: Record<string, SpecifierAndResolution>;
144
+ packageManagerDependencies?: Record<string, SpecifierAndResolution>;
145
+ }
146
+ export interface EnvLockfile {
147
+ lockfileVersion: string;
148
+ importers: Record<string, EnvImporterSnapshot> & {
149
+ '.': EnvImporterSnapshot;
150
+ };
151
+ packages: Record<string, LockfilePackageInfo>;
152
+ snapshots: Record<string, LockfilePackageSnapshot>;
153
+ }
132
154
  export interface CatalogSnapshots {
133
155
  [catalogName: string]: {
134
156
  [dependencyName: string]: ResolvedCatalogEntry;
package/lib/index.js CHANGED
@@ -1,18 +1,2 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./lockfileFileTypes.js"), exports);
1
+ export * from './lockfileFileTypes.js';
18
2
  //# sourceMappingURL=index.js.map
@@ -1,4 +1,4 @@
1
- import { type LockfileBase, type LockfilePackageInfo, type LockfilePackageSnapshot, type ProjectSnapshotBase } from './index.js';
1
+ import type { LockfileBase, LockfilePackageInfo, LockfilePackageSnapshot, ProjectSnapshotBase } from './index.js';
2
2
  export interface LockfileFile extends LockfileBase {
3
3
  importers?: Record<string, LockfileFileProjectSnapshot>;
4
4
  packages?: Record<string, LockfilePackageInfo>;
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=lockfileFileTypes.js.map
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.types",
3
- "version": "1002.1.0",
3
+ "version": "1100.0.1",
4
4
  "description": "Types for the pnpm-lock.yaml lockfile",
5
5
  "keywords": [
6
6
  "pnpm",
7
- "pnpm10",
7
+ "pnpm11",
8
8
  "lockfile",
9
9
  "types"
10
10
  ],
@@ -15,7 +15,7 @@
15
15
  "bugs": {
16
16
  "url": "https://github.com/pnpm/pnpm/issues"
17
17
  },
18
- "type": "commonjs",
18
+ "type": "module",
19
19
  "main": "lib/index.js",
20
20
  "types": "lib/index.d.ts",
21
21
  "exports": {
@@ -26,18 +26,18 @@
26
26
  "!*.map"
27
27
  ],
28
28
  "dependencies": {
29
- "@pnpm/patching.types": "1000.1.0",
30
- "@pnpm/types": "1001.3.0",
31
- "@pnpm/resolver-base": "1005.4.1"
29
+ "@pnpm/patching.types": "1100.0.0",
30
+ "@pnpm/resolving.resolver-base": "1100.0.1",
31
+ "@pnpm/types": "1101.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@pnpm/lockfile.types": "1002.1.0"
34
+ "@pnpm/lockfile.types": "1100.0.1"
35
35
  },
36
36
  "engines": {
37
- "node": ">=18.12"
37
+ "node": ">=22.13"
38
38
  },
39
39
  "scripts": {
40
40
  "lint": "eslint \"src/**/*.ts\"",
41
- "compile": "tsc --build && pnpm run lint --fix"
41
+ "compile": "tsgo --build && pn lint --fix"
42
42
  }
43
43
  }
package/lib/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAMA,yDAAsC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"lockfileFileTypes.js","sourceRoot":"","sources":["../src/lockfileFileTypes.ts"],"names":[],"mappings":""}