@pnpm/lockfile.types 1100.0.13 → 1100.0.15

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 ADDED
@@ -0,0 +1,677 @@
1
+ # @pnpm/lockfile-types
2
+
3
+ ## 1100.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @pnpm/resolving.resolver-base@1100.5.3
9
+ - @pnpm/types@1101.5.0
10
+
11
+ ## 1100.0.14
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies:
16
+ - @pnpm/resolving.resolver-base@1100.5.2
17
+ - @pnpm/types@1101.4.0
18
+
19
+ ## 1100.0.13
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [dcabb78]
24
+ - @pnpm/resolving.resolver-base@1100.5.1
25
+
26
+ ## 1100.0.12
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [bae694f]
31
+ - @pnpm/resolving.resolver-base@1100.5.0
32
+
33
+ ## 1100.0.11
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [681b593]
38
+ - @pnpm/types@1101.3.2
39
+ - @pnpm/resolving.resolver-base@1100.4.2
40
+
41
+ ## 1100.0.10
42
+
43
+ ### Patch Changes
44
+
45
+ - Updated dependencies [bf1b731]
46
+ - @pnpm/types@1101.3.1
47
+ - @pnpm/resolving.resolver-base@1100.4.1
48
+
49
+ ## 1100.0.9
50
+
51
+ ### Patch Changes
52
+
53
+ - Updated dependencies [a017bf3]
54
+ - Updated dependencies [6d17b66]
55
+ - @pnpm/types@1101.3.0
56
+ - @pnpm/resolving.resolver-base@1100.4.0
57
+
58
+ ## 1100.0.8
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [35d2355]
63
+ - @pnpm/types@1101.2.0
64
+ - @pnpm/resolving.resolver-base@1100.3.1
65
+
66
+ ## 1100.0.7
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [1627943]
71
+ - Updated dependencies [64afc92]
72
+ - @pnpm/resolving.resolver-base@1100.3.0
73
+ - @pnpm/types@1101.1.1
74
+
75
+ ## 1100.0.6
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [4195766]
80
+ - Updated dependencies [31538bf]
81
+ - @pnpm/resolving.resolver-base@1100.2.0
82
+
83
+ ## 1100.0.5
84
+
85
+ ### Patch Changes
86
+
87
+ - Updated dependencies [b61e268]
88
+ - @pnpm/types@1101.1.0
89
+ - @pnpm/resolving.resolver-base@1100.1.3
90
+
91
+ ## 1100.0.4
92
+
93
+ ### Patch Changes
94
+
95
+ - 27425d7: Pin the integrity of git-hosted tarballs (codeload.github.com, gitlab.com, bitbucket.org) in the lockfile so that subsequent installs detect a tampered or substituted tarball and refuse to install it. Previously the lockfile only stored the tarball URL for git dependencies, so a compromised git host or a man-in-the-middle could serve arbitrary code on later installs without lockfile changes.
96
+
97
+ A new `gitHosted: true` field is recorded on git-hosted tarball resolutions in the lockfile, letting every reader/writer route them by a single typed check instead of pattern-matching the tarball URL in each call site. Lockfiles written by older pnpm versions are enriched on load (URL fallback) so the field can be relied on uniformly across the codebase.
98
+
99
+ - Updated dependencies [27425d7]
100
+ - @pnpm/resolving.resolver-base@1100.1.2
101
+
102
+ ## 1100.0.3
103
+
104
+ ### Patch Changes
105
+
106
+ - Updated dependencies [184ce26]
107
+ - @pnpm/resolving.resolver-base@1100.1.1
108
+
109
+ ## 1100.0.2
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies [72c1e05]
114
+ - @pnpm/resolving.resolver-base@1100.1.0
115
+
116
+ ## 1100.0.1
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [ff28085]
121
+ - @pnpm/types@1101.0.0
122
+ - @pnpm/resolving.resolver-base@1100.0.1
123
+
124
+ ## 1003.0.0
125
+
126
+ ### Major Changes
127
+
128
+ - 491a84f: This package is now pure ESM.
129
+ - 7d2fd48: Node.js v18, 19, 20, and 21 support discontinued.
130
+
131
+ ### Minor Changes
132
+
133
+ - a8f016c: Store config dependency and package manager integrity info in `pnpm-lock.yaml` instead of inlining it in `pnpm-workspace.yaml`. The workspace manifest now contains only clean version specifiers for `configDependencies`, while the resolved versions, integrity hashes, and tarball URLs are recorded in the lockfile as a separate YAML document. The env lockfile section also stores `packageManagerDependencies` resolved during version switching and self-update. Projects using the old inline-hash format are automatically migrated on install.
134
+ - 606f53e: Added a new `dedupePeers` setting that reduces peer dependency duplication. When enabled, peer dependency suffixes use version-only identifiers (`name@version`) instead of full dep paths, eliminating nested suffixes like `(foo@1.0.0(bar@2.0.0))`. This dramatically reduces the number of package instances in projects with many recursive peer dependencies [#11070](https://github.com/pnpm/pnpm/issues/11070).
135
+ - 38b8e35: Support for custom resolvers and fetchers.
136
+
137
+ ### Patch Changes
138
+
139
+ - 50fbeca: Added `getNodeBinsForCurrentOS` to `@pnpm/constants` which returns a `Record<string, string>` with paths for `node`, `npm`, and `npx` within the Node.js package. This record is now used as `BinaryResolution.bin` (type widened from `string` to `string | Record<string, string>`) and as `manifest.bin` in the node resolver, so pnpm's bin-linker creates all three shims automatically when installing a Node.js runtime.
140
+ - Updated dependencies [facdd71]
141
+ - Updated dependencies [9b0a460]
142
+ - Updated dependencies [76718b3]
143
+ - Updated dependencies [a8f016c]
144
+ - Updated dependencies [cc1b8e3]
145
+ - Updated dependencies [491a84f]
146
+ - Updated dependencies [7d2fd48]
147
+ - Updated dependencies [efb48dc]
148
+ - Updated dependencies [50fbeca]
149
+ - Updated dependencies [cb367b9]
150
+ - Updated dependencies [7b1c189]
151
+ - Updated dependencies [8ffb1a7]
152
+ - Updated dependencies [05fb1ae]
153
+ - Updated dependencies [71de2b3]
154
+ - Updated dependencies [10bc391]
155
+ - Updated dependencies [38b8e35]
156
+ - Updated dependencies [2df8b71]
157
+ - Updated dependencies [15549a9]
158
+ - Updated dependencies [cc7c0d2]
159
+ - Updated dependencies [9d3f00b]
160
+ - Updated dependencies [efb48dc]
161
+ - @pnpm/resolving.resolver-base@1006.0.0
162
+ - @pnpm/types@1001.0.0
163
+ - @pnpm/patching.types@1001.0.0
164
+
165
+ ## 1002.0.2
166
+
167
+ ### Patch Changes
168
+
169
+ - Updated dependencies [7c1382f]
170
+ - Updated dependencies [7c1382f]
171
+ - Updated dependencies [dee39ec]
172
+ - @pnpm/types@1000.9.0
173
+ - @pnpm/resolver-base@1005.1.0
174
+
175
+ ## 1002.0.1
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies [e792927]
180
+ - @pnpm/types@1000.8.0
181
+ - @pnpm/resolver-base@1005.0.1
182
+
183
+ ## 1002.0.0
184
+
185
+ ### Major Changes
186
+
187
+ - d1edf73: Removed node fetcher. The binary fetcher should be used for downloading node assets.
188
+ - f91922c: Changed how the integrity of the node.js artifact is stored in the lockfile.
189
+
190
+ ### Patch Changes
191
+
192
+ - Updated dependencies [86b33e9]
193
+ - Updated dependencies [d1edf73]
194
+ - Updated dependencies [f91922c]
195
+ - @pnpm/resolver-base@1005.0.0
196
+
197
+ ## 1001.1.0
198
+
199
+ ### Minor Changes
200
+
201
+ - 1a07b8f: Added support for resolving and downloading the Node.js runtime specified in the [devEngines](https://github.com/openjs-foundation/package-metadata-interoperability-collab-space/issues/15) field of `package.json`.
202
+
203
+ Usage example:
204
+
205
+ ```json
206
+ {
207
+ "devEngines": {
208
+ "runtime": {
209
+ "name": "node",
210
+ "version": "^24.4.0",
211
+ "onFail": "download"
212
+ }
213
+ }
214
+ }
215
+ ```
216
+
217
+ When running `pnpm install`, pnpm will resolve Node.js to the latest version that satisfies the specified range and install it as a dependency of the project. As a result, when running scripts, the locally installed Node.js version will be used.
218
+
219
+ Unlike the existing options, `useNodeVersion` and `executionEnv.nodeVersion`, this new field supports version ranges, which are locked to exact versions during installation. The resolved version is stored in the pnpm lockfile, along with an integrity checksum for future validation of the Node.js content's validity.
220
+
221
+ Related PR: [#9755](https://github.com/pnpm/pnpm/pull/9755).
222
+
223
+ ### Patch Changes
224
+
225
+ - Updated dependencies [1a07b8f]
226
+ - @pnpm/types@1000.7.0
227
+
228
+ ## 1001.0.8
229
+
230
+ ### Patch Changes
231
+
232
+ - Updated dependencies [5ec7255]
233
+ - @pnpm/types@1000.6.0
234
+
235
+ ## 1001.0.7
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [5b73df1]
240
+ - @pnpm/types@1000.5.0
241
+
242
+ ## 1001.0.6
243
+
244
+ ### Patch Changes
245
+
246
+ - Updated dependencies [750ae7d]
247
+ - @pnpm/types@1000.4.0
248
+
249
+ ## 1001.0.5
250
+
251
+ ### Patch Changes
252
+
253
+ - Updated dependencies [5f7be64]
254
+ - Updated dependencies [5f7be64]
255
+ - Updated dependencies [5f7be64]
256
+ - @pnpm/patching.types@1000.1.0
257
+ - @pnpm/types@1000.3.0
258
+
259
+ ## 1001.0.4
260
+
261
+ ### Patch Changes
262
+
263
+ - Updated dependencies [a5e4965]
264
+ - @pnpm/types@1000.2.1
265
+
266
+ ## 1001.0.3
267
+
268
+ ### Patch Changes
269
+
270
+ - Updated dependencies [8fcc221]
271
+ - @pnpm/types@1000.2.0
272
+
273
+ ## 1001.0.2
274
+
275
+ ### Patch Changes
276
+
277
+ - Updated dependencies [b562deb]
278
+ - @pnpm/types@1000.1.1
279
+
280
+ ## 1001.0.1
281
+
282
+ ### Patch Changes
283
+
284
+ - Updated dependencies [9591a18]
285
+ - @pnpm/types@1000.1.0
286
+
287
+ ## 1001.0.0
288
+
289
+ ### Major Changes
290
+
291
+ - a76da0c: Removed lockfile conversion from v6 to v9. If you need to convert lockfile v6 to v9, use pnpm CLI v9.
292
+
293
+ ### Minor Changes
294
+
295
+ - 6483b64: A new setting, `inject-workspace-packages`, has been added to allow hard-linking all local workspace dependencies instead of symlinking them. Previously, this behavior was achievable via the [`dependenciesMeta[].injected`](https://pnpm.io/package_json#dependenciesmetainjected) setting, which remains supported [#8836](https://github.com/pnpm/pnpm/pull/8836).
296
+
297
+ ## 1.0.3
298
+
299
+ ### Patch Changes
300
+
301
+ - Updated dependencies [d500d9f]
302
+ - @pnpm/types@12.2.0
303
+
304
+ ## 1.0.2
305
+
306
+ ### Patch Changes
307
+
308
+ - Updated dependencies [7ee59a1]
309
+ - @pnpm/types@12.1.0
310
+
311
+ ## 1.0.1
312
+
313
+ ### Patch Changes
314
+
315
+ - cb006df: Add ability to apply patch to all versions:
316
+ If the key of `pnpm.patchedDependencies` is a package name without a version (e.g. `pkg`), pnpm will attempt to apply the patch to all versions of
317
+ the package, failure will be skipped.
318
+ If it is a package name and an exact version (e.g. `pkg@x.y.z`), pnpm will attempt to apply the patch to that exact version only, failure will
319
+ cause pnpm to fail.
320
+
321
+ If there's only one version of `pkg` installed, `pnpm patch pkg` and subsequent `pnpm patch-commit $edit_dir` will create an entry named `pkg` in
322
+ `pnpm.patchedDependencies`. And pnpm will attempt to apply this patch to other versions of `pkg` in the future.
323
+
324
+ If there's multiple versions of `pkg` installed, `pnpm patch pkg` will ask which version to edit and whether to attempt to apply the patch to all.
325
+ If the user chooses to apply the patch to all, `pnpm patch-commit $edit_dir` would create a `pkg` entry in `pnpm.patchedDependencies`.
326
+ If the user chooses not to apply the patch to all, `pnpm patch-commit $edit_dir` would create a `pkg@x.y.z` entry in `pnpm.patchedDependencies` with
327
+ `x.y.z` being the version the user chose to edit.
328
+
329
+ If the user runs `pnpm patch pkg@x.y.z` with `x.y.z` being the exact version of `pkg` that has been installed, `pnpm patch-commit $edit_dir` will always
330
+ create a `pkg@x.y.z` entry in `pnpm.patchedDependencies`.
331
+
332
+ - Updated dependencies [cb006df]
333
+ - @pnpm/patching.types@1.0.0
334
+ - @pnpm/types@12.0.0
335
+
336
+ ## 1.0.0
337
+
338
+ ### Major Changes
339
+
340
+ - 797ef0f: Rename project from `@pnpm/lockfile-types` to `@pnpm/lockfile.types`.
341
+
342
+ ## 7.1.3
343
+
344
+ ### Patch Changes
345
+
346
+ - Updated dependencies [0ef168b]
347
+ - @pnpm/types@11.1.0
348
+
349
+ ## 7.1.2
350
+
351
+ ### Patch Changes
352
+
353
+ - Updated dependencies [dd00eeb]
354
+ - Updated dependencies
355
+ - @pnpm/types@11.0.0
356
+
357
+ ## 7.1.1
358
+
359
+ ### Patch Changes
360
+
361
+ - Updated dependencies [13e55b2]
362
+ - @pnpm/types@10.1.1
363
+
364
+ ## 7.1.0
365
+
366
+ ### Minor Changes
367
+
368
+ - 47341e5: **Semi-breaking.** Dependency key names in the lockfile are shortened if they are longer than 1000 characters. We don't expect this change to affect many users. Affected users most probably can't run install successfully at the moment. This change is required to fix some edge cases in which installation fails with an out-of-memory error or "Invalid string length (RangeError: Invalid string length)" error. The max allowed length of the dependency key can be controlled with the `peers-suffix-max-length` setting [#8177](https://github.com/pnpm/pnpm/pull/8177).
369
+
370
+ ## 7.0.0
371
+
372
+ ### Major Changes
373
+
374
+ - Breaking changes to the API.
375
+
376
+ ### Patch Changes
377
+
378
+ - Updated dependencies [45f4262]
379
+ - @pnpm/types@10.1.0
380
+
381
+ ## 6.0.0
382
+
383
+ ### Major Changes
384
+
385
+ - 43cdd87: Node.js v16 support dropped. Use at least Node.js v18.12.
386
+
387
+ ### Minor Changes
388
+
389
+ - 086b69c: The checksum of the `.pnpmfile.cjs` is saved into the lockfile. If the pnpmfile gets modified, the lockfile is reanalyzed to apply the changes [#7662](https://github.com/pnpm/pnpm/pull/7662).
390
+ - 730929e: Add a field named `ignoredOptionalDependencies`. This is an array of strings. If an optional dependency has its name included in this array, it will be skipped.
391
+
392
+ ### Patch Changes
393
+
394
+ - 27a96a8: Remove `specifiers` field from `ProjectSnapshotV6`. This is a typing fix. The field is not present on the v6 lockfile.
395
+ - Updated dependencies [7733f3a]
396
+ - Updated dependencies [43cdd87]
397
+ - Updated dependencies [730929e]
398
+ - @pnpm/types@10.0.0
399
+
400
+ ## 5.1.5
401
+
402
+ ### Patch Changes
403
+
404
+ - 4d34684f1: Added support for boolean values in 'bundleDependencies' package.json fields when installing a dependency. Fix to properly handle 'bundledDependencies' alias [#7411](https://github.com/pnpm/pnpm/issues/7411).
405
+ - Updated dependencies [4d34684f1]
406
+ - @pnpm/types@9.4.2
407
+
408
+ ## 5.1.4
409
+
410
+ ### Patch Changes
411
+
412
+ - Added support for boolean values in 'bundleDependencies' package.json fields when installing a dependency. Fix to properly handle 'bundledDependencies' alias [#7411](https://github.com/pnpm/pnpm/issues/7411).
413
+ - Updated dependencies
414
+ - @pnpm/types@9.4.1
415
+
416
+ ## 5.1.3
417
+
418
+ ### Patch Changes
419
+
420
+ - Updated dependencies [43ce9e4a6]
421
+ - @pnpm/types@9.4.0
422
+
423
+ ## 5.1.2
424
+
425
+ ### Patch Changes
426
+
427
+ - Updated dependencies [d774a3196]
428
+ - @pnpm/types@9.3.0
429
+
430
+ ## 5.1.1
431
+
432
+ ### Patch Changes
433
+
434
+ - Updated dependencies [aa2ae8fe2]
435
+ - @pnpm/types@9.2.0
436
+
437
+ ## 5.1.0
438
+
439
+ ### Minor Changes
440
+
441
+ - 9c4ae87bd: Some settings influence the structure of the lockfile, so we cannot reuse the lockfile if those settings change. As a result, we need to store such settings in the lockfile. This way we will know with which settings the lockfile has been created.
442
+
443
+ A new field will now be present in the lockfile: `settings`. It will store the values of two settings: `autoInstallPeers` and `excludeLinksFromLockfile`. If someone tries to perform a `frozen-lockfile` installation and their active settings don't match the ones in the lockfile, then an error message will be thrown.
444
+
445
+ The lockfile format version is bumped from v6.0 to v6.1.
446
+
447
+ Related PR: [#6557](https://github.com/pnpm/pnpm/pull/6557)
448
+ Related issue: [#6312](https://github.com/pnpm/pnpm/issues/6312)
449
+
450
+ ### Patch Changes
451
+
452
+ - Updated dependencies [a9e0b7cbf]
453
+ - @pnpm/types@9.1.0
454
+
455
+ ## 5.0.0
456
+
457
+ ### Major Changes
458
+
459
+ - c92936158: The registry field is removed from the `resolution` object in `pnpm-lock.yaml`.
460
+ - eceaa8b8b: Node.js 14 support dropped.
461
+
462
+ ### Patch Changes
463
+
464
+ - Updated dependencies [eceaa8b8b]
465
+ - @pnpm/types@9.0.0
466
+
467
+ ## 4.3.6
468
+
469
+ ### Patch Changes
470
+
471
+ - Updated dependencies [b77651d14]
472
+ - @pnpm/types@8.10.0
473
+
474
+ ## 4.3.5
475
+
476
+ ### Patch Changes
477
+
478
+ - Updated dependencies [702e847c1]
479
+ - @pnpm/types@8.9.0
480
+
481
+ ## 4.3.4
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [844e82f3a]
486
+ - @pnpm/types@8.8.0
487
+
488
+ ## 4.3.3
489
+
490
+ ### Patch Changes
491
+
492
+ - Updated dependencies [d665f3ff7]
493
+ - @pnpm/types@8.7.0
494
+
495
+ ## 4.3.2
496
+
497
+ ### Patch Changes
498
+
499
+ - Updated dependencies [156cc1ef6]
500
+ - @pnpm/types@8.6.0
501
+
502
+ ## 4.3.1
503
+
504
+ ### Patch Changes
505
+
506
+ - Updated dependencies [c90798461]
507
+ - @pnpm/types@8.5.0
508
+
509
+ ## 4.3.0
510
+
511
+ ### Minor Changes
512
+
513
+ - 8dcfbe357: Add `publishDirectory` field to the lockfile and relink the project when it changes.
514
+
515
+ ## 4.2.0
516
+
517
+ ### Minor Changes
518
+
519
+ - d01c32355: Add optional "patched" field to package object in the lockfile.
520
+
521
+ ### Patch Changes
522
+
523
+ - 8e5b77ef6: Update the dependencies when a patch file is modified.
524
+ - Updated dependencies [8e5b77ef6]
525
+ - @pnpm/types@8.4.0
526
+
527
+ ## 4.1.0
528
+
529
+ ### Minor Changes
530
+
531
+ - 2a34b21ce: Dependencies patching is possible via the `pnpm.patchedDependencies` field of the `package.json`.
532
+ To patch a package, the package name, exact version, and the relative path to the patch file should be specified. For instance:
533
+
534
+ ```json
535
+ {
536
+ "pnpm": {
537
+ "patchedDependencies": {
538
+ "eslint@1.0.0": "./patches/eslint@1.0.0.patch"
539
+ }
540
+ }
541
+ }
542
+ ```
543
+
544
+ ### Patch Changes
545
+
546
+ - Updated dependencies [2a34b21ce]
547
+ - @pnpm/types@8.3.0
548
+
549
+ ## 4.0.3
550
+
551
+ ### Patch Changes
552
+
553
+ - Updated dependencies [fb5bbfd7a]
554
+ - @pnpm/types@8.2.0
555
+
556
+ ## 4.0.2
557
+
558
+ ### Patch Changes
559
+
560
+ - Updated dependencies [4d39e4a0c]
561
+ - @pnpm/types@8.1.0
562
+
563
+ ## 4.0.1
564
+
565
+ ### Patch Changes
566
+
567
+ - Updated dependencies [18ba5e2c0]
568
+ - @pnpm/types@8.0.1
569
+
570
+ ## 4.0.0
571
+
572
+ ### Major Changes
573
+
574
+ - 542014839: Node.js 12 is not supported.
575
+
576
+ ### Patch Changes
577
+
578
+ - Updated dependencies [d504dc380]
579
+ - Updated dependencies [542014839]
580
+ - @pnpm/types@8.0.0
581
+
582
+ ## 3.2.0
583
+
584
+ ### Minor Changes
585
+
586
+ - b138d048c: New optional field supported: `onlyBuiltDependencies`.
587
+
588
+ ### Patch Changes
589
+
590
+ - Updated dependencies [b138d048c]
591
+ - @pnpm/types@7.10.0
592
+
593
+ ## 3.1.5
594
+
595
+ ### Patch Changes
596
+
597
+ - Updated dependencies [26cd01b88]
598
+ - @pnpm/types@7.9.0
599
+
600
+ ## 3.1.4
601
+
602
+ ### Patch Changes
603
+
604
+ - Updated dependencies [b5734a4a7]
605
+ - @pnpm/types@7.8.0
606
+
607
+ ## 3.1.3
608
+
609
+ ### Patch Changes
610
+
611
+ - Updated dependencies [6493e0c93]
612
+ - @pnpm/types@7.7.1
613
+
614
+ ## 3.1.2
615
+
616
+ ### Patch Changes
617
+
618
+ - Updated dependencies [ba9b2eba1]
619
+ - @pnpm/types@7.7.0
620
+
621
+ ## 3.1.1
622
+
623
+ ### Patch Changes
624
+
625
+ - Updated dependencies [302ae4f6f]
626
+ - @pnpm/types@7.6.0
627
+
628
+ ## 3.1.0
629
+
630
+ ### Minor Changes
631
+
632
+ - 4ab87844a: New optional property added to project snapshots: `dependenciesMeta`.
633
+
634
+ ### Patch Changes
635
+
636
+ - Updated dependencies [4ab87844a]
637
+ - @pnpm/types@7.5.0
638
+
639
+ ## 3.0.0
640
+
641
+ ### Major Changes
642
+
643
+ - 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
644
+
645
+ ### Minor Changes
646
+
647
+ - 6871d74b2: Add new transitivePeerDependencies field to lockfile.
648
+
649
+ ## 2.2.0
650
+
651
+ ### Minor Changes
652
+
653
+ - 9ad8c27bf: Add optional neverBuiltDependencies property to the lockfile object.
654
+
655
+ ## 2.1.1
656
+
657
+ ### Patch Changes
658
+
659
+ - b5d694e7f: Use pnpm.overrides instead of resolutions. Still support resolutions for partial compatibility with Yarn and for avoiding a breaking change.
660
+
661
+ ## 2.1.0
662
+
663
+ ### Minor Changes
664
+
665
+ - d54043ee4: A new optional field added to the lockfile type: resolutions.
666
+
667
+ ## 2.0.1
668
+
669
+ ### Patch Changes
670
+
671
+ - 6a8a97eee: Fix the type of bundledDependencies field.
672
+
673
+ ## 2.0.1-alpha.0
674
+
675
+ ### Patch Changes
676
+
677
+ - 6a8a97eee: Fix the type of bundledDependencies field.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.types",
3
- "version": "1100.0.13",
3
+ "version": "1100.0.15",
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/types": "1101.3.2",
33
32
  "@pnpm/patching.types": "1100.0.0",
34
- "@pnpm/resolving.resolver-base": "1100.5.1"
33
+ "@pnpm/resolving.resolver-base": "1100.5.3",
34
+ "@pnpm/types": "1101.5.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@pnpm/lockfile.types": "1100.0.13"
37
+ "@pnpm/lockfile.types": "1100.0.15"
38
38
  },
39
39
  "engines": {
40
40
  "node": ">=22.13"
package/lib/index.d.ts DELETED
@@ -1,186 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=lockfileFileTypes.js.map