Skip to content

Conversation

@igalklebanov
Copy link
Member

@igalklebanov igalklebanov commented May 2, 2025

Hey 👋

reopens #1170

This PR revisits ParseJSONResultsPlugin and attempts to provide more fine-grained control to consumers.

  • skipKeys allows you to specify columns to not parse in a result object.
  • reviver allows passing a custom reviver function to the JSON.parse invocations. This can allow you to instantiate native Dates, or omit keys.
  • __proto__ keys are always deleted to deny prototype pollution.
  • isJSON allows overriding what is or what isn't considered a JSON string before attempting to JSON.parse it.

@vercel
Copy link

vercel bot commented May 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2025 2:40am

@igalklebanov igalklebanov force-pushed the parse-json-omit-keys branch from 60f32e2 to a3b3ff5 Compare May 2, 2025 21:46
@igalklebanov igalklebanov marked this pull request as ready for review May 2, 2025 21:46
@pkg-pr-new
Copy link

pkg-pr-new bot commented May 2, 2025

kysely_koa_example

npm i https://pkg.pr.new/kysely-org/kysely@1453

commit: e75a112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

built-in plugin Related to a built-in plugin enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants