Skip to content

Commit 828ae6b

Browse files
authored
Release v2.0.7 (#44)
- doc: Changes -> CHANGELOG - prettier - ci: update to shared GHA workflows - lint: remove duplicate / stale rules from .eslintrc - populate [files] in package.json. Delete .npmignore. - doc(CONTRIBUTORS): added
1 parent ca6c766 commit 828ae6b

15 files changed

+392
-452
lines changed

.codeclimate.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
engines:
22
eslint:
33
enabled: true
4-
channel: "eslint-8"
4+
channel: 'eslint-8'
55
config:
6-
config: ".eslintrc.yaml"
6+
config: '.eslintrc.yaml'
77

88
checks:
99
method-complexity:
1010
config:
1111
threshold: 10
1212

1313
ratings:
14-
paths:
15-
- "**.js"
14+
paths:
15+
- '**.js'

.eslintrc.yaml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@ env:
22
node: true
33
es6: true
44
mocha: true
5-
es2020: true
5+
es2022: true
66

7-
plugins: [ haraka ]
8-
9-
extends: [ eslint:recommended, plugin:haraka/recommended ]
10-
11-
root: true
12-
13-
globals:
14-
OK: true
15-
CONT: true
16-
DENY: true
17-
DENYSOFT: true
18-
DENYDISCONNECT: true
19-
DENYSOFTDISCONNECT: true
20-
connection: true
7+
extends: ['@haraka']

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
Fixes #
22

33
Changes proposed in this pull request:
4-
-
5-
-
4+
5+
-
6+
-
67

78
Checklist:
9+
810
- [ ] docs updated
911
- [ ] tests updated
1012
- [ ] Changes.md updated

.github/workflows/ci.yml

Lines changed: 12 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,22 @@
11
name: CI
22

3-
on: [ push, pull_request ]
3+
on: [push, pull_request]
44

55
env:
66
CI: true
7-
node-version: 16
87

98
jobs:
10-
119
lint:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
16-
name: Node ${{ env.node-version }}
17-
with:
18-
node-version: ${{ env.node-version }}
19-
- run: npm install
20-
- run: npm run lint
10+
uses: haraka/.github/.github/workflows/lint.yml@master
11+
12+
# coverage:
13+
# uses: haraka/.github/.github/workflows/coverage.yml@master
14+
# secrets: inherit
2115

2216
test:
23-
runs-on: ${{ matrix.os }}
24-
services:
25-
redis:
26-
image: redis
27-
ports:
28-
- 6379:6379
29-
strategy:
30-
matrix:
31-
os: [ ubuntu-latest ]
32-
node-version: [ 14, 16, 18 ]
33-
fail-fast: false
34-
steps:
35-
- uses: actions/checkout@v3
36-
- uses: actions/setup-node@v3
37-
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
38-
with:
39-
node-version: ${{ matrix.node-version }}
40-
- run: npm install
41-
- run: npm run test
17+
needs: [lint]
18+
uses: haraka/.github/.github/workflows/ubuntu.yml@master
19+
20+
# windows:
21+
# needs: [lint]
22+
# uses: haraka/.github/.github/workflows/windows.yml@master

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ name: CodeQL
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
pull_request:
77
# The branches below must be a subset of the branches above
8-
branches: [ master ]
8+
branches: [master]
99
schedule:
1010
- cron: '18 7 * * 4'
1111

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ env:
1313
jobs:
1414
publish:
1515
uses: haraka/.github/.github/workflows/publish.yml@master
16-
secrets: inherit
16+
secrets: inherit

.npmignore

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

.prettierrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
singleQuote: true
2+
semi: false

Changes.md renamed to CHANGELOG.md

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,100 @@
1+
# Changelog
2+
3+
The format is based on [Keep a Changelog](https://keepachangelog.com/).
14

25
### Unreleased
36

7+
### [2.0.7] - 2024-04-21
8+
9+
- populate [files] in package.json. Delete .npmignore.
10+
- lint: remove duplicate / stale rules from .eslintrc
11+
- ci: update to shared GHA workflows
12+
- doc(CONTRIBUTORS): added
13+
- doc: Changes -> CHANGELOG
14+
- prettier
415

516
### [2.0.6] - 2023-12-12
617

718
- doc(README): '[socket]' is now '[server]' (#39)
819
- chore(ci): add .release, updated dot files
920

10-
1121
### 2.0.5 - 2022-05-26
1222

1323
- fix: backwards compatibility with legacy plugin config files
14-
- fix: rename p\* methods -> * (required in redis v4)
24+
- fix: rename p\* methods -> \* (required in redis v4)
1525
- fix: add `await client.connect()` as is now required, fixes #32
1626
- fix: make redis_ping async
1727
- dep(redis): bump 4.0 -> 4.1
1828
- chore(ci): updated syntax
1929
- chore(ci): added codeql config
2030
- test: added tests for init_redis_plugin
2131

22-
2332
### 2.0.0 - 2022-03-29
2433

2534
- dep(redis): bump major version 3 -> 4
2635
- breaking API change: replaced callbacks with promises
2736
- config.ini
28-
- opts.db -> opts.database (to match upstream)
29-
37+
- opts.db -> opts.database (to match upstream)
3038

3139
### 1.0.13 - 2021-10-14
3240

3341
- chore(ci): switch CI from Travis to GitHub Actions
3442
- doc(README): update formatting with GFM
3543

36-
3744
### 1.0.12 - 2020-03-16
3845

3946
- chore(ci): replace nodeunit with mocha
4047
- dep(redis): update lib to v3
4148
- appveyor: test on node 10
4249

43-
4450
### 1.0.11 - 2019-04-11
4551

4652
- create custom connection only after: all 3 conditions match
4753

48-
4954
### 1.0.10 - 2019-04-09
5055

5156
- merge ALL of [opts] into [server] config (fixes #18)
5257
- merge all of [opts] into [pubsub] config
5358
- include an empty config/redis.ini
5459
- add defaultOpts once, vs defaults in two places
5560

56-
5761
### 1.0.9 - 2019-02-19
5862

5963
- bump redis version to 2.8.0
6064
- emit error message if redis connection fails
6165
- add 3s timeout for subscribe connects: minimize connections stalls
6266
- add es6 template literals
6367

64-
6568
### 1.0.8 - 2018-01-03
6669

6770
- upon punsubscribe, `quit()` (disconnect) redis client
6871

69-
7072
### 1.0.7 - 2017-07-31
7173

7274
- apply config [opts] to pubsub settings #7
7375

74-
7576
### 1.0.6 - 2017-06-16
7677

7778
- eslint 4 compat
7879

79-
8080
### 1.0.5 - 2017-06-09
8181

8282
- disconnect per-connection redis client upon punsubscribe
8383

84-
8584
### 1.0.4 - 2017-02-06
8685

8786
- remove retry_strategy, redis client now does The Right Thing w/o it
8887

89-
9088
### 1.0.3 - 2017-02-06
9189

9290
- don't break when no [redis] config exists
9391

94-
[2.0.6]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.6
92+
[1.0.13]: https://github.com/haraka/haraka-plugin-redis/releases/tag/1.0.13
93+
[2.0.0]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.0
94+
[2.0.1]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.1
95+
[2.0.2]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.2
96+
[2.0.3]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.3
97+
[2.0.4]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.4
98+
[2.0.5]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.5
99+
[2.0.6]: https://github.com/haraka/haraka-plugin-redis/releases/tag/v2.0.6
100+
[2.0.7]: https://github.com/haraka/haraka-plugin-redis/releases/tag/2.0.7

0 commit comments

Comments
 (0)