Open momocow opened 1 year ago
I propose to use serialize-javascript instead of JSON.stringify to serialize state, in order to support structures like BigInt.
serialize-javascript
JSON.stringify
https://github.com/AlexandreDecollas/eventstore-ts-projection-builder/blob/abbb97bf49ef446203593b2385a98598f24b78f9/src/handlers/init/standard/init.handler.ts#L2-L4
AFAIK protobuf support bigint as string type, no other structure support, so I change the title to request for BigInt only.
I propose to use
serialize-javascript
instead ofJSON.stringify
to serialize state, in order to support structures like BigInt.https://github.com/AlexandreDecollas/eventstore-ts-projection-builder/blob/abbb97bf49ef446203593b2385a98598f24b78f9/src/handlers/init/standard/init.handler.ts#L2-L4