Repository navigation
Conversation
Node 20 has reached end of life. Node 24 is an active LTS (Node 26 is one too, and moving to it later is the same four edits). .nvmrc says 24, engines in the three package.json files says >=24, both Dockerfiles use node:24-alpine and the CI workflow reads its Node version from .nvmrc, so there is one place to bump. npm ci works on Node 24 with the existing lockfiles, so the fsevents lockfile problem seen on the first npm 11 release is gone.
No version range in package.json changes, only what the lockfile resolves to. npm audit goes from 3 critical, 11 high, 6 moderate and 4 low to none; in production code that includes express, body-parser, path-to-regexp, proxy-addr, mongoose, multer, express-rate-limit, axios and form-data. express is 4.22, mongoose 8.24, multer 2.5. The lockfile also records the engines field.
No version range in package.json changes. npm audit goes from 2 critical, 13 high, 6 moderate and 2 low to one moderate: i18next needs 27, a major bump, so it is left for its own change. Includes axios, react-router, form-data, vite, vitest and typescript-eslint. The lockfile also records the engines field.
Dev tooling only (concurrently, wait-on, playwright): npm audit goes from 2 critical and 3 high to none. The root version in the lockfile is brought in line with package.json, and it records the engines field.
Run the real Express, multer and express-rate-limit stack on an ephemeral port instead of mocked requests, so a dependency upgrade that changes multipart handling, size limits or throttling is noticed. Cover and CSV uploads (type, size, field name, memory against disk) and the rate limit (100 attempts, then 429 with a JSON body and the audit line; shared by login and signup; /verify and /config never throttled).
…fails With axios 1.21 the error carries the raw request, so a failed Discogs call logged the key and secret from the URL (and the TLS socket, ~700 lines). The redact paths on err.config.params do not reach it. Log axios errors through an allow-list serializer instead: status, method, URL and params with credentials redacted, a short response body.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Node 20 has reached end of life, so the project moves to Node 24 (the version #45 asked for), and
npm audit fixis applied to the three lockfiles. Testing the newaxiosshowed a regression, a credential leak in the logs, which is fixed here.Changes
chore: run on Node 24:.nvmrc,engines, both Dockerfiles (node:24-alpine) and the CI workflow (reads.nvmrc).fix(deps)×3:npm audit fixwithout--force, one commit per lockfile. No version range in anypackage.jsonchanged.express,mongoose,multer,axios,express-rate-limit)test(backend): tests that run the real Express, multer and express-rate-limit stack over HTTP (cover and CSV uploads, the login rate limit). Mocked requests would not notice a dependency bump changing these.fix(logger): with axios 1.21 the error carries the raw request, so a failed Discogs call logged the Discogs key and secret from the URL (about 700 lines per error). With 1.10 nothing leaked. The existing redact paths do not reach it. Axios errors now go through an allow-list serializer (status, method, redacted URL and params, short response body).How it was verified
npm run checkpasses: lint (0 errors), 201 frontend and 366 backend tests, both builds.npm ciworks for all three lockfiles on Node 24.Notes for review
.nvmrc,engines, two Dockerfiles).i18nextleft at one moderate finding. The fix needs i18next 27 (a major bump), so it should be its own change.2026-03-15_migrate-indexesmigration sometimes logsns does not existon a brand-new empty database (about 2 runs in 6 on both the old and the new dependencies). It is caught and the index is still created./app, not on the page you were sent to login from.Checklist
develop(notmain)CHANGELOG.mdunder## [Unreleased]npm run checkpasses (lint, tests and build, frontend and backend)