- Breaking change: Package is now ESM-only
- CommonJS consumers must use dynamic
import()instead ofrequire()
- CommonJS consumers must use dynamic
- Bump
undicifrom5.28.5to6.23.0
- Add support for ACTIONS_ORCHESTRATION_ID in user-agent and default user-agent #2229
- Add support for Node 24 #2110
- Fixed an issue where proxy username and password were not handled correctly #1799
- Better handling of url encoded usernames and passwords in proxy config #1782
- Make sure RequestOptions.keepAlive is applied properly on node20 runtime #1572
- Add function to return proxy agent dispatcher for compatibility with latest octokit packages #1547
- Add
HttpClientResponse.readBodyBuffermethod to read from a response stream and return a buffer #1475
- Add support for
*and subdomains inno_proxy#1355 #1223 - Bypass proxy for loopback IP adresses #1360)
- Fix an issue with missing
tunneldependency #1085
- The package is now compiled with TypeScript's
strictcompiler setting. To comply with stricter rules:- Some exported types now include
| nullor| undefined, matching their actual behavior. - Types implementing the method
RequestHandler.handleAuthentication()now throw anErrorrather than returningnullif they do not support handling an HTTP 401 response. Callers can still usecanHandleAuthentication()to determine if this handling is supported or not. - Types using
anyhave been scoped to more specific types.
- Some exported types now include
- Following TypeScript's naming conventions, exported interfaces no longer begin with the prefix
I-. - Delete the
IHttpClientResponseinterface in favor of theHttpClientResponseclass. - Delete the
IHeadersinterface in favor ofhttp.OutgoingHttpHeaders. - The source code of the package was moved to build with actions/toolkit.
Contains a bug fix where proxy is defined without a user and password. see PR here
Throw HttpClientError instead of a generic Error from the <verb>Json() helper methods when the server responds with a non-successful status code.
Fixed security issue where a redirect (e.g. 302) to another domain would pass headers. The fix was to strip the authorization header if the hostname was different. More details in PR #27
Update NPM dependencies and add 429 to the list of HttpCodes
Automatically sends Content-Type and Accept application/json headers for <verb>Json() helper methods if not set in the client or parameters.
Adds <verb>Json() helper methods for json over http scenarios.
Started to add <verb>Json() helper methods. Do not use this release for that. Use >= 1.0.5 since there was an issue with types.
Adds proxy support.