superjson
superjson copied to clipboard
refactor: allow individual superjson instances (closes #87)
this allows the creation of individual superjson instances, so there can be multiple different configurations. it keeps the global instance in place for backwards compatibility, and b/c most users will be fine with one global config.
@arthur-er I implemented your request with this Draft, and published to 1.9.0-0
. Can you try that version out and report if it works for you?
new SuperJSON()
should give you two independent instances.
It works as intended!
Sorry for the near year late response.
good to hear that :D do you still need the functionality? if not, I'll hold out on merging this until somebody needs it - the less complexity, the better :D
yeah, i need it again now🤣
published! :)
Thanks!