Skip to content

modernize: fix cache key bug, drop committed token, node 18 + actions#1

Open
crazysoftwarecoder wants to merge 5 commits into
masterfrom
modernize
Open

modernize: fix cache key bug, drop committed token, node 18 + actions#1
crazysoftwarecoder wants to merge 5 commits into
masterfrom
modernize

Conversation

@crazysoftwarecoder
Copy link
Copy Markdown
Owner

Bringing this one up to date and fixing a caching bug.

Bug fix

  • the cache key was built before the request body was read (hoisted var body, so always undefined at that point). POST requests with different bodies collided on a single cache entry. Now the key is computed in the end handler once the body is in.

Security

  • removed a committed Coveralls repo token (.coveralls.yml). It should be rotated at coveralls.io; it stays in git history until/unless we scrub it.

Deps + CI

  • url-parse 1.1.1 -> 1.5.10 (1.1.1 has known advisories)
  • mocha 3 -> 11, dropped istanbul/coveralls/mocha-lcov-reporter
  • npm audit: production deps clean (0); remaining 2 low are dev-only inside mocha's tree
  • replaced the Node 4 Travis config with GitHub Actions (Node 18 + 20)
  • engines.node >= 18, committed a lockfile, test script no longer hardcodes the mocha path

README

  • fixed the dead Travis/Coveralls badges, bumped the Node version, removed a leftover "Dillinger" line from the original template

Tests pass (npm ci && npm test, 8 passing) on Node 18/20.

it was built up front while body was still undefined, so POST requests
with different bodies all shared one cache entry.
url-parse 1.1.1 -> 1.5.10 (security), mocha 3 -> 11, drop the coverage
upload tooling. pin serialize-javascript via overrides to clear the
mocha audit warning.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant