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 (@​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 [@​LeSingh1](https://github.com/LeSingh1) in [#​586](https://github.com/fastify/fastify-static/pull/586)
- feat: use `@fastify/error` for errors and add option `suppressWarning` by [@​climba03003](https://github.com/climba03003) in [#​599](https://github.com/fastify/fastify-static/pull/599)
#### New Contributors
- [@​LeSingh1](https://github.com/LeSingh1) made their first contribution in [#​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('@​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
- chore!: bump content-disposition fom 1.0.1 to 2.0.1 by [@​climba03003](https://github.com/climba03003) in [#​597](https://github.com/fastify/fastify-static/pull/597)
- fix: ignore unsupported deflate for precompressed assets by [@​jibin7jose](https://github.com/jibin7jose) in [#​596](https://github.com/fastify/fastify-static/pull/596)
- fix!: allow setHeaders to override send headers by [@​climba03003](https://github.com/climba03003) in [#​598](https://github.com/fastify/fastify-static/pull/598)
#### New Contributors
- [@​jibin7jose](https://github.com/jibin7jose) made their first contribution in [#​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-->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR contains the following updates:
^9.0.0→^10.0.0Release Notes
fastify/fastify-static (@fastify/static)
v10.1.0Compare Source
What's Changed
@fastify/errorfor errors and add optionsuppressWarningby @climba03003 in #599New Contributors
Full Changelog: https://github.com/fastify/fastify-static/compare/v10.0.0...v10.1.0
v10.0.0Compare Source
Breaking Changes
setHeadersnow usingFastifyReplyinstead ofResponse.You should refactor your code to use the
replyhelpers.For example,
What's Changed
New Contributors
Full Changelog: https://github.com/fastify/fastify-static/compare/v9.3.0...v10.0.0
Configuration
📅 Schedule: (UTC)
🚦 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.
This PR has been generated by Mend Renovate.