Skip to content

Commit

Permalink
docs: update examples to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Mar 26, 2022
1 parent b8e99b4 commit 1df1ea0
Show file tree
Hide file tree
Showing 8 changed files with 254 additions and 147 deletions.
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# [5.0.0](https://github.com/luin/ioredis/compare/v4.28.5...v5.0.0) (2022-03-26)

In the update of v5, we've made ioredis even more stable and developer-friendly while minimizing the number of breaking changes, so you can spend more time enjoying your life 😄.

Please refer to the guideline to upgrade your projects: [🚀 Upgrading from v4 to v5](https://github.com/luin/ioredis/wiki/Upgrading-from-v4-to-v5).


### Bug Fixes

Expand Down Expand Up @@ -58,8 +62,7 @@ Now, if you don't want to send username to Redis, just leave the username part e
* `Redis#serverInfo` is removed. This field is never documented so
you very likely have never used it.
* Support for third-party Promise libraries is dropped. Related methods (`exports.Promise = require('bluebird')`) are kept but they don't take any effects. The native Promise will always be used.
* We now require Node.js v10.12.0 or newer.
* We now only work with Redis v3.0.0 or newer.
* We now require Node.js v12 or newer.
* `Redis` can't be called as a function anymore as it's now a class.
Please change `Redis()` to `new Redis()`. Note that `Redis()` was already deprecated
in the previous version.
Expand Down Expand Up @@ -141,8 +144,7 @@ Now, if you don't want to send username to Redis, just leave the username part e
* `Redis#serverInfo` is removed. This field is never documented so
you very likely have never used it.
* Support for third-party Promise libraries is dropped. Related methods (`exports.Promise = require('bluebird')`) are kept but they don't take any effects. The native Promise will always be used.
* We now require Node.js v10.12.0 or newer.
* We now only work with Redis v3.0.0 or newer.
* We now require Node.js v12 or newer.
* `Redis` can't be called as a function anymore as it's now a class.
Please change `Redis()` to `new Redis()`. Note that `Redis()` was already deprecated
in the previous version.
Expand Down
99 changes: 36 additions & 63 deletions examples/express/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"debug": "^4.3.3",
"express": "^4.17.3",
"http-errors": "~1.6.3",
"ioredis": "^4.28.5",
"ioredis": "^5.0.0",
"jade": "~1.11.0",
"morgan": "~1.9.1"
}
Expand Down

0 comments on commit 1df1ea0

Please sign in to comment.