@tiptap/extension-code-block
3.35.0 · 20 Nov 2026MIT34.9M / weekRepositoryHomepagenpmAtom feed
Upgrading @tiptap/extension-code-block From 2.11.3 to 3.35.0
147 releases in betweennotes for 134
Reading releases, release notes and advisories…
- 2+
- changes to make
- 0
- advisories fixed
- 105+
- new
- 319+
- fixes
Counted from 134 of 147 release notes. Advisories are counted from the advisory database, in full.
Start here
Before you upgrade
Tick each one off as you go- Breaking3.7.1
- Breaking3.6.0
Security
- 3.31.2
Bump
prosemirror-viewto^1.42.3, which fixes an XSS vulnerability where pasting crafted HTML could run arbitrary JavaScript (GHSA-c8x8-7fp4-3x9w). - 3.7.2
Fix CVE-2025-62410 by updating happy-dom to ^20.0.2
- 3.6.7
Fix CVE-2025-61927 by bumping happy-dom to 20.0.0
- 3.0.8
Bump linkifyjs version to latest to address the recently discovered prototype pollution vulnerability
Release by release
- New
Added the
openWithoutDelayoption. With it, a Details created open shows its content as soon as it is drawn, instead of one tick later, so code that measures right after drawing reads the full height. It is off by default and only has an effect together withpersist. - Fixed
nodeInputRulewith a capture group no longer inserts the last typed character twice when the rule runs on text input. - Fixed
Preserve deleted elements' original attributes and text when comparing collaboration snapshots.
- Fixed
Make typing in large collaborative documents faster by skipping unchanged content that comes before the edit.
- New
- New
getEditorContextnow describes the charts and diagrams of@tiptap-pro/extension-diagrams, so the AI can read, add and change them. - New
Added a
continuesNodeoption. Textblocks it marks as continuing the textblock before them are searched as one text, so a phrase that runs from one into the next is found, highlighted and replaced. - Fixed
Fix Backspace undo after automatic formatting when used with extensions such as UniqueID.
- Fixed
Correct
setContentdocumentation
- New
- New
yCursorPluginnow publishes alastSelectionawareness field with each collaborative field's latest selection and whether its editor is focused. Unlikecursor, it stays after the editor loses focus, so other clients can still read the selection.lastSelectionis now reserved and can't be used as the cursor field. - Fixed
Deleting a text selection that spans the whole document no longer leaves the deleted text's marks active, so text typed into the emptied editor is no longer bold, linked or otherwise marked.
- Fixed
The first
goToNextResult()orgoToPreviousResult()after a new search now selects the highlighted first result instead of skipping it.
- New
- New
With
enableContentCheck: true, shared content that does not fit the editor schema now emitscontentErrorinstead of being deleted. The editor pauses editing and sends no changes until compatible content arrives, so read-only users no longer send repairs that the server rejects. - New
Add the
onInvalidContentsync option. When it is set, shared content that does not fit the editor schema stays in the shared document instead of being deleted. The editor shows what it can, pauses editing and sends no changes until compatible content arrives.
- New
- New
Remove persistent position migrations to stop structural edits and undo or redo from adding migration history to collaborative documents. Saved relative positions no longer follow content that structural edits replace or move.
- Fixed
Clearing formatting on a nested list now turns every level into paragraphs, and
clearNodes()works in a chain with other node commands. - Fixed
Stop removed resizable node views from responding to later editor updates.
- Fixed
Bubble menus now update correctly after IME input, including Korean text
- New
3.32.1 – 3.32.22 releases, no release note
- New
Add the
schemaSpeceditor option to use an external ProseMirror schema structure with local extension behavior. - Fixed
A literal
!directly before a link is now escaped when serializing to Markdown, so the link is no longer parsed back as an image. - Fixed
Update ProseMirror dependencies to their latest versions.
- Fixed
Fix
useEditorStateoverflowing the stack when a selector returns a value with circular references, such aseditor.stateafter one stored mark replaces another.
- New
- Fixed
The mathematics extension no longer crashes the editor in older WebKit browsers and WKWebView.
- Fixed
Fix a
TypeErrorthrown when the source editor is destroyed right after dragging content into another editor. - Fixed
splitBlockno longer throwsTransformError: Inserted content deeper than insertion positionwhen the selection spans block boundaries (for example from the start of one paragraph into another block, or across an isolating node). The command now returnsfalsewhen the split is not possible. - Fixed
Prevent extra CSS declarations from being rendered from editor content.
- Fixed
12 other lines we could not sort, mostly version bumps
- 3.7.0
editor.getMarkdown(): Serialize current editor content to Markdown string - 3.7.0
editor.markdown: Access to MarkdownManager instance for advanced operations - 3.7.0
contentType: Control the type of content that is inserted into the editor. Can bejson,htmlormarkdown- defaults tojsonand will automatically detect invalid content types (like JSON when it is actually Markdown). - 3.7.0
setContent(markdown, { contentType: 'markdown' }): Replace editor content with markdown - 3.7.0
insertContent(markdown, { contentType: 'markdown' }): Insert markdown at cursor position - 3.7.0
insertContentAt(position, markdown, { contentType: 'markdown' }): Insert Markdown at specific position - 3.0.1
The StarterKit extension now includes more extensions by deafult
- 3.0.1
The Table, Details and List extensions now include all their sub-packages. The Table and List extensions also export new Kit extensions to quickly register all of them in one go.
- 2.12.0
Update prosemirror-changeset library to support token encoders
- 2.11.6
Remove redundant optional chaining in starter kit extension
219 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.