Skip to content

Releases

11.0.8

Choose a tag to compare

@glynnbird glynnbird released this 03 Nov 11:09
d0471d8
  • Fixes bug where query string parameters supplied as undefined would become the string "undefined" in API calls.
  • Fixes bug where the request promise was not rejected properly.
  • Fixes some TypeScript definitions.
  • Aligns CONTRIBUTING.md with the Apache CouchDB project.
  • Correctly documents how to override the HTTP agent with agentOptions.
  • Update dev dependencies, particularly v8 of Undici.

11.0.7

Choose a tag to compare

@glynnbird glynnbird released this 21 Aug 13:01
53dea92
  • Bug fix for issue where db.attachment.get may not return buffer, if a JSON attachment was fetched. #374
  • Dependency audit fix

11.0.6

Choose a tag to compare

@glynnbird glynnbird released this 03 Jul 07:44
  • Add missing new_edits flag to bulk_docs body TypeScript definition.
  • Dependency bump.

11.0.5

Choose a tag to compare

@glynnbird glynnbird released this 01 Apr 09:17
  • Fixes a bug when content type headers are paired with a character set.

11.0.4

Choose a tag to compare

@glynnbird glynnbird released this 06 Feb 12:49
c757679
  • Fix bug when supplying username/password data that included characters that get "percent encoded". #363

11.0.3

Choose a tag to compare

@glynnbird glynnbird released this 16 Oct 09:44
  • add missing TypeScript definition for findAsStream

11.0.2

Choose a tag to compare

@glynnbird glynnbird released this 06 Oct 08:19

Added headers to TypeScript definition of the object that can be supplied when instantiating Nano.

11.0.1

Choose a tag to compare

@glynnbird glynnbird released this 15 Sep 15:49

Fix up response object so that Bun (and Node) users get sensible error messages. Thanks @digitalextremist

11.0.0

Choose a tag to compare

@glynnbird glynnbird released this 09 Sep 14:28
26fb0e1
  • Replaces axios with the Node.js's built-in fetch for HTTP requests. 🕸️
  • Replaces nock and jest with Node.js's build in testing framework. 🧪
  • Removes support for callbacks. 📞
  • Nano becomes a zero-dependency library. 👏
  • Desiged for Node.js 20 and above (if you are still running older versions of Node then stick with Nano 10)

The vast majority of the API stays the same but there are some breaking changes. See Nano v10 to v11 Migration Guide.

Some background.

fetch

Originally Nano was built on top of the request library which was later deprecated. At this point I reworked it to use axios instead. This PR eliminates axios and other axios-related dependencies and instead uses the new kid on the block: the fetch API.

The fetch feature has found widespread adoption in web browsers as a means of handling outbound HTTP requests. It has found its way into Node.js as a global function and is marked as an experimental feature in Node 18/19 and is mainstream in Node 20 and beyond.

Node.js's fetch capability is powered by the undici package which is bundled with Node.js and in turn uses Node's low-level network libraries instead of being based on the higher-level http/https built-in modules. It purports to be significantly faster (according to its own benchmarks) than traffic routed through http/https modules, as is the case with other HTTP libraries like axios & request.

10.1.4

Choose a tag to compare

@glynnbird glynnbird released this 14 Aug 12:22
8e1c24a