Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@digitalbazaar/http-client

Package Overview
Dependencies
Maintainers
5
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digitalbazaar/http-client - npm Package Versions

2

4.1.1

Diff

Changelog

Source

4.1.1 - 2024-02-21

Fixed

  • Upgrade from undici@5 to undici@6.
    • Undici v6.6.1 addresses a number of CVEs:
      • https://github.com/nodejs/undici/releases/tag/v6.6.1
    • Requires Node.js 18+, but v4 of this packages already has that requirement.
      • https://github.com/nodejs/undici/releases/tag/v6.0.0
davidlehn
published 4.1.0 •

Changelog

Source

4.1.0 - 2024-01-25

Added

  • Add a "react-native" override section to package.json.
mattcollier
published 4.0.0 •

Changelog

Source

4.0.0 - 2023-09-12

Changed

  • BREAKING: Drop support for Node.js < 18.
  • Use ky@1.0.1.
  • Remove ky-universal dependency. Node.js 18+ no longer requires fetch polyfills.
davidlehn
published 3.4.1 •

Changelog

Source

3.4.1 - 2023-04-28

Changed

  • Use a local HTTP server for most testing.
  • Use httpstat.us for valid cert HTTPS testing.
  • Add local server self-signed certificate HTTPS test.
  • Test on Node.js 20.x.

Fixed

  • Fix Node.js 19+ compatibility bug.
davidlehn
published 3.4.0 •

Changelog

Source

3.4.0 - 2023-04-14

Changed

  • Update dependencies.

Fixed

  • Defer importing ky-universal until needed.
    • Prevents dangling Promise with an import in it.
    • Avoids dynamic import when not needed.
    • Helps address issues when using Jest.
    • PR #35
    • Issue #34
    • jsonld.js Issue #519
davidlehn
published 3.3.0 •

Changelog

Source

3.3.0 - 2023-01-17

Changed

  • Update dependencies.
    • ky@0.33/ky-universal@0.11: Fixes security issues and also changes the behavior of an empty response body when using .json(). An empty string will now be returned instead of throwing.
    • NOTE: This is a minor release but it is possible the changed empty response body behavior could cause compatibility issues. Please check your code.
  • Update development dependencies.
davidlehn
published 3.2.0 •

Changelog

Source

3.2.0 - 2022-05-19

Added

  • Add compatibility code to convert agent options to an undici dispatcher for use with node 18. This code enables node 18 to be used with the legacy agent and httpsAgent options.
davidlehn
published 3.1.0 •

Changelog

Source

3.1.0 - 2022-05-03

Removed

  • Remove unused dependencies.

Changed

  • Always set response data field and default to undefined. Addresses issue when a non-JSON response is receieved, a caller accesses the data field, and a lower level library prints out a one-time warning to use other fields.
  • Update dependencies.
  • Lint module.
dlongley
published 3.0.1 •

Changelog

Source

3.0.1 - 2022-04-26

Fixed

  • Fix direct calls to httpClient(). If the call options use a method that is supported as a base function helper, e.g., httpClient.get, then it will be treated as if that helper was called just like the previous version of this library.
dlongley
published 3.0.0 •

Changelog

Source

3.0.0 - 2022-04-20

Changed

  • BREAKING: Convert to module (ESM) internally and use conditional exports to export a directory that has an entry point for CommonJS.

  • Use ky@0.30 and ky-universal@0.10.1.

  • BREAKING: Only specific methods and properties are proxied from ky on httpClient instances now. This includes the same set of functions that were proxied in previous versions:

    get, post, put, push, patch, head, delete

    With the same caveat that these functions return a promise that resolves to the response (just like in previous versions, but different from ky which returns the response synchronously). This version also proxies create and extend, where extend now properly inherits options from the parent ky instance. The stop property is also proxied, but returns a promise that resolves to the ky.stop signal. This change was made because the latest version of ky is ESM-only -- and to continue supporting a CJS build, it meant importing the library dynamically. Therefore, the ky instance must settle before it can be used -- requiring all httpClient methods and accessors to be asynchronous.

Removed

  • BREAKING: Drop support for node 10 and 12.
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc