diff --git a/.codeclimate.yml b/.codeclimate.yml
index c889eb8..563da6b 100644
--- a/.codeclimate.yml
+++ b/.codeclimate.yml
@@ -1,9 +1,9 @@
engines:
eslint:
enabled: true
- channel: 'eslint-8'
+ channel: 'eslint-9'
config:
- config: '.eslintrc.yaml'
+ config: 'eslint.config.mjs'
ratings:
paths:
diff --git a/.eslintrc.yaml b/.eslintrc.yaml
deleted file mode 100644
index b749c3e..0000000
--- a/.eslintrc.yaml
+++ /dev/null
@@ -1,10 +0,0 @@
-env:
- node: true
- es6: true
- mocha: true
- es2022: true
-
-extends: ['@haraka']
-
-rules:
- no-unused-vars: ['warn']
diff --git a/.prettierrc.yml b/.prettierrc.yml
deleted file mode 100644
index 8ded5e0..0000000
--- a/.prettierrc.yml
+++ /dev/null
@@ -1,2 +0,0 @@
-singleQuote: true
-semi: false
diff --git a/.release b/.release
index afb1db8..7307651 160000
--- a/.release
+++ b/.release
@@ -1 +1 @@
-Subproject commit afb1db801607dda5e859f39b600f0dd0111e4651
+Subproject commit 73076513e83c2057a32515831b638771c15b1d83
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 42fc052..d89d8b8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
+# Changelog
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/).
+
### Unreleased
+### [1.2.3] - 2025-02-02
+
+- dep(eslint): upgrade to v9
+- prettier: move config into package.json
+
### [1.2.2] - 2024-08-05
- chore: populate [files] in package.json. Delete .npmignore.
@@ -28,7 +37,9 @@
- Import from Haraka
- convert tests to mocha
-[1.1.0]: https://github.com/haraka/message-stream/releases/tag/1.1.0
-[1.2.0]: https://github.com/haraka/message-stream/releases/tag/1.2.0
-[1.2.1]: https://github.com/haraka/message-stream/releases/tag/1.2.1
-[1.2.2]: https://github.com/haraka/message-stream/releases/tag/1.2.2
+[1.1.0]: https://github.com/haraka/message-stream/releases/tag/v1.1.0
+[1.2.0]: https://github.com/haraka/message-stream/releases/tag/v1.2.0
+[1.2.1]: https://github.com/haraka/message-stream/releases/tag/v1.2.1
+[1.2.2]: https://github.com/haraka/message-stream/releases/tag/v1.2.2
+[1.2.3]: https://github.com/haraka/message-stream/releases/tag/v1.2.3
+[1.0.0]: https://github.com/haraka/message-stream/releases/tag/v1.0.0
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index ed8887d..c1bfa38 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -2,7 +2,8 @@
This handcrafted artisinal software is brought to you by:
-| 
msimerson (5) |
+| 
msimerson (6) |
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
-this file is maintained by [.release](https://github.com/msimerson/.release)
+this file is generated by [.release](https://github.com/msimerson/.release).
+Contribute to this project to get your GitHub profile included here.
diff --git a/README.md b/README.md
index 5ec113f..d661c6f 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
[![CI Test Status][ci-img]][ci-url]
[![Code Climate][clim-img]][clim-url]
-[![NPM][npm-img]][npm-url]
# haraka-message-stream
@@ -21,5 +20,3 @@ new MessageStream(cfg, uuid, header_list)
[ci-url]: https://github.com/haraka/message-stream/actions/workflows/ci.yml
[clim-img]: https://codeclimate.com/github/haraka/message-stream/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/message-stream
-[npm-img]: https://nodei.co/npm/haraka-message-stream.png
-[npm-url]: https://www.npmjs.com/package/haraka-message-stream
diff --git a/eslint.config.mjs b/eslint.config.mjs
new file mode 100644
index 0000000..0377960
--- /dev/null
+++ b/eslint.config.mjs
@@ -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'],
+ },
+ },
+]
diff --git a/package.json b/package.json
index 1cd9ac8..16f2c55 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "haraka-message-stream",
- "version": "1.2.2",
+ "version": "1.2.3",
"description": "Haraka email message stream",
"main": "index.js",
"files": [
@@ -8,11 +8,11 @@
],
"scripts": {
"format": "npm run prettier:fix && npm run lint:fix",
- "lint": "npx eslint@^8 *.js test",
- "lintfix": "npx eslint@^8 --fix *.js test",
+ "lint": "npx eslint@^9 *.js test",
+ "lint:fix": "npx eslint@^9 --fix *.js test",
"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 && npm run prettier:fix"
},
@@ -32,8 +32,12 @@
},
"homepage": "https://github.com/haraka/message-stream#readme",
"devDependencies": {
- "@haraka/eslint-config": "^1.1.3",
- "haraka-test-fixtures": "^1.3.3"
+ "@haraka/eslint-config": "^2.0.2",
+ "haraka-test-fixtures": "^1.3.9"
},
- "dependencies": {}
+ "dependencies": {},
+ "prettier": {
+ "singleQuote": true,
+ "semi": false
+ }
}