Skip to content

chore(deps): Bump @fastify/static from 10.1.12 to 11.0.0 - #659

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fastify/static-11.0.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/fastify/static-11.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor

Bumps @fastify/static from 10.1.12 to 11.0.0.

Release notes

Sourced from @​fastify/static's releases.

v11.0.0

Breaking changes

dotfiles now defaults to 'ignore' (#620)

Files and directories whose name begins with a dot (.env, .git, .well-known, ...) are no longer served by default: requests for them now return a 404. Previously the default was 'allow'.

This matches the defaults of @fastify/send and serve-static, and protects sensitive files such as .env or .git/config that may be left in the static root. Dotfiles are also excluded from directory listings.

Migration: if you rely on serving dotfiles, for example /.well-known/... for ACME or PGP discovery, opt in explicitly:

fastify.register(require('@fastify/static'), {
  root: path.join(__dirname, 'public'),
  dotfiles: 'allow'
})

If you already set dotfiles explicitly, nothing changes for you.

Features

New list.renderJson option (#630)

Customize the JSON directory listing with a function that receives the same (dirs, files) arguments as list.render. Its return value is sent as application/json.

fastify.register(require('@fastify/static'), {
  root: path.join(__dirname, 'public'),
  list: {
    format: 'json',
    renderJson: (dirs, files) => ({
      dirs: dirs.map(dir => dir.name),
      files: files.map(file => ({ name: file.name, href: file.href }))
    })
  }
})

list.render is unchanged and is still used only for the html format. When list.renderJson is omitted, the JSON response is still controlled by list.jsonFormat.

What's Changed

New Contributors

Full Changelog: fastify/fastify-static@v10.1.12...v11.0.0

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@fastify/static](https://github.com/fastify/fastify-static) from 10.1.12 to 11.0.0.
- [Release notes](https://github.com/fastify/fastify-static/releases)
- [Commits](fastify/fastify-static@v10.1.12...v11.0.0)

---
updated-dependencies:
- dependency-name: "@fastify/static"
  dependency-version: 11.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github

dependabot Bot commented on behalf of github Nov 30, 2026

Copy link
Copy Markdown
Contributor Author

Labels

The following labels could not be found: dependencies, security. Please create them before Dependabot can add them to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

This branch has not been deployed

No deployments
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.

0 participants