jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

feat(types): add JSONPatchFormatter

Open marcolink opened this issue 2 years ago • 2 comments

Add type definition for JSON Patch formatter matching official Operation definition from http://jsonpatch.com

marcolink avatar Dec 18 '21 02:12 marcolink

@benjamine what do you think? are we good?

marcolink avatar Apr 14 '22 07:04 marcolink

Any updates here? :)

Vinz93 avatar Jul 14 '22 15:07 Vinz93

BUMP - any updates on this?

sghoweri avatar Aug 04 '23 17:08 sghoweri

@sghoweri we eventually created a fork with more typescript support: https://github.com/contentful/jsondiffpatch

I also started an independent project to create patches:

https://github.com/marcolink/generate-json-patch

marcolink avatar Aug 04 '23 17:08 marcolink

@marcolink oh my gosh you're a lifesaver (was just dealing with the Typescript typing issues with this package) 🙏🏼

sghoweri avatar Aug 04 '23 17:08 sghoweri

Elegant array diffing by providing an objectHash to match array elements

Oh snap. This is precisely why we started digging into this library to begin with (array diffing combined with JSON patches). 👀

sghoweri avatar Aug 04 '23 17:08 sghoweri

@Methuselah96 for now we found our way around - looking forward to see the migration happening :) ... Not fully typed but we also started the migration to TS here

marcolink avatar Aug 23 '23 14:08 marcolink