Revision 0.10.1 (#39)

* Zod: Use Offset on String DateTime Format

* Version
This commit is contained in:
sinclairzx81
2025-06-26 19:21:28 +09:00
committed by GitHub
parent 658d2c49c9
commit eb67d42876
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@sinclair/typemap",
"version": "0.10.0",
"version": "0.10.1",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@sinclair/typemap",
"version": "0.10.0",
"version": "0.10.1",
"license": "MIT",
"devDependencies": {
"@arethetypeswrong/cli": "^0.17.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@sinclair/typemap",
"version": "0.10.0",
"version": "0.10.1",
"description": "Syntax Compiler and Translation System for Runtime Types",
"author": "sinclairzx81",
"license": "MIT",

View File

@@ -48,7 +48,7 @@ t.FormatRegistry.Set('cidr', (value) => check(z.string().cidr(), value))
t.FormatRegistry.Set('cuid', (value) => check(z.string().cuid(), value))
t.FormatRegistry.Set('cuid2', (value) => check(z.string().cuid2(), value))
t.FormatRegistry.Set('date', (value) => check(z.string().date(), value))
t.FormatRegistry.Set('datetime', (value) => check(z.string().datetime(), value))
t.FormatRegistry.Set('datetime', (value) => check(z.string().datetime({ offset: true }), value))
t.FormatRegistry.Set('duration', (value) => check(z.string().duration(), value))
t.FormatRegistry.Set('email', (value) => check(z.string().email(), value))
t.FormatRegistry.Set('emoji', (value) => check(z.string().emoji(), value))