@pnpm/network.fetch 1100.1.4 → 1100.1.5

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,810 @@
1
+ # @pnpm/fetch
2
+
3
+ ## 1100.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies:
8
+ - @pnpm/core-loggers@1100.2.2
9
+ - @pnpm/types@1101.4.0
10
+
11
+ ## 1100.1.4
12
+
13
+ ### Patch Changes
14
+
15
+ - 05b95ab: Fixed `pnpm` hanging (and crashing with an unhandled promise rejection) when a non-retryable network error such as `SELF_SIGNED_CERT_IN_CHAIN` occurs while fetching from a registry. The error is now rejected through the returned promise instead of being thrown inside the detached retry callback.
16
+ - Updated dependencies [852d537]
17
+ - @pnpm/error@1100.0.1
18
+
19
+ ## 1100.1.3
20
+
21
+ ### Patch Changes
22
+
23
+ - a31faa7: Updated dependency ranges. Notably:
24
+
25
+ - `@pnpm/logger` peer dependency range moved to `^1100.0.0`.
26
+ - `msgpackr` 1.11.8 → 2.0.4 (store index files remain byte-compatible in both directions).
27
+ - `open` ^7.4.2 → ^11.0.0, `memoize` ^10 → ^11, `cli-truncate` ^5 → ^6, `pidtree` ^0.6 → ^1.
28
+ - `@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.
29
+
30
+ - Updated dependencies [681b593]
31
+ - Updated dependencies [a31faa7]
32
+ - @pnpm/fetching.types@1100.0.2
33
+ - @pnpm/types@1101.3.2
34
+ - @pnpm/core-loggers@1100.2.1
35
+
36
+ ## 1100.1.2
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [f11b4fc]
41
+ - @pnpm/core-loggers@1100.2.0
42
+
43
+ ## 1100.1.1
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies [bf1b731]
48
+ - @pnpm/types@1101.3.1
49
+ - @pnpm/core-loggers@1100.1.4
50
+
51
+ ## 1100.1.0
52
+
53
+ ### Minor Changes
54
+
55
+ - 60a1eec: Avoided a Node.js crash when pnpm exits after network requests on Windows.
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies [a017bf3]
60
+ - @pnpm/types@1101.3.0
61
+ - @pnpm/core-loggers@1100.1.3
62
+
63
+ ## 1100.0.8
64
+
65
+ ### Patch Changes
66
+
67
+ - b1fa2d5: Fix `pnpm dist-tag add` and `pnpm dist-tag rm` against npmjs.org failing without `--otp` with `[ERR_PNPM_UNAUTHORIZED] You must be logged in to set dist-tag … "You must provide a one-time pass. Upgrade your client to npm@latest in order to use 2FA."`. pnpm now sends `npm-auth-type: web` on dist-tag writes and surfaces the resulting OTP challenge through the existing browser-based 2FA flow (the same `withOtpHandling` helper used by `pnpm publish`), so the browser opens, the user authenticates, and the dist-tag is set on retry. `--otp=<code>` continues to work via the classic flow.
68
+
69
+ ## 1100.0.7
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [35d2355]
74
+ - @pnpm/types@1101.2.0
75
+ - @pnpm/core-loggers@1100.1.2
76
+
77
+ ## 1100.0.6
78
+
79
+ ### Patch Changes
80
+
81
+ - Updated dependencies [64afc92]
82
+ - @pnpm/types@1101.1.1
83
+ - @pnpm/core-loggers@1100.1.1
84
+
85
+ ## 1100.0.5
86
+
87
+ ### Patch Changes
88
+
89
+ - Updated dependencies [4a79336]
90
+ - @pnpm/core-loggers@1100.1.0
91
+
92
+ ## 1100.0.4
93
+
94
+ ### Patch Changes
95
+
96
+ - 18a464f: Strip `sec-fetch-*` headers from outgoing HTTP requests. These headers are automatically added by undici's `fetch()` implementation per the Fetch spec but cause Azure DevOps Artifacts to return HTTP 400 for uncached upstream packages, as ADO interprets them as browser requests [#11572](https://github.com/pnpm/pnpm/issues/11572).
97
+
98
+ ## 1100.0.3
99
+
100
+ ### Patch Changes
101
+
102
+ - 20e7aff: `pnpm publish` now honors the configured HTTP/HTTPS proxy (including `https_proxy`/`http_proxy`/`no_proxy` environment variables) when polling the registry's `doneUrl` during the web-based authentication flow. Previously the poll bypassed the proxy, causing the registry to respond `403` from a different source IP and the login to never complete [#11561](https://github.com/pnpm/pnpm/issues/11561).
103
+ - Updated dependencies [b61e268]
104
+ - @pnpm/types@1101.1.0
105
+ - @pnpm/core-loggers@1100.0.2
106
+
107
+ ## 1100.0.2
108
+
109
+ ### Patch Changes
110
+
111
+ - 184ce26: Fix the package name in README.md.
112
+ - Updated dependencies [184ce26]
113
+ - @pnpm/fetching.types@1100.0.1
114
+
115
+ ## 1100.0.1
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies [ff28085]
120
+ - @pnpm/types@1101.0.0
121
+ - @pnpm/core-loggers@1100.0.1
122
+
123
+ ## 1001.0.0
124
+
125
+ ### Major Changes
126
+
127
+ - 491a84f: This package is now pure ESM.
128
+ - 7d2fd48: Node.js v18, 19, 20, and 21 support discontinued.
129
+ - bb8baa7: Refactored `fullMetadata` option handling. The `fullMetadata` option is no longer accepted by `createFetchFromRegistry()` at construction time - it should only be passed at call time via the fetch options.
130
+ - 6c480a4: Replace node-fetch with undici as the HTTP client [#10537](https://github.com/pnpm/pnpm/pull/10537).
131
+
132
+ - Use undici's native `fetch()` with dispatcher-based connection management
133
+ - Support HTTP, HTTPS, SOCKS4, and SOCKS5 proxies
134
+ - Cache dispatchers via LRU cache keyed by connection parameters
135
+ - Handle per-registry client certificates via nerf-dart URL matching
136
+ - Convert test HTTP mocking from nock to undici MockAgent
137
+
138
+ ### Minor Changes
139
+
140
+ - 6b3d87a: Improved HTTP performance with Happy Eyeballs (dual-stack), better keep-alive settings, and an optimized global dispatcher. Tarball downloads with known size now pre-allocate memory to avoid double-copy overhead.
141
+
142
+ ### Patch Changes
143
+
144
+ - 0dfa8b8: When the node-fetch request redirects an installation link and returns a relative path, URL parsing may fail [#10286](https://github.com/pnpm/pnpm/pull/10286).
145
+ - Updated dependencies [76718b3]
146
+ - Updated dependencies [a8f016c]
147
+ - Updated dependencies [cc1b8e3]
148
+ - Updated dependencies [491a84f]
149
+ - Updated dependencies [bb8baa7]
150
+ - Updated dependencies [7d2fd48]
151
+ - Updated dependencies [efb48dc]
152
+ - Updated dependencies [cb367b9]
153
+ - Updated dependencies [7b1c189]
154
+ - Updated dependencies [6c480a4]
155
+ - Updated dependencies [8ffb1a7]
156
+ - Updated dependencies [05fb1ae]
157
+ - Updated dependencies [71de2b3]
158
+ - Updated dependencies [10bc391]
159
+ - Updated dependencies [831f574]
160
+ - Updated dependencies [2df8b71]
161
+ - Updated dependencies [15549a9]
162
+ - Updated dependencies [cc7c0d2]
163
+ - Updated dependencies [efb48dc]
164
+ - @pnpm/types@1001.0.0
165
+ - @pnpm/fetching.types@1001.0.0
166
+ - @pnpm/core-loggers@1002.0.0
167
+ - @pnpm/error@1001.0.0
168
+
169
+ ## 1000.2.6
170
+
171
+ ### Patch Changes
172
+
173
+ - Updated dependencies [7c1382f]
174
+ - Updated dependencies [dee39ec]
175
+ - @pnpm/types@1000.9.0
176
+ - @pnpm/core-loggers@1001.0.4
177
+
178
+ ## 1000.2.5
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [e792927]
183
+ - @pnpm/types@1000.8.0
184
+ - @pnpm/core-loggers@1001.0.3
185
+
186
+ ## 1000.2.4
187
+
188
+ ### Patch Changes
189
+
190
+ - 87d3aa8: When making requests for the non-abbreviated packument, add `*/*` to the `Accept` header to avoid getting a 406 error on AWS CodeArtifact [#9862](https://github.com/pnpm/pnpm/issues/9862).
191
+
192
+ ## 1000.2.3
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [1a07b8f]
197
+ - Updated dependencies [1ba2e15]
198
+ - @pnpm/types@1000.7.0
199
+ - @pnpm/fetching-types@1000.2.0
200
+ - @pnpm/core-loggers@1001.0.2
201
+
202
+ ## 1000.2.2
203
+
204
+ ### Patch Changes
205
+
206
+ - 09cf46f: Update `@pnpm/logger` in peer dependencies.
207
+ - Updated dependencies [09cf46f]
208
+ - Updated dependencies [5ec7255]
209
+ - @pnpm/core-loggers@1001.0.1
210
+ - @pnpm/types@1000.6.0
211
+
212
+ ## 1000.2.1
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [8a9f3a4]
217
+ - Updated dependencies [5b73df1]
218
+ - @pnpm/core-loggers@1001.0.0
219
+ - @pnpm/logger@1001.0.0
220
+ - @pnpm/types@1000.5.0
221
+
222
+ ## 1000.2.0
223
+
224
+ ### Minor Changes
225
+
226
+ - 750ae7d: Export `CreateFetchFromRegistryOptions` type.
227
+
228
+ ### Patch Changes
229
+
230
+ - Updated dependencies [750ae7d]
231
+ - Updated dependencies [750ae7d]
232
+ - @pnpm/types@1000.4.0
233
+ - @pnpm/core-loggers@1000.2.0
234
+
235
+ ## 1000.1.6
236
+
237
+ ### Patch Changes
238
+
239
+ - Updated dependencies [5f7be64]
240
+ - Updated dependencies [5f7be64]
241
+ - @pnpm/types@1000.3.0
242
+ - @pnpm/core-loggers@1000.1.5
243
+
244
+ ## 1000.1.5
245
+
246
+ ### Patch Changes
247
+
248
+ - Updated dependencies [a5e4965]
249
+ - @pnpm/types@1000.2.1
250
+ - @pnpm/core-loggers@1000.1.4
251
+
252
+ ## 1000.1.4
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [8fcc221]
257
+ - @pnpm/types@1000.2.0
258
+ - @pnpm/core-loggers@1000.1.3
259
+
260
+ ## 1000.1.3
261
+
262
+ ### Patch Changes
263
+
264
+ - Updated dependencies [b562deb]
265
+ - @pnpm/types@1000.1.1
266
+ - @pnpm/core-loggers@1000.1.2
267
+
268
+ ## 1000.1.2
269
+
270
+ ### Patch Changes
271
+
272
+ - Updated dependencies [9591a18]
273
+ - @pnpm/types@1000.1.0
274
+ - @pnpm/core-loggers@1000.1.1
275
+
276
+ ## 1000.1.1
277
+
278
+ ### Patch Changes
279
+
280
+ - Updated dependencies [516c4b3]
281
+ - @pnpm/core-loggers@1000.1.0
282
+
283
+ ## 1000.1.0
284
+
285
+ ### Minor Changes
286
+
287
+ - b0f3c71: The `fetch` function accepts a `method` option now.
288
+
289
+ ### Patch Changes
290
+
291
+ - Updated dependencies [b0f3c71]
292
+ - @pnpm/fetching-types@1000.1.0
293
+
294
+ ## 8.0.7
295
+
296
+ ### Patch Changes
297
+
298
+ - Updated dependencies [d500d9f]
299
+ - @pnpm/types@12.2.0
300
+ - @pnpm/core-loggers@10.0.7
301
+
302
+ ## 8.0.6
303
+
304
+ ### Patch Changes
305
+
306
+ - Updated dependencies [7ee59a1]
307
+ - @pnpm/types@12.1.0
308
+ - @pnpm/core-loggers@10.0.6
309
+
310
+ ## 8.0.5
311
+
312
+ ### Patch Changes
313
+
314
+ - Updated dependencies [cb006df]
315
+ - @pnpm/types@12.0.0
316
+ - @pnpm/core-loggers@10.0.5
317
+
318
+ ## 8.0.4
319
+
320
+ ### Patch Changes
321
+
322
+ - Updated dependencies [0ef168b]
323
+ - @pnpm/types@11.1.0
324
+ - @pnpm/core-loggers@10.0.4
325
+
326
+ ## 8.0.3
327
+
328
+ ### Patch Changes
329
+
330
+ - Updated dependencies [dd00eeb]
331
+ - Updated dependencies
332
+ - @pnpm/types@11.0.0
333
+ - @pnpm/core-loggers@10.0.3
334
+
335
+ ## 8.0.2
336
+
337
+ ### Patch Changes
338
+
339
+ - Updated dependencies [13e55b2]
340
+ - @pnpm/types@10.1.1
341
+ - @pnpm/core-loggers@10.0.2
342
+
343
+ ## 8.0.1
344
+
345
+ ### Patch Changes
346
+
347
+ - Updated dependencies [45f4262]
348
+ - @pnpm/types@10.1.0
349
+ - @pnpm/core-loggers@10.0.1
350
+
351
+ ## 8.0.0
352
+
353
+ ### Major Changes
354
+
355
+ - 43cdd87: Node.js v16 support dropped. Use at least Node.js v18.12.
356
+
357
+ ### Minor Changes
358
+
359
+ - 7733f3a: Added support for registry-scoped SSL configurations (cert, key, and ca). Three new settings supported: `<registryURL>:certfile`, `<registryURL>:keyfile`, and `<registryURL>:ca`. For instance:
360
+
361
+ ```
362
+ //registry.mycomp.com/:certfile=server-cert.pem
363
+ //registry.mycomp.com/:keyfile=server-key.pem
364
+ //registry.mycomp.com/:cafile=client-cert.pem
365
+ ```
366
+
367
+ Related issue: [#7427](https://github.com/pnpm/pnpm/issues/7427).
368
+ Related PR: [#7626](https://github.com/pnpm/pnpm/pull/7626).
369
+
370
+ ### Patch Changes
371
+
372
+ - Updated dependencies [7733f3a]
373
+ - Updated dependencies [43cdd87]
374
+ - Updated dependencies [730929e]
375
+ - @pnpm/types@10.0.0
376
+ - @pnpm/fetching-types@6.0.0
377
+ - @pnpm/core-loggers@10.0.0
378
+
379
+ ## 7.0.7
380
+
381
+ ### Patch Changes
382
+
383
+ - @pnpm/core-loggers@9.0.6
384
+
385
+ ## 7.0.6
386
+
387
+ ### Patch Changes
388
+
389
+ - @pnpm/core-loggers@9.0.5
390
+
391
+ ## 7.0.5
392
+
393
+ ### Patch Changes
394
+
395
+ - @pnpm/core-loggers@9.0.4
396
+
397
+ ## 7.0.4
398
+
399
+ ### Patch Changes
400
+
401
+ - @pnpm/core-loggers@9.0.3
402
+
403
+ ## 7.0.3
404
+
405
+ ### Patch Changes
406
+
407
+ - @pnpm/core-loggers@9.0.2
408
+
409
+ ## 7.0.2
410
+
411
+ ### Patch Changes
412
+
413
+ - @pnpm/core-loggers@9.0.1
414
+
415
+ ## 7.0.1
416
+
417
+ ### Patch Changes
418
+
419
+ - 8228c2cb1: Patch node-fetch to fix an error that happens on Node.js 20 [#6424](https://github.com/pnpm/pnpm/issues/6424).
420
+
421
+ ## 7.0.0
422
+
423
+ ### Major Changes
424
+
425
+ - eceaa8b8b: Node.js 14 support dropped.
426
+
427
+ ### Patch Changes
428
+
429
+ - Updated dependencies [eceaa8b8b]
430
+ - @pnpm/fetching-types@5.0.0
431
+ - @pnpm/core-loggers@9.0.0
432
+
433
+ ## 6.0.6
434
+
435
+ ### Patch Changes
436
+
437
+ - 673e23060: Fail with a meaningful error message when cannot parse a proxy URL.
438
+ - 9fa6c7404: The `strict-ssl`, `ca`, `key`, and `cert` settings should work with HTTPS proxy servers [#4689](https://github.com/pnpm/pnpm/issues/4689).
439
+
440
+ ## 6.0.5
441
+
442
+ ### Patch Changes
443
+
444
+ - @pnpm/core-loggers@8.0.3
445
+
446
+ ## 6.0.4
447
+
448
+ ### Patch Changes
449
+
450
+ - a9d59d8bc: Update dependencies.
451
+
452
+ ## 6.0.3
453
+
454
+ ### Patch Changes
455
+
456
+ - @pnpm/core-loggers@8.0.2
457
+
458
+ ## 6.0.2
459
+
460
+ ### Patch Changes
461
+
462
+ - Updated dependencies [804de211e]
463
+ - @pnpm/fetching-types@4.0.0
464
+
465
+ ## 6.0.1
466
+
467
+ ### Patch Changes
468
+
469
+ - @pnpm/core-loggers@8.0.1
470
+
471
+ ## 6.0.0
472
+
473
+ ### Major Changes
474
+
475
+ - 043d988fc: Breaking change to the API. Defaul export is not used.
476
+ - f884689e0: Require `@pnpm/logger` v5.
477
+
478
+ ### Patch Changes
479
+
480
+ - Updated dependencies [f884689e0]
481
+ - @pnpm/core-loggers@8.0.0
482
+
483
+ ## 5.0.10
484
+
485
+ ### Patch Changes
486
+
487
+ - Updated dependencies [3ae888c28]
488
+ - @pnpm/core-loggers@7.1.0
489
+
490
+ ## 5.0.9
491
+
492
+ ### Patch Changes
493
+
494
+ - @pnpm/core-loggers@7.0.8
495
+
496
+ ## 5.0.8
497
+
498
+ ### Patch Changes
499
+
500
+ - @pnpm/core-loggers@7.0.7
501
+
502
+ ## 5.0.7
503
+
504
+ ### Patch Changes
505
+
506
+ - @pnpm/core-loggers@7.0.6
507
+
508
+ ## 5.0.6
509
+
510
+ ### Patch Changes
511
+
512
+ - e018a8b14: Some HTTP errors should not be retried [#4917](https://github.com/pnpm/pnpm/pull/4917).
513
+
514
+ ## 5.0.5
515
+
516
+ ### Patch Changes
517
+
518
+ - @pnpm/core-loggers@7.0.5
519
+
520
+ ## 5.0.4
521
+
522
+ ### Patch Changes
523
+
524
+ - @pnpm/core-loggers@7.0.4
525
+
526
+ ## 5.0.3
527
+
528
+ ### Patch Changes
529
+
530
+ - 9d5bf09c0: Use @pnpm/network.agent instead of @pnpm/npm-registry-agent.
531
+ - @pnpm/core-loggers@7.0.3
532
+
533
+ ## 5.0.2
534
+
535
+ ### Patch Changes
536
+
537
+ - Updated dependencies [d5730ba81]
538
+ - @pnpm/npm-registry-agent@6.1.0
539
+ - @pnpm/core-loggers@7.0.2
540
+
541
+ ## 5.0.1
542
+
543
+ ### Patch Changes
544
+
545
+ - @pnpm/core-loggers@7.0.1
546
+
547
+ ## 5.0.0
548
+
549
+ ### Major Changes
550
+
551
+ - 542014839: Node.js 12 is not supported.
552
+
553
+ ### Patch Changes
554
+
555
+ - Updated dependencies [542014839]
556
+ - @pnpm/core-loggers@7.0.0
557
+ - @pnpm/fetching-types@3.0.0
558
+ - @pnpm/npm-registry-agent@6.0.0
559
+
560
+ ## 4.2.5
561
+
562
+ ### Patch Changes
563
+
564
+ - @pnpm/core-loggers@6.1.4
565
+
566
+ ## 4.2.4
567
+
568
+ ### Patch Changes
569
+
570
+ - @pnpm/core-loggers@6.1.3
571
+
572
+ ## 4.2.3
573
+
574
+ ### Patch Changes
575
+
576
+ - @pnpm/core-loggers@6.1.2
577
+
578
+ ## 4.2.2
579
+
580
+ ### Patch Changes
581
+
582
+ - @pnpm/core-loggers@6.1.1
583
+
584
+ ## 4.2.1
585
+
586
+ ### Patch Changes
587
+
588
+ - Updated dependencies [ba9b2eba1]
589
+ - @pnpm/core-loggers@6.1.0
590
+
591
+ ## 4.2.0
592
+
593
+ ### Minor Changes
594
+
595
+ - f1c194ded: Add `fetchWithAgent()`.
596
+
597
+ ## 4.1.6
598
+
599
+ ### Patch Changes
600
+
601
+ - 12ee3c144: HTTP requests should be retried when the server responds with on of 408, 409, 420, 429 status codes.
602
+
603
+ ## 4.1.5
604
+
605
+ ### Patch Changes
606
+
607
+ - @pnpm/core-loggers@6.0.6
608
+
609
+ ## 4.1.4
610
+
611
+ ### Patch Changes
612
+
613
+ - @pnpm/core-loggers@6.0.5
614
+
615
+ ## 4.1.3
616
+
617
+ ### Patch Changes
618
+
619
+ - 782ef2490: Default options should not be overriden by undefined options.
620
+ - Updated dependencies [3c7e5eced]
621
+ - @pnpm/npm-registry-agent@5.0.2
622
+
623
+ ## 4.1.2
624
+
625
+ ### Patch Changes
626
+
627
+ - Updated dependencies [6c50af201]
628
+ - Updated dependencies [0beffc2a0]
629
+ - @pnpm/npm-registry-agent@5.0.1
630
+
631
+ ## 4.1.1
632
+
633
+ ### Patch Changes
634
+
635
+ - bab172385: The Node.js process should not silently exit on some broken HTTPS requests.
636
+ - Updated dependencies [bab172385]
637
+ - @pnpm/fetching-types@2.2.1
638
+
639
+ ## 4.1.0
640
+
641
+ ### Minor Changes
642
+
643
+ - eadf0e505: New optional option added: compress.
644
+
645
+ ### Patch Changes
646
+
647
+ - Updated dependencies [eadf0e505]
648
+ - @pnpm/fetching-types@2.2.0
649
+
650
+ ## 4.0.2
651
+
652
+ ### Patch Changes
653
+
654
+ - @pnpm/core-loggers@6.0.4
655
+
656
+ ## 4.0.1
657
+
658
+ ### Patch Changes
659
+
660
+ - @pnpm/core-loggers@6.0.3
661
+
662
+ ## 4.0.0
663
+
664
+ ### Major Changes
665
+
666
+ - e7d9cd187: Do not use fetch does not support unix requests.
667
+ - eeff424bd: strictSSL option renamed to strictSsl.
668
+
669
+ ### Patch Changes
670
+
671
+ - Updated dependencies [eeff424bd]
672
+ - @pnpm/npm-registry-agent@5.0.0
673
+ - @pnpm/core-loggers@6.0.2
674
+
675
+ ## 3.1.0
676
+
677
+ ### Minor Changes
678
+
679
+ - 05baaa6e7: Add new option: timeout.
680
+
681
+ ### Patch Changes
682
+
683
+ - Updated dependencies [05baaa6e7]
684
+ - @pnpm/fetching-types@2.1.0
685
+ - @pnpm/core-loggers@6.0.1
686
+
687
+ ## 3.0.0
688
+
689
+ ### Major Changes
690
+
691
+ - 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.
692
+
693
+ ### Patch Changes
694
+
695
+ - Updated dependencies [97b986fbc]
696
+ - Updated dependencies [90487a3a8]
697
+ - @pnpm/core-loggers@6.0.0
698
+ - @pnpm/fetching-types@2.0.0
699
+ - @pnpm/npm-registry-agent@4.0.0
700
+
701
+ ## 2.1.11
702
+
703
+ ### Patch Changes
704
+
705
+ - Updated dependencies [dd12cf6ec]
706
+ - @pnpm/npm-registry-agent@3.1.2
707
+
708
+ ## 2.1.10
709
+
710
+ ### Patch Changes
711
+
712
+ - @pnpm/core-loggers@5.0.3
713
+
714
+ ## 2.1.9
715
+
716
+ ### Patch Changes
717
+
718
+ - Updated dependencies [dc5a0a102]
719
+ - @pnpm/npm-registry-agent@3.1.1
720
+
721
+ ## 2.1.8
722
+
723
+ ### Patch Changes
724
+
725
+ - 263f5d813: Import node-fetch-unix correctly.
726
+
727
+ ## 2.1.7
728
+
729
+ ### Patch Changes
730
+
731
+ - @pnpm/core-loggers@5.0.2
732
+
733
+ ## 2.1.6
734
+
735
+ ### Patch Changes
736
+
737
+ - @pnpm/core-loggers@5.0.1
738
+
739
+ ## 2.1.5
740
+
741
+ ### Patch Changes
742
+
743
+ - Updated dependencies [86cd72de3]
744
+ - @pnpm/core-loggers@5.0.0
745
+
746
+ ## 2.1.4
747
+
748
+ ### Patch Changes
749
+
750
+ - 3981f5558: Update node-fetch to v2.6.1.
751
+
752
+ ## 2.1.3
753
+
754
+ ### Patch Changes
755
+
756
+ - Updated dependencies [46128b5b0]
757
+ - @pnpm/npm-registry-agent@3.1.0
758
+
759
+ ## 2.1.2
760
+
761
+ ### Patch Changes
762
+
763
+ - Updated dependencies [9a908bc07]
764
+ - Updated dependencies [9a908bc07]
765
+ - @pnpm/core-loggers@4.2.0
766
+
767
+ ## 2.1.1
768
+
769
+ ### Patch Changes
770
+
771
+ - Updated dependencies [7b98d16c8]
772
+ - @pnpm/npm-registry-agent@3.0.1
773
+
774
+ ## 2.1.0
775
+
776
+ ### Minor Changes
777
+
778
+ - 71aeb9a38: fetchFromRegistry() added.
779
+
780
+ ### Patch Changes
781
+
782
+ - Updated dependencies [c3796a71d]
783
+ - Updated dependencies [71aeb9a38]
784
+ - @pnpm/npm-registry-agent@3.0.0
785
+ - @pnpm/fetching-types@1.0.0
786
+
787
+ ## 2.0.2
788
+
789
+ ### Patch Changes
790
+
791
+ - @pnpm/core-loggers@4.1.2
792
+
793
+ ## 2.0.1
794
+
795
+ ### Patch Changes
796
+
797
+ - @pnpm/core-loggers@4.1.1
798
+
799
+ ## 2.0.0
800
+
801
+ ### Major Changes
802
+
803
+ - 2ebb7af33: Print a warning when request fails and a retry will happen. Breaking changes in the programmatic API of `@pnpm/fetch`.
804
+
805
+ ### Patch Changes
806
+
807
+ - Updated dependencies [2ebb7af33]
808
+ - @pnpm/core-loggers@4.1.0
809
+
810
+ ## 1.0.4
@@ -1,4 +1,5 @@
1
1
  import { URL } from 'node:url';
2
+ import { redactUrlCredentials } from '@pnpm/error';
2
3
  import { getDispatcher } from './dispatcher.js';
3
4
  import { fetch, isRedirect } from './fetch.js';
4
5
  const USER_AGENT = 'pnpm'; // or maybe make it `${pkg.name}/${pkg.version} (+https://npm.im/${pkg.name})`
@@ -84,9 +85,12 @@ export function createFetchFromRegistry(defaultOpts) {
84
85
  // This is a workaround to remove authorization headers on redirect.
85
86
  // Related pnpm issue: https://github.com/pnpm/pnpm/issues/1815
86
87
  urlObject = resolveRedirectUrl(response, urlObject);
87
- if (!headers['authorization'] || originalHost === urlObject.host)
88
+ if (originalHost === urlObject.host)
88
89
  continue;
89
- delete headers.authorization;
90
+ if (headers['authorization']) {
91
+ delete headers.authorization;
92
+ }
93
+ delete headers['npm-otp'];
90
94
  }
91
95
  /* eslint-enable no-await-in-loop */
