fix(deps): update dependency @portabletext/react to v6#258
Open
renovate[bot] wants to merge 2 commits into
Open
fix(deps): update dependency @portabletext/react to v6#258renovate[bot] wants to merge 2 commits into
renovate[bot] wants to merge 2 commits into
Conversation
🦋 Changeset detectedLatest commit: f1d06e6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
7b4fe2e to
95739a9
Compare
04b8ae1 to
24819f5
Compare
bfad650 to
6d45e64
Compare
23965c6 to
d081846
Compare
cc8e5cb to
df1a852
Compare
dc4da42 to
3bb70b8
Compare
b402ea0 to
bfd0ad3
Compare
423440d to
bd4e1a5
Compare
587d242 to
230721f
Compare
e1aa7e6 to
beb057b
Compare
7e6225c to
7b20458
Compare
978a0b6 to
c7d0235
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^4.0.3→^6.2.0Release Notes
portabletext/react-portabletext (@portabletext/react)
v6.2.0Compare Source
Minor Changes
#309
575c9b4Thanks @stipsan! - TypeGen-aware Portable Text components<PortableText>now infers the shape of every component handler from thevalueprop. When you pass a value typed by Sanity TypeGen,components.types,components.marks,components.block,components.list, andcomponents.listItemall receive precisevalueprops for the exact content the query returned.Three new utility types ship with this feature:
InferComponents<T>- same inference as the inlinecomponentsprop, for hoisting components out of JSX.InferStrictComponents<T>- strict variant that requires a handler for every inferred custom type, mark, block style, and list style, and rejects handlers that aren't in the schema (and therefore not visible to TypeGen).InferValue<T>- derives a Portable Text array value type from any TypeGen query result type, useful for re-usable wrapper components.Schema
Every example below assumes the same
sanity.config.ts:Before: hand-typing handlers
Previously, every handler had to be typed by hand to mirror the generated query shape:
After: automatic inference
Now the same handler is fully typed straight from
data.content:InferComponents: hoisting components without losing inferenceMove the
componentsmap out of JSX and keep the same inferred handler types:InferStrictComponents+InferValue: a strict, re-usable wrapperInferValue<SanityQueries[keyof SanityQueries]>collects every Portable Text item shape from every registered TypeGen query into an array value type, andInferStrictComponentsrequires a handler for each of them. Together they're perfect for a singleCustomPortableTextyou reuse across the app:v6.1.0Compare Source
Minor Changes
ad886e6Thanks @copilot-swe-agent! - Thevalueprop now acceptsnull | undefined, and handles it appropriately, to reduce friction when using<PortableText>with Sanity TypeGenv6.0.3Compare Source
Patch Changes
#293
cec15e4Thanks @renovate! - fix(deps): update dependency @portabletext/toolkit to ^5.0.2#294
535636cThanks @renovate! - fix(deps): update dependency @portabletext/types to ^4.0.2v6.0.2Compare Source
Patch Changes
54d44dcThanks @renovate! - fix(deps): update dependency @portabletext/toolkit to ^5.0.1v6.0.1Compare Source
Patch Changes
a684e18Thanks @renovate! - fix(deps): update dependency @portabletext/types to ^4.0.1v6.0.0Compare Source
Major Changes
7fb298bThanks @renovate! - fix(deps): update dependency @portabletext/types to v4Patch Changes
2877ea0Thanks @renovate! - fix(deps): update dependency @portabletext/toolkit to v5v5.0.0Compare Source
Major Changes
#241
4297499Thanks @stipsan! - CJS exports removedf8901eaThanks @stipsan! - Support for node versions older than v20.19 dropped#246
ecbb6b7Thanks @renovate! - fix(deps): update dependency @portabletext/toolkit to v4#247
4efd54eThanks @renovate! - fix(deps): update dependency @portabletext/types to v3Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate using a curated preset maintained by
. View repository job log here