Skip to content

Latest commit

 

History

History
171 lines (111 loc) · 7.52 KB

CHANGELOG.md

File metadata and controls

171 lines (111 loc) · 7.52 KB

v6.1.0 (2021-06-29)

🚀 New Features

v6.0.0 (2021-06-27)

💥 Breaking Changes

#48 refactor: rewrite, use memcached-elasticache & drop Node 8 (@aaarichter)

  • Dropped Node 8.x. Use Node 10.13 or higher.

  • Uses memcached-elasticache with AWS support instead of memcached. See https://github.com/jkehres/memcached-elasticache#readme

  • API functions no longer support callbacks.

  • API functions use native Promises instead of Bluebird.

  • cached() needs to be called with a string argument as name. If the name argument is undefined, it will fallback to "default".

  • Cache.setBackend() no longer returns the created backend.

  • Cache.getWrapped() is removed.

  • Cache backend APIs need to be promise based.

  • Cache private function have been renamed.

  • The following function are now private:

    • Cache.applyPrefix
    • Cache.end
    • Cache.prepareOptions
    • Cache.setBackend
  • cache.set(), cache.get(), cache.getOrElse(), cache.unset() no longer support the callback argument. Use them as promise.

  • cache.set() no longer returns a value.

  • cache.set(key, value) accepts functions and promises as value.

  • Any client passed with the memcached backend options has to be an instance of Memcached.

  • Backend setters no longer return a value.

  • backend addType() does not return backend class anymore.

📦️ Code Refactoring

  • #48 refactor: rewrite, use memcached-elasticache & drop Node 8 (@aaarichter)

🏡 Internal

5.0.2

5.0.1

  • chore: Remove yarn check that breaks people - @jkrems #42
    • 147a7f3 chore: Remove yarn check that breaks people

5.0.0

Breaking Changes

drops support for Node 6, which is a current LTS release.

See: f4ba4c9

Commits

4.3.2

4.3.1

  • docs: Clarify that timeout applies to unset - @Zanadar #36
    • 89209ce docs: Clarify that timeout applies to unset
  • docs: Fix typo in contributing.md - @Zanadar #35
    • a3e5efa docs: fix typo in contributing.md

4.3.0

4.2.3

4.2.2

  • Update documentation for cached and backends - @fdegiuli #27
    • b137f56 docs: Add memory, noop backends to docs
    • e4bd666 docs: Deprecate unnamed caches

4.2.1

4.2.0

  • True timeouts for cache calls - @jkrems #22
    • 0d9e48f feat: True timeouts for cache calls

4.1.1

4.0.2

  • Fix unhandled rejections w/ lazy fetching - @jkrems #16

4.0.1

  • Fixing memcached.set slowness - @chkhoo #15

4.0.0

  • Recompiled using cs 1.9.1 - @jkrems #11
  • Bringing this package into the future, io.js support - @jkrems #10

v3.0.1

  • exchange cs (for csr) and lodash (for underscore) - @Kofia5 #8

v3.0.0

Upgrading to this version changes the key hashing. This means that it can potentially invalidate your cache entirely.

  • Update memcached package to 2.0.0 - @khoomeister #7

v2.0.3

  • Pin the memcached version pre-memory leak - @jkrems #6

v2.0.2

  • Fix bug where backend errors while caching made getOrElse fail - @Kofia5 #4

v2.0.1

  • Fix bug where backend errors were forwarded in getOrElse - @Kofia5 #3

v2.0.0

  • Initial public release