jazz-tools 0.14.9 → 0.14.10
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 +5 -5
- package/CHANGELOG.md +8 -0
- package/dist/{chunk-ORL6R2EV.js → chunk-YLZ5746T.js} +8 -1
- package/dist/chunk-YLZ5746T.js.map +1 -0
- package/dist/coValues/extensions/imageDef.d.ts +2 -2
- package/dist/coValues/extensions/imageDef.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/schemaTypes/CoListSchema.d.ts +1 -0
- package/dist/implementation/zodSchema/schemaTypes/CoListSchema.d.ts.map +1 -1
- package/dist/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts +1 -0
- package/dist/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts.map +1 -1
- package/dist/implementation/zodSchema/schemaTypes/CoRecordSchema.d.ts +1 -0
- package/dist/implementation/zodSchema/schemaTypes/CoRecordSchema.d.ts.map +1 -1
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts +1 -1
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts.map +1 -1
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts +1 -1
- package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts.map +1 -1
- package/dist/implementation/zodSchema/zodCo.d.ts.map +1 -1
- package/dist/implementation/zodSchema/zodReExport.d.ts +1 -1
- package/dist/implementation/zodSchema/zodReExport.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +1 -1
- package/src/coValues/extensions/imageDef.ts +2 -7
- package/src/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.ts +21 -1
- package/src/implementation/zodSchema/schemaTypes/CoListSchema.ts +1 -0
- package/src/implementation/zodSchema/schemaTypes/CoMapSchema.ts +1 -0
- package/src/implementation/zodSchema/schemaTypes/CoRecordSchema.ts +1 -0
- package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.ts +9 -1
- package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.ts +9 -1
- package/src/implementation/zodSchema/zodCo.ts +3 -0
- package/src/implementation/zodSchema/zodReExport.ts +2 -0
- package/src/tests/zod.test.ts +35 -17
- package/dist/chunk-ORL6R2EV.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.14.
|
2
|
+
> jazz-tools@0.14.10 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"}
|
@@ -11,12 +11,12 @@
|
|
11
11
|
[34mESM[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.js [22m[32m11.07 KB[39m
|
13
13
|
[32mESM[39m [1mdist/testing.js [22m[32m6.31 KB[39m
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
14
|
+
[32mESM[39m [1mdist/chunk-YLZ5746T.js [22m[32m132.99 KB[39m
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m18.38 KB[39m
|
16
16
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.57 KB[39m
|
17
|
-
[32mESM[39m [1mdist/chunk-
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
17
|
+
[32mESM[39m [1mdist/chunk-YLZ5746T.js.map [22m[32m307.99 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 79ms
|
19
19
|
|
20
|
-
> jazz-tools@0.14.
|
20
|
+
> jazz-tools@0.14.10 types /home/runner/_work/jazz/jazz/packages/jazz-tools
|
21
21
|
> tsc --outDir dist
|
22
22
|
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.14.10
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- dc746a2: Make the react peerDependency definition more relaxed
|
8
|
+
- f869d9a: Deprecated the withHelpers method in favor of standalone functions
|
9
|
+
- 3fe6832: Add support for z.catch/default. We ignore them for the moment and flag a warning.
|
10
|
+
|
3
11
|
## 0.14.9
|
4
12
|
|
5
13
|
### Patch Changes
|
@@ -3783,6 +3783,13 @@ function zodFieldToCoFieldDef(schema) {
|
|
3783
3783
|
return zodFieldToCoFieldDef(
|
3784
3784
|
schema.unwrap()
|
3785
3785
|
);
|
3786
|
+
} else if (schema._zod.def.type === "default" || schema._zod.def.type === "catch") {
|
3787
|
+
console.warn(
|
3788
|
+
"z.default()/z.catch() are not supported in collaborative schemas. They will be ignored."
|
3789
|
+
);
|
3790
|
+
return zodFieldToCoFieldDef(
|
3791
|
+
schema.def.innerType
|
3792
|
+
);
|
3786
3793
|
} else if (schema._zod.def.type === "literal") {
|
3787
3794
|
if (schema._zod.def.values.some(
|
3788
3795
|
(literal2) => typeof literal2 === "undefined"
|
@@ -4635,4 +4642,4 @@ export {
|
|
4635
4642
|
JazzContextManager
|
4636
4643
|
};
|
4637
4644
|
/* istanbul ignore file -- @preserve */
|
4638
|
-
//# sourceMappingURL=chunk-
|
4645
|
+
//# sourceMappingURL=chunk-YLZ5746T.js.map
|