Skip to content
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
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x, 18.x, 20.x]
node-version: [18.x, 20.x, 22.x, 24.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Change log for amqplib

## v1.0.0
- **BREAKING**: Update minimum Node.js requirement to v16
- **BREAKING**: Update minimum Node.js requirement to v18
- Introduce Biome formatter for consistent code formatting
- Add automated formatting via pre-commit hooks using Lefthook
- Format entire codebase with standardised formatting rules
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ RABBITMQ_SRC_VERSION=v3.12.13
JSON=amqp-rabbitmq-0.9.1.json
AMQP_JSON=https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/$(RABBITMQ_SRC_VERSION)/deps/rabbitmq_codegen/$(JSON)

NODEJS_VERSIONS='10.21' '11.15' '12.18' '13.14' '14.5' '15.8' '16.3.0' '18.1.0' '20.10.0' '22.14.0'
NODEJS_VERSIONS='18.1.0' '20.10.0' '22.14.0' '24.7.0'

MOCHA=./node_modules/.bin/mocha
_MOCHA=./node_modules/.bin/_mocha
Expand Down
37 changes: 36 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,42 @@
"attributePosition": "auto"
},
"linter": {
"enabled": false
"enabled": true,
"rules": {
"complexity": {
"noCommaOperator": "off",
"noUselessCatch": "off",
"useArrowFunction": "off",
"useOptionalChain": "off",
"noArguments": "off",
"useLiteralKeys": "off"
},
"correctness": {
"noUnusedFunctionParameters": "off",
"noUnusedVariables": "off",
"noInnerDeclarations": "off",
"useParseIntRadix": "off",
"noSwitchDeclarations": "off",
"noInvalidUseBeforeDeclaration": "off",
"noPrecisionLoss": "off"
},
"style": {
"useConst": "off",
"useNodejsImportProtocol": "off",
"useTemplate": "off",
"useExponentiationOperator": "off"
},
"suspicious": {
"noRedundantUseStrict": "off",
"noAssignInExpressions": "off",
"noAsyncPromiseExecutor": "off",
"noDoubleEquals": "off",
"noGlobalIsNan": "off",
"noRedeclare": "off",
"noGlobalIsFinite": "off",
"noPrototypeBuiltins": "off"
}
}
},
"javascript": {
"formatter": {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "git+https://github.com/amqp-node/amqplib.git"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"dependencies": {
"buffer-more-ints": "~1.0.0",
Expand All @@ -25,7 +25,8 @@
},
"scripts": {
"test": "make test",
"format": "biome format . --write"
"format": "biome format . --write",
"lint": "biome lint ."
},
"keywords": [
"AMQP",
Expand Down
37 changes: 0 additions & 37 deletions todo.md

This file was deleted.