Skip to content

Commit 1d6b144

Browse files
authored
doc: note cuid1 deprecation (#547)
1 parent a2475ef commit 1d6b144

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/reference/zmodel/function.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ Generates a unique identifier based on the [CUID](https://github.com/ericelliott
109109

110110
*Parameters:*
111111

112-
- `version` (optional): The CUID version to generate. Supported values are `1` (default) and `2`.
112+
- `version` (optional): The CUID version to generate. Supported values are `1` (default) and `2`.<br />
113+
The NPM package for **CUID v1 is deprecated**, so you should use `2` for all new projects.
113114
- `format` (optional): A pattern to control the output format. `%s` in the pattern will be replaced by the generated id. Use escaped `\\%s` to have a literal `%s` in the output.
114115

115116
### nanoid()

0 commit comments

Comments
 (0)