|
| 1 | +### v6.0.0 (2021-06-27) |
| 2 | +<a id="v6.0.0"></a> |
| 3 | +#### 💥 Breaking Changes |
| 4 | + |
| 5 | +[#48](https://github.com/groupon/node-cached/pull/48) refactor: rewrite, use memcached-elasticache & drop Node 8 ([@aaarichter](https://github.com/aaarichter)) |
| 6 | + |
| 7 | +- Dropped Node 8.x. Use Node 10.13 or higher. |
| 8 | +- Uses `memcached-elasticache` with AWS support instead of `memcached`. See https://github.com/jkehres/memcached-elasticache#readme |
| 9 | +- API functions no longer support callbacks. |
| 10 | +- API functions use native Promises instead of `Bluebird`. |
| 11 | +- `cached()` needs to be called with a string argument as name. If the `name` argument is undefined, it will fallback to `"default"`. |
| 12 | + |
| 13 | +- `Cache.setBackend()` no longer returns the created backend. |
| 14 | +- `Cache.getWrapped()` is removed. |
| 15 | +- Cache backend APIs need to be promise based. |
| 16 | +- Cache private function have been renamed. |
| 17 | +- The following function are now private: |
| 18 | + - `Cache.applyPrefix` |
| 19 | + - `Cache.end` |
| 20 | + - `Cache.prepareOptions` |
| 21 | + - `Cache.setBackend` |
| 22 | + |
| 23 | +- `cache.set()`, `cache.get()`, `cache.getOrElse()`, `cache.unset()` no longer support the callback argument. Use them as promise. |
| 24 | +- `cache.set()` no longer returns a value. |
| 25 | +- `cache.set(key, value)` accepts functions and promises as value. |
| 26 | + |
| 27 | +- Any client passed with the memcached backend options has to be an instance of `Memcached`. |
| 28 | +- Backend setters no longer return a value. |
| 29 | +- backend `addType()` does not return backend class anymore. |
| 30 | + |
| 31 | +#### 📦️ Code Refactoring |
| 32 | + |
| 33 | +* [#48](https://github.com/groupon/node-cached/pull/48) refactor: rewrite, use memcached-elasticache & drop Node 8 ([@aaarichter](https://github.com/aaarichter)) |
| 34 | + |
| 35 | +#### 🏡 Internal |
| 36 | + |
| 37 | +* [#59](https://github.com/groupon/node-cached/pull/59) ci(actions): adding GitHub actions ([@aaarichter](https://github.com/aaarichter)) |
| 38 | + |
| 39 | + |
1 | 40 | ### 5.0.2
|
2 | 41 |
|
3 | 42 | * misc updates - **[@dbushong](https://github.com/dbushong)** [#46](https://github.com/groupon/node-cached/pull/46)
|
|
0 commit comments