Skip to content

chore(deps): bump fastify from 4.29.1 to 5.8.5#123

Open
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/fastify-5.8.5
Open

chore(deps): bump fastify from 4.29.1 to 5.8.5#123
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/fastify-5.8.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Apr 16, 2026

Copy link
Copy Markdown
Contributor

Bumps fastify from 4.29.1 to 5.8.5.

Release notes

Sourced from fastify's releases.

v5.8.5

⚠️ Security Release

This fixes CVE CVE-2026-33806 GHSA-247c-9743-5963.

What's Changed

New Contributors

Full Changelog: fastify/fastify@v5.8.4...v5.8.5

v5.8.4

Full Changelog: fastify/fastify@v5.8.3...v5.8.4

v5.8.3

⚠️ Security Release

This fixes CVE CVE-2026-3635 GHSA-444r-cwp2-x5xf.

What's Changed

New Contributors

... (truncated)

Commits
  • 3983cce Bumped v5.8.5
  • 3ce3ae6 Merge commit from fork
  • b06a196 docs(ecosystem): add @​pompelmi/fastify-plugin (#6610)
  • 909c5d5 chore: Bump actions/dependency-review-action from 4.8.3 to 4.9.0 (#6630)
  • 4db21a3 chore: Bump borp from 0.21.0 to 1.0.0 (#6633)
  • 0f4e544 chore: Bump markdownlint-cli2 from 0.21.0 to 0.22.0 (#6632)
  • 33a2fcd chore: Bump pnpm/action-setup from 4.2.0 to 5.0.0 (#6629)
  • fd35d82 ci: reduce cron schedules from daily/weekly to monthly (#6623)
  • 8dee9be fix: restore trustProxy function for number and string types, add null check ...
  • d457aed chore: upgrade to typescript v6.0.2 (#6605)
  • Additional commits viewable in compare view

Summary by CodeRabbit

  • Chores
    • Updated framework dependency to the latest major version, bringing compatibility updates, performance improvements, and bug fixes.
    • Adjusted server initialization to align with the updated framework, improving logging stability and startup consistency.

Review Change Stack

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Apr 16, 2026
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/fastify-5.8.5 branch from 3d54333 to 25eea62 Compare April 18, 2026 15:33
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/fastify-5.8.5 branch 3 times, most recently from b9bab8a to d3153e0 Compare May 6, 2026 20:03
Bumps [fastify](https://github.com/fastify/fastify) from 4.29.1 to 5.8.5.
- [Release notes](https://github.com/fastify/fastify/releases)
- [Commits](fastify/fastify@v4.29.1...v5.8.5)

---
updated-dependencies:
- dependency-name: fastify
  dependency-version: 5.8.5
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/fastify-5.8.5 branch from d3153e0 to adab160 Compare May 13, 2026 18:17
@coderabbitai

coderabbitai Bot commented May 13, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

Bump Fastify dependency from ^4.28.0 to ^5.8.5 and update Fastify initialization to pass the imported logger via the loggerInstance option.

Changes

Fastify Upgrade and App Change

Layer / File(s) Summary
Upgrade Fastify and wire loggerInstance
package.json, src/app.ts
package.json updates fastify from ^4.28.0 to ^5.8.5; src/app.ts changes Fastify constructor to use loggerInstance: logger.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I hopped a version, five not four,
I nudged the logger through the door.
A tiny change, a nimble tweak,
Logs stay snug, the server sleek.
Hooray — a leap, not mild but spry!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: a dependency upgrade of fastify from v4 to v5. It is concise, clear, and follows conventional commit format.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/npm_and_yarn/fastify-5.8.5

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 25: The Fastify major version bump ("fastify" dependency) may introduce
breaking changes; before merging, run full test suite and environment checks:
execute unit tests (npm test) and integration tests (npm run test:integration),
compile TypeScript to ensure types pass, manually exercise all API endpoints
(including routes using Fastify server/route handlers), validate error handling
and rate limiting/CORS middleware behavior, and run these validations in a
staging environment if available to catch runtime regressions introduced by the
fastify upgrade.
- Line 25: Update the Fastify constructor call in src/app.ts to use the Fastify
v5-compatible option name: replace the legacy logger: logger with
loggerInstance: logger when creating the Fastify instance (the call to
Fastify({...}) that currently uses logger must be changed to loggerInstance and
keep trustProxy: true); ensure the imported/created logger symbol remains the
same and is passed as loggerInstance so the custom Pino logger is accepted by
Fastify v5.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e4110e12-9238-4661-9571-afa5e451d6c6

📥 Commits

Reviewing files that changed from the base of the PR and between 932aa3d and adab160.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

Fastify 5 requires custom pino instances via loggerInstance and matching v5-compatible plugins. Update @fastify/rate-limit alongside the Fastify major bump so app construction and rate-limit tests pass.

@georgyia georgyia left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed after fix: Fastify 5 is now paired with the matching @fastify/rate-limit major and Fastify 5's loggerInstance option. Local verification passed: npm ci, prisma generate, typecheck, focused API/payments/orchestrator tests, format check, and full unit suite (391/391). GitHub CI is green except CodeRabbit is still pending.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@package.json`:
- Line 25: Add a Node.js engine floor to package.json to enforce compatibility
with Fastify v5: update the top-level package manifest (where "fastify":
"^5.8.5" is declared) to include an "engines" field specifying node >=20 (e.g.,
"engines": { "node": ">=20.0.0" }) so local installs surface a clear constraint;
ensure the change is committed to package.json and mention this requirement in
any contributing/dev docs if present.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 35085669-9011-4516-a61e-d7eb4191b880

📥 Commits

Reviewing files that changed from the base of the PR and between adab160 and c23f5e4.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • package.json
  • src/app.ts

Comment thread package.json
"bullmq": "^5.76.1",
"dotenv": "^17.4.2",
"fastify": "^4.28.0",
"fastify": "^5.8.5",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== package.json engines ==="
python - <<'PY'
import json
with open("package.json") as f:
    pkg = json.load(f)
print(pkg.get("engines"))
PY

echo
echo "=== Node version pin files ==="
fd -HI '(^\.nvmrc$|^\.node-version$|^\.tool-versions$|^Dockerfile(\..*)?$|^docker-compose(\..*)?\.ya?ml$)' || true

echo
echo "=== CI workflow references to Node versions ==="
WORKFLOWS="$(fd -HI '\.ya?ml$' | rg '\.github/workflows/' || true)"
if [ -n "$WORKFLOWS" ]; then
  echo "$WORKFLOWS" | xargs -r rg -n 'setup-node|node-version|FROM node:'
else
  echo "No .github/workflows/*.yml files found."
fi

Repository: JonasBaeumer/AgentWallet

Length of output: 1266


🏁 Script executed:

cat -n docker-compose.yml

Repository: JonasBaeumer/AgentWallet

Length of output: 539


🏁 Script executed:

rg -n "node" docker-compose.yml -i

Repository: JonasBaeumer/AgentWallet

Length of output: 50


Declare a Node.js runtime floor for Fastify v5.

Fastify v5 requires Node.js v20+, but package.json does not declare an engines.node constraint. While CI pipelines enforce Node 20, this lacks protection for local development where developers could install on older Node versions and encounter runtime errors.

Proposed patch
 {
   "name": "trustedpaymentinfrastructureforagents",
   "version": "0.1.0",
   "private": true,
+  "engines": {
+    "node": ">=20"
+  },
   "scripts": {
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` at line 25, Add a Node.js engine floor to package.json to
enforce compatibility with Fastify v5: update the top-level package manifest
(where "fastify": "^5.8.5" is declared) to include an "engines" field specifying
node >=20 (e.g., "engines": { "node": ">=20.0.0" }) so local installs surface a
clear constraint; ensure the change is committed to package.json and mention
this requirement in any contributing/dev docs if present.

@georgyia

Copy link
Copy Markdown
Collaborator

@dependabot rebase

@dependabot @github

dependabot Bot commented on behalf of github May 13, 2026

Copy link
Copy Markdown
Contributor Author

Looks like this PR has been edited by someone other than Dependabot. That means Dependabot can't rebase it - sorry!

If you're happy for Dependabot to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant