Skip to content

Correctly document agent options - #383

Merged
glynnbird merged 4 commits into
mainfrom
grb-agentOptions-issue-379
Nov 3, 2026
Merged

glynnbird merged 4 commits into
mainfrom
grb-agentOptions-issue-379

Conversation

@glynnbird

@glynnbird glynnbird commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Overview

As raised in issue #379, the README doesn't accurately reflect how to configure a custom agent. This PR:

  • raises Undici to version 8
  • fixes the tests so that they pass with Undici 8 installed (by using the install function in test/mock.js)
  • correctly document how to supply an agentOptions parameter to use a custom agent

GitHub issue number

Fixes issue #379

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;

@glynnbird

Copy link
Copy Markdown
Contributor Author

Yuk. Tests fail on Node 20 (now EOL) - Nano still works on Node 20 but the Undici@8/MockAgent goop doesn't work on Node 20.

It works on Node 26 (which went into LTS yesterday). So I could change the test matrix to use 22/24/26?

…nt and jump to Undici@8

- dependency bump and switch to Undici@8
- modify the README to correctly document how to configure a custom agent
- install the currently installed Undici when running tests
- modify tests to show correct agentOptions use
- change Node testing matrix to 22/24/26 - the supported versions
@glynnbird
glynnbird force-pushed the grb-agentOptions-issue-379 branch from ed07fe1 to 951d69a Compare October 29, 2026 15:39
@glynnbird glynnbird changed the title Correctly document agent options issue 379 Correctly document agent options Oct 29, 2026

@klaemo klaemo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for picking this up so quickly! Left a few thoughts :)

Comment thread .github/workflows/ci.yaml Resolved
Comment thread README.md Resolved
Comment thread README.md Resolved
Comment thread test/nano.agent.test.js Resolved
glynnbird and others added 3 commits November 2, 2026 16:38
Co-authored-by: Clemens Stolle <klaemo@fastmail.fm>
Co-authored-by: Clemens Stolle <klaemo@fastmail.fm>
@glynnbird
glynnbird merged commit 86ee79a into main Nov 3, 2026
3 checks passed
@glynnbird
glynnbird deleted the grb-agentOptions-issue-379 branch November 3, 2026 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants