@pnpm/resolving.local-resolver 1101.1.8 → 1101.1.10

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,1227 @@
1
+ # @pnpm/local-resolver
2
+
3
+ ## 1101.1.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @pnpm/workspace.project-manifest-reader@1100.0.16
9
+
10
+ ## 1101.1.9
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies:
15
+ - @pnpm/resolving.resolver-base@1100.5.2
16
+ - @pnpm/types@1101.4.0
17
+ - @pnpm/workspace.project-manifest-reader@1100.0.15
18
+
19
+ ## 1101.1.8
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [dcabb78]
24
+ - @pnpm/resolving.resolver-base@1100.5.1
25
+ - @pnpm/crypto.hash@1100.0.1
26
+
27
+ ## 1101.1.7
28
+
29
+ ### Patch Changes
30
+
31
+ - Updated dependencies [bae694f]
32
+ - Updated dependencies [0ec878d]
33
+ - Updated dependencies [852d537]
34
+ - @pnpm/resolving.resolver-base@1100.5.0
35
+ - @pnpm/workspace.project-manifest-reader@1100.0.14
36
+ - @pnpm/error@1100.0.1
37
+ - @pnpm/crypto.hash@1100.0.1
38
+
39
+ ## 1101.1.6
40
+
41
+ ### Patch Changes
42
+
43
+ - a31faa7: Updated dependency ranges. Notably:
44
+
45
+ - `@pnpm/logger` peer dependency range moved to `^1100.0.0`.
46
+ - `msgpackr` 1.11.8 → 2.0.4 (store index files remain byte-compatible in both directions).
47
+ - `open` ^7.4.2 → ^11.0.0, `memoize` ^10 → ^11, `cli-truncate` ^5 → ^6, `pidtree` ^0.6 → ^1.
48
+ - `@yarnpkg/core` 4.5.0 → 4.8.0, `@rushstack/worker-pool` 0.7.7 → 0.7.18, `@cyclonedx/cyclonedx-library` 10.0.0 → 10.1.0, `@pnpm/config.nerf-dart` ^1 → ^2, `@pnpm/log.group` 3.0.2 → 4.0.1, `@pnpm/util.lex-comparator` ^3 → ^4.
49
+
50
+ - Updated dependencies [681b593]
51
+ - Updated dependencies [a31faa7]
52
+ - @pnpm/types@1101.3.2
53
+ - @pnpm/workspace.project-manifest-reader@1100.0.13
54
+ - @pnpm/resolving.resolver-base@1100.4.2
55
+ - @pnpm/crypto.hash@1100.0.1
56
+
57
+ ## 1101.1.5
58
+
59
+ ### Patch Changes
60
+
61
+ - @pnpm/workspace.project-manifest-reader@1100.0.12
62
+ - @pnpm/crypto.hash@1100.0.1
63
+
64
+ ## 1101.1.4
65
+
66
+ ### Patch Changes
67
+
68
+ - Updated dependencies [bf1b731]
69
+ - @pnpm/types@1101.3.1
70
+ - @pnpm/resolving.resolver-base@1100.4.1
71
+ - @pnpm/workspace.project-manifest-reader@1100.0.11
72
+ - @pnpm/crypto.hash@1100.0.1
73
+
74
+ ## 1101.1.3
75
+
76
+ ### Patch Changes
77
+
78
+ - Updated dependencies [a017bf3]
79
+ - Updated dependencies [6d17b66]
80
+ - @pnpm/types@1101.3.0
81
+ - @pnpm/resolving.resolver-base@1100.4.0
82
+ - @pnpm/workspace.project-manifest-reader@1100.0.10
83
+ - @pnpm/crypto.hash@1100.0.1
84
+
85
+ ## 1101.1.2
86
+
87
+ ### Patch Changes
88
+
89
+ - Updated dependencies [a456dc7]
90
+ - Updated dependencies [35d2355]
91
+ - @pnpm/workspace.project-manifest-reader@1100.0.9
92
+ - @pnpm/types@1101.2.0
93
+ - @pnpm/resolving.resolver-base@1100.3.1
94
+ - @pnpm/crypto.hash@1100.0.1
95
+
96
+ ## 1101.1.1
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [d7da112]
101
+ - @pnpm/workspace.project-manifest-reader@1100.0.8
102
+
103
+ ## 1101.1.0
104
+
105
+ ### Minor Changes
106
+
107
+ - 1627943: `pnpm outdated` and `pnpm update --interactive` now report Node.js, Deno, and Bun runtimes installed as project dependencies (`runtime:` specifiers). Previously these were silently skipped because the npm specifier parser did not understand the `runtime:` protocol, so runtime versions never appeared in the outdated table or the interactive update picker.
108
+
109
+ Internally, the outdated check is now resolver-driven: `@pnpm/resolving.resolver-base` defines a `ResolveLatestFunction` shape (with `LatestQuery` input — `{ wantedDependency, compatible? }` — and `LatestInfo` result — `{ latestManifest? }`), and every protocol resolver (npm, jsr, named-registry, git, tarball, local, node/bun/deno runtimes) exports its own `resolveLatest*` function alongside its `resolve*`. `@pnpm/resolving.default-resolver` composes them into a single dispatcher, exposed through `@pnpm/installing.client` as `createResolver(...).resolveLatest`.
110
+
111
+ Each resolver decides whether it owns the dep and what "latest" means for its protocol; the outdated command derives `current` / `wanted` display values from the lockfile snapshot (`pkgSnapshot.version` for semver protocols, raw ref for URL-shaped ones) and uses raw ref equality for the "lockfile changed" check, so protocol knowledge stays inside each resolver instead of the command.
112
+
113
+ ### Patch Changes
114
+
115
+ - Updated dependencies [1627943]
116
+ - Updated dependencies [64afc92]
117
+ - @pnpm/resolving.resolver-base@1100.3.0
118
+ - @pnpm/types@1101.1.1
119
+ - @pnpm/workspace.project-manifest-reader@1100.0.7
120
+ - @pnpm/crypto.hash@1100.0.1
121
+
122
+ ## 1101.0.2
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [4195766]
127
+ - Updated dependencies [31538bf]
128
+ - @pnpm/resolving.resolver-base@1100.2.0
129
+ - @pnpm/workspace.project-manifest-reader@1100.0.6
130
+ - @pnpm/crypto.hash@1100.0.1
131
+
132
+ ## 1101.0.1
133
+
134
+ ### Patch Changes
135
+
136
+ - @pnpm/workspace.project-manifest-reader@1100.0.5
137
+ - @pnpm/crypto.hash@1100.0.1
138
+
139
+ ## 1101.0.0
140
+
141
+ ### Major Changes
142
+
143
+ - 3ab403a: Replaced the `resolveFromLocal` export with two narrower exports: `resolveFromLocalScheme` (handles `file:`/`link:`/`workspace:`/`path:`) and `resolveFromLocalPath` (path-shape match by tarball extension or filesystem characters).
144
+
145
+ ## 1100.0.6
146
+
147
+ ### Patch Changes
148
+
149
+ - Updated dependencies [b61e268]
150
+ - @pnpm/types@1101.1.0
151
+ - @pnpm/resolving.resolver-base@1100.1.3
152
+ - @pnpm/workspace.project-manifest-reader@1100.0.4
153
+ - @pnpm/crypto.hash@1100.0.1
154
+
155
+ ## 1100.0.5
156
+
157
+ ### Patch Changes
158
+
159
+ - Updated dependencies [27425d7]
160
+ - @pnpm/resolving.resolver-base@1100.1.2
161
+ - @pnpm/crypto.hash@1100.0.1
162
+
163
+ ## 1100.0.4
164
+
165
+ ### Patch Changes
166
+
167
+ - 184ce26: Fix the package name in README.md.
168
+ - Updated dependencies [184ce26]
169
+ - @pnpm/workspace.project-manifest-reader@1100.0.3
170
+ - @pnpm/resolving.resolver-base@1100.1.1
171
+ - @pnpm/crypto.hash@1100.0.1
172
+
173
+ ## 1100.0.3
174
+
175
+ ### Patch Changes
176
+
177
+ - Updated dependencies [72c1e05]
178
+ - @pnpm/resolving.resolver-base@1100.1.0
179
+ - @pnpm/crypto.hash@1100.0.0
180
+
181
+ ## 1100.0.2
182
+
183
+ ### Patch Changes
184
+
185
+ - @pnpm/workspace.project-manifest-reader@1100.0.2
186
+
187
+ ## 1100.0.1
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [ff28085]
192
+ - @pnpm/types@1101.0.0
193
+ - @pnpm/resolving.resolver-base@1100.0.1
194
+ - @pnpm/workspace.project-manifest-reader@1100.0.1
195
+ - @pnpm/crypto.hash@1100.0.0
196
+
197
+ ## 1003.0.0
198
+
199
+ ### Major Changes
200
+
201
+ - 491a84f: This package is now pure ESM.
202
+ - 7d2fd48: Node.js v18, 19, 20, and 21 support discontinued.
203
+
204
+ ### Patch Changes
205
+
206
+ - Updated dependencies [facdd71]
207
+ - Updated dependencies [9b0a460]
208
+ - Updated dependencies [76718b3]
209
+ - Updated dependencies [a8f016c]
210
+ - Updated dependencies [cc1b8e3]
211
+ - Updated dependencies [491a84f]
212
+ - Updated dependencies [98a5f1c]
213
+ - Updated dependencies [7d2fd48]
214
+ - Updated dependencies [efb48dc]
215
+ - Updated dependencies [50fbeca]
216
+ - Updated dependencies [cb367b9]
217
+ - Updated dependencies [7b1c189]
218
+ - Updated dependencies [8ffb1a7]
219
+ - Updated dependencies [05fb1ae]
220
+ - Updated dependencies [71de2b3]
221
+ - Updated dependencies [10bc391]
222
+ - Updated dependencies [38b8e35]
223
+ - Updated dependencies [831f574]
224
+ - Updated dependencies [2df8b71]
225
+ - Updated dependencies [15549a9]
226
+ - Updated dependencies [cc7c0d2]
227
+ - Updated dependencies [9d3f00b]
228
+ - Updated dependencies [efb48dc]
229
+ - @pnpm/resolving.resolver-base@1006.0.0
230
+ - @pnpm/types@1001.0.0
231
+ - @pnpm/workspace.project-manifest-reader@1002.0.0
232
+ - @pnpm/error@1001.0.0
233
+ - @pnpm/crypto.hash@1001.0.0
234
+
235
+ ## 1002.1.4
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [7c1382f]
240
+ - Updated dependencies [7c1382f]
241
+ - Updated dependencies [dee39ec]
242
+ - @pnpm/types@1000.9.0
243
+ - @pnpm/resolver-base@1005.1.0
244
+ - @pnpm/read-project-manifest@1001.1.4
245
+ - @pnpm/crypto.hash@1000.2.1
246
+
247
+ ## 1002.1.3
248
+
249
+ ### Patch Changes
250
+
251
+ - @pnpm/crypto.hash@1000.2.1
252
+ - @pnpm/read-project-manifest@1001.1.3
253
+
254
+ ## 1002.1.2
255
+
256
+ ### Patch Changes
257
+
258
+ - @pnpm/error@1000.0.5
259
+ - @pnpm/read-project-manifest@1001.1.2
260
+ - @pnpm/crypto.hash@1000.2.0
261
+
262
+ ## 1002.1.1
263
+
264
+ ### Patch Changes
265
+
266
+ - Updated dependencies [e792927]
267
+ - @pnpm/types@1000.8.0
268
+ - @pnpm/read-project-manifest@1001.1.1
269
+ - @pnpm/resolver-base@1005.0.1
270
+ - @pnpm/crypto.hash@1000.2.0
271
+
272
+ ## 1002.1.0
273
+
274
+ ### Minor Changes
275
+
276
+ - 5dedada: Added `preserveAbsolutePaths` option to `resolveFromLocal`. When using `file:/path/to/package`, the absolute path will be preserved instead of being turned into a relative path.
277
+
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [d1edf73]
281
+ - Updated dependencies [86b33e9]
282
+ - Updated dependencies [d1edf73]
283
+ - Updated dependencies [f91922c]
284
+ - @pnpm/read-project-manifest@1001.1.0
285
+ - @pnpm/resolver-base@1005.0.0
286
+ - @pnpm/error@1000.0.4
287
+ - @pnpm/crypto.hash@1000.2.0
288
+
289
+ ## 1002.0.2
290
+
291
+ ### Patch Changes
292
+
293
+ - Updated dependencies [1a07b8f]
294
+ - Updated dependencies [1a07b8f]
295
+ - Updated dependencies [1a07b8f]
296
+ - @pnpm/types@1000.7.0
297
+ - @pnpm/read-project-manifest@1001.0.0
298
+ - @pnpm/resolver-base@1004.1.0
299
+ - @pnpm/error@1000.0.3
300
+ - @pnpm/crypto.hash@1000.2.0
301
+
302
+ ## 1002.0.1
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [cf630a8]
307
+ - @pnpm/crypto.hash@1000.2.0
308
+
309
+ ## 1002.0.0
310
+
311
+ ### Major Changes
312
+
313
+ - 2721291: Create different resolver result types which provide more information.
314
+
315
+ ### Patch Changes
316
+
317
+ - Updated dependencies [2721291]
318
+ - Updated dependencies [6acf819]
319
+ - @pnpm/resolver-base@1004.0.0
320
+ - @pnpm/crypto.hash@1000.1.1
321
+
322
+ ## 1001.0.1
323
+
324
+ ### Patch Changes
325
+
326
+ - 09cf46f: Update `@pnpm/logger` in peer dependencies.
327
+ - Updated dependencies [5ec7255]
328
+ - @pnpm/types@1000.6.0
329
+ - @pnpm/read-project-manifest@1000.0.11
330
+ - @pnpm/resolver-base@1003.0.1
331
+ - @pnpm/crypto.hash@1000.1.1
332
+
333
+ ## 1001.0.0
334
+
335
+ ### Major Changes
336
+
337
+ - 8a9f3a4: `pref` renamed to `bareSpecifier`.
338
+ - 5b73df1: Renamed `normalizedPref` to `specifiers`.
339
+
340
+ ### Patch Changes
341
+
342
+ - Updated dependencies [8a9f3a4]
343
+ - Updated dependencies [5b73df1]
344
+ - Updated dependencies [9c3dd03]
345
+ - Updated dependencies [5b73df1]
346
+ - @pnpm/resolver-base@1003.0.0
347
+ - @pnpm/logger@1001.0.0
348
+ - @pnpm/types@1000.5.0
349
+ - @pnpm/read-project-manifest@1000.0.10
350
+ - @pnpm/crypto.hash@1000.1.1
351
+
352
+ ## 1000.0.12
353
+
354
+ ### Patch Changes
355
+
356
+ - Updated dependencies [81f441c]
357
+ - @pnpm/resolver-base@1002.0.0
358
+ - @pnpm/crypto.hash@1000.1.1
359
+
360
+ ## 1000.0.11
361
+
362
+ ### Patch Changes
363
+
364
+ - Updated dependencies [750ae7d]
365
+ - Updated dependencies [72cff38]
366
+ - @pnpm/types@1000.4.0
367
+ - @pnpm/resolver-base@1001.0.0
368
+ - @pnpm/read-project-manifest@1000.0.9
369
+ - @pnpm/crypto.hash@1000.1.1
370
+
371
+ ## 1000.0.10
372
+
373
+ ### Patch Changes
374
+
375
+ - Updated dependencies [5f7be64]
376
+ - Updated dependencies [5f7be64]
377
+ - @pnpm/types@1000.3.0
378
+ - @pnpm/read-project-manifest@1000.0.8
379
+ - @pnpm/resolver-base@1000.2.1
380
+ - @pnpm/crypto.hash@1000.1.1
381
+
382
+ ## 1000.0.9
383
+
384
+ ### Patch Changes
385
+
386
+ - Updated dependencies [3d52365]
387
+ - @pnpm/resolver-base@1000.2.0
388
+ - @pnpm/crypto.hash@1000.1.1
389
+
390
+ ## 1000.0.8
391
+
392
+ ### Patch Changes
393
+
394
+ - @pnpm/crypto.hash@1000.1.1
395
+
396
+ ## 1000.0.7
397
+
398
+ ### Patch Changes
399
+
400
+ - Updated dependencies [daf47e9]
401
+ - Updated dependencies [a5e4965]
402
+ - @pnpm/crypto.hash@1000.1.0
403
+ - @pnpm/types@1000.2.1
404
+ - @pnpm/read-project-manifest@1000.0.7
405
+ - @pnpm/resolver-base@1000.1.4
406
+
407
+ ## 1000.0.6
408
+
409
+ ### Patch Changes
410
+
411
+ - Updated dependencies [8fcc221]
412
+ - @pnpm/types@1000.2.0
413
+ - @pnpm/read-project-manifest@1000.0.6
414
+ - @pnpm/resolver-base@1000.1.3
415
+
416
+ ## 1000.0.5
417
+
418
+ ### Patch Changes
419
+
420
+ - Updated dependencies [1e229d7]
421
+ - @pnpm/read-project-manifest@1000.0.5
422
+
423
+ ## 1000.0.4
424
+
425
+ ### Patch Changes
426
+
427
+ - Updated dependencies [b562deb]
428
+ - @pnpm/types@1000.1.1
429
+ - @pnpm/error@1000.0.2
430
+ - @pnpm/read-project-manifest@1000.0.4
431
+ - @pnpm/resolver-base@1000.1.2
432
+
433
+ ## 1000.0.3
434
+
435
+ ### Patch Changes
436
+
437
+ - Updated dependencies [e050221]
438
+ - @pnpm/read-project-manifest@1000.0.3
439
+
440
+ ## 1000.0.2
441
+
442
+ ### Patch Changes
443
+
444
+ - Updated dependencies [9591a18]
445
+ - @pnpm/types@1000.1.0
446
+ - @pnpm/read-project-manifest@1000.0.2
447
+ - @pnpm/resolver-base@1000.1.1
448
+
449
+ ## 1000.0.1
450
+
451
+ ### Patch Changes
452
+
453
+ - Updated dependencies [6483b64]
454
+ - @pnpm/resolver-base@1000.1.0
455
+ - @pnpm/error@1000.0.1
456
+ - @pnpm/read-project-manifest@1000.0.1
457
+
458
+ ## 12.0.10
459
+
460
+ ### Patch Changes
461
+
462
+ - @pnpm/error@6.0.3
463
+ - @pnpm/read-project-manifest@6.0.10
464
+
465
+ ## 12.0.9
466
+
467
+ ### Patch Changes
468
+
469
+ - @pnpm/error@6.0.2
470
+ - @pnpm/read-project-manifest@6.0.9
471
+
472
+ ## 12.0.8
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies [d500d9f]
477
+ - @pnpm/types@12.2.0
478
+ - @pnpm/read-project-manifest@6.0.8
479
+ - @pnpm/resolver-base@13.0.4
480
+
481
+ ## 12.0.7
482
+
483
+ ### Patch Changes
484
+
485
+ - Updated dependencies [7ee59a1]
486
+ - @pnpm/types@12.1.0
487
+ - @pnpm/read-project-manifest@6.0.7
488
+ - @pnpm/resolver-base@13.0.3
489
+
490
+ ## 12.0.6
491
+
492
+ ### Patch Changes
493
+
494
+ - Updated dependencies [cb006df]
495
+ - @pnpm/types@12.0.0
496
+ - @pnpm/read-project-manifest@6.0.6
497
+ - @pnpm/resolver-base@13.0.2
498
+
499
+ ## 12.0.5
500
+
501
+ ### Patch Changes
502
+
503
+ - Updated dependencies [0ef168b]
504
+ - @pnpm/types@11.1.0
505
+ - @pnpm/read-project-manifest@6.0.5
506
+ - @pnpm/resolver-base@13.0.1
507
+
508
+ ## 12.0.4
509
+
510
+ ### Patch Changes
511
+
512
+ - Updated dependencies [dd00eeb]
513
+ - Updated dependencies
514
+ - @pnpm/resolver-base@13.0.0
515
+ - @pnpm/types@11.0.0
516
+ - @pnpm/read-project-manifest@6.0.4
517
+
518
+ ## 12.0.3
519
+
520
+ ### Patch Changes
521
+
522
+ - Updated dependencies [13e55b2]
523
+ - @pnpm/types@10.1.1
524
+ - @pnpm/read-project-manifest@6.0.3
525
+ - @pnpm/resolver-base@12.0.2
526
+
527
+ ## 12.0.2
528
+
529
+ ### Patch Changes
530
+
531
+ - Updated dependencies [45f4262]
532
+ - @pnpm/types@10.1.0
533
+ - @pnpm/read-project-manifest@6.0.2
534
+ - @pnpm/resolver-base@12.0.1
535
+
536
+ ## 12.0.1
537
+
538
+ ### Patch Changes
539
+
540
+ - Updated dependencies [a7aef51]
541
+ - @pnpm/error@6.0.1
542
+ - @pnpm/read-project-manifest@6.0.1
543
+
544
+ ## 12.0.0
545
+
546
+ ### Major Changes
547
+
548
+ - 43cdd87: Node.js v16 support dropped. Use at least Node.js v18.12.
549
+
550
+ ### Patch Changes
551
+
552
+ - Updated dependencies [7733f3a]
553
+ - Updated dependencies [3ded840]
554
+ - Updated dependencies [43cdd87]
555
+ - Updated dependencies [b13d2dc]
556
+ - Updated dependencies [730929e]
557
+ - @pnpm/types@10.0.0
558
+ - @pnpm/error@6.0.0
559
+ - @pnpm/read-project-manifest@6.0.0
560
+ - @pnpm/resolver-base@12.0.0
561
+ - @pnpm/graceful-fs@4.0.0
562
+
563
+ ## 11.0.4
564
+
565
+ ### Patch Changes
566
+
567
+ - Updated dependencies [31054a63e]
568
+ - @pnpm/resolver-base@11.1.0
569
+
570
+ ## 11.0.3
571
+
572
+ ### Patch Changes
573
+
574
+ - Updated dependencies [4d34684f1]
575
+ - @pnpm/types@9.4.2
576
+ - @pnpm/read-project-manifest@5.0.10
577
+ - @pnpm/resolver-base@11.0.2
578
+
579
+ ## 11.0.2
580
+
581
+ ### Patch Changes
582
+
583
+ - Updated dependencies
584
+ - @pnpm/types@9.4.1
585
+ - @pnpm/read-project-manifest@5.0.9
586
+ - @pnpm/resolver-base@11.0.1
587
+
588
+ ## 11.0.1
589
+
590
+ ### Patch Changes
591
+
592
+ - Updated dependencies [4c2450208]
593
+ - @pnpm/resolver-base@11.0.0
594
+
595
+ ## 11.0.0
596
+
597
+ ### Major Changes
598
+
599
+ - 5b7ed47d8: `@pnpm/logger` added as a peer dependency.
600
+
601
+ ### Patch Changes
602
+
603
+ - 5b7ed47d8: Print a warning when installing a dependency from a non-existent directory [#7159](https://github.com/pnpm/pnpm/issues/7159)
604
+ - Updated dependencies [43ce9e4a6]
605
+ - @pnpm/types@9.4.0
606
+ - @pnpm/read-project-manifest@5.0.8
607
+ - @pnpm/resolver-base@10.0.4
608
+
609
+ ## 10.0.9
610
+
611
+ ### Patch Changes
612
+
613
+ - 01bc58e2c: Update ssri to v10.0.5.
614
+
615
+ ## 10.0.8
616
+
617
+ ### Patch Changes
618
+
619
+ - Updated dependencies [d774a3196]
620
+ - @pnpm/types@9.3.0
621
+ - @pnpm/read-project-manifest@5.0.7
622
+ - @pnpm/resolver-base@10.0.3
623
+
624
+ ## 10.0.7
625
+
626
+ ### Patch Changes
627
+
628
+ - Updated dependencies [9caa33d53]
629
+ - @pnpm/graceful-fs@3.2.0
630
+ - @pnpm/read-project-manifest@5.0.6
631
+
632
+ ## 10.0.6
633
+
634
+ ### Patch Changes
635
+
636
+ - Updated dependencies [083bbf590]
637
+ - @pnpm/graceful-fs@3.1.0
638
+ - @pnpm/read-project-manifest@5.0.5
639
+
640
+ ## 10.0.5
641
+
642
+ ### Patch Changes
643
+
644
+ - Updated dependencies [aa2ae8fe2]
645
+ - @pnpm/types@9.2.0
646
+ - @pnpm/read-project-manifest@5.0.4
647
+ - @pnpm/resolver-base@10.0.2
648
+
649
+ ## 10.0.4
650
+
651
+ ### Patch Changes
652
+
653
+ - Updated dependencies [b4892acc5]
654
+ - @pnpm/read-project-manifest@5.0.3
655
+
656
+ ## 10.0.3
657
+
658
+ ### Patch Changes
659
+
660
+ - @pnpm/error@5.0.2
661
+ - @pnpm/read-project-manifest@5.0.2
662
+
663
+ ## 10.0.2
664
+
665
+ ### Patch Changes
666
+
667
+ - d55b41a8b: Dependencies have been updated.
668
+
669
+ ## 10.0.1
670
+
671
+ ### Patch Changes
672
+
673
+ - Updated dependencies [a9e0b7cbf]
674
+ - @pnpm/types@9.1.0
675
+ - @pnpm/read-project-manifest@5.0.1
676
+ - @pnpm/resolver-base@10.0.1
677
+ - @pnpm/error@5.0.1
678
+
679
+ ## 10.0.0
680
+
681
+ ### Major Changes
682
+
683
+ - eceaa8b8b: Node.js 14 support dropped.
684
+
685
+ ### Patch Changes
686
+
687
+ - Updated dependencies [eceaa8b8b]
688
+ - @pnpm/read-project-manifest@5.0.0
689
+ - @pnpm/resolver-base@10.0.0
690
+ - @pnpm/graceful-fs@3.0.0
691
+ - @pnpm/error@5.0.0
692
+ - @pnpm/types@9.0.0
693
+
694
+ ## 9.0.9
695
+
696
+ ### Patch Changes
697
+
698
+ - Updated dependencies [955874422]
699
+ - @pnpm/graceful-fs@2.1.0
700
+ - @pnpm/read-project-manifest@4.1.4
701
+
702
+ ## 9.0.8
703
+
704
+ ### Patch Changes
705
+
706
+ - Updated dependencies [029143cff]
707
+ - Updated dependencies [029143cff]
708
+ - @pnpm/resolver-base@9.2.0
709
+
710
+ ## 9.0.7
711
+
712
+ ### Patch Changes
713
+
714
+ - 1e6de89b6: Update ssri to v10.0.1.
715
+
716
+ ## 9.0.6
717
+
718
+ ### Patch Changes
719
+
720
+ - @pnpm/error@4.0.1
721
+ - @pnpm/read-project-manifest@4.1.3
722
+
723
+ ## 9.0.5
724
+
725
+ ### Patch Changes
726
+
727
+ - Updated dependencies [b77651d14]
728
+ - @pnpm/types@8.10.0
729
+ - @pnpm/read-project-manifest@4.1.2
730
+ - @pnpm/resolver-base@9.1.5
731
+
732
+ ## 9.0.4
733
+
734
+ ### Patch Changes
735
+
736
+ - a9d59d8bc: Update dependencies.
737
+ - @pnpm/read-project-manifest@4.1.1
738
+
739
+ ## 9.0.3
740
+
741
+ ### Patch Changes
742
+
743
+ - Updated dependencies [fec9e3149]
744
+ - Updated dependencies [0d12d38fd]
745
+ - @pnpm/read-project-manifest@4.1.0
746
+
747
+ ## 9.0.2
748
+
749
+ ### Patch Changes
750
+
751
+ - Updated dependencies [702e847c1]
752
+ - @pnpm/types@8.9.0
753
+ - @pnpm/read-project-manifest@4.0.2
754
+ - @pnpm/resolver-base@9.1.4
755
+
756
+ ## 9.0.1
757
+
758
+ ### Patch Changes
759
+
760
+ - Updated dependencies [844e82f3a]
761
+ - @pnpm/types@8.8.0
762
+ - @pnpm/read-project-manifest@4.0.1
763
+ - @pnpm/resolver-base@9.1.3
764
+
765
+ ## 9.0.0
766
+
767
+ ### Major Changes
768
+
769
+ - 043d988fc: Breaking change to the API. Defaul export is not used.
770
+ - f884689e0: Require `@pnpm/logger` v5.
771
+
772
+ ### Patch Changes
773
+
774
+ - Updated dependencies [043d988fc]
775
+ - Updated dependencies [f884689e0]
776
+ - @pnpm/error@4.0.0
777
+ - @pnpm/read-project-manifest@4.0.0
778
+
779
+ ## 8.0.15
780
+
781
+ ### Patch Changes
782
+
783
+ - @pnpm/read-project-manifest@3.0.13
784
+
785
+ ## 8.0.14
786
+
787
+ ### Patch Changes
788
+
789
+ - Updated dependencies [e8a631bf0]
790
+ - @pnpm/error@3.1.0
791
+ - @pnpm/read-project-manifest@3.0.12
792
+
793
+ ## 8.0.13
794
+
795
+ ### Patch Changes
796
+
797
+ - Updated dependencies [d665f3ff7]
798
+ - @pnpm/types@8.7.0
799
+ - @pnpm/read-project-manifest@3.0.11
800
+ - @pnpm/resolver-base@9.1.2
801
+
802
+ ## 8.0.12
803
+
804
+ ### Patch Changes
805
+
806
+ - Updated dependencies [156cc1ef6]
807
+ - @pnpm/types@8.6.0
808
+ - @pnpm/read-project-manifest@3.0.10
809
+ - @pnpm/resolver-base@9.1.1
810
+
811
+ ## 8.0.11
812
+
813
+ ### Patch Changes
814
+
815
+ - dbac0ca01: Update ssri to v9.
816
+
817
+ ## 8.0.10
818
+
819
+ ### Patch Changes
820
+
821
+ - Updated dependencies [23984abd1]
822
+ - @pnpm/resolver-base@9.1.0
823
+
824
+ ## 8.0.9
825
+
826
+ ### Patch Changes
827
+
828
+ - Updated dependencies [39c040127]
829
+ - @pnpm/read-project-manifest@3.0.9
830
+
831
+ ## 8.0.8
832
+
833
+ ### Patch Changes
834
+
835
+ - Updated dependencies [c90798461]
836
+ - @pnpm/types@8.5.0
837
+ - @pnpm/read-project-manifest@3.0.8
838
+ - @pnpm/resolver-base@9.0.6
839
+
840
+ ## 8.0.7
841
+
842
+ ### Patch Changes
843
+
844
+ - Updated dependencies [01c5834bf]
845
+ - @pnpm/read-project-manifest@3.0.7
846
+
847
+ ## 8.0.6
848
+
849
+ ### Patch Changes
850
+
851
+ - Updated dependencies [8e5b77ef6]
852
+ - @pnpm/types@8.4.0
853
+ - @pnpm/read-project-manifest@3.0.6
854
+ - @pnpm/resolver-base@9.0.5
855
+
856
+ ## 8.0.5
857
+
858
+ ### Patch Changes
859
+
860
+ - Updated dependencies [2a34b21ce]
861
+ - @pnpm/types@8.3.0
862
+ - @pnpm/read-project-manifest@3.0.5
863
+ - @pnpm/resolver-base@9.0.4
864
+
865
+ ## 8.0.4
866
+
867
+ ### Patch Changes
868
+
869
+ - Updated dependencies [fb5bbfd7a]
870
+ - @pnpm/types@8.2.0
871
+ - @pnpm/read-project-manifest@3.0.4
872
+ - @pnpm/resolver-base@9.0.3
873
+
874
+ ## 8.0.3
875
+
876
+ ### Patch Changes
877
+
878
+ - Updated dependencies [4d39e4a0c]
879
+ - @pnpm/types@8.1.0
880
+ - @pnpm/read-project-manifest@3.0.3
881
+ - @pnpm/resolver-base@9.0.2
882
+
883
+ ## 8.0.2
884
+
885
+ ### Patch Changes
886
+
887
+ - Updated dependencies [18ba5e2c0]
888
+ - @pnpm/types@8.0.1
889
+ - @pnpm/read-project-manifest@3.0.2
890
+ - @pnpm/resolver-base@9.0.1
891
+
892
+ ## 8.0.1
893
+
894
+ ### Patch Changes
895
+
896
+ - @pnpm/error@3.0.1
897
+ - @pnpm/read-project-manifest@3.0.1
898
+
899
+ ## 8.0.0
900
+
901
+ ### Major Changes
902
+
903
+ - 9c22c063e: Local dependencies referenced through the `file:` protocol are hard linked (not symlinked) [#4408](https://github.com/pnpm/pnpm/pull/4408). If you need to symlink a dependency, use the `link:` protocol instead.
904
+ - 542014839: Node.js 12 is not supported.
905
+
906
+ ### Patch Changes
907
+
908
+ - Updated dependencies [d504dc380]
909
+ - Updated dependencies [542014839]
910
+ - @pnpm/types@8.0.0
911
+ - @pnpm/error@3.0.0
912
+ - @pnpm/graceful-fs@2.0.0
913
+ - @pnpm/read-project-manifest@3.0.0
914
+ - @pnpm/resolver-base@9.0.0
915
+
916
+ ## 7.0.8
917
+
918
+ ### Patch Changes
919
+
920
+ - Updated dependencies [70ba51da9]
921
+ - @pnpm/error@2.1.0
922
+ - @pnpm/read-project-manifest@2.0.13
923
+
924
+ ## 7.0.7
925
+
926
+ ### Patch Changes
927
+
928
+ - Updated dependencies [b138d048c]
929
+ - @pnpm/types@7.10.0
930
+ - @pnpm/read-project-manifest@2.0.12
931
+ - @pnpm/resolver-base@8.1.6
932
+
933
+ ## 7.0.6
934
+
935
+ ### Patch Changes
936
+
937
+ - Updated dependencies [26cd01b88]
938
+ - @pnpm/types@7.9.0
939
+ - @pnpm/read-project-manifest@2.0.11
940
+ - @pnpm/resolver-base@8.1.5
941
+
942
+ ## 7.0.5
943
+
944
+ ### Patch Changes
945
+
946
+ - Updated dependencies [b5734a4a7]
947
+ - @pnpm/types@7.8.0
948
+ - @pnpm/read-project-manifest@2.0.10
949
+ - @pnpm/resolver-base@8.1.4
950
+
951
+ ## 7.0.4
952
+
953
+ ### Patch Changes
954
+
955
+ - Updated dependencies [6493e0c93]
956
+ - @pnpm/types@7.7.1
957
+ - @pnpm/read-project-manifest@2.0.9
958
+ - @pnpm/resolver-base@8.1.3
959
+
960
+ ## 7.0.3
961
+
962
+ ### Patch Changes
963
+
964
+ - Updated dependencies [ba9b2eba1]
965
+ - @pnpm/types@7.7.0
966
+ - @pnpm/read-project-manifest@2.0.8
967
+ - @pnpm/resolver-base@8.1.2
968
+
969
+ ## 7.0.2
970
+
971
+ ### Patch Changes
972
+
973
+ - 631877ebf: Don't fail if a local linked directory is not found (unless it should be injected). This is the intended behavior of the "link:" protocol as per Yarn's docs.
974
+
975
+ ## 7.0.1
976
+
977
+ ### Patch Changes
978
+
979
+ - 108bd4a39: Injected directory resolutions should contain the relative path to the directory.
980
+ - Updated dependencies [302ae4f6f]
981
+ - @pnpm/types@7.6.0
982
+ - @pnpm/read-project-manifest@2.0.7
983
+ - @pnpm/resolver-base@8.1.1
984
+
985
+ ## 7.0.0
986
+
987
+ ### Major Changes
988
+
989
+ - 4ab87844a: Local directory dependencies are resolved to absolute path.
990
+
991
+ ### Minor Changes
992
+
993
+ - 4ab87844a: Support the resolution of injected local dependencies.
994
+
995
+ ### Patch Changes
996
+
997
+ - Updated dependencies [4ab87844a]
998
+ - Updated dependencies [4ab87844a]
999
+ - @pnpm/types@7.5.0
1000
+ - @pnpm/resolver-base@8.1.0
1001
+ - @pnpm/read-project-manifest@2.0.6
1002
+
1003
+ ## 6.1.0
1004
+
1005
+ ### Minor Changes
1006
+
1007
+ - 3f0178b4c: Allow to link a directory that has no manifest file.
1008
+
1009
+ ## 6.0.5
1010
+
1011
+ ### Patch Changes
1012
+
1013
+ - Updated dependencies [b734b45ea]
1014
+ - @pnpm/types@7.4.0
1015
+ - @pnpm/read-project-manifest@2.0.5
1016
+ - @pnpm/resolver-base@8.0.4
1017
+
1018
+ ## 6.0.4
1019
+
1020
+ ### Patch Changes
1021
+
1022
+ - Updated dependencies [8e76690f4]
1023
+ - @pnpm/types@7.3.0
1024
+ - @pnpm/read-project-manifest@2.0.4
1025
+ - @pnpm/resolver-base@8.0.3
1026
+
1027
+ ## 6.0.3
1028
+
1029
+ ### Patch Changes
1030
+
1031
+ - Updated dependencies [724c5abd8]
1032
+ - @pnpm/types@7.2.0
1033
+ - @pnpm/read-project-manifest@2.0.3
1034
+ - @pnpm/resolver-base@8.0.2
1035
+
1036
+ ## 6.0.2
1037
+
1038
+ ### Patch Changes
1039
+
1040
+ - Updated dependencies [a2aeeef88]
1041
+ - @pnpm/graceful-fs@1.0.0
1042
+ - @pnpm/read-project-manifest@2.0.2
1043
+
1044
+ ## 6.0.1
1045
+
1046
+ ### Patch Changes
1047
+
1048
+ - Updated dependencies [6e9c112af]
1049
+ - Updated dependencies [97c64bae4]
1050
+ - @pnpm/read-project-manifest@2.0.1
1051
+ - @pnpm/types@7.1.0
1052
+ - @pnpm/resolver-base@8.0.1
1053
+
1054
+ ## 6.0.0
1055
+
1056
+ ### Major Changes
1057
+
1058
+ - 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
1059
+
1060
+ ### Patch Changes
1061
+
1062
+ - 83645c8ed: Update ssri.
1063
+ - Updated dependencies [97b986fbc]
1064
+ - @pnpm/error@2.0.0
1065
+ - @pnpm/read-project-manifest@2.0.0
1066
+ - @pnpm/resolver-base@8.0.0
1067
+ - @pnpm/types@7.0.0
1068
+
1069
+ ## 5.1.3
1070
+
1071
+ ### Patch Changes
1072
+
1073
+ - ad113645b: pin graceful-fs to v4.2.4
1074
+ - Updated dependencies [ad113645b]
1075
+ - @pnpm/read-project-manifest@1.1.7
1076
+
1077
+ ## 5.1.2
1078
+
1079
+ ### Patch Changes
1080
+
1081
+ - Updated dependencies [9ad8c27bf]
1082
+ - @pnpm/types@6.4.0
1083
+ - @pnpm/read-project-manifest@1.1.6
1084
+ - @pnpm/resolver-base@7.1.1
1085
+
1086
+ ## 5.1.1
1087
+
1088
+ ### Patch Changes
1089
+
1090
+ - Updated dependencies [8698a7060]
1091
+ - @pnpm/resolver-base@7.1.0
1092
+
1093
+ ## 5.1.0
1094
+
1095
+ ### Minor Changes
1096
+
1097
+ - 284e95c5e: Support relative path to workspace directory.
1098
+
1099
+ ## 5.0.20
1100
+
1101
+ ### Patch Changes
1102
+
1103
+ - Updated dependencies [0c5f1bcc9]
1104
+ - @pnpm/error@1.4.0
1105
+ - @pnpm/read-project-manifest@1.1.5
1106
+
1107
+ ## 5.0.19
1108
+
1109
+ ### Patch Changes
1110
+
1111
+ - @pnpm/read-project-manifest@1.1.4
1112
+
1113
+ ## 5.0.18
1114
+
1115
+ ### Patch Changes
1116
+
1117
+ - @pnpm/read-project-manifest@1.1.3
1118
+
1119
+ ## 5.0.17
1120
+
1121
+ ### Patch Changes
1122
+
1123
+ - Updated dependencies [b5d694e7f]
1124
+ - @pnpm/types@6.3.1
1125
+ - @pnpm/read-project-manifest@1.1.2
1126
+ - @pnpm/resolver-base@7.0.5
1127
+
1128
+ ## 5.0.16
1129
+
1130
+ ### Patch Changes
1131
+
1132
+ - Updated dependencies [d54043ee4]
1133
+ - @pnpm/types@6.3.0
1134
+ - @pnpm/read-project-manifest@1.1.1
1135
+ - @pnpm/resolver-base@7.0.4
1136
+
1137
+ ## 5.0.15
1138
+
1139
+ ### Patch Changes
1140
+
1141
+ - Updated dependencies [2762781cc]
1142
+ - @pnpm/read-project-manifest@1.1.0
1143
+
1144
+ ## 5.0.14
1145
+
1146
+ ### Patch Changes
1147
+
1148
+ - Updated dependencies [75a36deba]
1149
+ - @pnpm/error@1.3.1
1150
+ - @pnpm/read-project-manifest@1.0.13
1151
+
1152
+ ## 5.0.13
1153
+
1154
+ ### Patch Changes
1155
+
1156
+ - Updated dependencies [6d480dd7a]
1157
+ - @pnpm/error@1.3.0
1158
+ - @pnpm/read-project-manifest@1.0.12
1159
+
1160
+ ## 5.0.12
1161
+
1162
+ ### Patch Changes
1163
+
1164
+ - @pnpm/read-project-manifest@1.0.11
1165
+
1166
+ ## 5.0.11
1167
+
1168
+ ### Patch Changes
1169
+
1170
+ - Updated dependencies [3bd3253e3]
1171
+ - @pnpm/read-project-manifest@1.0.10
1172
+
1173
+ ## 5.0.10
1174
+
1175
+ ### Patch Changes
1176
+
1177
+ - Updated dependencies [db17f6f7b]
1178
+ - @pnpm/types@6.2.0
1179
+ - @pnpm/read-project-manifest@1.0.9
1180
+ - @pnpm/resolver-base@7.0.3
1181
+
1182
+ ## 5.0.9
1183
+
1184
+ ### Patch Changes
1185
+
1186
+ - 1520e3d6f: Update graceful-fs to v4.2.4
1187
+
1188
+ ## 5.0.8
1189
+
1190
+ ### Patch Changes
1191
+
1192
+ - Updated dependencies [71a8c8ce3]
1193
+ - @pnpm/types@6.1.0
1194
+ - @pnpm/read-project-manifest@1.0.8
1195
+ - @pnpm/resolver-base@7.0.2
1196
+
1197
+ ## 5.0.7
1198
+
1199
+ ### Patch Changes
1200
+
1201
+ - Updated dependencies [57c510f00]
1202
+ - @pnpm/read-project-manifest@1.0.7
1203
+
1204
+ ## 5.0.6
1205
+
1206
+ ### Patch Changes
1207
+
1208
+ - Updated dependencies [da091c711]
1209
+ - @pnpm/types@6.0.0
1210
+ - @pnpm/error@1.2.1
1211
+ - @pnpm/read-project-manifest@1.0.6
1212
+ - @pnpm/resolver-base@7.0.1
1213
+
1214
+ ## 5.0.6-alpha.0
1215
+
1216
+ ### Patch Changes
1217
+
1218
+ - Updated dependencies [da091c71]
1219
+ - @pnpm/types@6.0.0-alpha.0
1220
+ - @pnpm/read-project-manifest@1.0.6-alpha.0
1221
+ - @pnpm/resolver-base@7.0.1-alpha.0
1222
+
1223
+ ## 5.0.5
1224
+
1225
+ ### Patch Changes
1226
+
1227
+ - @pnpm/read-project-manifest@1.0.5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/resolving.local-resolver",
3
- "version": "1101.1.8",
3
+ "version": "1101.1.10",
4
4
  "description": "Resolver for local packages",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -29,21 +29,21 @@
29
29
  "!*.map"
30
30
  ],
31
31
  "dependencies": {
32
- "normalize-path": "^3.0.0",
33
- "@pnpm/resolving.resolver-base": "1100.5.1",
34
- "@pnpm/types": "1101.3.2",
35
- "@pnpm/workspace.project-manifest-reader": "1100.0.14",
32
+ "@pnpm/crypto.hash": "1100.0.1",
36
33
  "@pnpm/error": "1100.0.1",
37
- "@pnpm/crypto.hash": "1100.0.1"
34
+ "@pnpm/resolving.resolver-base": "1100.5.2",
35
+ "@pnpm/types": "1101.4.0",
36
+ "@pnpm/workspace.project-manifest-reader": "1100.0.16",
37
+ "normalize-path": "^3.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@pnpm/logger": "^1100.0.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@jest/globals": "30.4.1",
44
- "@types/normalize-path": "^3.0.2",
45
44
  "@pnpm/logger": "1100.0.0",
46
- "@pnpm/resolving.local-resolver": "1101.1.8"
45
+ "@pnpm/resolving.local-resolver": "1101.1.10",
46
+ "@types/normalize-path": "^3.0.2"
47
47
  },
48
48
  "engines": {
49
49
  "node": ">=22.13"
package/lib/index.d.ts DELETED
@@ -1,34 +0,0 @@
1
- import type { DirectoryResolution, LatestInfo, LatestQuery, Resolution, ResolveResult, TarballResolution } from '@pnpm/resolving.resolver-base';
2
- import type { DependencyManifest, PkgResolutionId } from '@pnpm/types';
3
- import { type WantedLocalDependency } from './parseBareSpecifier.js';
4
- export { type WantedLocalDependency };
5
- export interface LocalResolveResult extends ResolveResult {
6
- manifest?: DependencyManifest;
7
- normalizedBareSpecifier?: string;
8
- resolution: DirectoryResolution | TarballResolution;
9
- resolvedVia: 'local-filesystem';
10
- }
11
- export interface LocalResolverContext {
12
- preserveAbsolutePaths?: boolean;
13
- }
14
- export interface LocalResolverOptions {
15
- lockfileDir?: string;
16
- projectDir: string;
17
- currentPkg?: {
18
- id: PkgResolutionId;
19
- resolution: DirectoryResolution | TarballResolution | Resolution;
20
- };
21
- update?: false | 'compatible' | 'latest';
22
- }
23
- /**
24
- * Resolves a dependency declared with an explicit local scheme:
25
- * `link:`, `workspace:`, `file:`, or (rejected) `path:`.
26
- */
27
- export declare function resolveFromLocalScheme(ctx: LocalResolverContext, wantedDependency: WantedLocalDependency, opts: LocalResolverOptions): Promise<LocalResolveResult | null>;
28
- /**
29
- * Resolves a dependency by path shape — a relative/absolute path or a tarball
30
- * filename. Does not look at scheme prefixes; callers that want scheme support
31
- * should call {@link resolveFromLocalScheme} first.
32
- */
33
- export declare function resolveFromLocalPath(ctx: LocalResolverContext, wantedDependency: WantedLocalDependency, opts: LocalResolverOptions): Promise<LocalResolveResult | null>;
34
- export declare function resolveLatestFromLocal(query: LatestQuery): Promise<LatestInfo | undefined>;
@@ -1,18 +0,0 @@
1
- import type { PkgResolutionId } from '@pnpm/resolving.resolver-base';
2
- export interface LocalPackageSpec {
3
- dependencyPath: string;
4
- fetchSpec: string;
5
- id: PkgResolutionId;
6
- type: 'directory' | 'file';
7
- normalizedBareSpecifier: string;
8
- }
9
- export interface WantedLocalDependency {
10
- bareSpecifier: string;
11
- injected?: boolean;
12
- }
13
- export declare function parseLocalScheme(wd: WantedLocalDependency, projectDir: string, lockfileDir: string, opts: {
14
- preserveAbsolutePaths: boolean;
15
- }): LocalPackageSpec | null;
16
- export declare function parseLocalPath(wd: WantedLocalDependency, projectDir: string, lockfileDir: string, opts: {
17
- preserveAbsolutePaths: boolean;
18
- }): LocalPackageSpec | null;
@@ -1,111 +0,0 @@
1
- import os from 'node:os';
2
- import path from 'node:path';
3
- import { PnpmError } from '@pnpm/error';
4
- import normalize from 'normalize-path';
5
- // @ts-expect-error
6
- const isWindows = process.platform === 'win32' || global['FAKE_WINDOWS'];
7
- const isFilespec = isWindows ? /^(?:[./\\]|~\/|[a-z]:)/i : /^(?:[./]|~\/|[a-z]:)/i;
8
- const isFilename = /\.(?:tgz|tar.gz|tar)$/i;
9
- const isAbsolutePath = /^\/|^[A-Z]:/i;
10
- class PathIsUnsupportedProtocolError extends PnpmError {
11
- bareSpecifier;
12
- protocol;
13
- constructor(bareSpecifier, protocol) {
14
- super('PATH_IS_UNSUPPORTED_PROTOCOL', 'Local dependencies via `path:` protocol are not supported. ' +
15
- 'Use the `link:` protocol for folder dependencies and `file:` for local tarballs');
16
- this.bareSpecifier = bareSpecifier;
17
- this.protocol = protocol;
18
- }
19
- }
20
- export function parseLocalScheme(wd, projectDir, lockfileDir, opts) {
21
- if (wd.bareSpecifier.startsWith('link:') || wd.bareSpecifier.startsWith('workspace:')) {
22
- return fromLocal(wd, projectDir, lockfileDir, 'directory', opts);
23
- }
24
- if (wd.bareSpecifier.startsWith('file:')) {
25
- const type = isFilename.test(wd.bareSpecifier) ? 'file' : 'directory';
26
- return fromLocal(wd, projectDir, lockfileDir, type, opts);
27
- }
28
- if (wd.bareSpecifier.startsWith('path:')) {
29
- throw new PathIsUnsupportedProtocolError(wd.bareSpecifier, 'path:');
30
- }
31
- return null;
32
- }
33
- export function parseLocalPath(wd, projectDir, lockfileDir, opts) {
34
- if (wd.bareSpecifier.endsWith('.tgz') ||
35
- wd.bareSpecifier.endsWith('.tar.gz') ||
36
- wd.bareSpecifier.endsWith('.tar') ||
37
- wd.bareSpecifier.includes(path.sep) ||
38
- isFilespec.test(wd.bareSpecifier)) {
39
- const type = isFilename.test(wd.bareSpecifier) ? 'file' : 'directory';
40
- return fromLocal(wd, projectDir, lockfileDir, type, opts);
41
- }
42
- return null;
43
- }
44
- function fromLocal({ bareSpecifier, injected }, projectDir, lockfileDir, type, opts) {
45
- const spec = bareSpecifier.replace(/\\/g, '/')
46
- .replace(/^(?:file|link|workspace):\/*([A-Z]:)/i, '$1') // drive name paths on windows
47
- .replace(/^(?:file|link|workspace):(?:\/*([~./]))?/, '$1');
48
- let protocol;
49
- if (bareSpecifier.startsWith('file:')) {
50
- protocol = 'file:';
51
- }
52
- else if (bareSpecifier.startsWith('link:')) {
53
- protocol = 'link:';
54
- }
55
- else {
56
- protocol = type === 'directory' && !injected ? 'link:' : 'file:';
57
- }
58
- let fetchSpec;
59
- let normalizedBareSpecifier;
60
- if (/^~\//.test(spec)) {
61
- // this is needed for windows and for file:~/foo/bar
62
- fetchSpec = resolvePath(os.homedir(), spec.slice(2));
63
- normalizedBareSpecifier = `${protocol}${spec}`;
64
- }
65
- else {
66
- fetchSpec = resolvePath(projectDir, spec);
67
- if (isAbsolute(spec)) {
68
- normalizedBareSpecifier = `${protocol}${spec}`;
69
- }
70
- else {
71
- normalizedBareSpecifier = `${protocol}${path.relative(projectDir, fetchSpec)}`;
72
- }
73
- }
74
- function normalizeRelativeOrAbsolute(relativeTo, fromPath) {
75
- let specPath;
76
- if (opts.preserveAbsolutePaths && isAbsolute(spec)) {
77
- specPath = path.resolve(fromPath);
78
- }
79
- else {
80
- specPath = path.relative(relativeTo, fromPath);
81
- }
82
- return normalize(specPath);
83
- }
84
- injected = protocol === 'file:';
85
- const dependencyPath = injected
86
- ? normalizeRelativeOrAbsolute(lockfileDir, fetchSpec)
87
- : normalize(path.resolve(fetchSpec));
88
- const id = (!injected && (type === 'directory' || projectDir === lockfileDir)
89
- ? `${protocol}${normalizeRelativeOrAbsolute(projectDir, fetchSpec)}`
90
- : `${protocol}${normalizeRelativeOrAbsolute(lockfileDir, fetchSpec)}`);
91
- return {
92
- dependencyPath,
93
- fetchSpec,
94
- id,
95
- normalizedBareSpecifier,
96
- type,
97
- };
98
- }
99
- function resolvePath(where, spec) {
100
- if (isAbsolutePath.test(spec))
101
- return spec;
102
- return path.resolve(where, spec);
103
- }
104
- function isAbsolute(dir) {
105
- if (dir[0] === '/')
106
- return true;
107
- if (/^[A-Z]:/i.test(dir))
108
- return true;
109
- return false;
110
- }
111
- //# sourceMappingURL=parseBareSpecifier.js.map