Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fcb722a

Browse filesBrowse files
committed
Add uuid to changelog
1 parent 12dd489 commit fcb722a
Copy full SHA for fcb722a

File tree

Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-0
lines changed
Open diff view settings
Collapse file

‎packages/docs/content/v4/changelog.mdx‎

Copy file name to clipboardExpand all lines: packages/docs/content/v4/changelog.mdx
+8Lines changed: 8 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,14 @@ z.string().email(); // ❌ deprecated
320320
z.email(); //
321321
```
322322

323+
### stricter `.uuid()`
324+
325+
The `z.uuid()` now validates UUIDs more strictly against the RFC 4122 specification; specifically, the variant bits must be `10` per the spec. For a more permissive "UUID-like" validator, use `z.guid()`.
326+
327+
```ts
328+
z.uuid(); // RFC 4122 compliant UUID
329+
z.guid(); // any 8-4-4-4-12 hex pattern
330+
```
323331

324332
### no padding in `.base64url()`
325333

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.