Skip to content

Commit 16db1e4

Browse files
chore(release): version packages
1 parent ecbf2be commit 16db1e4

3 files changed

Lines changed: 17 additions & 18 deletions

File tree

.changeset/fix-multipart-file-types.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/core/CHANGELOG.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @tuyau/core
22

3+
## 1.2.3
4+
5+
### Patch Changes
6+
7+
- ecbf2be: Replace `MultipartFile` with `File | Blob` in client-side body types.
8+
9+
When using `vine.file()` in validators, the generated types previously exposed `MultipartFile` (a server-side type) to the client, forcing users to cast it to `File` or `Blob` when handling file uploads on the client. With this change,`ExtractBody` now automatically replaces `MultipartFile` with `File | Blob`.
10+
311
## 1.2.2
412

513
### Patch Changes
@@ -24,16 +32,14 @@
2432

2533
```ts
2634
const createSessionValidator = vine.create(
27-
vine
28-
.object({})
29-
.merge(
30-
vine.group([
31-
vine.group.if((data) => data.password, { password: vine.string() }),
32-
vine.group.if((data) => data.assertion, {
33-
assertion: webauthnAssertion,
34-
}),
35-
]),
36-
),
35+
vine.object({}).merge(
36+
vine.group([
37+
vine.group.if((data) => data.password, { password: vine.string() }),
38+
vine.group.if((data) => data.assertion, {
39+
assertion: webauthnAssertion,
40+
}),
41+
]),
42+
),
3743
);
3844
```
3945

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@tuyau/core",
33
"type": "module",
4-
"version": "1.2.2",
4+
"version": "1.2.3",
55
"description": "E2E typesafe client for AdonisJS",
66
"author": "Julien Ripouteau <julien@ripouteau.com>",
77
"license": "MIT",

0 commit comments

Comments
 (0)