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.
Files changed (35) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/CHANGELOG.md +8 -0
  3. package/dist/{chunk-ORL6R2EV.js → chunk-YLZ5746T.js} +8 -1
  4. package/dist/chunk-YLZ5746T.js.map +1 -0
  5. package/dist/coValues/extensions/imageDef.d.ts +2 -2
  6. package/dist/coValues/extensions/imageDef.d.ts.map +1 -1
  7. package/dist/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.d.ts +1 -1
  8. package/dist/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.d.ts.map +1 -1
  9. package/dist/implementation/zodSchema/schemaTypes/CoListSchema.d.ts +1 -0
  10. package/dist/implementation/zodSchema/schemaTypes/CoListSchema.d.ts.map +1 -1
  11. package/dist/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts +1 -0
  12. package/dist/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts.map +1 -1
  13. package/dist/implementation/zodSchema/schemaTypes/CoRecordSchema.d.ts +1 -0
  14. package/dist/implementation/zodSchema/schemaTypes/CoRecordSchema.d.ts.map +1 -1
  15. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts +1 -1
  16. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts.map +1 -1
  17. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts +1 -1
  18. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts.map +1 -1
  19. package/dist/implementation/zodSchema/zodCo.d.ts.map +1 -1
  20. package/dist/implementation/zodSchema/zodReExport.d.ts +1 -1
  21. package/dist/implementation/zodSchema/zodReExport.d.ts.map +1 -1
  22. package/dist/index.js +1 -1
  23. package/dist/testing.js +1 -1
  24. package/package.json +1 -1
  25. package/src/coValues/extensions/imageDef.ts +2 -7
  26. package/src/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.ts +21 -1
  27. package/src/implementation/zodSchema/schemaTypes/CoListSchema.ts +1 -0
  28. package/src/implementation/zodSchema/schemaTypes/CoMapSchema.ts +1 -0
  29. package/src/implementation/zodSchema/schemaTypes/CoRecordSchema.ts +1 -0
  30. package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.ts +9 -1
  31. package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.ts +9 -1
  32. package/src/implementation/zodSchema/zodCo.ts +3 -0
  33. package/src/implementation/zodSchema/zodReExport.ts +2 -0
  34. package/src/tests/zod.test.ts +35 -17
  35. package/dist/chunk-ORL6R2EV.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.14.9 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.14.10 build /home/runner/_work/jazz/jazz/packages/jazz-tools
3
3
  > tsup && pnpm types
4
4
 
5
5
  CLI Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
@@ -11,12 +11,12 @@
11
11
  ESM Build start
12
12
  ESM dist/index.js 11.07 KB
13
13
  ESM dist/testing.js 6.31 KB
14
- ESM dist/chunk-ORL6R2EV.js 132.69 KB
14
+ ESM dist/chunk-YLZ5746T.js 132.99 KB
15
15
  ESM dist/index.js.map 18.38 KB
16
16
  ESM dist/testing.js.map 12.57 KB
17
- ESM dist/chunk-ORL6R2EV.js.map 307.06 KB
18
- ESM ⚡️ Build success in 75ms
17
+ ESM dist/chunk-YLZ5746T.js.map 307.99 KB
18
+ ESM ⚡️ Build success in 79ms
19
19
 
20
- > jazz-tools@0.14.9 types /home/runner/_work/jazz/jazz/packages/jazz-tools
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-ORL6R2EV.js.map
4645
+ //# sourceMappingURL=chunk-YLZ5746T.js.map