Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit d6c14e8

Browse files
committed
v6.0.0
1 parent 1a7a256 commit d6c14e8

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,42 @@
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+
140
### 5.0.2
241

342
* misc updates - **[@dbushong](https://github.com/dbushong)** [#46](https://github.com/groupon/node-cached/pull/46)

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[![nlm-github](https://img.shields.io/badge/github-groupon%2Fnode--cached%2Fissues-F4D03F?logo=github&logoColor=white)](https://github.com/groupon/node-cached/issues)
2+
![nlm-node](https://img.shields.io/badge/node-%3E%3D10.13.0-blue?logo=node.js&logoColor=white)
3+
![nlm-version](https://img.shields.io/badge/version-6.0.0-blue?logo=version&logoColor=white)
14
[![Publish to NPM](https://github.com/groupon/node-cached/actions/workflows/npm-publish.yml/badge.svg?event=push)](https://github.com/groupon/node-cached/actions/workflows/npm-publish.yml)
25
# cached
36

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cached",
3-
"version": "5.0.2",
3+
"version": "6.0.0",
44
"description": "Simple access to a cache",
55
"license": "BSD-3-Clause",
66
"main": "lib/cached.js",

0 commit comments

Comments
 (0)