Skip to content

Commit

Permalink
Release v1.2.2 (#60)
Browse files Browse the repository at this point in the history
- populate [files] in package.json. Delete .npmignore.
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- lint: remove duplicate / stale rules from .eslintrc
- deps: bump versions
- format: prettier
- doc: rename Changes -> CHANGELOG
- doc(CONTRIBUTORS): added
  • Loading branch information
msimerson authored Apr 23, 2024
1 parent ad997d4 commit 2c5fdd4
Show file tree
Hide file tree
Showing 19 changed files with 955 additions and 1,016 deletions.
16 changes: 11 additions & 5 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
engines:
eslint:
enabled: true
channel: "eslint-8"
channel: 'eslint-8'
config:
config: ".eslintrc.yaml"
config: '.eslintrc.yaml'

checks:
return-statements:
Expand All @@ -12,8 +12,14 @@ checks:
enabled: false
method-complexity:
config:
threshold: 10
threshold: 15
file-lines:
config:
threshold: 500
method-lines:
config:
threshold: 50

ratings:
paths:
- "**.js"
paths:
- '**.js'
19 changes: 3 additions & 16 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,10 @@

env:
node: true
es6: true
mocha: true
es2020: true

plugins: [ haraka ]

extends: [ eslint:recommended, plugin:haraka/recommended ]

root: true
es2022: true

globals:
OK: true
CONT: true
DENY: true
DENYSOFT: true
DENYDISCONNECT: true
DENYSOFTDISCONNECT: true
extends: ['@haraka']

rules:
no-unused-vars: 1
no-unused-vars: 1
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/" # Location of package manifests
- package-ecosystem: 'npm'
directory: '/' # Location of package manifests
schedule:
interval: "weekly"
interval: 'weekly'
allow:
- dependency-type: "production"
- dependency-type: 'production'
9 changes: 4 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
name: CI

on: [ push, pull_request ]
on: [push, pull_request]

env:
CI: true

jobs:

lint:
uses: haraka/.github/.github/workflows/lint.yml@master

ubuntu:
needs: [ lint ]
needs: [lint]
uses: haraka/.github/.github/workflows/ubuntu.yml@master

windows:
needs: [ lint ]
needs: [lint]
uses: haraka/.github/.github/workflows/windows.yml@master
if: ${{ false }} # disabled, until Redis for GHA Windows exists
if: ${{ false }} # disabled, until Redis for GHA Windows exists
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: CodeQL

on:
push:
branches: [ master ]
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
branches: [master]
schedule:
- cron: '18 7 * * 4'

Expand Down
58 changes: 0 additions & 58 deletions .npmignore

This file was deleted.

2 changes: 2 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
singleQuote: true
semi: false
2 changes: 1 addition & 1 deletion .release
31 changes: 16 additions & 15 deletions Changes.md → CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,78 +1,79 @@
# Changelog

The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

### [1.2.2] - 2024-04-22

- populate [files] in package.json. Delete .npmignore.
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- lint: remove duplicate / stale rules from .eslintrc
- deps: bump versions
- format: prettier

### [1.2.1] - 2024-03-20

- deps: bump versions
- fix: undo increment if the email sending is delayed (#56)


### [1.2.0] - 2023-12-27

- disable history by default (match docs)
- ci: use shared workflows


### [1.1.1] - 2022-12-18

- package.json: remove deprecated 'main'


### [1.1.0] - 2022-08-18

- initialize redis when only concurrency is enabled (#42)


### [1.0.7] - 2022-06-03

- chore: add .release as a submodule
- ci: limit dependabot updates to production deps
- ci: populate test matrix with Node.js LTS versions
- cfg: rename redis.db -> redis.database, pi-redis 2+ does this automatically, causing a test failure


### 1.0.6 - 2022-05-25

- feat: update redis commands to be v4 compatible
- feat: only load redis when needed, fixes #23
- style: replaced callbacks with async/await in:
get_host_key, get_mail_key, and rate_limit
get_host_key, get_mail_key, and rate_limit
- dep(eslint): v6 -> v8
- dep(redis): 3 -> 4
- ci: add codeql & publish


### 1.0.5 - 2022-03-08

- fix invalid main field in package.json


### 1.0.4 - 2017-03-23

- for outbound, find domain at hmail.todo.domain then hmail.domain.
- noop: use es6 arrow functions


### 1.0.3 - 2017-03-09

- add `enabled=false` flag for each limit type, defaults to off, matching the docs.


### 1.0.2 - 2017-02-06

- when redis handle goes away, skip processing
- add a 5 minute expiration on outbound rate limit entries


### 1.0.1 - 2017-01-28

- increment rate_conn on connect_init
- increment rate_rcpt_host on rcpt/rcpt_ok


[1.0.6]: https://github.com/haraka/haraka-plugin-limit/releases/tag/1.0.6
[1.0.7]: https://github.com/haraka/haraka-plugin-limit/releases/tag/1.0.7
[1.1.0]: https://github.com/haraka/haraka-plugin-limit/releases/tag/1.1.0
[1.1.1]: https://github.com/haraka/haraka-plugin-limit/releases/tag/1.1.1
[1.2.0]: https://github.com/haraka/haraka-plugin-limit/releases/tag/1.2.0
[1.2.1]: https://github.com/haraka/haraka-plugin-limit/releases/tag/1.2.1
[1.1.1]: https://github.com/haraka/haraka-plugin-limit/releases/tag/v1.1.1
[1.2.0]: https://github.com/haraka/haraka-plugin-limit/releases/tag/v1.2.0
[1.2.1]: https://github.com/haraka/haraka-plugin-limit/releases/tag/v1.2.1
[1.2.2]: https://github.com/haraka/haraka-plugin-limit/releases/tag/v1.2.2
8 changes: 8 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Contributors

This handcrafted artisinal software is brought to you by:

| <img height="80" src="https://avatars.githubusercontent.com/u/261635?v=4"><br><a href="https://github.com/msimerson">msimerson</a> (<a href="https://github.com/haraka/haraka-plugin-limit/commits?author=msimerson">68</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/48183131?v=4"><br><a href="https://github.com/divine">divine</a> (<a href="https://github.com/haraka/haraka-plugin-limit/commits?author=divine">6</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/82041?v=4"><br><a href="https://github.com/gramakri">gramakri</a> (<a href="https://github.com/haraka/haraka-plugin-limit/commits?author=gramakri">2</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/28440072?v=4"><br><a href="https://github.com/leadbi">leadbi</a> (<a href="https://github.com/haraka/haraka-plugin-limit/commits?author=leadbi">1</a>) |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

<sub>this file is maintained by [.release](https://github.com/msimerson/.release)</sub>
Loading

0 comments on commit 2c5fdd4

Please sign in to comment.