Skip to content

Commit

Permalink
Changelog: 21.4.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Dec 9, 2024
1 parent 63e3233 commit eb50f71
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## Version 21

### v21.4.0

- Featuring `EndpointsFactory::buildVoid()` method:
- It's a shorthand for returning `{}` while having `output` schema `z.object({})`;
- When using this method, `handler` may return `void` while retaining the object-based operation internally.

```diff
- factory.build({
+ factory.buildVoid({
- output: z.object({}),
handler: async () => {
- return {};
},
});
```

### v21.3.1

- Return type of public methods `getTags()` and `getScopes()` of `Endpoint` corrected to `ReadyonlyArray<string>`.
Expand Down

0 comments on commit eb50f71

Please sign in to comment.