Update dependency @fastify/static to v10 #26

Merged
bot merged 1 commits from renovate/fastify-static-10.x into master 2026-07-12 04:05:33 +02:00
Collaborator

This PR contains the following updates:

Package Type Update Change
@fastify/static dependencies major ^9.0.0^10.0.0

Release Notes

fastify/fastify-static (@​fastify/static)

v10.1.0

Compare Source

What's Changed

New Contributors

Full Changelog: https://github.com/fastify/fastify-static/compare/v10.0.0...v10.1.0

v10.0.0

Compare Source

Breaking Changes

  • setHeaders now using FastifyReply instead of Response.

You should refactor your code to use the reply helpers.
For example,

// Before
const fastify = require('fastify')({logger: true})
const path = require('node:path')

fastify.register(require('@​fastify/static'), {
  root: path.join(__dirname, 'public'),
  prefix: '/public/', // optional: default '/',
  setHeaders(res) {
    res.setHeader('X-Test', 'Foo')
  }
})
// After
const fastify = require('fastify')({logger: true})
const path = require('node:path')

fastify.register(require('@​fastify/static'), {
  root: path.join(__dirname, 'public'),
  prefix: '/public/', // optional: default '/',
  setHeaders(reply) {
    reply.header('X-Test', 'Foo')
  }
})

What's Changed

New Contributors

Full Changelog: https://github.com/fastify/fastify-static/compare/v9.3.0...v10.0.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "every weekday,every weekend"
  • Automerge
    • "every weekend"

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@fastify/static](https://github.com/fastify/fastify-static) | dependencies | major | [`^9.0.0` → `^10.0.0`](https://renovatebot.com/diffs/npm/@fastify%2fstatic/9.3.0/10.1.0) | --- ### Release Notes <details> <summary>fastify/fastify-static (@&#8203;fastify/static)</summary> ### [`v10.1.0`](https://github.com/fastify/fastify-static/releases/tag/v10.1.0) [Compare Source](https://github.com/fastify/fastify-static/compare/v10.0.0...v10.1.0) #### What's Changed - fix: set Vary: Accept-Encoding for preCompressed responses by [@&#8203;LeSingh1](https://github.com/LeSingh1) in [#&#8203;586](https://github.com/fastify/fastify-static/pull/586) - feat: use `@fastify/error` for errors and add option `suppressWarning` by [@&#8203;climba03003](https://github.com/climba03003) in [#&#8203;599](https://github.com/fastify/fastify-static/pull/599) #### New Contributors - [@&#8203;LeSingh1](https://github.com/LeSingh1) made their first contribution in [#&#8203;586](https://github.com/fastify/fastify-static/pull/586) **Full Changelog**: <https://github.com/fastify/fastify-static/compare/v10.0.0...v10.1.0> ### [`v10.0.0`](https://github.com/fastify/fastify-static/releases/tag/v10.0.0) [Compare Source](https://github.com/fastify/fastify-static/compare/v9.3.0...v10.0.0) #### Breaking Changes - `setHeaders` now using `FastifyReply` instead of `Response`. You should refactor your code to use the `reply` helpers. For example, ```js // Before const fastify = require('fastify')({logger: true}) const path = require('node:path') fastify.register(require('@&#8203;fastify/static'), { root: path.join(__dirname, 'public'), prefix: '/public/', // optional: default '/', setHeaders(res) { res.setHeader('X-Test', 'Foo') } }) // After const fastify = require('fastify')({logger: true}) const path = require('node:path') fastify.register(require('@&#8203;fastify/static'), { root: path.join(__dirname, 'public'), prefix: '/public/', // optional: default '/', setHeaders(reply) { reply.header('X-Test', 'Foo') } }) ``` #### What's Changed - chore!: bump content-disposition fom 1.0.1 to 2.0.1 by [@&#8203;climba03003](https://github.com/climba03003) in [#&#8203;597](https://github.com/fastify/fastify-static/pull/597) - fix: ignore unsupported deflate for precompressed assets by [@&#8203;jibin7jose](https://github.com/jibin7jose) in [#&#8203;596](https://github.com/fastify/fastify-static/pull/596) - fix!: allow setHeaders to override send headers by [@&#8203;climba03003](https://github.com/climba03003) in [#&#8203;598](https://github.com/fastify/fastify-static/pull/598) #### New Contributors - [@&#8203;jibin7jose](https://github.com/jibin7jose) made their first contribution in [#&#8203;596](https://github.com/fastify/fastify-static/pull/596) **Full Changelog**: <https://github.com/fastify/fastify-static/compare/v9.3.0...v10.0.0> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - "every weekday,every weekend" - Automerge - "every weekend" 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMzQuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIzNC4wIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImJvdCIsInJlbm92YXRlIl19-->
bot added 1 commit 2026-07-12 04:05:33 +02:00
Update dependency @fastify/static to v10
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is failing
b933b79650
bot scheduled this pull request to auto merge when all checks succeed 2026-07-12 04:05:33 +02:00
bot merged commit 96070cae63 into master 2026-07-12 04:05:33 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sora/startpage#26