Skip to content

Commit

Permalink
Release v1.3.5 (#64)
Browse files Browse the repository at this point in the history
- update package.json scripts
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- update .eslintrc
- prettier
  • Loading branch information
msimerson authored Apr 7, 2024
1 parent bff2564 commit ccea7f1
Show file tree
Hide file tree
Showing 29 changed files with 1,016 additions and 1,019 deletions.
8 changes: 4 additions & 4 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
engines:
eslint:
enabled: true
channel: "eslint-8"
channel: 'eslint-8'
config:
config: ".eslintrc.yaml"
config: '.eslintrc.yaml'

ratings:
paths:
- "lib/*.js"
paths:
- 'lib/*.js'
11 changes: 3 additions & 8 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,9 @@ env:
es6: true
node: true
mocha: true
es2020: true
es2022: true

plugins:
- haraka

root: true
extends: ['@haraka']

rules:
semi-style: [error, last]

extends: ["eslint:recommended", "plugin:haraka/recommended"]
no-unused-vars: ['warn']
6 changes: 3 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "weekly"
interval: 'weekly'
allow:
- dependency-type: production
7 changes: 3 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: CI

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

env:
CI: true

jobs:

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

Expand All @@ -15,9 +14,9 @@ jobs:
secrets: inherit

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
6 changes: 3 additions & 3 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "CodeQL"
name: 'CodeQL'

on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
schedule:
- cron: '18 7 * * 4'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ env:
jobs:
publish:
uses: haraka/.github/.github/workflows/publish.yml@master
secrets: inherit
secrets: inherit
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
42 changes: 12 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

### [1.3.5] - 2024-04-07

- update package.json scripts
- dep: eslint-plugin-haraka -> @haraka/eslint-config
- update .eslintrc

### [1.3.4] - 2024-04-05

Expand All @@ -13,74 +18,61 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
- dep(address-rfc2821): bump from 2.1.1 to 2.1.2 (#61)
- deps: bump to latest


### [1.3.3] - 2023-12-12

- deps(\*): pin versions to latest


### [1.3.2] - 2023-12-12

- dep(haraka-results): bump version to 2.2.3


### [1.3.1] - 2023-12-03

- transaction: update Buffer syntax (sync with Haraka) (#56)


### [1.3.0] - 2023-06-08

- dep(haraka-results): require at least 2.2 (due to redis dep)


### [1.2.1] - 2022-07-07

- ci: use windows & ubuntu workflows in haraka/.github


### [1.2.0] - 2022-06-27

- dep: replace message-stream with email-message
- transaction: replace Header and Body stubs with email-message
- lint: string concatenation


### [1.1.0] - 2022-06-23

- dep: add haraka-message-stream
- transaction: added Body
- transaction: added MessageStream


### [1.0.35] - 2022-06-05

- ci: update GHA workflow with shared
- doc(changes): add Unreleased marker
- ci: add submodule .release


### 1.0.34 - 2022-05-23
### [1.0.34] - 2022-05-23

- dep(eslint): 6 -> 8
- ci(node): add v18 testing


### 1.0.33 - 2020-12-17

- conn: pass config to new transactions


### 1.0.32 - 2020-07-28

- transaction: add logging methods


### 1.0.31 - 2020-07-28

- transaction: lowercase the keys in class Header


### 1.0.30 - 2019-10-14

- codeclimate: update eslint to v6
Expand All @@ -91,61 +83,50 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
- coverage: replace deprecated istanbul with nyc
- test runner: replace deprecated nodeunit with mocha


### 1.0.29 - 2019-04-11

- put results in transaction. This time for real.


### 1.0.28 - 2019-04-01

- transaction: populate this.results


### 1.0.27 - 2018-11-15

- transaction: have header.add() populate header_decoded too


### 1.0.26 - 2018-11-15

- transaction: add header.get_decoded()


### 1.0.25 - 2018-05-10

- transaction: make t.header a class (as it is in Haraka). Making transaction
into an es6 class (in 1.0.24) changed how 'this' resolves.


### 1.0.24 - 2018-05-10

- connection: add get() and improved set()
- connection: add init_transaction()
- connection: use es6 classes
- transaction: use es6 classes


### 1.0.23 - 2018-04-04

- added array values to transaction.header and header.get_all support


### 1.0.22 - 2017-09-22

- plugins: provide haraka_require


### 1.0.21 - 2017-09-14

- lint updates


### 1.0.20 - 2017-09-04

- use [haraka-notes](https://github.com/haraka/haraka-notes)


### 1.0.19 - 2017-06-16

- remove version from haraka-results, fixes #21
Expand Down Expand Up @@ -193,7 +174,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### 1.0.6 - Mar 26, 2016

- more reliable package.json detection
* encapsulate package.json detection in _has_package_json
- encapsulate package.json detection in \_has_package_json
- don't reset plugin.name when a plugin inherits

### 1.0.5 - Mar 19, 2016
Expand All @@ -203,13 +184,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
- updates for compat with Haraka/tests/plugins
- better plugin path resolution


[1.0.35]: https://github.com/haraka/haraka-test-fixtures/releases/tag/1.0.35
[1.1.0]: https://github.com/haraka/haraka-test-fixtures/releases/tag/v1.1.0
[1.0.34]: https://github.com/haraka/test-fixtures/releases/tag/1.0.34
[1.0.35]: https://github.com/haraka/test-fixtures/releases/tag/1.0.35
[1.1.0]: https://github.com/haraka/test-fixtures/releases/tag/v1.1.0
[1.2.0]: https://github.com/haraka/test-fixtures/releases/tag/v1.2.0
[1.2.1]: https://github.com/haraka/test-fixtures/releases/tag/v1.2.1
[1.3.0]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.0
[1.3.1]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.1
[1.3.2]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.2
[1.3.3]: https://github.com/haraka/test-fixtures/releases/tag/1.3.3
[1.3.3]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.3
[1.3.4]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.4
[1.3.5]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.5
17 changes: 8 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,17 @@ Fixtures for testing Haraka and plugins

# Exports the following fixture types:

* connection
* line_socket
* logger
* plugin
* [results](https://github.com/haraka/haraka-results)
* stub
* transaction
* util_hmailitem
- connection
- line_socket
- logger
- plugin
- [results](https://github.com/haraka/haraka-results)
- stub
- transaction
- util_hmailitem

These fixtures are analogs of their like-named siblings in Haraka with varying levels of completeness. If there are functions necessary to enhance your ability to test, please do add them.


[ci-img]: https://github.com/haraka/test-fixtures/actions/workflows/ci.yml/badge.svg
[ci-url]: https://github.com/haraka/test-fixtures/actions/workflows/ci.yml
[cov-img]: https://codecov.io/github/haraka/test-fixtures/coverage.svg
Expand Down
21 changes: 10 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
exports.results = require('haraka-results')
exports.result_store = exports.results

exports.results = require('haraka-results');
exports.result_store = exports.results;

exports.connection = require('./lib/connection');
exports.line_socket = require('./lib/line_socket');
exports.logger = require('./lib/logger');
exports.plugin = require('./lib/plugin');
exports.stub = require('./lib/stub');
exports.transaction = require('./lib/transaction');
exports.util_hmailitem = require('./lib/util_hmailitem');
exports.vm_harness = require('./lib/vm_harness');
exports.connection = require('./lib/connection')
exports.line_socket = require('./lib/line_socket')
exports.logger = require('./lib/logger')
exports.plugin = require('./lib/plugin')
exports.stub = require('./lib/stub')
exports.transaction = require('./lib/transaction')
exports.util_hmailitem = require('./lib/util_hmailitem')
exports.vm_harness = require('./lib/vm_harness')
Loading

0 comments on commit ccea7f1

Please sign in to comment.