Version Packages - #3256
Open
ecoscript[bot] wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Bundle Stats✅ No significant changes. All scenario measurements (7)🗺️
Significant means at least 1.0 KB and 1% gzip, or at least 5 ms and 10% import time. |
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 9, 2026 09:37
5fa1ea7 to
8094a84
Compare
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 9, 2026 10:40
8094a84 to
84aea8c
Compare
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 10, 2026 07:03
84aea8c to
573d663
Compare
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 10, 2026 09:28
573d663 to
216de93
Compare
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 10, 2026 12:10
216de93 to
5834dca
Compare
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 11, 2026 07:02
5834dca to
f91d0ff
Compare
ecoscript
Bot
force-pushed
the
changeset-release/main
branch
from
September 11, 2026 07:03
f91d0ff to
a7420a5
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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@portabletext/markdown@2.2.0
Minor Changes
#3255
02e2d49Thanks @christianhg! - feat: gate the default markdown renderers on the schema inportableTextToMarkdownportableTextToMarkdownnow accepts an optionalschema. When set, each built-in type renderer (callout,code,horizontal-rule,html,image,table) runs only when the schema declares that type at the matching position (blockObjectsfor a block,inlineObjectsfor an inline object); an undeclared type falls back tounknownType, whose default output is ajson:objectfence (or tagged code span, inline) that reparses back to the same value under the same schema. Renderers you pass intypesare never gated. The gate checks the type name only, so declare each type with its fields:markdownToPortableTextcannot rebuild a value from a fieldless declaration. Omitschemaand every default renderer stays active, as before.Pass the same schema to
markdownToPortableTextto keep the round trip consistent.Patch Changes
#3265
3b2d278Thanks @christianhg! - fix: serialize images the parser would refuse asjson:objectfencesAn
imagewhosesrca Markdown parser would refuse (adata:URI outsidepng/gif/jpeg/webp, or ajavascript:/vbscript:/file:URI) previously serialized asanyway; reparsing that markdown turned the image into literal text instead of an image object, destroying it. Such an image now serializes as ajson:objectfence (or, inline, a tagged code span), which reparses back to the identical image value. Images with an acceptedsrcare unaffected.#3255
d39146eThanks @christianhg! - fix: use the inlinejson:objectcarrier for objects inside table cellsIn
portableTextToMarkdown, an object inside a table cell that renders through thejson:objectcarrier now uses the carrier's single-line inline form instead of a block fence squashed with<br>.In
markdownToPortableText, a carrier object standing alone in a table cell is placed by the schema: it comes back at block position in the cell (cell.value), unless the schema declares the type inline-only, in which case it stays an inline child of the cell's text block. The same placement rule now governs standalone images, so under a schema without a block-levelimage, an image alone in a cell stays inline (reported asimage-block-to-inline) instead of being lifted to block position.Together the two sides make objects in table cells survive the serialize-edit-reparse round trip.
#3264
deccf84Thanks @christianhg! - fix: emit no blank lines for empty text blocksA block that renders to the empty string (an empty or whitespace-only text block, or a custom renderer returning
'') no longer leaves blank lines inportableTextToMarkdown's output:[h1 'foo', empty block, 'bar']now serializes to# foo\n\nbarinstead of# foo\n\n\n\nbar. A dropped block never survived reparsing anyway, and a customblockSpacingcallback now sees the pair of blocks that actually end up adjacent, never an invisible one. Two spacing consequences show in rendered HTML: two blockquotes separated only by an empty block now join into one quote with a paragraph break, and a list whose blank lines came only from empty blocks goes tight, since a skipped block no longer counts toward looseness.The same filter runs inside containers: callout and structured-blockquote content joins skip empty blocks, so no more blank quote-prefixed lines. In list items, the marker line goes to the first block that renders output, with two exceptions that keep the markdown reparseable: a multi-line block (a code fence, a table) keeps its later lines indented inside the item instead of escaping the list at column 0, and a nested list or, on a task item, any non-text block stays indented below a bare marker, because after
- [x](or fused with-) it would reparse as plain words.@portabletext/editor@8.1.4
Patch Changes
#3257
df4b4acThanks @christianhg! - fix: remove the local placeholder on a remote rootinsertafter a self-emittedunsetAfter clearing the field under a value-mirroring host, a collaborator's block arriving through
patchesno longer leaves an extra empty block in the editor; the editor shows only the collaborator's content. One additional change: an empty block that a host genuinely persisted in the window after the editor's ownunsetis now removed from the editor when a remote rootinsertarrives, until the next value sync restores it; distinguishing it from the editor's own placeholder takes provenance metadata, which is follow-up work.#3253
a4bea35Thanks @christianhg! - fix: re-materialize the field before patches emitted while it is unsetA behavior replacing the whole value in one action set (a root
unsetfollowed by aninsert) previously emitted a patch stream that patch-applying stores could not apply: aninsertinto a field the precedingunsethad removed. Consumers sawCannot apply deep operations on primitive values.One narrow behavioral fix rides along: clearing the editor through a behavior-raised root
unsetnow re-materializes the field on the next edit under a value-mirroring host, the same way clearing it with the keyboard already did.@portabletext/plugin-character-pair-decorator@9.0.9
Patch Changes
@portabletext/plugin-dnd@2.0.10
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-emoji-picker@8.0.9
Patch Changes
@portabletext/plugin-input-rule@7.0.9
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-list-index@2.0.8
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-markdown-shortcuts@9.0.9
Patch Changes
@portabletext/plugin-one-line@8.0.8
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-paste-link@5.0.8
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-sdk-value@8.1.3
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-table@2.0.8
Patch Changes
@portabletext/editor@^8.1.4@portabletext/plugin-typeahead-picker@7.0.9
Patch Changes
@portabletext/plugin-typography@9.0.9
Patch Changes
@portabletext/toolbar@9.0.9
Patch Changes
@portabletext/editor@^8.1.4