superjson icon indicating copy to clipboard operation
superjson copied to clipboard

fix: input escape mapping

Open Skn0tt opened this issue 1 year ago • 1 comments

Closes https://github.com/flightcontrolhq/superjson/issues/310

There's a bug in the path escaping logic where meta was applied to the wrong values. This PR fixes the escape bug. It also introduces a version tag to toggle the path escaping when deserializing. This ensures backwards compatibility for SuperJSON results that were created on a version with the bug.

Skn0tt avatar Jan 17 '25 09:01 Skn0tt

Is there any schedule to publish this? Thank you very much

hanayashiki avatar May 12 '25 10:05 hanayashiki

Hello @Skn0tt @flybayer, thanks for implementing this amazing fix. It works great for my use case (deserializing dot string property names combined with custom classes). I see the pr is already merged into main. Would it be possible to publish a new npm version of superjson soon with this fix included?

jdachtera avatar Oct 10 '25 20:10 jdachtera

cc @flybayer

Skn0tt avatar Oct 13 '25 12:10 Skn0tt