Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Changelog

## 2.0.2 (2025-11-16)

### Bug fixes

- Middleware that added response headers after controller execution were failing with `Cannot set headers after they are sent to the client`.

This was fixed, however nestjs-endpoints can no longer support endpoint output schemas that are nullable. NestJS does not send `null` when using Express.js. [More info](https://github.com/nestjs/nest/issues/10415).

So instead of:

```ts
endpoint({
output: personSchema.nullable(),
...
});
```

now do:

```ts
endpoint({
output: z.object({
person: personSchema.nullable()
}),
...
})
```

## 2.0.1 (2025-10-19)

### Minor changes
Expand Down