Skip to content

!feat: use fetch instead of superagent (closes #552) - #555

Draft
Justin Hammond (Justintime50) wants to merge 2 commits into
masterfrom
EXP-1224_fetch_over_superagent
Draft

!feat: use fetch instead of superagent (closes #552)#555
Justin Hammond (Justintime50) wants to merge 2 commits into
masterfrom
EXP-1224_fetch_over_superagent

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Jul 30, 2026

Copy link
Copy Markdown
Member

Description

  • Drops Node 16 support as fetch is only in Node 18+
  • Breaking: HTTP transport migrated from superagent to fetch-compatible transport
    • superagent runtime dependency removed
    • Breaking: superagentMiddleware renamed to httpMiddleware
    • Breaking: fetchClient renamed to httpClient
    • Breaking: makeApiCall now accepts delete (the del alias was removed)
    • requestMiddleware compatibility preserved using a fetch-era compatibility request object
    • Default User-Agent retains structured runtime metadata fields (Nodejs/, OS/, OSVersion/, OSArch/) via runtime-safe detection

Closes #552

Testing

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc)

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.

[Feat]: Migrate HTTP transport from superagent to fetch for edge-runtime compatibility

1 participant