From 4f295ed1d0bfadf34e5c115a6d664788403a289f Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 00:08:24 +0100 Subject: [PATCH 01/20] chore: rename test-travis script to test-ci for consistency --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6563f51..ccca329 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,6 @@ "lint": "eslint --plugin markdown --ext js,md .", "test": "mocha --reporter spec --bail --check-leaks test/", "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" + "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" } } From 180296674862c960dc9124505428b6b202ff5aa4 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 00:08:31 +0100 Subject: [PATCH 02/20] feat: add CI workflow for multi-version Node.js testing --- .github/workflows/ci.yml | 254 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 254 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c81fb37 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,254 @@ +name: ci + +on: + push: + branches: + - master + - main + paths-ignore: + - '*.md' + pull_request: + paths-ignore: + - '*.md' + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + name: + - Node.js 0.8 + - Node.js 0.10 + - Node.js 0.12 + - io.js 1.x + - io.js 2.x + - io.js 3.x + - Node.js 4.x + - Node.js 5.x + - Node.js 6.x + - Node.js 7.x + - Node.js 8.x + - Node.js 9.x + - Node.js 10.x + - Node.js 11.x + - Node.js 12.x + - Node.js 13.x + - Node.js 14.x + - Node.js 15.x + - Node.js 16.x + - Node.js 17.x + - Node.js 18.x + - Node.js 19.x + - Node.js 20.x + - Node.js 21.x + - Node.js 22.x + - Node.js 23.x + - Node.js 24.x + - Node.js 25.x + + include: + - name: Node.js 0.8 + node-version: "0.8" + npm-i: mocha@2.5.3 supertest@1.1.0 + npm-rm: istanbul + + - name: Node.js 0.10 + node-version: "0.10" + npm-i: mocha@3.5.3 supertest@2.0.0 + npm-rm: istanbul + + - name: Node.js 0.12 + node-version: "0.12" + npm-i: mocha@3.5.3 supertest@2.0.0 + npm-rm: istanbul + + - name: io.js 1.x + node-version: "1" + npm-i: mocha@3.5.3 supertest@2.0.0 + npm-rm: istanbul + + - name: io.js 2.x + node-version: "2" + npm-i: mocha@3.5.3 supertest@2.0.0 + npm-rm: istanbul + + - name: io.js 3.x + node-version: "3" + npm-i: mocha@3.5.3 supertest@2.0.0 + npm-rm: istanbul + + - name: Node.js 4.x + node-version: "4" + npm-i: mocha@5.2.0 supertest@3.4.2 + + - name: Node.js 5.x + node-version: "5" + npm-i: mocha@5.2.0 supertest@3.4.2 + + - name: Node.js 6.x + node-version: "6" + npm-i: mocha@6.2.2 + + - name: Node.js 7.x + node-version: "7" + + - name: Node.js 8.x + node-version: "8" + + - name: Node.js 9.x + node-version: "9" + + - name: Node.js 10.x + node-version: "10" + + - name: Node.js 11.x + node-version: "11" + + - name: Node.js 12.x + node-version: "12" + + - name: Node.js 13.x + node-version: "13" + + - name: Node.js 14.x + node-version: "14" + + - name: Node.js 15.x + node-version: "15" + + - name: Node.js 16.x + node-version: "16" + + - name: Node.js 17.x + node-version: "17" + + - name: Node.js 18.x + node-version: "18" + + - name: Node.js 19.x + node-version: "19" + + - name: Node.js 20.x + node-version: "20" + + - name: Node.js 21.x + node-version: "21" + + - name: Node.js 22.x + node-version: "22" + + - name: Node.js 23.x + node-version: "23" + + - name: Node.js 24.x + node-version: "24" + + - name: Node.js 25.x + node-version: "25" + + steps: + - uses: actions/checkout@v6 + + - name: Install Node.js ${{ matrix.node-version }} + shell: bash -eo pipefail -l {0} + run: | + nvm install --default ${{ matrix.node-version }} + if [[ "${{ matrix.node-version }}" == 0.* && "$(cut -d. -f2 <<< "${{ matrix.node-version }}")" -lt 10 ]]; then + nvm install --alias=npm 0.10 + nvm use ${{ matrix.node-version }} + sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")" + npm config set strict-ssl false + npm install -g --prefix "$(which node)/../.." npm@1.2.8000 + sed -i '1s;^.*$;'"$(printf '#!%q' "$(nvm which npm)")"';' "$(readlink -f "$(which npm)")" + fi + dirname "$(nvm which ${{ matrix.node-version }})" >> "$GITHUB_PATH" + + - name: Configure npm + run: | + if [[ "$(npm config get package-lock)" == "true" ]]; then + npm config set package-lock false + else + npm config set shrinkwrap false + fi + + - name: Remove npm module(s) ${{ matrix.npm-rm }} + run: npm rm --silent --save-dev ${{ matrix.npm-rm }} + if: matrix.npm-rm != '' + + - name: Install npm module(s) ${{ matrix.npm-i }} + run: npm install --save-dev ${{ matrix.npm-i }} + if: matrix.npm-i != '' + + - name: Setup Node.js version-specific dependencies + shell: bash + run: | + # eslint for linting + # - remove on Node.js < 12 + if [[ "$(cut -d. -f1 <<< "${{ matrix.node-version }}")" -lt 12 ]]; then + node -pe 'Object.keys(require("./package").devDependencies).join("\n")' | \ + grep -E '^eslint(-|$)' | \ + sort -r | \ + xargs -n1 npm rm --silent --save-dev + fi + + - name: Install Node.js dependencies + run: npm install + + - name: List environment + id: list_env + shell: bash + run: | + echo "node@$(node -v)" + echo "npm@$(npm -v)" + npm -s ls ||: + (npm -s ls --depth=0 ||:) | awk -F'[ @]' 'NR>1 && $2 { print $2 "=" $3 }' >> "$GITHUB_OUTPUT" + + - name: Run tests + shell: bash + run: | + if npm -ps ls istanbul | grep -q istanbul; then + npm run test-ci + cp coverage/lcov.info "coverage/${{ matrix.name }}.lcov" + else + npm test + fi + + - name: Lint code + if: steps.list_env.outputs.eslint != '' + run: npm run lint + + - name: Upload code coverage + uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0 + with: + name: coverage-node-${{ matrix.node-version }} + path: ./coverage/lcov.info + retention-days: 1 + + coverage: + needs: test + runs-on: ubuntu-latest + permissions: + contents: read + checks: write + steps: + - uses: actions/checkout@v6 + + - name: Install lcov + shell: bash + run: sudo apt-get -y install lcov + + - name: Collect coverage reports + uses: actions/download-artifact@v6 + with: + path: ./coverage + pattern: coverage-node-* + + - name: Merge coverage reports + shell: bash + run: find ./coverage -name lcov.info -exec printf '-a %q\n' {} \; | xargs lcov -o ./lcov.info + + - name: Upload coverage report + uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6 + with: + file: ./lcov.info \ No newline at end of file From 8bc8bb58705cce79817b214a2de9a27738a29001 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 00:31:16 +0100 Subject: [PATCH 03/20] fix: add mocha dependency for Node.js 7.x --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c81fb37..11b123f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,6 +92,7 @@ jobs: - name: Node.js 7.x node-version: "7" + npm-i: mocha@6.2.2 - name: Node.js 8.x node-version: "8" From 20964592da0e4e98e26c6de9c732fcb92d715810 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 00:38:42 +0100 Subject: [PATCH 04/20] fix: update build status badge to use GitHub Actions --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0f2661c..f92914e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] -[![Build Status][travis-image]][travis-url] +[![Build Status][ci-image]][ci-url] [![Test Coverage][coveralls-image]][coveralls-url] Development-only error handler middleware. @@ -121,10 +121,10 @@ function errorNotification (err, str, req) { [MIT](LICENSE) +[ci-image]: https://badgen.net/github/checks/expressjs/errorhandler/master +[ci-url]: https://github.com/expressjs/errorhandler/actions/workflows/ci.yml [coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/errorhandler/master [coveralls-url]: https://coveralls.io/r/expressjs/errorhandler?branch=master [npm-downloads-image]: https://badgen.net/npm/dm/errorhandler [npm-url]: https://npmjs.org/package/errorhandler [npm-version-image]: https://badgen.net/npm/v/errorhandler -[travis-image]: https://badgen.net/travis/expressjs/errorhandler/master -[travis-url]: https://travis-ci.org/expressjs/errorhandler From dcd141bdd0340a194bd80181573626672f2224fc Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 00:53:21 +0100 Subject: [PATCH 05/20] fix: remove 'main' branch from CI workflow triggers --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11b123f..e4eff6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,6 @@ on: push: branches: - master - - main paths-ignore: - '*.md' pull_request: From b68ffc2f231d3959c091c1d91be7699436978284 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 01:18:37 +0100 Subject: [PATCH 06/20] fix: update CI and coverage URLs --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f92914e..daac499 100644 --- a/README.md +++ b/README.md @@ -121,10 +121,10 @@ function errorNotification (err, str, req) { [MIT](LICENSE) -[ci-image]: https://badgen.net/github/checks/expressjs/errorhandler/master -[ci-url]: https://github.com/expressjs/errorhandler/actions/workflows/ci.yml -[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/errorhandler/master -[coveralls-url]: https://coveralls.io/r/expressjs/errorhandler?branch=master +[ci-image]: https://badgen.net/github/checks/nanotower/errorhandler/master +[ci-url]: https://github.com/nanotower/errorhandler/actions/workflows/ci.yml +[coveralls-image]: https://badgen.net/coveralls/c/github/nanotower/errorhandler/master +[coveralls-url]: https://coveralls.io/r/nanotower/errorhandler?branch=master [npm-downloads-image]: https://badgen.net/npm/dm/errorhandler [npm-url]: https://npmjs.org/package/errorhandler [npm-version-image]: https://badgen.net/npm/v/errorhandler From 67e655ac85c5d3745838124eeac83fa786c4782a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Dec 2025 00:30:50 +0000 Subject: [PATCH 07/20] Initial plan From 20237c0593d3ae2c4c2d65bd41a62067f30d11ad Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 8 Dec 2025 00:33:07 +0000 Subject: [PATCH 08/20] Replace badgen CI badge with GitHub Actions badge Co-authored-by: nanotower <50929081+nanotower@users.noreply.github.com> --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index daac499..a99e251 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] -[![Build Status][ci-image]][ci-url] + [![Test Coverage][coveralls-image]][coveralls-url] Development-only error handler middleware. @@ -121,8 +121,6 @@ function errorNotification (err, str, req) { [MIT](LICENSE) -[ci-image]: https://badgen.net/github/checks/nanotower/errorhandler/master -[ci-url]: https://github.com/nanotower/errorhandler/actions/workflows/ci.yml [coveralls-image]: https://badgen.net/coveralls/c/github/nanotower/errorhandler/master [coveralls-url]: https://coveralls.io/r/nanotower/errorhandler?branch=master [npm-downloads-image]: https://badgen.net/npm/dm/errorhandler From 21a744265a6848d15ab4e26069f7144211df9441 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 11:02:49 +0100 Subject: [PATCH 09/20] fix: update CI and coverage URLs to reflect the repository ownership --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a99e251..ac71bf7 100644 --- a/README.md +++ b/README.md @@ -121,8 +121,8 @@ function errorNotification (err, str, req) { [MIT](LICENSE) -[coveralls-image]: https://badgen.net/coveralls/c/github/nanotower/errorhandler/master -[coveralls-url]: https://coveralls.io/r/nanotower/errorhandler?branch=master +[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/errorhandler/master +[coveralls-url]: https://coveralls.io/r/expressjs/errorhandler?branch=master [npm-downloads-image]: https://badgen.net/npm/dm/errorhandler [npm-url]: https://npmjs.org/package/errorhandler [npm-version-image]: https://badgen.net/npm/v/errorhandler From 9a94dc4d016edbff53749bf8fd29a4be0321bac0 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 17:37:02 +0100 Subject: [PATCH 10/20] chore: update dependencies and testing scripts in package.json --- package.json | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index ccca329..1fd43b5 100644 --- a/package.json +++ b/package.json @@ -13,21 +13,20 @@ "url": "https://opencollective.com/express" }, "dependencies": { - "accepts": "~1.3.7", + "accepts": "~1.3.8", "escape-html": "~1.0.3" }, "devDependencies": { "after": "0.8.2", - "eslint": "6.8.0", - "eslint-config-standard": "14.1.0", - "eslint-plugin-import": "2.20.1", - "eslint-plugin-markdown": "1.0.2", - "eslint-plugin-node": "9.2.0", - "eslint-plugin-promise": "4.2.1", - "eslint-plugin-standard": "4.0.1", - "istanbul": "0.4.5", - "mocha": "7.1.0", - "supertest": "4.0.2" + "eslint": "^8.57.1", + "eslint-config-standard": "^17.1.0", + "eslint-plugin-import": "^2.32.0", + "eslint-plugin-markdown": "^3.0.1", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^6.6.0", + "mocha": "^10.2.0", + "nyc": "^15.1.0", + "supertest": "^6.3.3" }, "files": [ "public/", @@ -41,7 +40,7 @@ "scripts": { "lint": "eslint --plugin markdown --ext js,md .", "test": "mocha --reporter spec --bail --check-leaks test/", - "test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/", - "test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/" + "test-ci": "nyc --reporter=lcov --reporter=text npm test", + "test-cov": "nyc --reporter=html --reporter=text npm test" } } From 38408e8b08d646ad35bc3c2cba51dc40c5799712 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 17:37:26 +0100 Subject: [PATCH 11/20] fix: update Node.js CI configuration to replace istanbul with nyc --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e4eff6b..20bed17 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -50,72 +50,78 @@ jobs: - name: Node.js 0.8 node-version: "0.8" npm-i: mocha@2.5.3 supertest@1.1.0 - npm-rm: istanbul + npm-rm: nyc - name: Node.js 0.10 node-version: "0.10" - npm-i: mocha@3.5.3 supertest@2.0.0 - npm-rm: istanbul + npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0 - name: Node.js 0.12 node-version: "0.12" - npm-i: mocha@3.5.3 supertest@2.0.0 - npm-rm: istanbul + npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0 + npm-rm: nyc - name: io.js 1.x node-version: "1" - npm-i: mocha@3.5.3 supertest@2.0.0 - npm-rm: istanbul + npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0 + npm-rm: nyc - name: io.js 2.x node-version: "2" - npm-i: mocha@3.5.3 supertest@2.0.0 - npm-rm: istanbul + npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0 + npm-rm: nyc - name: io.js 3.x node-version: "3" - npm-i: mocha@3.5.3 supertest@2.0.0 - npm-rm: istanbul + npm-i: mocha@3.5.3 nyc@10.3.2 supertest@2.0.0 + npm-rm: nyc - name: Node.js 4.x node-version: "4" - npm-i: mocha@5.2.0 supertest@3.4.2 + npm-i: mocha@5.2.0 nyc@11.9.0 supertest@3.4.2 - name: Node.js 5.x node-version: "5" - npm-i: mocha@5.2.0 supertest@3.4.2 + npm-i: mocha@5.2.0 nyc@11.9.0 supertest@3.4.2 - name: Node.js 6.x node-version: "6" - npm-i: mocha@6.2.2 + npm-i: mocha@6.2.2 nyc@14.1.1 supertest@6.1.6 - name: Node.js 7.x node-version: "7" - npm-i: mocha@6.2.2 + npm-i: mocha@6.2.2 nyc@14.1.1 supertest@6.1.6 - name: Node.js 8.x node-version: "8" + npm-i: mocha@7.2.0 nyc@14.1.1 supertest@6.1.6 - name: Node.js 9.x node-version: "9" + npm-i: mocha@7.2.0 nyc@14.1.1 supertest@6.1.6 - name: Node.js 10.x node-version: "10" + npm-i: mocha@8.4.0 supertest@6.1.6 - name: Node.js 11.x node-version: "11" + npm-i: mocha@8.4.0 supertest@6.1.6 - name: Node.js 12.x node-version: "12" + npm-i: mocha@9.2.2 supertest@6.1.6 - name: Node.js 13.x node-version: "13" + npm-i: mocha@9.2.2 supertest@6.1.6 - name: Node.js 14.x node-version: "14" - name: Node.js 15.x node-version: "15" + npm-i: "supertest@6.1.6" - name: Node.js 16.x node-version: "16" @@ -207,7 +213,7 @@ jobs: - name: Run tests shell: bash run: | - if npm -ps ls istanbul | grep -q istanbul; then + if npm -ps ls nyc | grep -q nyc; then npm run test-ci cp coverage/lcov.info "coverage/${{ matrix.name }}.lcov" else From 34d6608000765702876e6711561e0b61b92f57db Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 17:37:33 +0100 Subject: [PATCH 12/20] chore: update HISTORY.md to include new dependencies for accepts --- HISTORY.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/HISTORY.md b/HISTORY.md index 90c7983..1820033 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,3 +1,10 @@ +UNRELEASED +================== + * deps: accepts": "~1.3.8" + - deps: mime-types@~2.1.34 + - deps: mime-db@~1.51.0 + - deps: negotiator@0.6.3 + 1.5.1 / 2019-05-08 ================== From 12375f53012493c1734feb57f390e6ca61362701 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 17:45:26 +0100 Subject: [PATCH 13/20] chore: downgrade eslint version to 8.34.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1fd43b5..86f7521 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "devDependencies": { "after": "0.8.2", - "eslint": "^8.57.1", + "eslint": "8.34.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.32.0", "eslint-plugin-markdown": "^3.0.1", From 37724fb819677b030a411edbded7444c205c8678 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 17:50:54 +0100 Subject: [PATCH 14/20] chore: enhance ESLint configuration for Markdown support --- .eslintrc.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 1eece14..55efdde 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -1,2 +1,11 @@ root: true -extends: standard +extends: + - standard + - plugin:markdown/recommended +plugins: + - markdown +overrides: + - files: '**/*.md' + processor: 'markdown/markdown' +rules: + no-param-reassign: error \ No newline at end of file From 32fb700a62d3d07c7f496977a17416bc5e8f2311 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 17:57:34 +0100 Subject: [PATCH 15/20] fix: pin dev versions --- package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 86f7521..c174c5c 100644 --- a/package.json +++ b/package.json @@ -19,14 +19,14 @@ "devDependencies": { "after": "0.8.2", "eslint": "8.34.0", - "eslint-config-standard": "^17.1.0", - "eslint-plugin-import": "^2.32.0", - "eslint-plugin-markdown": "^3.0.1", - "eslint-plugin-node": "^11.1.0", - "eslint-plugin-promise": "^6.6.0", - "mocha": "^10.2.0", - "nyc": "^15.1.0", - "supertest": "^6.3.3" + "eslint-config-standard": "14.1.1", + "eslint-plugin-import": "2.27.5", + "eslint-plugin-markdown": "3.0.0", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-promise": "6.1.1", + "mocha": "10.2.0", + "nyc": "15.1.0", + "supertest": "6.3.3" }, "files": [ "public/", From 7e724a4f9f9495193058e2b7e045068fb3bd8e34 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Mon, 8 Dec 2025 21:34:11 +0100 Subject: [PATCH 16/20] fix: add eslint-plugin-standard to Node.js failure versions --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20bed17..909c3e5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -110,14 +110,14 @@ jobs: - name: Node.js 12.x node-version: "12" - npm-i: mocha@9.2.2 supertest@6.1.6 + npm-i: mocha@9.2.2 supertest@6.1.6 eslint-plugin-standard@4.1.0 - name: Node.js 13.x node-version: "13" - npm-i: mocha@9.2.2 supertest@6.1.6 - + npm-i: mocha@9.2.2 supertest@6.1.6 eslint-plugin-standard@4.1.0 - name: Node.js 14.x node-version: "14" + npm-i: mocha@9.2.2 supertest@6.1.6 eslint-plugin-standard@4.1.0 - name: Node.js 15.x node-version: "15" From 1a4f6d1efe70fa2bf48219efd22e02a0579a6298 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Tue, 9 Dec 2025 09:03:45 +0100 Subject: [PATCH 17/20] chore: test badges --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ac71bf7..a99e251 100644 --- a/README.md +++ b/README.md @@ -121,8 +121,8 @@ function errorNotification (err, str, req) { [MIT](LICENSE) -[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/errorhandler/master -[coveralls-url]: https://coveralls.io/r/expressjs/errorhandler?branch=master +[coveralls-image]: https://badgen.net/coveralls/c/github/nanotower/errorhandler/master +[coveralls-url]: https://coveralls.io/r/nanotower/errorhandler?branch=master [npm-downloads-image]: https://badgen.net/npm/dm/errorhandler [npm-url]: https://npmjs.org/package/errorhandler [npm-version-image]: https://badgen.net/npm/v/errorhandler From a2e2fe75655f92c974cb92e61c689cbc9f27727f Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Tue, 9 Dec 2025 09:08:04 +0100 Subject: [PATCH 18/20] chore: trigger test --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c174c5c..eca2b61 100644 --- a/package.json +++ b/package.json @@ -43,4 +43,4 @@ "test-ci": "nyc --reporter=lcov --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" } -} +} \ No newline at end of file From 61e0f2a750b57fc846f856cc7412d88f4968c606 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Tue, 9 Dec 2025 09:15:32 +0100 Subject: [PATCH 19/20] chore: add missing newline at end of package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index eca2b61..c174c5c 100644 --- a/package.json +++ b/package.json @@ -43,4 +43,4 @@ "test-ci": "nyc --reporter=lcov --reporter=text npm test", "test-cov": "nyc --reporter=html --reporter=text npm test" } -} \ No newline at end of file +} From f179ec7c12f7f77da7b14edbe8787ea4f6881e66 Mon Sep 17 00:00:00 2001 From: Fernando de la Torre Date: Tue, 9 Dec 2025 09:16:11 +0100 Subject: [PATCH 20/20] chore: update CI badge URLs to point to the correct repository --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a99e251..31942ee 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![NPM Version][npm-version-image]][npm-url] [![NPM Downloads][npm-downloads-image]][npm-url] - + [![Test Coverage][coveralls-image]][coveralls-url] Development-only error handler middleware. @@ -121,8 +121,8 @@ function errorNotification (err, str, req) { [MIT](LICENSE) -[coveralls-image]: https://badgen.net/coveralls/c/github/nanotower/errorhandler/master -[coveralls-url]: https://coveralls.io/r/nanotower/errorhandler?branch=master +[coveralls-image]: https://badgen.net/coveralls/c/github/expressjs/errorhandler/master +[coveralls-url]: https://coveralls.io/r/expressjs/errorhandler?branch=master [npm-downloads-image]: https://badgen.net/npm/dm/errorhandler [npm-url]: https://npmjs.org/package/errorhandler [npm-version-image]: https://badgen.net/npm/v/errorhandler