jazz-tools 0.18.7 → 0.18.8
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 +46 -46
- package/CHANGELOG.md +11 -0
- package/dist/better-auth/auth/server.js +1 -1
- package/dist/better-auth/auth/server.js.map +1 -1
- package/dist/{chunk-CFAY3FMQ.js → chunk-QF3R3C4N.js} +6 -2
- package/dist/{chunk-CFAY3FMQ.js.map → chunk-QF3R3C4N.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/react-core/index.js +5 -1
- package/dist/react-core/index.js.map +1 -1
- package/dist/testing.js +1 -1
- package/dist/tools/coValues/CoFieldInit.d.ts +5 -5
- package/dist/tools/coValues/CoFieldInit.d.ts.map +1 -1
- package/dist/tools/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts +5 -3
- package/dist/tools/implementation/zodSchema/schemaTypes/CoMapSchema.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/better-auth/auth/server.ts +1 -1
- package/src/tools/coValues/CoFieldInit.ts +5 -5
- package/src/tools/implementation/zodSchema/schemaTypes/CoMapSchema.ts +22 -8
- package/src/tools/tests/coMap.test.ts +37 -0
package/dist/index.js
CHANGED
package/dist/react-core/index.js
CHANGED
@@ -4272,9 +4272,13 @@ function enrichCoMapSchema(schema, coValueClass) {
|
|
4272
4272
|
}
|
4273
4273
|
return coMapDefiner(pickedShape);
|
4274
4274
|
},
|
4275
|
-
partial: () => {
|
4275
|
+
partial: (keys) => {
|
4276
4276
|
const partialShape = {};
|
4277
4277
|
for (const [key, value] of Object.entries(coValueSchema.shape)) {
|
4278
|
+
if (keys && !keys[key]) {
|
4279
|
+
partialShape[key] = value;
|
4280
|
+
continue;
|
4281
|
+
}
|
4278
4282
|
if (isAnyCoValueSchema(value)) {
|
4279
4283
|
partialShape[key] = coOptionalDefiner(value);
|
4280
4284
|
} else {
|