# What changed in @fastify/swagger-ui

> 12 changes in @fastify/swagger-ui 3 to 6 from its official release notes, upgrade guides and advisories: 5 breaking. Each one cited. Sources checked 2026-11-20. HTML: https://unstale.sh/npm/@fastify/swagger-ui/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @fastify/swagger-ui 6

### Breaking changes

- The deprecated useUnsafeMarkdown parameter was removed from the types. (6.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v6.0.0)

### Behavior and default changes

- Updated the topbar selector for custom logos. (6.1.3) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v6.1.3)

### Fixes and other changes

- Swagger UI URLs with query parameters are now resolved correctly. (6.1.4) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v6.1.4)

## @fastify/swagger-ui 5

### Breaking changes

- Updates the minimum supported Fastify version. (5.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v5.0.0)

### Fixes and other changes

- Corrected corrupted PNG favicon signatures. (5.2.6) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v5.2.6)
- Includes oauth2-redirect.js in the npm package distribution. (5.2.5) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v5.2.5)
- Fixes loading a JSON spec from a hash. (5.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v5.0.0)
- Fixes relative URLs for static content. (5.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v5.0.0)
- Fixes static content when routePrefix includes a subpath. (5.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v5.0.0)

## @fastify/swagger-ui 4

### Breaking changes

- The UI is served directly at the route prefix instead of redirecting there. (4.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v4.0.0)

## @fastify/swagger-ui 3

### Breaking changes

- Support for Node.js 14 and 16 was dropped. (3.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v3.0.0)
- Source maps were removed to reduce package size. (3.0.0) — [release notes](https://github.com/fastify/fastify-swagger-ui/releases/tag/v3.0.0)
