github nodejs/undici v7.16.0

one day ago

What's Changed

  • Drop npm token, use OIDC instead by @mcollina in #4447
  • fetch: instantiate readableStream in extractBody with sync methods by @Uzlopak in #4350
  • fix: remove async on [kClose] and [kDestroy], only return Promise by @Uzlopak in #4450
  • fetch: make consumeBody sync by @Uzlopak in #4449
  • perf: make client.connect() sync by @Uzlopak in #4455
  • fetch: remove promise in exported fetch by @Uzlopak in #4452
  • fix(#4451): implement http2 cookie support by @metcoder95 in #4453
  • test: cache store tests should properly be skipped by @Uzlopak in #4463
  • test: fix IPv6 skip check for test/client.js by @Uzlopak in #4466
  • test: remove skip check for AbortSignal.timeout, as it exists since node18 by @Uzlopak in #4464
  • test: investigate macos failing by @Uzlopak in #4467
  • test: remove obsolete < node v18 test case for http2 by @Uzlopak in #4461
  • perf: avoid intermediate promise on BodyReadable.dump by @Uzlopak in #4459
  • test: remove skip check for long-lived-abort-controller test (was flaky 10 months ago) by @Uzlopak in #4465
  • test: remove skip checks for existance of global available Blob and File by @Uzlopak in #4460
  • perf (fetch): use less promises for ReadableStream by @Uzlopak in #4457
  • fix: catch synchronous errors in request callbacks by @mcollina in #4443
  • fix: avoid instanceof MockNotMatchedError by @Uzlopak in #4474
  • eventsource: remove promise for #reconnect method by @Uzlopak in #4469
  • feat: make UndiciErrors reliable to instanceof by @Uzlopak in #4472
  • chore: call super() after type checks by @Uzlopak in #4475
  • chore: FixedQueue does not need special constructor by @Uzlopak in #4476
  • fix: buildAndValidateMockOptions should always get an object passed and always return an object by @Uzlopak in #4479
  • fix: remove unused ResponseStatusCodeError by @Uzlopak in #4473
  • chore: pool and dispatcherbase dont need constructor, use no array helper functions by @Uzlopak in #4477
  • lint: avoid unintented use of globals in code and tests, improve test for installing/overwriting globals by @Uzlopak in #4478
  • test: fix macos flakyness by @Uzlopak in #4468
  • fix: 'no-referrer-when-downgrade' in determineRequestsReferrer should return referrerURL by @Uzlopak in #4482
  • fix: deflake cache-fastimers-fix.js by @Uzlopak in #4491
  • fix: improve validation of IP addresses as trustworthy, correct ipv4 check by @Uzlopak in #4489
  • test (pool.js): fix flakyness of clientTtl test by @Uzlopak in #4494
  • test (eventsource): refactor tests for eventsource, speed them up by @Uzlopak in #4493
  • fix: remove useless catch in client-h1.js by @Uzlopak in #4481
  • test: skip flaky encoding test on macos and node20 by @Uzlopak in #4497
  • fix: implement proper stale-while-revalidate behavior per RFC 5861 by @mcollina in #4492
  • test (websocket): speed up test/websocket/issue-2679.js by @Uzlopak in #4501
  • webidl: fix existing and add missing buffer source converters by @Renegade334 in #4503
  • use real wpt test server by @KhafraDev in #4486
  • test: another try to fix flaky macos and node 20 by @Uzlopak in #4490
  • build(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in #4507
  • build(deps): bump actions/dependency-review-action from 4.7.1 to 4.7.3 by @dependabot[bot] in #4509
  • fix writing to websocketstream with SharedArrayBuffer/SharedArrayBuff… by @KhafraDev in #4504
  • test: use faketimers for test/client-keep-alive, refactor a little by @Uzlopak in #4499
  • build(deps): bump github/codeql-action from 3.29.7 to 3.30.0 by @dependabot[bot] in #4510
  • build(deps): bump codecov/codecov-action from 5.4.3 to 5.5.0 by @dependabot[bot] in #4508
  • fix(h2): adjust :scheme on h2 requests by @metcoder95 in #4454
  • chore: use lowercase filenames, remove unused verifyVersion.js by @Uzlopak in #4514
  • chore: refactor workflows by @Uzlopak in #4513
  • chore: use [] instead of new Array(0) by @Uzlopak in #4435
  • change webidl attribute to bitwise flag by @KhafraDev in #4505
  • chore: make also cache-tests integrated as a submodule by @Uzlopak in #4517
  • ci: fine grained test nodejs workflow by @Uzlopak in #4516
  • feat: Support for capping the number of origins in Agent by @JoshMock in #4365
  • wpt: properly handle write permissions errors in wpt-runner setup by @Uzlopak in #4518
  • fetch: process content-encoding header only if relevant by @Uzlopak in #4496
  • websocket: always emit error event by @KhafraDev in #4521
  • refactor: parseHttpDate by @Uzlopak in #4421
  • fix: wpt should use master branch by @Uzlopak in #4524
  • fix: shell command built from environment values by @ptrgits in #4392
  • example: use metcoders https-pem for the example by @Uzlopak in #4436
  • Disable SIMD for PPC64 architecture, add UNDICI_NO_WASM_SIMD env to facilitate testing by @mcollina in #4530
  • fix: make error symbols non enumerable by @Uzlopak in #4531

New Contributors

Full Changelog: v7.15.0...v7.16.0

Don't miss a new undici release

NewReleases is sending notifications on new releases.