92
96
  };
@@ -122,7 +126,7 @@ function extractTlsConfigs(configByUri) {
122
126
  function resolveRedirectUrl(response, currentUrl) {
123
127
  const location = response.headers.get('location');
124
128
  if (!location) {
125
- throw new Error(`Redirect location header missing for ${currentUrl.toString()}`);
129
+ throw new Error(`Redirect location header missing for ${redactUrlCredentials(currentUrl.toString())}`);
126
130
  }
127
131
  return new URL(location, currentUrl);
128
132
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/network.fetch",
3
- "version": "1100.1.4",
3
+ "version": "1100.1.5",
4
4
  "description": "Native fetch with retries",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -30,23 +30,23 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@pnpm/config.nerf-dart": "^2.0.1",
33
+ "@pnpm/core-loggers": "1100.2.2",
34
+ "@pnpm/error": "1100.0.1",
35
+ "@pnpm/fetching.types": "1100.0.2",
36
+ "@pnpm/types": "1101.4.0",
33
37
  "@zkochan/retry": "^0.2.0",
34
38
  "lru-cache": "^11.5.0",
35
39
  "socks": "^2.8.9",
36
- "undici": "^7.27.2",
37
- "@pnpm/core-loggers": "1100.2.1",
38
- "@pnpm/error": "1100.0.1",
39
- "@pnpm/fetching.types": "1100.0.2",
40
- "@pnpm/types": "1101.3.2"
40
+ "undici": "^7.27.2"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "@pnpm/logger": "^1100.0.0"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@jest/globals": "30.4.1",
47
- "https-proxy-server-express": "0.1.2",
48
- "@pnpm/network.fetch": "1100.1.4",
49
- "@pnpm/logger": "1100.0.0"
47
+ "@pnpm/logger": "1100.0.0",
48
+ "@pnpm/network.fetch": "1100.1.5",
49
+ "https-proxy-server-express": "0.1.2"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=22.13"