jazz-tools 0.14.1 → 0.14.4

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 (32) hide show
  1. package/.turbo/turbo-build.log +7 -7
  2. package/CHANGELOG.md +13 -0
  3. package/dist/{chunk-WLOZKDOH.js → chunk-6QMAFVZO.js} +3 -1
  4. package/dist/{chunk-WLOZKDOH.js.map → chunk-6QMAFVZO.js.map} +1 -1
  5. package/dist/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.d.ts.map +1 -1
  6. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts +1 -1
  7. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.d.ts.map +1 -1
  8. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts +1 -1
  9. package/dist/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.d.ts.map +1 -1
  10. package/dist/index.js +1 -1
  11. package/dist/testing.d.ts +4 -4
  12. package/dist/testing.d.ts.map +1 -1
  13. package/dist/testing.js +5 -6
  14. package/dist/testing.js.map +1 -1
  15. package/dist/tests/coMap.record.test-d.d.ts +2 -0
  16. package/dist/tests/coMap.record.test-d.d.ts.map +1 -0
  17. package/dist/tests/coMap.test-d.d.ts +2 -0
  18. package/dist/tests/coMap.test-d.d.ts.map +1 -0
  19. package/dist/tests/patterns/notifications.test.d.ts +2 -0
  20. package/dist/tests/patterns/notifications.test.d.ts.map +1 -0
  21. package/package.json +1 -1
  22. package/src/implementation/zodSchema/runtimeConverters/zodFieldToCoFieldDef.ts +3 -0
  23. package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchema.ts +3 -1
  24. package/src/implementation/zodSchema/typeConverters/InstanceOrPrimitiveOfSchemaCoValuesNullable.ts +3 -1
  25. package/src/testing.ts +17 -10
  26. package/src/tests/coList.test.ts +9 -0
  27. package/src/tests/coMap.record.test-d.ts +149 -0
  28. package/src/tests/coMap.record.test.ts +11 -0
  29. package/src/tests/coMap.test-d.ts +348 -0
  30. package/src/tests/coMap.test.ts +8 -0
  31. package/src/tests/patterns/notifications.test.ts +89 -0
  32. package/src/tests/patterns/requestToJoin.test.ts +8 -5
@@ -1,5 +1,5 @@
1
1
 
2
- > jazz-tools@0.14.1 build /home/runner/_work/jazz/jazz/packages/jazz-tools
2
+ > jazz-tools@0.14.4 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"}
@@ -9,14 +9,14 @@
9
9
  CLI Target: es2021
10
10
  CLI Cleaning output folder
11
11
  ESM Build start
12
- ESM dist/testing.js 6.27 KB
12
+ ESM dist/testing.js 6.31 KB
13
13
  ESM dist/index.js 11.03 KB
14
- ESM dist/chunk-WLOZKDOH.js 130.46 KB
15
- ESM dist/testing.js.map 12.31 KB
14
+ ESM dist/chunk-6QMAFVZO.js 130.54 KB
15
+ ESM dist/testing.js.map 12.57 KB
16
16
  ESM dist/index.js.map 20.74 KB
17
- ESM dist/chunk-WLOZKDOH.js.map 304.21 KB
18
- ESM ⚡️ Build success in 61ms
17
+ ESM dist/chunk-6QMAFVZO.js.map 304.41 KB
18
+ ESM ⚡️ Build success in 51ms
19
19
 
20
- > jazz-tools@0.14.1 types /home/runner/_work/jazz/jazz/packages/jazz-tools
20
+ > jazz-tools@0.14.4 types /home/runner/_work/jazz/jazz/packages/jazz-tools
21
21
  > tsc --outDir dist
22
22
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # jazz-tools
2
2
 
3
+ ## 0.14.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 011af55: Support z.enum in the schema definitions
8
+
9
+ ## 0.14.2
10
+
11
+ ### Patch Changes
12
+
13
+ - 3d1027f: Make possible to extend a group without having access to it
14
+ - c240eed: Fix custom AccountSchema support in testing utils
15
+
3
16
  ## 0.14.1
4
17
 
5
18
  ### Patch Changes
@@ -3682,6 +3682,8 @@ function zodFieldToCoFieldDef(schema) {
3682
3682
  return coField.boolean;
3683
3683
  } else if (schema._zod.def.type === "null") {
3684
3684
  return coField.null;
3685
+ } else if (schema._zod.def.type === "enum") {
3686
+ return coField.string;
3685
3687
  } else if (schema._zod.def.type === "date") {
3686
3688
  return coField.Date;
3687
3689
  } else if (schema._zod.def.type === "literal") {
@@ -4536,4 +4538,4 @@ export {
4536
4538
  JazzContextManager
4537
4539
  };
4538
4540
  /* istanbul ignore file -- @preserve */
4539
- //# sourceMappingURL=chunk-WLOZKDOH.js.map
4541
+ //# sourceMappingURL=chunk-6QMAFVZO.js.map