@pnpm/lockfile.types 1100.0.15 → 1100.0.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @pnpm/lockfile-types
2
2
 
3
+ ## 1100.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Republished every package: the tarballs published by the v11.13.1 through v11.16.0 releases were missing most of their compiled files due to a packing bug [#13164](https://github.com/pnpm/pnpm/issues/13164).
8
+
9
+ - Updated dependencies:
10
+ - @pnpm/patching.types@1100.0.1
11
+ - @pnpm/resolving.resolver-base@1100.5.4
12
+ - @pnpm/types@1101.6.0
13
+
3
14
  ## 1100.0.15
4
15
 
5
16
  ### Patch Changes
package/lib/index.d.ts ADDED
@@ -0,0 +1,186 @@
1
+ import type { PlatformAssetTarget } from '@pnpm/resolving.resolver-base';
2
+ import type { DependenciesMeta, DepPath, ProjectId } from '@pnpm/types';
3
+ export type { ProjectId };
4
+ export * from './lockfileFileTypes.js';
5
+ import type { SpecifierAndResolution } from './lockfileFileTypes.js';
6
+ export interface LockfileSettings {
7
+ autoInstallPeers?: boolean;
8
+ dedupePeers?: boolean;
9
+ excludeLinksFromLockfile?: boolean;
10
+ peersSuffixMaxLength?: number;
11
+ injectWorkspacePackages?: boolean;
12
+ }
13
+ export interface LockfileBase {
14
+ catalogs?: CatalogSnapshots;
15
+ ignoredOptionalDependencies?: string[];
16
+ lockfileVersion: string;
17
+ overrides?: Record<string, string>;
18
+ packageExtensionsChecksum?: string;
19
+ patchedDependencies?: Record<string, string>;
20
+ pnpmfileChecksum?: string;
21
+ settings?: LockfileSettings;
22
+ time?: Record<string, string>;
23
+ }
24
+ export interface LockfileObject extends LockfileBase {
25
+ importers: Record<ProjectId, ProjectSnapshot>;
26
+ packages?: PackageSnapshots;
27
+ }
28
+ export interface LockfilePackageSnapshot {
29
+ optional?: true;
30
+ dependencies?: ResolvedDependencies;
31
+ optionalDependencies?: ResolvedDependencies;
32
+ transitivePeerDependencies?: string[];
33
+ }
34
+ export interface LockfilePackageInfo {
35
+ id?: string;
36
+ patched?: true;
37
+ hasBin?: true;
38
+ name?: string;
39
+ version?: string;
40
+ resolution: LockfileResolution;
41
+ peerDependencies?: {
42
+ [name: string]: string;
43
+ };
44
+ peerDependenciesMeta?: {
45
+ [name: string]: {
46
+ optional: true;
47
+ };
48
+ };
49
+ bundledDependencies?: string[] | boolean;
50
+ engines?: Record<string, string> & {
51
+ node: string;
52
+ };
53
+ os?: string[];
54
+ cpu?: string[];
55
+ libc?: string[];
56
+ deprecated?: string;
57
+ }
58
+ export interface ProjectSnapshotBase {
59
+ dependenciesMeta?: DependenciesMeta;
60
+ publishDirectory?: string;
61
+ }
62
+ export interface ProjectSnapshot extends ProjectSnapshotBase {
63
+ specifiers: ResolvedDependencies;
64
+ dependencies?: ResolvedDependencies;
65
+ optionalDependencies?: ResolvedDependencies;
66
+ devDependencies?: ResolvedDependencies;
67
+ }
68
+ export type ResolvedDependenciesOfImporters = Record<string, {
69
+ version: string;
70
+ specifier: string;
71
+ }>;
72
+ export interface PackageSnapshots {
73
+ [packagePath: DepPath]: PackageSnapshot;
74
+ }
75
+ /**
76
+ * tarball hosted remotely
77
+ */
78
+ export interface TarballResolution {
79
+ type?: undefined;
80
+ tarball: string;
81
+ integrity?: string;
82
+ path?: string;
83
+ /**
84
+ * True for tarballs sourced from a git host (codeload.github.com /
85
+ * gitlab.com / bitbucket.org). Such tarballs need preparation
86
+ * (preparePackage / packlist) on extraction, and their cached content
87
+ * depends on whether build scripts ran, so they're addressed by
88
+ * gitHostedStoreIndexKey rather than the integrity-based key.
89
+ *
90
+ * The git resolver sets this when it produces the resolution; the
91
+ * lockfile loader sets it on entries whose URL matches a known git host
92
+ * for backward compatibility with lockfiles written before this field
93
+ * existed.
94
+ */
95
+ gitHosted?: boolean;
96
+ }
97
+ /**
98
+ * directory on a file system
99
+ */
100
+ export interface DirectoryResolution {
101
+ type: 'directory';
102
+ directory: string;
103
+ }
104
+ /**
105
+ * Git repository
106
+ */
107
+ export interface GitRepositoryResolution {
108
+ type: 'git';
109
+ repo: string;
110
+ commit: string;
111
+ path?: string;
112
+ }
113
+ export interface BinaryResolution {
114
+ type: 'binary';
115
+ url: string;
116
+ integrity: string;
117
+ bin: string | Record<string, string>;
118
+ archive: 'zip' | 'tarball';
119
+ }
120
+ export interface PlatformAssetResolution {
121
+ resolution: Resolution;
122
+ targets: PlatformAssetTarget[];
123
+ }
124
+ /**
125
+ * Custom resolution type for custom resolver-provided packages.
126
+ * The type field must be prefixed with 'custom:' to differentiate it from built-in resolution types.
127
+ *
128
+ * Example: { type: 'custom:cdn', cdnUrl: '...' }
129
+ */
130
+ export interface CustomResolution {
131
+ type: `custom:${string}`;
132
+ [key: string]: unknown;
133
+ }
134
+ export type Resolution = TarballResolution | GitRepositoryResolution | DirectoryResolution | BinaryResolution | CustomResolution;
135
+ export interface VariationsResolution {
136
+ type: 'variations';
137
+ variants: PlatformAssetResolution[];
138
+ }
139
+ export type LockfileResolution = Resolution | VariationsResolution | {
140
+ integrity: string;
141
+ };
142
+ export type PackageSnapshot = LockfilePackageInfo & LockfilePackageSnapshot;
143
+ export interface Dependencies {
144
+ [name: string]: string;
145
+ }
146
+ export type PackageBin = string | {
147
+ [name: string]: string;
148
+ };
149
+ /** @example
150
+ * {
151
+ * "foo": "registry.npmjs.org/foo/1.0.1"
152
+ * }
153
+ */
154
+ export type ResolvedDependencies = Record<string, string>;
155
+ export interface EnvImporterSnapshot {
156
+ configDependencies: Record<string, SpecifierAndResolution>;
157
+ packageManagerDependencies?: Record<string, SpecifierAndResolution>;
158
+ }
159
+ export interface EnvLockfile {
160
+ lockfileVersion: string;
161
+ importers: Record<string, EnvImporterSnapshot> & {
162
+ '.': EnvImporterSnapshot;
163
+ };
164
+ packages: Record<string, LockfilePackageInfo>;
165
+ snapshots: Record<string, LockfilePackageSnapshot>;
166
+ }
167
+ export interface CatalogSnapshots {
168
+ [catalogName: string]: {
169
+ [dependencyName: string]: ResolvedCatalogEntry;
170
+ };
171
+ }
172
+ export interface ResolvedCatalogEntry {
173
+ /**
174
+ * The real specifier that should be used for this dependency's catalog entry.
175
+ * This would be the ^1.2.3 portion of:
176
+ *
177
+ * @example
178
+ * catalog:
179
+ * foo: ^1.2.3
180
+ */
181
+ readonly specifier: string;
182
+ /**
183
+ * The concrete version that the requested specifier resolved to. Ex: 1.2.3
184
+ */
185
+ readonly version: string;
186
+ }
@@ -0,0 +1,23 @@
1
+ import type { LockfileBase, LockfilePackageInfo, LockfilePackageSnapshot, ProjectSnapshotBase } from './index.js';
2
+ export interface LockfileFile extends LockfileBase {
3
+ importers?: Record<string, LockfileFileProjectSnapshot>;
4
+ packages?: Record<string, LockfilePackageInfo>;
5
+ snapshots?: Record<string, LockfilePackageSnapshot>;
6
+ }
7
+ /**
8
+ * Similar to the current ProjectSnapshot interface, but omits the "specifiers"
9
+ * field in favor of inlining each specifier next to its version resolution in
10
+ * dependency blocks.
11
+ */
12
+ export interface LockfileFileProjectSnapshot extends ProjectSnapshotBase {
13
+ dependencies?: LockfileFileProjectResolvedDependencies;
14
+ devDependencies?: LockfileFileProjectResolvedDependencies;
15
+ optionalDependencies?: LockfileFileProjectResolvedDependencies;
16
+ }
17
+ export interface LockfileFileProjectResolvedDependencies {
18
+ [depName: string]: SpecifierAndResolution;
19
+ }
20
+ export interface SpecifierAndResolution {
21
+ specifier: string;
22
+ version: string;
23
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=lockfileFileTypes.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.types",
3
- "version": "1100.0.15",
3
+ "version": "1100.0.16",
4
4
  "description": "Types for the pnpm-lock.yaml lockfile",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -29,12 +29,12 @@
29
29
  "!*.map"
30
30
  ],
31
31
  "dependencies": {
32
- "@pnpm/patching.types": "1100.0.0",
33
- "@pnpm/resolving.resolver-base": "1100.5.3",
34
- "@pnpm/types": "1101.5.0"
32
+ "@pnpm/patching.types": "1100.0.1",
33
+ "@pnpm/resolving.resolver-base": "1100.5.4",
34
+ "@pnpm/types": "1101.6.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@pnpm/lockfile.types": "1100.0.15"
37
+ "@pnpm/lockfile.types": "1100.0.16"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.13"