[proposal] Replace Long.js with native BigInt
acrisci opened this issue · 2 comments
acrisci commented
BigInt
is a native way to represent 64 bit integers (dbus type x
) in node.
Available since version 10.8.0.
https://node.green/#ESNEXT-candidate--stage-3--BigInt
https://developers.google.com/web/updates/2018/05/bigint
Do you see any issues with that?
sidorares commented
I was thinking about it, but might be a bit too early?
Maybe OK to go with migger api changes ( async/await etc ) in major version.
CyDragon80 commented
I created a PR #252 with a potential interim solution to at least present the option of marshalling/unmarshalling BigInts when the feature is available. Over time it would probably make sense to shift towards the native type.