Skip to content

Commit

Permalink
Release v1.3.9 (#70)
Browse files Browse the repository at this point in the history
- vm_harness: access local files in plugin directory (#68)
- dep(all): bump versions
- dep(eslint): upgrade to v9
  • Loading branch information
msimerson authored Jan 31, 2025
1 parent 3df6e16 commit d79ec47
Show file tree
Hide file tree
Showing 11 changed files with 62 additions and 38 deletions.
4 changes: 2 additions & 2 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-9'
config:
config: '.eslintrc.yaml'
config: 'eslint.config.mjs'

ratings:
paths:
Expand Down
10 changes: 0 additions & 10 deletions .eslintrc.yaml

This file was deleted.

2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
paths:
- package.json

env:
CI: true
Expand Down
2 changes: 0 additions & 2 deletions .prettierrc

This file was deleted.

2 changes: 1 addition & 1 deletion .release
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Unreleased

### [1.3.9] - 2025-01-31

- vm_harness: access local files in plugin directory #68
- dep(all): bump versions
- dep(eslint): upgrade to v9

### [1.3.8] - 2024-09-27

- bumped dep versions:
Expand Down Expand Up @@ -220,3 +226,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
[1.3.6]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.6
[1.3.7]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.7
[1.3.8]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.8
[1.3.9]: https://github.com/haraka/test-fixtures/releases/tag/v1.3.9
5 changes: 3 additions & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

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/test-fixtures/commits?author=msimerson">63</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/1432035?v=4"><br><a href="https://github.com/kcberg">kcberg</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=kcberg">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=baudehlo">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/550490?v=4"><br><a href="https://github.com/smfreegard">smfreegard</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=smfreegard">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=lnedry">1</a>) |
| <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/test-fixtures/commits?author=msimerson">64</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/1432035?v=4"><br><a href="https://github.com/kcberg">kcberg</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=kcberg">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/662371?v=4"><br><a href="https://github.com/baudehlo">baudehlo</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=baudehlo">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/550490?v=4"><br><a href="https://github.com/smfreegard">smfreegard</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=smfreegard">1</a>) | <img height="80" src="https://avatars.githubusercontent.com/u/203240?v=4"><br><a href="https://github.com/lnedry">lnedry</a> (<a href="https://github.com/haraka/test-fixtures/commits?author=lnedry">1</a>) |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |

<sub>this file is maintained by [.release](https://github.com/msimerson/.release)</sub>
<sub>this file is generated by [.release](https://github.com/msimerson/.release).
Contribute to this project to get your GitHub profile included here.</sub>
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
[![Code Coverage][cov-img]][cov-url]
[![Code Climate][clim-img]][clim-url]

[![NPM][npm-img]][npm-url]

# haraka-test-fixtures

Fixtures for testing Haraka and plugins
Expand Down Expand Up @@ -50,5 +48,3 @@ These fixtures are analogs of their like-named siblings in Haraka with varying l
[cov-url]: https://codecov.io/github/haraka/test-fixtures
[clim-img]: https://codeclimate.com/github/haraka/test-fixtures/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/test-fixtures
[npm-img]: https://nodei.co/npm/haraka-test-fixtures.png
[npm-url]: https://www.npmjs.com/package/haraka-test-fixtures
29 changes: 29 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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'],
},
},
]
11 changes: 4 additions & 7 deletions lib/vm_harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ function dot_files(element) {
function find_haraka_lib(id) {
// For local files in the project root directory
// e.g. "require('./example.js')"
if (id.includes('./') && id.includes('.js')) {
if (id.startsWith('./') && id.endsWith('.js')) {
id = id.substring(2, (id.length - 3))
}
for (let i = 0; i < dir_paths.length; i++) {
const dirPath = `${dir_paths[i]}${id}.js`
// console.log('dirPath: ' + dirPath);
for (const dp of dir_paths) {
const dirPath = `${dp}${id}.js`
try {
const stats = fs.statSync(dirPath)
if (stats.isFile()) {
return dirPath
}
if (stats.isFile()) return dirPath
} catch (ignore) {
// console.error(ignore.message);
}
Expand Down
24 changes: 14 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "haraka-test-fixtures",
"license": "MIT",
"description": "Haraka Test Fixtures",
"version": "1.3.8",
"version": "1.3.9",
"repository": {
"type": "git",
"url": "[email protected]:haraka/test-fixtures.git"
Expand All @@ -18,28 +18,32 @@
"node": ">=12"
},
"dependencies": {
"address-rfc2821": "^2.1.2",
"haraka-config": "^1.4.0",
"address-rfc2821": "^2.1.3",
"haraka-config": "^1.4.2",
"haraka-constants": "^1.0.7",
"haraka-email-message": "^1.2.4",
"haraka-notes": "^1.1.0",
"haraka-results": "^2.2.4",
"haraka-email-message": "^1.2.5",
"haraka-notes": "^1.1.1",
"haraka-results": "^2.2.5",
"haraka-utils": "^1.1.3"
},
"devDependencies": {
"@haraka/eslint-config": "^1.1.5"
"@haraka/eslint-config": "^2.0.2"
},
"bugs": {
"url": "https://github.com/haraka/test-fixtures/issues"
},
"scripts": {
"format": "npm run prettier:fix && npm run lint:fix",
"lint": "npx eslint@^8 *.js lib test",
"lint:fix": "npx eslint@^8 *.js lib test --fix",
"lint": "npx eslint@^9 *.js lib test",
"lint:fix": "npx eslint@^9 *.js lib test --fix",
"prettier": "npx prettier . --check",
"prettier:fix": "npx prettier . --write --log-level=warn",
"test": "npx mocha@^10",
"test": "npx mocha@^11",
"versions": "npx dependency-version-checker check",
"versions:fix": "npx dependency-version-checker update"
},
"prettier": {
"singleQuote": true,
"semi": false
}
}

0 comments on commit d79ec47

Please sign in to comment.