Skip to content

Commit 9c2f488

Browse files
authored
Removing plural noop props from ApiResponse. (#2743)
Noop since v21.0.0. Can't believe I forget to remove them. Should have been adding "todo" <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Removed deprecated plural properties from the response configuration interface. This change does not affect existing usage of supported properties. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 34f1488 commit 9c2f488

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Version 24
44

5+
### v24.3.2
6+
7+
- Removed previously deprecated plural properties from `ApiResponse` interface: `statusCodes`, `mimeTypes`.
8+
59
### v24.3.1
610

711
- Compatibility fix for Zod 3.25.60.

express-zod-api/src/api-response.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ export interface ApiResponse<S extends z.ZodType> {
2020
* @default "application/json"
2121
* */
2222
mimeType?: string | [string, ...string[]] | null;
23-
/** @deprecated use statusCode */
24-
statusCodes?: never;
25-
/** @deprecated use mimeType */
26-
mimeTypes?: never;
2723
}
2824

2925
/**

0 commit comments

Comments
 (0)