cacheable

Wrap native HTTP requests with RFC compliant cache support

MIT License

Downloads
390.9M
Stars
286
Committers
82

Bot releases are hidden (Show)

cacheable - 2023-07-26

Published by jaredwray about 1 year ago

cacheable-request v10.2.13

Mono Repo

We have now moved to a mono repo and also launched a new website https://cacheable.org. Our plan is now to build out cacheable request version with HTTP 2 support as a new module in addition other caching libraries. 🎉

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable/compare/v10.2.12...2023-07-26

cacheable - v10.2.12

Published by jaredwray over 1 year ago

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.11...v10.2.12

cacheable - v10.2.11

Published by jaredwray over 1 year ago

Major Changes Made

  • Upgraded get-stream to 7.0.0 and now using getStreamAsBuffer
  • Removed support for Nodejs 14 as it is incompatible with GOT and get-stream

NOTE: testing has started with Nodejs version 20 and there is an issue that we are working to resolve in the next month https://github.com/jaredwray/cacheable-request/issues/251

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.10...v10.2.11

cacheable - Release 5.2.3

Published by zzau13 over 1 year ago

5.2.3 (2023-06-14)

Bug Fixes

cacheable - Release 5.2.2

Published by zzau13 over 1 year ago

5.2.2 (2023-05-29)

Bug Fixes

cacheable - v10.2.10

Published by jaredwray over 1 year ago

Code Cleanup

In this release there were minor code clean up with how we identified undefined values. Nothing major.

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.8...v10.2.10

cacheable - Release 5.2.1

Published by zzau13 over 1 year ago

5.2.1 (2023-04-23)

Bug Fixes

  • deps: update dependency lru-cache to ~9.1.0 (d9ec046)
  • deps: update dependency lru-cache to v9 (fde0015)
  • update lru-cache (87efeff)
cacheable - Release 5.2.0

Published by zzau13 over 1 year ago

5.2.0 (2023-03-21)

Bug Fixes

  • multi-caching: minor issues (bf68d36)

Features

  • add mget(), mset(), mdel() to multiCache (#367) (4cc3972)
cacheable - v10.2.8

Published by jaredwray over 1 year ago

Updated body-parser to 1.20.2 - release notes here https://github.com/expressjs/body-parser/releases/tag/1.20.2

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.6...v10.2.8

cacheable - Release 5.1.7

Published by zzau13 over 1 year ago

5.1.7 (2023-02-23)

Bug Fixes

  • lru-cache breaking changes (8398494)
cacheable - Release 5.1.6

Published by zzau13 over 1 year ago

5.1.6 (2023-02-06)

Bug Fixes

cacheable - Release 5.1.5

Published by zzau13 over 1 year ago

5.1.5 (2023-02-03)

Bug Fixes

  • rename type alias Ttl as Milliseconds (daa5fa8)
cacheable - v10.2.6

Published by jaredwray over 1 year ago

Fix for memory leak on Listeners

The listener was not being removed on response and just error but new handlers were being added causing a memory leak.

line 220 in src/index.ts was modified to remove the listener on response also

			if (this.cache instanceof Keyv) {
				const cachek = this.cache;
				cachek.once('error', errorHandler);
				ee.on('error', () => cachek.removeListener('error', errorHandler));
				ee.on('response', () => cachek.removeListener('error', errorHandler));
			}

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.5...v10.2.6

cacheable - v10.2.5

Published by jaredwray almost 2 years ago

Types definition issue with http-cache-sematics as that type definition needs to be in dependencies. Thanks @Maxim-Mazurok

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.4...v10.2.5

cacheable - v10.2.4

Published by jaredwray almost 2 years ago

v10.2.4

Minor updates with one exception is that we removed @types/http-cache-semantics from the main dependencies as it does not look to be needed.

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.3...v10.2.4

cacheable - Release 5.1.4

Published by zzau13 almost 2 years ago

5.1.4 (2022-12-04)

Bug Fixes

  • memory: passing 0 to ttl argument does not work (#282) (d6c2ed5)
cacheable - v10.2.3

Published by jaredwray almost 2 years ago

v10.2.3 Maintenance Release

Upgrading core modules in the system such as keyv and also a minor fix to an uncaught exception that we were seeing referenced here: https://github.com/sindresorhus/got/issues/1925

Additional update is moving normalize-url to 8.0.0 which after testing it looks to not affect anything but will post the release notes here: https://github.com/sindresorhus/normalize-url/releases/tag/v8.0.0

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.2...v10.2.3

cacheable - Release 5.1.3

Published by zzau13 almost 2 years ago

5.1.3 (2022-11-02)

Bug Fixes

  • example multichaching in README (e01f780)
  • parallelize set higher priority at wrap (7f76e54)
cacheable - Release 5.1.2

Published by zzau13 almost 2 years ago

5.1.2 (2022-11-02)

Bug Fixes

  • links to ioredis in Readme (1ba46d8)
  • re populate higher priority caches when a key is found in lower ones (7a6a10c)
cacheable - v10.2.2

Published by jaredwray almost 2 years ago

Maintenance Release 10.2.2 🛠️

This is a monthly maintenance release which focused mostly on development toolset and should not have any big changes. The only package that was updated is normalize-url with a version bump to 7.2.0.

What's Changed

Full Changelog: https://github.com/jaredwray/cacheable-request/compare/v10.2.1...v10.2.2