AlexandreDecollas / eventstore-ts-projection-builder

Other
8 stars 0 forks source link

[Feature Request] Support BigInt in InitHandler #1

Open momocow opened 1 year ago

momocow commented 1 year ago

I propose to use serialize-javascript instead of JSON.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

momocow commented 1 year ago

AFAIK protobuf support bigint as string type, no other structure support, so I change the title to request for BigInt only.