Skip to content

Commit

Permalink
Changelog: 19.0.0, describing migration for ez.raw().
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed May 9, 2024
1 parent cc015c4 commit 78a517b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Changed the `ServerConfig` option `server.upload.beforeUpload`:
- The assigned function now accepts `request` instead of `app` and being called only for eligible requests;
- Restricting the upload can be achieved now by throwing an error from within.
- Changed interface for `ez.raw()`: additional properties should be supplied as its argument, not via `.extend()`.
- Features:
- Selective parsers equipped with a child logger:
- There are 3 types of endpoints depending on their input schema: having `ez.upload()`, having `ez.raw()`, others;
Expand Down Expand Up @@ -63,6 +64,19 @@ const after = createConfig({
});
```

```ts
import { z } from "zod";
import { ez } from "express-zod-api";

const before = ez.raw().extend({
pathParameter: z.string(),
});

const after = ez.raw({
pathParameter: z.string(),
});
```

## Version 18

### v18.5.2
Expand Down

0 comments on commit 78a517b

Please sign in to comment.