jazz-tools 0.14.6 → 0.14.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-E2B2W453.js → chunk-RTUIFVYF.js} +12 -1
- package/dist/{chunk-E2B2W453.js.map → chunk-RTUIFVYF.js.map} +1 -1
- package/dist/exports.d.ts +1 -1
- package/dist/exports.d.ts.map +1 -1
- package/dist/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.d.ts +1 -1
- package/dist/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.d.ts.map +1 -1
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts +3 -2
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts.map +1 -1
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts +3 -2
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts.map +1 -1
- package/dist/implementation/zodSchema/zodReExport.d.ts +2 -0
- package/dist/implementation/zodSchema/zodReExport.d.ts.map +1 -0
- package/dist/index.js +75 -6
- package/dist/index.js.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/tests/zod.test.d.ts +2 -0
- package/dist/tests/zod.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/exports.ts +1 -1
- package/src/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.ts +18 -2
- package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.ts +43 -30
- package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.ts +45 -32
- package/src/implementation/zodSchema/zodReExport.ts +37 -0
- package/src/tests/coMap.record.test-d.ts +1 -1
- package/src/tests/zod.test.ts +419 -0
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.14.
|
2
|
+
> jazz-tools@0.14.7 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup && pnpm types
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -9,14 +9,14 @@
|
|
9
9
|
[34mCLI[39m Target: es2021
|
10
10
|
[34mCLI[39m Cleaning output folder
|
11
11
|
[34mESM[39m Build start
|
12
|
-
[32mESM[39m [1mdist/index.js [22m[32m11.07 KB[39m
|
13
12
|
[32mESM[39m [1mdist/testing.js [22m[32m6.31 KB[39m
|
14
|
-
[32mESM[39m [1mdist/
|
15
|
-
[32mESM[39m [1mdist/
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m12.27 KB[39m
|
14
|
+
[32mESM[39m [1mdist/chunk-RTUIFVYF.js [22m[32m131.59 KB[39m
|
16
15
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.57 KB[39m
|
17
|
-
[32mESM[39m [1mdist/
|
18
|
-
[32mESM[39m
|
16
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m19.40 KB[39m
|
17
|
+
[32mESM[39m [1mdist/chunk-RTUIFVYF.js.map [22m[32m306.12 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 48ms
|
19
19
|
|
20
|
-
> jazz-tools@0.14.
|
20
|
+
> jazz-tools@0.14.7 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
21
21
|
> tsc --outDir dist
|
22
22
|
|
package/CHANGELOG.md
CHANGED
@@ -3703,8 +3703,18 @@ function zodFieldToCoFieldDef(schema) {
|
|
3703
3703
|
return coField.null;
|
3704
3704
|
} else if (schema._zod.def.type === "enum") {
|
3705
3705
|
return coField.string;
|
3706
|
+
} else if (schema._zod.def.type === "readonly") {
|
3707
|
+
return zodFieldToCoFieldDef(
|
3708
|
+
schema.def.innerType
|
3709
|
+
);
|
3706
3710
|
} else if (schema._zod.def.type === "date") {
|
3707
3711
|
return coField.Date;
|
3712
|
+
} else if (schema._zod.def.type === "template_literal") {
|
3713
|
+
return coField.string;
|
3714
|
+
} else if (schema._zod.def.type === "lazy") {
|
3715
|
+
return zodFieldToCoFieldDef(
|
3716
|
+
schema.unwrap()
|
3717
|
+
);
|
3708
3718
|
} else if (schema._zod.def.type === "literal") {
|
3709
3719
|
if (schema._zod.def.values.some(
|
3710
3720
|
(literal) => typeof literal === "undefined"
|
@@ -4521,6 +4531,7 @@ function parseGroupCreateOptions(options) {
|
|
4521
4531
|
}
|
4522
4532
|
|
4523
4533
|
export {
|
4534
|
+
__export,
|
4524
4535
|
loadCoValue,
|
4525
4536
|
subscribeToCoValue,
|
4526
4537
|
createCoValueObservable,
|
@@ -4557,4 +4568,4 @@ export {
|
|
4557
4568
|
JazzContextManager
|
4558
4569
|
};
|
4559
4570
|
/* istanbul ignore file -- @preserve */
|
4560
|
-
//# sourceMappingURL=chunk-
|
4571
|
+
//# sourceMappingURL=chunk-RTUIFVYF.js.map
|