# What changed in nestjs-pino

> 12 changes in nestjs-pino 4 to 5 from its official release notes, upgrade guides and advisories: 3 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-10-27. HTML: https://unstale.sh/npm/nestjs-pino/

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

## nestjs-pino 5

### Breaking changes

- Adds support for NestJS 12, allowing nestjs-pino to be used with that NestJS release. (5.0.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/5.0.0)

### New APIs and options

- An ESM build is now shipped alongside CommonJS, giving developers an additional module format to use. (5.2.1) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/5.2.1)
- Microservice messages can now be logged with a logging context. (5.2.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/5.2.0)

### Behavior and default changes

- NativeLogger output now matches the NestJS 12.1.1 ConsoleLogger output. (5.3.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/5.3.0)

### Fixes and other changes

- Fixes logging response headers under Fastify. (5.3.1) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/5.3.1)
- Fixes log paths excluded from the global prefix. (5.1.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/5.1.0)

## nestjs-pino 4

### Breaking changes

- Adds support for pino-http 11. (4.5.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/4.5.0)
- Drops support for Node.js 16. (4.0.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/4.0.0)

### New APIs and options

- A new NativeLogger class is available for developers to use. (4.6.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/4.6.0)

### Fixes and other changes

- Handles errorKey when pinoHttp is provided as a tuple. (4.6.1) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/4.6.1)
- Adds support for pino 10. (4.5.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/4.5.0)
- Adds support for pino-http 9. (4.0.0) — [release notes](https://github.com/iamolegga/nestjs-pino/releases/tag/4.0.0)
