Update zod version, some perf improvements ()

* Update zod version, some perf improvements

* Fix circular type ref
This commit is contained in:
devin ivy 2023-05-11 10:57:12 -04:00 committed by GitHub
parent 3783889c49
commit 5f0db0c844
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 12 additions and 7 deletions

@ -26,6 +26,6 @@
"dependencies": {
"multiformats": "^9.6.4",
"uint8arrays": "3.0.0",
"zod": "^3.14.2"
"zod": "^3.21.4"
}
}

@ -28,7 +28,7 @@
"@atproto/common-web": "*",
"@atproto/crypto": "*",
"axios": "^0.27.2",
"zod": "^3.14.2"
"zod": "^3.21.4"
},
"devDependencies": {
"@did-plc/lib": "^0.0.1",

@ -30,6 +30,6 @@
"@atproto/uri": "*",
"iso-datestring-validator": "^2.2.2",
"multiformats": "^9.6.4",
"zod": "^3.14.2"
"zod": "^3.21.4"
}
}

@ -261,7 +261,7 @@ export const lexiconDoc = z
description: z.string().optional(),
defs: z.record(lexUserType),
})
.superRefine((doc: LexiconDoc, ctx) => {
.superRefine((doc, ctx) => {
for (const defId in doc.defs) {
const def = doc.defs[defId]
if (

@ -36,6 +36,6 @@
"@ipld/dag-cbor": "^7.0.0",
"multiformats": "^9.6.4",
"uint8arrays": "3.0.0",
"zod": "^3.14.2"
"zod": "^3.21.4"
}
}

@ -32,7 +32,7 @@
"mime-types": "^2.1.35",
"uint8arrays": "3.0.0",
"ws": "^8.12.0",
"zod": "^3.14.2"
"zod": "^3.21.4"
},
"devDependencies": {
"@atproto/crypto": "*",

@ -24,6 +24,6 @@
},
"dependencies": {
"@atproto/lexicon": "*",
"zod": "^3.14.2"
"zod": "^3.21.4"
}
}

@ -12074,3 +12074,8 @@ zod@^3.14.2:
version "3.19.1"
resolved "https://registry.npmjs.org/zod/-/zod-3.19.1.tgz"
integrity sha512-LYjZsEDhCdYET9ikFu6dVPGp2YH9DegXjdJToSzD9rO6fy4qiRYFoyEYwps88OseJlPyl2NOe2iJuhEhL7IpEA==
zod@^3.21.4:
version "3.21.4"
resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db"
integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==