Releases: apache/couchdb-nano
11.0.3
11.0.2
11.0.1
11.0.0
- Replaces axios with the Node.js's built-in
fetchfor HTTP requests. 🕸️ - Replaces
nockandjestwith 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
10.1.3
10.1.2
10.1.1
10.1.0
- update dependencies, including using the latest, post v1, Axios
- aborting in-flight HTTP requests initiated by ChangesReader when
stopis called. cc @insidewhy - remove
axios-cookiejar-supportdependency 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
- 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