Skip to content

Releases: apache/couchdb-nano

11.0.1

15 Sep 15:49
Compare
Choose a tag to compare

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

11.0.0

09 Sep 14:28
26fb0e1
Compare
Choose a tag to compare
  • 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

14 Aug 12:22
8e1c24a
Compare
Choose a tag to compare

10.1.3

15 Nov 09:16
2ceb3dd
Compare
Choose a tag to compare

Maintenance release to update axios

10.1.2

26 Jan 15:28
dc67354
Compare
Choose a tag to compare
  • Bug fix for cookie refresh handling

10.1.1

11 Jan 12:24
19c919f
Compare
Choose a tag to compare
  • bug fix for session persistence when using nano.auth

10.1.0

03 Nov 15:17
22850d7
Compare
Choose a tag to compare
  • update dependencies, including using the latest, post v1, Axios
  • aborting in-flight HTTP requests initiated by ChangesReader when stop is called. cc @insidewhy
  • remove axios-cookiejar-support dependency which causes some users problems
  • ensure callbacks are called with Error objects cc @revington
  • various small typos and Typescript fixes from @lukashass @insidewhy @DougReeder

10.0.0

25 Mar 09:38
f5a731c
Compare
Choose a tag to compare
  • Properly escape partition ids - Thanks @swansontec. This is a potentially breaking change for anyone encoding the partition key before passing to Nano. See #283
  • Fix up broken badge links - Thanks @brnnnfx
  • Typescript fixes - Thanks @sziladriana
  • More Typescript fixes - Thanks @adipascu
  • Yet more Typescript fixes - Thanks @vividn
  • Dependency bump to get latest axios and other dependencies

9.0.5

14 Sep 08:22
Compare
Choose a tag to compare
  • fixes db.multipart.insert function which didn't work as axios didn't have the ability to build multipart requests. This is now fixed.

9.0.4

02 Sep 10:47
Compare
Choose a tag to compare
  • fix circular dependency bug when logging
  • fix customer header support
  • document how to supply custom CA for https