Pelle Wessman

Results 749 comments of Pelle Wessman

For reference, ajv tried using this library, but since this library relies on `node:url` they accidentally broke browser compatibility: https://github.com/ajv-validator/ajv/pull/2415 So if anyone wants to collaborate with them or suggest...

> So, wondering if this is a bug fix or if it's a breaking change of current behaviour. > > Certainly it fixes how I intended it to work… 🤔...

I think this was completed in https://github.com/sindresorhus/type-fest/pull/741

@stefanprobst Lets keep track of that in #860, easier to pinpoint then. Does that sound good?

Does this feature work for shared renovate configs that are split into multiple files? Like eg mine: https://github.com/voxpelli/renovate-config

> fixing that without knowledge about the current formatting (like prettier) is pretty much impossible. You would need to parse the JSON while persisting formatting data, you could maybe use...

There's this parser from @ota-meshi that supports JSON5, JSONC and plain JSON: https://github.com/ota-meshi/jsonc-eslint-parser Though it seems to currently only do parsing, not serializing. Ideally there would be a JSON Patch...

Sorry for the spam here, but I did some more searching and found this module by @noahsug which seems to do the trick: https://www.npmjs.com/package/json5-writer It didn't like `null` values, but...

@rarkins My belief is that you can give the full modified JS object to `write()` But yeah, would probably need to be forked and self-published unless the original author shows...

> `.write(value)` > > Updates the JSON / JSON5 string with the new value. Any field or property that doesn't exist in value is removed. > > To keep an...