Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.2.1 #31

Merged
merged 4 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins:
eslint:
enabled: true
channel: "eslint-8"
channel: 'eslint-9'
config:
config: ".eslintrc.yaml"
config: 'eslint.config.mjs'
22 changes: 0 additions & 22 deletions .eslintrc.yaml

This file was deleted.

33 changes: 3 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,14 @@
name: CI

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

env:
CI: true

jobs:

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

# coverage:
# uses: haraka/.github/.github/workflows/coverage.yml@master
# secrets: inherit

test:
needs: lint
runs-on: ${{ matrix.os }}
services:
redis:
image: redis
ports:
- 6379:6379
strategy:
matrix:
os: [ ubuntu-latest ]
node-version: [ 16, 18 ]
fail-fast: false

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
with:
node-version: ${{ matrix.node-version }}

- run: npm install
- run: npm test

needs: [lint]
uses: haraka/.github/.github/workflows/ubuntu.yml@master
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
2 changes: 2 additions & 0 deletions .prettierrc
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
19 changes: 10 additions & 9 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,54 @@
### Unreleased

### [1.2.1] - 2025-01-07

- style: automated code formatting with prettier
- ci: update local copy of ci.yml
- dep(eslint): updated to v9
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- lint: remove duplicate / stale rules from .eslintrc
- populate [files] in package.json.

### [1.2.0] - 2023-03-29

- maint: replace for..i iterator with for..of, add test
- feat: add redis enabled setting, #28


### [1.1.0] - 2022-11-22

- fix: use this.redis_ping during runtime, #26
- test: more async tests


### 1.0.4 - 2022-11-15

- fix: run redis_ping when registering, fixes #23
- ci: replace travis/appveyor with GHA
- dep(redis): 2 -> 4
- dep(pi-redis): * -> 2
- dep(pi-redis): \* -> 2
- dep(eslint): 4 -> 8
- dep(url): drop npm url package, use builtin
- test: replace node_unit with mocha
- doc(README): update badge URLs


### 1.0.3 - 2019-04-11

- test fix for unitialized redis config block


### 1.0.2 - 2018-03-05

- for MX entries, previously only full email address matches in the file were parsed for LMTP/SMTP routes. Now all MX entries are parsed (email file, email domain, email redis, and domain redis) for URIs.
- use es6 arrow functions
- refactored the functions in rcpt() into separate functions (simplify, more testable)


### 1.0.1 - 2017-08-19

- enable Redis install on AppVeyor CI testing


### 1.0.0 - 2017-07-28

- imported from haraka/plugins/rcpt_to.routes



[1.0.4]: https://github.com/haraka/haraka-plugin-recipient-routes/releases/tag/1.0.4
[1.1.0]: https://github.com/haraka/haraka-plugin-recipient-routes/releases/tag/1.1.0
[1.2.0]: https://github.com/haraka/haraka-plugin-recipient-routes/releases/tag/1.2.0
[1.2.1]: https://github.com/haraka/haraka-plugin-recipient-routes/releases/tag/1.2.1
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ Recipient Routes does recipient validation and MX routing.
[![Code Climate][clim-img]][clim-url]
[![NPM][npm-img]][npm-url]


## Recipient Validation

Recipients can be listed in the [routes] section of the config file
Expand All @@ -29,7 +28,7 @@ rejected.

## MX Routing

NOTE: MX routing by default routes *only* based on domains. To route for email
NOTE: MX routing by default routes _only_ based on domains. To route for email
addresses, you must set the preference `always_split=true` in
'config/outbound.ini'.

Expand Down Expand Up @@ -93,12 +92,11 @@ Matt Simerson.
Underwritten and graciously donated to the Haraka community
by [Serious Mumbo, Inc.](http://seriousmumbo.com)


<!-- leave these buried at the bottom of the document -->

[ci-img]: https://github.com/haraka/haraka-plugin-recipient-routes/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/haraka/haraka-plugin-recipient-routes/actions/workflows/ci.yml
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-recipient-routes/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-recipient-routes
[npm-img]: https://nodei.co/npm/haraka-plugin-recipient-routes.png
[npm-url]: https://www.npmjs.com/package/haraka-plugin-recipient-routes

28 changes: 28 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import globals from 'globals'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
})

export default [
...compat.extends('@haraka'),
{
languageOptions: {
globals: {
...globals.node,
...globals.mocha,
},
},
rules: {
'no-unused-vars': 'warn',
},
},
]
Loading
Loading