jazz-tools 0.10.1 → 0.10.3
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 +4 -4
- package/CHANGELOG.md +13 -0
- package/dist/{chunk-24EJ3CKA.js → chunk-XRX3CCYY.js} +6 -2
- package/dist/chunk-XRX3CCYY.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/testing.js +1 -1
- package/package.json +2 -2
- package/src/implementation/schema.ts +6 -1
- package/src/tests/coMap.test.ts +27 -1
- package/dist/chunk-24EJ3CKA.js.map +0 -1
package/.turbo/turbo-build.log
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
|
2
|
-
> jazz-tools@0.10.
|
2
|
+
> jazz-tools@0.10.3 build /home/runner/_work/jazz/jazz/packages/jazz-tools
|
3
3
|
> tsup
|
4
4
|
|
5
5
|
[34mCLI[39m Building entry: {"index":"src/index.ts","testing":"src/testing.ts"}
|
@@ -11,8 +11,8 @@
|
|
11
11
|
[34mESM[39m Build start
|
12
12
|
[32mESM[39m [1mdist/index.js [22m[32m1.50 KB[39m
|
13
13
|
[32mESM[39m [1mdist/testing.js [22m[32m6.18 KB[39m
|
14
|
-
[32mESM[39m [1mdist/chunk-
|
14
|
+
[32mESM[39m [1mdist/chunk-XRX3CCYY.js [22m[32m111.67 KB[39m
|
15
15
|
[32mESM[39m [1mdist/index.js.map [22m[32m259.00 B[39m
|
16
16
|
[32mESM[39m [1mdist/testing.js.map [22m[32m12.19 KB[39m
|
17
|
-
[32mESM[39m [1mdist/chunk-
|
18
|
-
[32mESM[39m ⚡️ Build success in
|
17
|
+
[32mESM[39m [1mdist/chunk-XRX3CCYY.js.map [22m[32m269.16 KB[39m
|
18
|
+
[32mESM[39m ⚡️ Build success in 43ms
|
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# jazz-tools
|
2
2
|
|
3
|
+
## 0.10.3
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- d8582fc: Fixes co.optional.Date throwing when assigned undefined
|
8
|
+
|
9
|
+
## 0.10.2
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- Updated dependencies [cae3a9e]
|
14
|
+
- cojson@0.10.2
|
15
|
+
|
3
16
|
## 0.10.1
|
4
17
|
|
5
18
|
### Patch Changes
|
@@ -239,6 +239,10 @@ var Encoders = {
|
|
239
239
|
Date: {
|
240
240
|
encode: (value) => value.toISOString(),
|
241
241
|
decode: (value) => new Date(value)
|
242
|
+
},
|
243
|
+
OptionalDate: {
|
244
|
+
encode: (value) => value?.toISOString() || null,
|
245
|
+
decode: (value) => value === null ? void 0 : new Date(value)
|
242
246
|
}
|
243
247
|
};
|
244
248
|
var optional = {
|
@@ -262,7 +266,7 @@ var optional = {
|
|
262
266
|
[SchemaInit]: "json"
|
263
267
|
},
|
264
268
|
Date: {
|
265
|
-
[SchemaInit]: { encoded: Encoders.
|
269
|
+
[SchemaInit]: { encoded: Encoders.OptionalDate }
|
266
270
|
},
|
267
271
|
literal(..._lit) {
|
268
272
|
return { [SchemaInit]: "json" };
|
@@ -3915,4 +3919,4 @@ export {
|
|
3915
3919
|
consumeInviteLink
|
3916
3920
|
};
|
3917
3921
|
/* istanbul ignore file -- @preserve */
|
3918
|
-
//# sourceMappingURL=chunk-
|
3922
|
+
//# sourceMappingURL=chunk-XRX3CCYY.js.map
|