Skip to content

Commit

Permalink
chore: up connect-redis to 7.x, drop node 14 (#11376)
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Mar 17, 2023
1 parent c843984 commit fafa130
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
node: [14, 16, 18]
node: [16, 18]
database: [mongo-dev, mongo, redis, postgres]
include:
# only run coverage once
- os: ubuntu-latest
node: 14
node: 16
coverage: true
# test under development once
- database: mongo-dev
test_env: development
# only run eslint once
- os: ubuntu-latest
node: 14
node: 16
database: mongo-dev
lint: true
runs-on: ${{ matrix.os }}
Expand Down
2 changes: 1 addition & 1 deletion install/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"connect-mongo": "5.0.0",
"connect-multiparty": "2.2.0",
"connect-pg-simple": "8.0.0",
"connect-redis": "6.1.3",
"connect-redis": "7.0.1",
"cookie-parser": "1.4.6",
"cron": "2.3.0",
"cropperjs": "1.5.13",
Expand Down
3 changes: 1 addition & 2 deletions src/database/redis.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

const nconf = require('nconf');
const semver = require('semver');
const session = require('express-session');

const connection = require('./redis/connection');

Expand Down Expand Up @@ -40,7 +39,7 @@ redisModule.init = async function () {

redisModule.createSessionStore = async function (options) {
const meta = require('../meta');
const sessionStore = require('connect-redis')(session);
const sessionStore = require('connect-redis').default;
const client = await connection.connect(options);
const store = new sessionStore({
client: client,
Expand Down

0 comments on commit fafa130

Please sign in to comment.