ponder 0.11.30 → 0.11.31
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# ponder
|
|
2
2
|
|
|
3
|
+
## 0.11.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#1880](https://github.com/ponder-sh/ponder/pull/1880) [`291249a`](https://github.com/ponder-sh/ponder/commit/291249a4eda361a2f9e36cd840b0d1c073a76e9c) Thanks [@normanzb](https://github.com/normanzb)! - Fixed a bug with date column encoding for GraphQL. This bug would cause the error: `value.toISOString is not a function`.
|
|
8
|
+
|
|
3
9
|
## 0.11.30
|
|
4
10
|
|
|
5
11
|
## 0.11.29
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import superjson from "superjson";
|
|
1
2
|
/**
|
|
2
3
|
* Serialize function that handles BigInt.
|
|
3
4
|
*
|
|
@@ -7,7 +8,7 @@
|
|
|
7
8
|
* @returns the stringified output
|
|
8
9
|
*/
|
|
9
10
|
export function serialize(value) {
|
|
10
|
-
return
|
|
11
|
+
return superjson.stringify(value);
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Deserialize function that handles BigInt.
|
|
@@ -18,6 +19,6 @@ export function serialize(value) {
|
|
|
18
19
|
* @returns the output object
|
|
19
20
|
*/
|
|
20
21
|
export function deserialize(value) {
|
|
21
|
-
return
|
|
22
|
+
return superjson.parse(value);
|
|
22
23
|
}
|
|
23
24
|
//# sourceMappingURL=serialize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../src/utils/serialize.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,
|
|
1
|
+
{"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../src/utils/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC;;;;;;;GAOG;AACH,MAAM,UAAU,SAAS,CAAC,KAAU;IAClC,OAAO,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;AACpC,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,OAAO,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -15,5 +15,5 @@ export declare function serialize(value: any): string;
|
|
|
15
15
|
* @param value to parse
|
|
16
16
|
* @returns the output object
|
|
17
17
|
*/
|
|
18
|
-
export declare function deserialize
|
|
18
|
+
export declare function deserialize(value: string): any;
|
|
19
19
|
//# sourceMappingURL=serialize.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/utils/serialize.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/utils/serialize.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,GAAG,UAEnC;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,CAE9C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ponder",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.31",
|
|
4
4
|
"description": "An open-source framework for crypto application backends",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"rimraf": "^5.0.5",
|
|
96
96
|
"tsx": "^4.19.2",
|
|
97
97
|
"vitest": "^1.0.2",
|
|
98
|
-
"@ponder/client": "0.11.
|
|
98
|
+
"@ponder/client": "0.11.31"
|
|
99
99
|
},
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=18.14"
|
package/src/utils/serialize.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import superjson from "superjson";
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Serialize function that handles BigInt.
|
|
3
5
|
*
|
|
@@ -7,9 +9,7 @@
|
|
|
7
9
|
* @returns the stringified output
|
|
8
10
|
*/
|
|
9
11
|
export function serialize(value: any) {
|
|
10
|
-
return
|
|
11
|
-
typeof v === "bigint" ? { __type: "bigint", value: v.toString() } : v,
|
|
12
|
-
);
|
|
12
|
+
return superjson.stringify(value);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -20,8 +20,6 @@ export function serialize(value: any) {
|
|
|
20
20
|
* @param value to parse
|
|
21
21
|
* @returns the output object
|
|
22
22
|
*/
|
|
23
|
-
export function deserialize
|
|
24
|
-
return
|
|
25
|
-
value_?.__type === "bigint" ? BigInt(value_.value) : value_,
|
|
26
|
-
);
|
|
23
|
+
export function deserialize(value: string): any {
|
|
24
|
+
return superjson.parse(value);
|
|
27
25
|
}
|