tldraw SDK 5.4

Hi, it’s Steve from tldraw here.
We’ve just landed version 5.4 of the tldraw SDK. This month was all about the nitty-gritty. We’ve squashed a lot of bugs and made edge-case interactions smoother and more satisfying.
In this release, we made over 200 updates, one of the most significant upgrades we’ve ever pushed.
Read the full release notes if you want to nerd out on it, or check out the highlights below.
Multiple file import
In this update, multiple files will successfully import even if one is invalid. Before, the entire import would fail, but now the valid files will still import, and the invalid file will be flagged.
Control = erase
We already had the best-in-canvas eraser out there, but now it’s even better. In this release, we added the ability to hold ⌘ or Ctrl while using the drawing tool to hot-swap to the eraser.
Pasting from context
Pasting from the context menu will center the pasted content on the canvas location where you first opened the menu, rather than on your cursor's position when you clicked Paste.
Text and bookmark shapes
Text and bookmark shapes are now created by pasting and will also be selected. This matches the select-on-paste behavior of other shape types on the canvas.
Screen refresh rates
Two new updates about screen refresh rates: they no longer affect the friction of camera panning movements or the speed of edge scrolling.
Other improvements:
- Typing now counts as presence, as well as mouse movement - so you won’t fade out of visibility as a collaborator as you type that paragraph
- Local edits made within 350ms of closing a tab are no longer lost
- Flatten to image - previously used to produce different groupings depending on selection order, now the grouping is consistent
Bug fixes:
- Fixed a variety of issues around changing selection or deleting shapes while in crop mode
- Fixed issues where packing or stacking shapes of different heights caused gaps
- Fixed multi-asset uploading where an invalid asset would cause the whole upload to fail. Now the valid assets will upload correctly, and you’ll see an error message about the invalid asset
Thanks to all of the developers this month who opened issues or built something awesome with the tldraw SDK. Follow us on Twitter/X or join us on Discord for more discussion and to share your work!
If you’re new to tldraw, it’s easy to get started with npm create tldraw@latest or through one of our starter kits.