Releases: nodejs/undici
Releases · nodejs/undici
v6.7.1
What's Changed
- fetch: use EOL of os-module by @Uzlopak in #2915
- ci: only send codecov from ubuntu and node by @Uzlopak in #2914
- tests: improve skip for unix.js tests, remove skipped tests by @Uzlopak in #2916
- chore: fix typo in isHistoryNavigation comments by @kachick in #2920
- fix(benchmark): set body correctly by @tsctx in #2918
- chore: increase test coverage to 100% for /lib/api/api-request.js by @Uzlopak in #2912
- fix: chunksDecode cuts off 3 characters at the end if having BOM by @Uzlopak in #2922
- docs: clarify URI parsing behavior of ProxyAgent constructor by @rossilor95 in #2893
- implement sync formdata parser by @KhafraDev in #2911
- Fix docs links and add examples to sidebar by @tastypackets in #2895
- doc: update diagnostics channel request headers type change by @jessezhang91 in #2925
- perf: optimize getResolveErrorBodyCallback by @tsctx in #2921
- override request dispatcher from init by @matthieusieben in #2928
- add busboy tests by @KhafraDev in #2924
- fix(benchmark): make it fair by @tsctx in #2929
- Revert "chore: remove no-simd wasm" by @Uzlopak in #2935
- build(deps): bump node from
d3271e4
to8bf9240
in /build by @dependabot in #2936 - Flip link between docs and README by @mcollina in #2933
New Contributors
- @kachick made their first contribution in #2920
- @tastypackets made their first contribution in #2895
- @jessezhang91 made their first contribution in #2925
- @matthieusieben made their first contribution in #2928
Full Changelog: v6.7.0...v6.7.1
v6.7.0
What's Changed
- test: remove t.diagnostics() calls in push-dont-push.js test by @Uzlopak in #2715
- fix: fix flaky debug test by @Uzlopak in #2714
- fix: HTTP2 tweaks by @metcoder95 in #2711
- test: improve cookie tests by @Uzlopak in #2693
- test: response.url after redirect is set to target url by @Uzlopak in #2716
- chore: remove mocha and chai by @Uzlopak in #2696
- test: replace t.pass with t.ok by @Uzlopak in #2721
- perf: remove redundant operation in FormData by @tsctx in #2726
- Add support for passing iterable objects as headers by @JaoodxD in #2708
- chore: refine esbuild & node detection by @mochaaP in #2677
- chore: rephrase some comments by @Uzlopak in #2717
- test: replace t.type with t.ok and instanceof by @Uzlopak in #2720
- remove useless options in web streams by @KhafraDev in #2729
- Let's add superagent to the benchmark. closes #2730 by @eddienubes in #2731
- convert node build to latin1 by @KhafraDev in #2673
- simplify formData body parsing by @KhafraDev in #2735
- chore: migrate a batch of tests to node test runner no. 1 by @Uzlopak in #2719
- chore: migrate a batch of tests to node test runner no. 2 by @Uzlopak in #2737
- chore: migrate a batch of tests to node test runner no. 4 by @Uzlopak in #2739
- chore: migrate a batch of tests to node test runner no. 5 by @Uzlopak in #2740
- chore: migrate a batch of tests to node test runner no. 3 by @Uzlopak in #2738
- chore: migrate a batch of tests to node test runner no. 6 by @Uzlopak in #2741
- chore: migrate a batch of tests to node test runner no. 8 by @Uzlopak in #2744
- chore: migrate a batch of tests to node test runner no. 7 by @Uzlopak in #2742
- build(deps-dev): bump cronometro from 2.0.2 to 3.0.1 by @dependabot in #2749
- perf: always use the same prototype Iterator by @tsctx in #2743
- chore: migrate a batch of tests to node test runner no. 9, remove tap by @Uzlopak in #2746
- chore: remove usage of http-errors in proxy example by @Uzlopak in #2753
- fix: dont ship wasm files of llhttp via npm by @Uzlopak in #2752
- fix: handle request body as late as possible by @ronag in #2734
- perf(tree): avoid recursive calls by @tsctx in #2755
- docs: fix favicon by @Uzlopak in #2758
- chore: use mermaid engine and mermaid in markdown by @Uzlopak in #2759
- chore: remove sinon dev dependency by @Uzlopak in #2767
- tests: skip test/node-test/debug on node 21.6.2 and windows by @Uzlopak in #2765
- chore: improve usage of skip in tests by @Uzlopak in #2761
- feat: improve mock error breadcrumbs by @rossilor95 in #2774
- expose MessageEvent in fetch bundle by @KhafraDev in #2770
- test: always exit with 0 when running in Node's Daily WPT Report CI job by @panva in #2778
- fix: add node prefix for util to fix issue in env with min version node 18 by @riderx in #2775
- perf: improve perf of parseRawHeaders by @Uzlopak in #2781
- fix: make mock-agent.js test more resilient by @Uzlopak in #2780
- chore: make some test run even without internet connection by @Uzlopak in #2786
- mock: improve validateReplyParameters by @Uzlopak in #2783
- perf: improve TernarySearchTree by @Uzlopak in #2782
- fix: convert HeadersInit to sequence/dictionary correctly by @KhafraDev in #2784
- chore: improve getFieldValue by @Uzlopak in #2785
- Add RetryHandler to sidebar by @mcollina in #2797
- Add RetryAgent by @mcollina in #2798
- build(deps): bump step-security/harden-runner from 2.6.0 to 2.7.0 by @dependabot in #2690
- build(deps): bump actions/checkout from 4.1.0 to 4.1.1 by @dependabot in #2393
- build(deps): bump actions/upload-artifact from 3.1.3 to 4.3.1 by @dependabot in #2799
- build(deps): bump node from 20-alpine to 21-alpine in /build by @dependabot in #2803
- perf: improve sort algorithm by @tsctx in #2756
- refactor: move web stuff into their own folder by @ronag in #2793
s/ dispactgher/dispatcher/
by @steveluscher in #2807- Use paralellelRequests instead of connections to calculate req/sec in benchmarks by @mcollina in #2800
- Split out documentation into separate directory by @Ethan-Arrowood in #2788
- build(deps): bump fastify/github-action-merge-dependabot from 3.9.1 to 3.10.1 by @dependabot in #2820
- build(deps): bump actions/dependency-review-action from 4.0.0 to 4.1.3 by @dependabot in #2821
- build(deps): bump github/codeql-action from 3.23.2 to 3.24.4 by @dependabot in #2818
- build(deps): bump actions/setup-node from 4.0.1 to 4.0.2 by @dependabot in #2819
- fix: move CNAME and .nojekyll to root by @Uzlopak in #2822
- remove all fetchParam event handlers by @KhafraDev in #2823
- feat: refactor ProxyAgent constructor to also accept single URL argument by @rossilor95 in #2810
- fix: isCTLExcludingHtab by @Uzlopak in #2790
- refactor: move files into logical folders by @ronag in #2813
- refactor: move fixed-queeu to dispatcher and rm node folder by @ronag in #2827
- chore: create package.json in benchmarks by @Uzlopak in #2766
- build(deps): bump github/codeql-action from 3.24.4 to 3.24.5 by @dependabot in #2829
- chore: use lts for pubish types workflow by @Uzlopak in #2830
- add dispatcher option to Request by @KhafraDev in #2831
- fix url referrer wpt by @KhafraDev in #2832
- refactor: remove own sort logic by @tsctx in #2834
- fix(fetch): prevent crash when
fetch
is aborted withnull
as theAbortSignal's
reason
by @steveluscher in #2833 - refactor: avoid http2 dynamic dispatch in socket handlers by @ronag in #2839
- build(deps-dev): bump proxy from 1.0.2 to 2.1.1 by @dependabot in #2137
- perf(tree): reduce overhead of build TernarySearchTree by @tsctx in #2840
- webidl: implement resizable arraybuffer checks by @KhafraDev in #2094
- websocket server only needs to reply with a single subprotocol by @KhafraDev in #2845
- unite webidl stringification by @KhafraDev in #2843
- fix: deflake connect-timeout test by @Uzlopak in #2851
- fix: coverage reporting by @Uzlopak in #2763
- fix: pipelining logic is not relevant for h2 by @ronag in #2850
- processBody doesn't need to return a promise by @KhafraDev in #2858
- refactor: split client into client-h1/h2 by @ronag in #2848
- ci: fix concurrency by @Uzlopak in #2862
- perf: improve performance of isValidSubprotocol by @Uzlopak in #2861
- perf: reuse TextDecoder instance by @Uzlopak in #2863
- chore: restructure benchmarks, use kebab-case by @Uzlopak in #2864
- cookies: improve perf of toIMFDate by @Uzlopak in #2867
- cookies: fix validateCookiePath by @Uzlopak in #2866
- refactor: move out more h2 from core client by @ronag in https://github.com/nodej...
v6.6.2
What's Changed
- fix: webidl.brandcheck non strict should throw by @Uzlopak in #2683
- fix: expose EventSource for nodejs by @Uzlopak in #2645
- test: more information from debug tests by @Uzlopak in #2695
- Fix broken test on linux by @mcollina in #2699
- fix: fix the linux patch by @Uzlopak in #2703
- test(wpt): mark timed out tests as 'failed' by @rossilor95 in #2644
- build(deps-dev): bump borp from 0.5.0 to 0.9.1 by @dependabot in #2702
- perf: use insertion sort algorithm by @tsctx in #2706
- fix: run node tests on merge by @Uzlopak in #2707
New Contributors
- @rossilor95 made their first contribution in #2644
Full Changelog: v6.6.1...v6.6.2
v6.6.1
⚠️ Security Release ⚠️
Fixes:
- CVE-2024-24750, Backpressure request ignored in fetch()
- CVE-2024-24758 Proxy-Authorization header not cleared on cross-origin redirect in fetch
What's Changed
- fix: flaky debug test by @Uzlopak in #2687
- build(deps): bump github/codeql-action from 3.22.12 to 3.23.2 by @dependabot in #2688
- build(deps): bump actions/dependency-review-action from 3.1.0 to 4.0.0 by @dependabot in #2689
- fix: ci pipeline warnings by @Uzlopak in #2685
- perf: optimize Iterator by @tsctx in #2692
Full Changelog: v6.6.0...v6.6.1
v5.28.3
v6.6.0
What's Changed
- add webSocket example by @mertcanaltin in #2626
- chore: remove atomic-sleep as dev dependency by @Uzlopak in #2648
- chore: remove semver as dev dependency by @Uzlopak in #2646
- chore: remove table as dev dependency by @Uzlopak in #2649
- chore: remove delay as dev dependency by @Uzlopak in #2647
- chore: reduce noise in test-logs test/issue-2349.js by @Uzlopak in #2655
- chore: fix faketimer warning in test/request-timeout.js by @Uzlopak in #2656
- chore: reduce noise in test logs test/client-node-max-header-size.js by @Uzlopak in #2654
- refactor: use fromInnerResponse by @tsctx in #2635
- fix: support deflate raw responses by @Uzlopak in #2650
- Support building for externally shared js builtins by @mochaaP in #2643
- fix: typo clampAndCoarsenConnectionTimingInfo by @Uzlopak in #2653
- chore: use 'node:'-prefix for requiring node core modules by @Uzlopak in #2662
- build(deps-dev): bump husky from 8.0.3 to 9.0.7 by @dependabot in #2667
- build(deps-dev): bump cronometro from 1.2.0 to 2.0.2 by @dependabot in #2668
- remove timers/promises import by @KhafraDev in #2665
- chore: fix various codesmells by @Uzlopak in #2669
- chore: remove this alias in agent.js by @Uzlopak in #2671
- chore: use optional chaining by @Uzlopak in #2666
- chore: small perf improvements by @Uzlopak in #2661
- implement spec changes from a while ago by @KhafraDev in #2676
- websocket: fix close when no closing code is received by @KhafraDev in #2680
- fix: make ci less flaky by @Uzlopak in #2684
New Contributors
Full Changelog: v6.5.0...v6.6.0
v6.5.0
v6.4.0
What's Changed
- refactor: version cleanup by @tsctx in #2605
- cacheStorage: separate matchAll logic by @KhafraDev in #2599
- cleanup index by @KhafraDev in #2598
- feat: port
balanced-pool
,ca-fingerprint
,client-abort
tests tonode:test
by @sosukesuzuki in #2584 - ci: unpin nodejs workflow version by @dominykas in #2434
- test(#2600): Flaky debug test by @metcoder95 in #2607
- fix: h2 hang issue with empty body by @timursevimli in #2601
- Fix tests for Node.js v21 by @sosukesuzuki in #2609
- perf(cache): avoid Request and Response initialization by @tsctx in #2610
- Add more libraries to benchmarks by @mcollina in #2614
- feat: port
client-connect
,client-dispatch
,client-errors
test tonode:test
by @sosukesuzuki in #2591 - exit with 1 if WPT runner has unexpected errors by @KhafraDev in #2621
- Fix tests for Node.js v20.11.0 by @mcollina in #2618
- fix(mock-agent): split set-cookie by @tsctx in #2619
- feat: implement throwOnMaxRedirect option for RedirectHandler by @mertcanaltin in #2563
- test: fix flaky debug test by @metcoder95 in #2613
- fix: hide statusOutput if empty in handleRunnerCompletion by @Uzlopak in #2624
- docs: Fix typo in Debug.md by @Skn0tt in #2625
- fix(cache): set AbortSignal by @tsctx in #2612
- Use correct http Agent for node-fetch, axios, got and request by @mcollina in #2629
New Contributors
- @timursevimli made their first contribution in #2601
- @mertcanaltin made their first contribution in #2563
- @Skn0tt made their first contribution in #2625
Full Changelog: v6.3.0...v6.4.0
v6.3.0
What's Changed
- Clear all timeout on destroy and close by @mcollina in #2535
- ConnectOptions should include 'origin' field by @dvoytenko in #2532
- perf: avoid toLowerCase call by @tsctx in #2537
- revert a1a8136 by @KhafraDev in #2539
- docs: add Util to sidebar by @tsctx in #2529
- fix: call explicitly unregister by @tsctx in #2534
- fix: check the content-type of invalid formData by @tsctx in #2541
- Add request examples. by @autopulated in #2380
- fix(HTTP/2): handle consumption of aborted request by @metcoder95 in #2387
- chore: update tst test by @tsctx in #2538
- fix(fetch): do not abort fetch on redirect by @angelyan in #2545
- drop verifyVersion in scripts by @KhafraDev in #2549
- types: remove unused Client and Pool types by @RafaelGSS in #2557
- lib: fix Host header when CONNECT ProxyAgent by @RafaelGSS in #2556
- feat: port cookies tests to node runner by @pmarchini in #2547
- feat: port webidl tests to node test runner by @ilteoood in #2554
- perf: Improve percentDecode by @tsctx in #2562
- Fix parseHashWithOptions regex by @flapenna in #2561
- feat: port diagnostic-channel tests to node test runner by @ilteoood in #2559
- feat: port websocket tests to node test runner by @ilteoood in #2553
- build(deps-dev): bump tsd from 0.29.0 to 0.30.1 by @dependabot in #2551
- build(deps): bump actions/setup-node from 4.0.0 to 4.0.1 by @dependabot in #2572
- build(deps): bump github/codeql-action from 2.22.5 to 3.22.12 by @dependabot in #2574
- Update
@matteo.collina/tspl
to 0.1.1 by @sosukesuzuki in #2576 - mark wpt as failing by @KhafraDev in #2581
- feat: port
abort-controller.js
tests tonode:test
runner by @sosukesuzuki in #2564 - fix data url test by @KhafraDev in #2580
- feat: port
async_hooks.js
tests tonode:test
runner by @sosukesuzuki in #2568 - feat: port
agent.js
tests tonode:test
runner by @sosukesuzuki in #2566 - feat: port
abort-event-emitter.js
tests tonode:test
runnner by @sosukesuzuki in #2565 - feat: port first half of fetch tests to node test runner by @anurag-roy in #2569
- perf: bypass method validation by @tsctx in #2583
- fetch: warn when using patch method by @KhafraDev in #2577
- feat: port
autoselectfamily.js
tests tonode:test
runner by @sosukesuzuki in #2570 - feat: port remaining fetch tests to node test runner by @anurag-roy in #2587
- fix: use isArrayBuffer instead of isAnyArrayBuffer by @tsctx in #2586
- Feat/migrate tests to node runner by @pmarchini in #2593
- abort request with reason if one is provided by @KhafraDev in #2592
- feat: port tst test to node test runner by @tsctx in #2595
- feat(#2191): Add support for
NODE_DEBUG
by @metcoder95 in #2585 - cacheStorage: fix bugs make wpts pass by @KhafraDev in #2596
- fix: non-object error in abort throws bad error by @atlowChemi in #2597
- fix: add test helper for closing server as promise by @sosukesuzuki in #2604
New Contributors
- @dvoytenko made their first contribution in #2532
- @autopulated made their first contribution in #2380
- @angelyan made their first contribution in #2545
- @pmarchini made their first contribution in #2547
- @ilteoood made their first contribution in #2554
- @flapenna made their first contribution in #2561
- @sosukesuzuki made their first contribution in #2576
- @anurag-roy made their first contribution in #2569
Full Changelog: v6.2.1...v6.3.0