- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* `ZodTemplateLiteral` initial commit. * `ZodTemplateLiteral` regex building & parsing. * add `ZodTemplateLiteral` @ firstparty.test. * some inference test cases for `ZodTemplateLiteral`. * append to regexString instead of rebuild @ `ZodTemplateLiteral.addPart`. * initial parse tests for `ZodTemplateLiteral`. * "internalize" `addPart`, add `addLiteral` & `addInterpolatedPosition`. * move `ZodTemplateLiteral` unit test cases and minor fixes. * minor fixes, more tests. * minor fixes, more tests pt. 2. * more tests pt. 3. * more tests pt. 4. * add `ZodTemplateLiteral` README.md section. * add a simpler example @ ZodTemplateLiteral docs. * add regex limitations remark. * allow coercion to ZodTemplateLiteral. * minor readability pass on number stuff @ ZodTemplateLiteral. * add ZodBranded support @ ZodTemplateLiteral. * support ZodAny @ ZodTemplateLiteral. * support ZodAny @ ZodTemplateLiteral. * minor README.md changes. * add ZodTemplateLiteral coerce test. * add ZodTemplateLiteral custom errors for unsupported stuff. * add ZodTemplateLiteral custom errors for unsupported stuff. pt. 2. * add ZodTemplateLiteral custom errors for unsupported stuff pt. 3. Co-authored-by: Max Arturo <[email protected]> * use official MDN way of escaping for regex. Co-authored-by: Max Arturo <[email protected]> * explicitly state exponent notation is not supported @ ZodTemplateLiteral Co-authored-by: Max Arturo <[email protected]> * add missing `.toThrow()` @ ZodTemplateLiteral tests. Co-authored-by: Max Arturo <[email protected]> * explicitly state `.trim()` is not supported @ ZodTemplateLiteral. Co-authored-by: Max Arturo <[email protected]> * fix mongodb connection string example and tests. * add measurment example from README to ZodTemplateLiteral tests. * extract ZodTemplateLiteral errors to ZodError.ts Co-authored-by: Max Arturo <[email protected]> * add `z.string().cuid2()` support. * add support for new regex based string checks. * rename to `.interpolated` & `.literal`. * rename to `.interpolated` & `.literal` pt. 2. * handle case insensitive regexes. * prettier the readme. * Update cuid2 test * Switch to z.literal.template, update tests, update eslint, bump TS to 5.0+ * Empty * Update readme * Update readme * Clean up types --------- Co-authored-by: Max Arturo <[email protected]> Co-authored-by: Colin McDonnell <[email protected]>
- fast-parse
- (#1786)
- slow-quickfix
- (#1786)
- v4
- (#1786)
- v4-docs
- (#1786)
- v4-rfc-error-maps
- (#3618, #1786)
- v4-rfc-issue-input
- (#3619, #1786)
- v4-rfc-issues
- (#3713, #1786)
- v4-zod-core
- (#1786)
1 parent
aac94cc
commit 5b532d8
Showing
18 changed files
with
2,952 additions
and
258 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.