Skip to content

Commit 2cb294e

Browse files
authored
docs(releases): update release notes (tldraw#8415)
In order to keep release notes current with PRs landing on `main` since `v4.5.6`, this PR updates `next.mdx` with 6 new entries and adds missing patch release sections to `v4.5.0.mdx`. ### Change type - [x] `other` ### Test plan - [ ] Unit tests - [ ] End to end tests ### Code changes | Section | LOC change | | ------------- | ---------- | | Documentation | +44 / -2 |
1 parent 5a488c4 commit 2cb294e

2 files changed

Lines changed: 44 additions & 2 deletions

File tree

apps/docs/content/releases/next.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ author: tldraw
55
date: 03/18/2026
66
order: 0
77
status: published
8-
last_version: v4.5.4
8+
last_version: v4.5.6
99
---
1010

11-
This release adds shape attribution with a new `TLUserStore` provider and extensible user records, clipboard hooks for intercepting copy, cut, and paste, custom record types to the store, a new `@tldraw/mermaid` package for converting Mermaid diagrams to native shapes, WebSocket hibernation support for tlsync, a new `@tldraw/editor-controller` package for scripting and automation, RTL language support in the UI, cross-window embedding support, and smarter export trimming. It also includes various other improvements and bug fixes.
11+
This release adds shape attribution with a new `TLUserStore` provider and extensible user records, clipboard hooks for intercepting copy, cut, and paste, custom record types to the store, a new `@tldraw/mermaid` package for converting Mermaid diagrams to native shapes, WebSocket hibernation support for tlsync, a new `@tldraw/editor-controller` package for scripting and automation, RTL language support in the UI, cross-window embedding support, arbitrary iframe embed pasting, and smarter export trimming. It also includes various other improvements and bug fixes.
1212

1313
## What's new
1414

@@ -127,6 +127,10 @@ const schema = createTLSchema({
127127

128128
Note shapes now track and display a "first edited by" attribution label in the bottom-right corner, showing who first added text to the note.
129129

130+
### Arbitrary iframe embeds ([#8306](https://github.com/tldraw/tldraw/pull/8306))
131+
132+
Paste any `<iframe>` embed code onto the canvas to create an embed shape. Previously only URLs matching known providers (YouTube, Google Maps, etc.) worked. Now any valid iframe with an HTTP(S) source creates an embed directly, supporting services like OpenStreetMap, SoundCloud, Loom, and more.
133+
130134
### Cross-window embedding support ([#8196](https://github.com/tldraw/tldraw/pull/8196))
131135

132136
Tldraw now works correctly when embedded in iframes, Electron pop-out windows, and Obsidian plugins where the global `document` and `window` differ from the ones tldraw is mounted in. All bare `document` and `window` references have been replaced with container-aware alternatives.
@@ -135,6 +139,7 @@ New helpers `getOwnerDocument()` and `getOwnerWindow()` are exported from `@tldr
135139

136140
## API changes
137141

142+
- Add support for pasting arbitrary `<iframe>` embed codes to create embed shapes from any service. ([#8306](https://github.com/tldraw/tldraw/pull/8306))
138143
- Add `onBeforeCopyToClipboard`, `onBeforePasteFromClipboard`, and `onClipboardPasteRaw` hooks to `TldrawOptions` for intercepting clipboard operations. Add `TLClipboardWriteInfo` and `TLClipboardPasteRawInfo` types. Export `handleNativeOrMenuCopy` from `@tldraw/tldraw`. ([#8290](https://github.com/tldraw/tldraw/pull/8290))
139144
- Add `CustomRecordInfo` interface, `createCustomRecordId()`, `createCustomRecordMigrationIds()`, `createCustomRecordMigrationSequence()`, `isCustomRecord()`, `isCustomRecordId()` for custom record types. `createTLSchema()` and `createTLStore()` now accept a `records` option. ([#8213](https://github.com/tldraw/tldraw/pull/8213))
140145
- Add `@tldraw/editor-controller` package with `EditorController` class for imperative editor control. ([#7952](https://github.com/tldraw/tldraw/pull/7952))
@@ -156,6 +161,8 @@ New helpers `getOwnerDocument()` and `getOwnerWindow()` are exported from `@tldr
156161
- Exports now automatically trim to visual content bounds, capturing overflow like thick strokes and arrowheads without extra whitespace. ([#8202](https://github.com/tldraw/tldraw/pull/8202))
157162
- Improve resize performance for multiple geo shapes with text labels by batching DOM measurements into a single pass per frame. ([#7949](https://github.com/tldraw/tldraw/pull/7949))
158163
- Move the debug mode toggle into the preferences submenu. ([#8259](https://github.com/tldraw/tldraw/pull/8259))
164+
- Replace `@use-gesture/react` with custom gesture handling, reducing bundle size and eliminating a stale dependency. ([#8392](https://github.com/tldraw/tldraw/pull/8392))
165+
- Tighten iframe `referrerPolicy` to `strict-origin-when-cross-origin` to avoid leaking document URLs to embed providers. ([#8412](https://github.com/tldraw/tldraw/pull/8412))
159166
- Update hotkeys-js keyboard shortcut library from v3 to v4, picking up improvements to keyboard layout handling. ([#8372](https://github.com/tldraw/tldraw/pull/8372))
160167

161168
## Bug fixes
@@ -170,3 +177,6 @@ New helpers `getOwnerDocument()` and `getOwnerWindow()` are exported from `@tldr
170177
- Fix all shapes disappearing when a labeled arrow has zero length due to NaN propagation through the spatial index. ([#8329](https://github.com/tldraw/tldraw/pull/8329))
171178
- Fix "back to content" button flickering when both it and the "move focus to canvas" button are visible. ([#8334](https://github.com/tldraw/tldraw/pull/8334)) (contributed by [@kaneel](https://github.com/kaneel))
172179
- Fix slight positioning drift when pasting text onto the canvas. ([#8345](https://github.com/tldraw/tldraw/pull/8345))
180+
- Fix camera state getting permanently stuck at 'moving' when the editor is disposed mid-camera-transition, blocking all shape interactions. ([#8396](https://github.com/tldraw/tldraw/pull/8396))
181+
- Fix missing sandbox attribute on GitHub Gist embeds. ([#8403](https://github.com/tldraw/tldraw/pull/8403))
182+
- Restrict sandbox permissions for unknown/arbitrary embeds to mitigate security risks from untrusted content. ([#8404](https://github.com/tldraw/tldraw/pull/8404))

apps/docs/content/releases/v4.5.0.mdx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ keywords:
1010
- release
1111
- v4.5
1212
- v4.5.0
13+
- v4.5.3
14+
- v4.5.4
15+
- v4.5.5
16+
- v4.5.6
1317
- transparent-pixels
1418
- embed-definitions
1519
- high-dpi
@@ -135,3 +139,31 @@ const cleanSvg = sanitizeSvg(untrustedSvgText)
135139
- Fix missing alt text on rendered image shapes in some cases. ([#8158](https://github.com/tldraw/tldraw/pull/8158))
136140
- Fix drawing on tablets that report zero pen pressure. ([#5693](https://github.com/tldraw/tldraw/pull/5693))
137141
- Fix `create-tldraw` CLI to always create a subdirectory from the project name. ([#8161](https://github.com/tldraw/tldraw/pull/8161))
142+
143+
---
144+
145+
## Patch releases
146+
147+
### v4.5.3
148+
149+
- Fix dynamic import file extension handling. ([#8278](https://github.com/tldraw/tldraw/pull/8278))
150+
151+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.5.3)
152+
153+
### v4.5.4
154+
155+
- Fix all shapes disappearing when a labeled arrow has zero length due to NaN propagation through the spatial index. ([#8351](https://github.com/tldraw/tldraw/pull/8351))
156+
157+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.5.4)
158+
159+
### v4.5.5
160+
161+
- Fix camera state getting permanently stuck at 'moving' when the editor is disposed mid-camera-transition. ([#8396](https://github.com/tldraw/tldraw/pull/8396))
162+
163+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.5.5)
164+
165+
### v4.5.6
166+
167+
- Fix crash when isolating curved arrows with degenerate binding geometry. ([#8390](https://github.com/tldraw/tldraw/pull/8390))
168+
169+
[View release on GitHub](https://github.com/tldraw/tldraw/releases/tag/v4.5.6)

0 commit comments

Comments
 (0)