@pnpm/lockfile.types 1002.0.9 → 1100.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,10 +1,11 @@
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
+ dedupePeers?: boolean;
8
9
  excludeLinksFromLockfile?: boolean;
9
10
  peersSuffixMaxLength?: number;
10
11
  injectWorkspacePackages?: boolean;
@@ -15,7 +16,7 @@ export interface LockfileBase {
15
16
  lockfileVersion: string;
16
17
  overrides?: Record<string, string>;
17
18
  packageExtensionsChecksum?: string;
18
- patchedDependencies?: Record<string, PatchFile>;
19
+ patchedDependencies?: Record<string, string>;
19
20
  pnpmfileChecksum?: string;
20
21
  settings?: LockfileSettings;
21
22
  time?: Record<string, string>;
@@ -100,14 +101,24 @@ export interface BinaryResolution {
100
101
  type: 'binary';
101
102
  url: string;
102
103
  integrity: string;
103
- bin: string;
104
+ bin: string | Record<string, string>;
104
105
  archive: 'zip' | 'tarball';
105
106
  }
106
107
  export interface PlatformAssetResolution {
107
108
  resolution: Resolution;
108
109
  targets: PlatformAssetTarget[];
109
110
  }
110
- 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;
111
122
  export interface VariationsResolution {
112
123
  type: 'variations';
113
124
  variants: PlatformAssetResolution[];
@@ -128,6 +139,18 @@ export type PackageBin = string | {
128
139
  * }
129
140
  */
130
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
+ }
131
154
  export interface CatalogSnapshots {
132
155
  [catalogName: string]: {
133
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.0.9",
3
+ "version": "1100.0.0",
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/resolver-base": "1005.4.1",
31
- "@pnpm/types": "1001.3.0"
29
+ "@pnpm/patching.types": "1100.0.0",
30
+ "@pnpm/resolving.resolver-base": "1100.0.0",
31
+ "@pnpm/types": "1100.0.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@pnpm/lockfile.types": "1002.0.9"
34
+ "@pnpm/lockfile.types": "1100.0.0"
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":""}