superjson icon indicating copy to clipboard operation
superjson copied to clipboard

refactor: allow individual superjson instances (closes #87)

Open Skn0tt opened this issue 3 years ago • 1 comments

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.

Skn0tt avatar Nov 29 '21 06:11 Skn0tt

@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.

Skn0tt avatar Nov 30 '21 10:11 Skn0tt

It works as intended!

Sorry for the near year late response.

arthur-er avatar Oct 20 '22 15:10 arthur-er

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

Skn0tt avatar Oct 21 '22 08:10 Skn0tt

yeah, i need it again now🤣

arthur-er avatar Oct 21 '22 09:10 arthur-er

published! :)

Skn0tt avatar Oct 21 '22 10:10 Skn0tt

Thanks!

arthur-er avatar Oct 21 '22 10:10 arthur-er