Skip to content

Commit 0387b03

Browse files
Merge pull request #22 from strapi-community/upgrade/node20
Remove engines for node 20, various cleanup
2 parents 87c8ddf + b7c3440 commit 0387b03

8 files changed

Lines changed: 51 additions & 1486 deletions

File tree

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/run-tests.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@ name: 'Standard Tests'
33
on: push
44

55
jobs:
6-
lint:
7-
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
node: [14, 16]
11-
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2-beta
14-
with:
15-
node-version: ${{ matrix.node }}
16-
- name: Install modules
17-
run: yarn
18-
- name: Run lint
19-
run: yarn eslint
6+
# lint:
7+
# runs-on: ubuntu-latest
8+
# strategy:
9+
# matrix:
10+
# node: [14, 16]
11+
# steps:
12+
# - uses: actions/checkout@v2
13+
# - uses: actions/setup-node@v2-beta
14+
# with:
15+
# node-version: ${{ matrix.node }}
16+
# - name: Install modules
17+
# run: yarn
18+
# - name: Run lint
19+
# run: yarn eslint
2020
vulnerabilityScan:
2121
runs-on: ubuntu-latest
2222
steps:

README.md

Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ For more information on contributing please see [the contrib message below](#con
4646

4747
## 🛑 Foreword
4848

49-
This package's lead maintainer is an employee of Strapi however this package is not officially maintained by Strapi Solutions SAS nor Strapi, Inc. and is currently maintained in the free time of the lead maintainer.
49+
This package's lead maintainer is an employee of Strapi however this package is not officially maintained by Strapi Solutions SAS nor Strapi, Inc. and is currently maintained in the free time of the lead maintainer.
5050

5151
**Absolutely no part of this code should be considered covered under any agreement you have with Strapi proper** including but not limited to any Enterprise Agreement you have with Strapi.
5252

@@ -86,15 +86,28 @@ If you are currently using this package in your plugin and would like to be feat
8686

8787
Supported Strapi Versions:
8888

89-
| Strapi Version | Supported | Tested On |
90-
|----------------|------------|---------------|
91-
| v3 || N/A |
92-
| v4.0.x || July 2022 |
93-
| v4.1.x || July 2022 |
94-
| v4.2.x || July 2022 |
95-
| v4.3.x || December 2022 |
96-
| v4.4.x || December 2022 |
97-
| v4.5.x || December 2022 |
89+
| Strapi Version | Supported | Tested On |
90+
| -------------- | --------- | ------------- |
91+
| v3 || N/A |
92+
| v4.0.x || July 2022 |
93+
| v4.1.x || July 2022 |
94+
| v4.2.x || July 2022 |
95+
| v4.3.x || December 2022 |
96+
| v4.4.x || December 2022 |
97+
| v4.5.x || December 2022 |
98+
| v4.6.x || January 2024 |
99+
| v4.7.x || January 2024 |
100+
| v4.8.x || January 2024 |
101+
| v4.9.x || January 2024 |
102+
| v4.10.x || January 2024 |
103+
| v4.11.x || January 2024 |
104+
| v4.12.x || January 2024 |
105+
| v4.13.x || January 2024 |
106+
| v4.14.x || January 2024 |
107+
| v4.15.x || January 2024 |
108+
| v4.16.x || January 2024 |
109+
| v4.17.x || January 2024 |
110+
| v4.19.x || January 2024 |
98111

99112
**This plugin will not work with Strapi v3 projects as it utilizes APIs that don't exist in the v3!**
100113

@@ -151,11 +164,11 @@ module.exports = {
151164
default: {
152165
connection: {
153166
sentinels: [
154-
{ host: "192.168.1.101", port: 26379 },
155-
{ host: "192.168.1.102", port: 26379 },
156-
{ host: "192.168.1.103", port: 26379 },
167+
{ host: '192.168.1.101', port: 26379 },
168+
{ host: '192.168.1.102', port: 26379 },
169+
{ host: '192.168.1.103', port: 26379 },
157170
],
158-
name: "my-redis-replicaSet",
171+
name: 'my-redis-replicaSet',
159172
db: 0,
160173
},
161174
settings: {
@@ -172,7 +185,7 @@ module.exports = {
172185

173186
```js
174187
// path ./config/plugins.js
175-
const { readFileSync } = require('fs')
188+
const { readFileSync } = require('fs');
176189

177190
module.exports = {
178191
redis: {
@@ -187,8 +200,8 @@ module.exports = {
187200
username: 'username',
188201
password: 'secret',
189202
// @see https://github.com/luin/ioredis#tls-options
190-
tls: {
191-
ca: readFileSync("cert.pem"),
203+
tls: {
204+
ca: readFileSync('cert.pem'),
192205
},
193206
},
194207
settings: {
@@ -220,7 +233,7 @@ For each connection either a normal Redis client is created, or if the cluster s
220233
#### Redis Client
221234

222235
Accessed with: `strapi.redis.connections.default.client`
223-
*Note you can swap the default key with any other named database you have configured*
236+
_Note you can swap the default key with any other named database you have configured_
224237

225238
From here you have full access to the [ioredis API](https://github.com/luin/ioredis/blob/master/API.md).
226239

@@ -230,7 +243,7 @@ I/We are actively looking for contributors, maintainers, and others to help shap
230243

231244
Instead of reinventing the wheel every time you need to connect to Redis, the hope is to centralize the connections in a single plugin that all plugins can piggy back on.
232245

233-
If interested please feel free to email the lead maintainer Derrick at: derrickmehaffy@gmail.com or ping `DMehaffy#1337` on Discord.
246+
If interested please feel free to email the lead maintainer Derrick at: derrickmehaffy@gmail.com or ping `DMehaffy` on Discord.
234247

235248
**Please Note**: This package is maintained collectively by the [strapi community organization](https://github.com/strapi-community). While there may be a lead maintainer, they are not the sole maintainer of this code and this code does not belong to the lead maintainer.
236249

package.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,7 @@
1414
"debug": "4.3.4",
1515
"ioredis": "5.2.4"
1616
},
17-
"devDependencies": {
18-
"@strapi-community/eslint-config": "0.1.5",
19-
"eslint": "8.8.0"
20-
},
21-
"scripts": {
22-
"eslint": "eslint .",
23-
"eslint:fix": "eslint . --fix"
24-
},
17+
"scripts": {},
2518
"author": {
2619
"name": "Derrick Mehaffy",
2720
"email": "derrickmehaffy@gmail.com",
@@ -43,9 +36,5 @@
4336
"url": "https://github.com/strapi-community/strapi-plugin-redis/issues"
4437
},
4538
"homepage": "https://github.com/strapi-community/strapi-plugin-redis#readme",
46-
"engines": {
47-
"node": ">=12.x.x <=18.x.x",
48-
"npm": ">=6.0.0"
49-
},
5039
"license": "MIT"
5140
}

server/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
'use strict';
22

3-
const bootstrap = require('./bootstrap');
3+
const register = require('./register');
44
const config = require('./config');
55
const services = require('./services');
66

77
module.exports = {
8-
bootstrap,
8+
register,
99
config,
1010
services,
1111
};
File renamed without changes.

0 commit comments

Comments
 (0)