19 KiB
v2.1.0 (Tue Apr 23 2024)
Release Notes
Perf: minor drawing speedup (#3464)
- Improve performance of draw shapes.
New migrations again (#3220)
BREAKING CHANGES
-
The
Migrations
type is now calledLegacyMigrations
. -
The serialized schema format (e.g. returned by
StoreSchema.serialize()
andStore.getSnapshot()
) has changed. You don't need to do anything about it unless you were reading data directly from the schema for some reason. In which case it'd be best to avoid that in the future! We have no plans to change the schema format again (this time was traumatic enough) but you never know. -
compareRecordVersions
and theRecordVersion
type have both disappeared. There is no replacement. These were public by mistake anyway, so hopefully nobody had been using it. -
compareSchemas
is gone. Comparing the schemas directly is no longer really possible since we introduced some fuzziness. The best thing to do now to check compatibility is to callschema.getMigraitonsSince(prevSchema)
and it will return an error if the schemas are not compatible, an empty array if there are no migrations to apply since the prev schema, and a nonempty array otherwise.Generally speaking, the best way to check schema compatibility now is to call
store.schema.getMigrationsSince(persistedSchema)
. This will throw an error if there is no upgrade path from thepersistedSchema
to the current version. -
defineMigrations
has been deprecated and will be removed in a future release. For upgrade instructions see https://tldraw.dev/docs/persistence#Updating-legacy-shape-migrations-defineMigrations -
migrate
has been removed. Nobody should have been using this but if you were you'll need to find an alternative. For migrating tldraw data, you should stick to usingschema.migrateStoreSnapshot
and, if you are building a nuanced sync engine that supports some amount of backwards compatibility, also feel free to useschema.migratePersistedRecord
. -
the
Migration
type has changed. If you need the old one for some reason it has been renamed toLegacyMigration
. It will be removed in a future release. -
the
Migrations
type has been renamed toLegacyMigrations
and will be removed in a future release. -
the
SerializedSchema
type has been augmented. If you need the old version specifically you can useSerializedSchemaV1
Input buffering (#3223)
- Add a brief release note for your PR here.
Fix lag while panning + translating at the same time (#3186)
- Add a brief release note for your PR here.
Performance improvements (#2977)
- Improves the performance of rendering.
Protect local storage calls (#3043)
- Fixes a bug that could cause crashes in React Native webviews.
💥 Breaking Change
- Performance improvements #2977 (@MitjaBezensek @steveruizok)
📚 SDK Changes
- Perf: minor drawing speedup #3464 (@steveruizok)
- New migrations again #3220 (@ds300 @steveruizok)
- Perf: slightly faster
getShapeAtPoint
#3416 (@steveruizok) - Input buffering #3223 (@MitjaBezensek @steveruizok)
- use native structuredClone on node, cloudflare workers, and in tests #3166 (@si14)
- Fix lag while panning + translating at the same time #3186 (@ds300 @steveruizok)
- fixup file helpers #3130 (@SomeHats)
🏠 Internal
- Add two simple perf helpers. #3399 (@MitjaBezensek)
🐛 Bug Fixes
- chore: cleanup multiple uses of FileReader #3110 (@mimecuvalo)
- Wrap local/session storage calls in try/catch (take 2) #3066 (@SomeHats)
- Revert "Protect local storage calls (#3043)" #3063 (@SomeHats)
- Protect local storage calls #3043 (@steveruizok)
Authors: 6
- alex (@SomeHats)
- Dan Groshev (@si14)
- David Sheldrick (@ds300)
- Mime Čuvalo (@mimecuvalo)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
v2.0.0-beta.5 (Thu Feb 29 2024)
Release Notes
fix structured clone reference in drawing (#2945)
- Fixes a reference to structuredClone that caused a crash on older browsers.
🐛 Bug Fix
- fix structured clone reference in drawing #2945 (@steveruizok)
🔩 Dependency Updates
- bump typescript / api-extractor #2949 (@steveruizok)
Authors: 1
- Steve Ruiz (@steveruizok)
v2.0.0-beta.4 (Wed Feb 21 2024)
🐛 Bug Fix
🏠 Internal
- dev: swap yarn test and test-dev for better dx #2773 (@mimecuvalo)
Authors: 2
- alex (@SomeHats)
- Mime Čuvalo (@mimecuvalo)
v2.0.0-beta.3 (Tue Feb 13 2024)
Release Notes
Split snap manager into ShapeBoundsSnaps and HandleSnaps (#2747)
SnapLine
s are now calledSnapIndicator
s- Snapping methods moved from
editor.snaps
toeditor.snaps.shapeBounds
andeditor.snaps.handles
depending on the type of snapping you're trying to do.
dev: add test-dev command for easier testing of packages (#2627)
- Adds easier testing command for individual packages.
💥 Breaking Change
- Split snap manager into ShapeBoundsSnaps and HandleSnaps #2747 (@SomeHats)
- faster image processing in default asset handler #2441 (@SomeHats)
🚀 Enhancement
🏠 Internal
- Unbiome #2776 (@si14)
- dev: add test-dev command for easier testing of packages #2627 (@mimecuvalo)
🧪 Tests
- Bump jest to fix weird prettier bug #2716 (@steveruizok)
🔩 Dependency Updates
Authors: 4
- alex (@SomeHats)
- Dan Groshev (@si14)
- Mime Čuvalo (@mimecuvalo)
- Steve Ruiz (@steveruizok)
v2.0.0-beta.2 (Wed Jan 10 2024)
Release Notes
Add url validation (#2428)
- Add validation to urls.
Fix trademark links (#2380)
- Fixes broken links in a number of docs files.
🐛 Bug Fix
- Add url validation #2428 (@MitjaBezensek @SomeHats)
📝 Documentation
- Fix trademark links #2380 (@nonparibus)
- Another typo fix. #2366 (@steveruizok)
Authors: 4
- alex (@SomeHats)
- David @ HASH (@nonparibus)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
v2.0.0-beta.1 (Wed Dec 20 2023)
💥 Breaking Change
- bump to beta #2364 (@steveruizok)
- Change licenses to tldraw #2167 (@steveruizok)
🐛 Bug Fix
Authors: 2
- alex (@SomeHats)
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.19 (Tue Dec 12 2023)
Release Notes
fix vite HMR issue (#2279)
- Fixes a bug that could cause crashes due to a re-render loop with HMR #1989
🐛 Bug Fix
Authors: 2
v2.0.0-alpha.18 (Fri Nov 10 2023)
🏠 Internal
- Revert "bump prerelease from alpha to beta" #2192 (@ds300)
- bump prerelease from alpha to beta #2148 (@ds300)
Authors: 1
- David Sheldrick (@ds300)
v2.0.0-alpha.16 (Wed Oct 11 2023)
🏠 Internal
- Publish api.json #2034 (@steveruizok)
Authors: 1
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.15 (Fri Oct 06 2023)
Release Notes
tldraw zero - package shuffle (#1710)
- [@tldraw/editor] lots, wip
- [@tldraw/ui] gone, merged to tldraw/tldraw
- [@tldraw/polyfills] gone, merged to tldraw/editor
- [@tldraw/primitives] gone, merged to tldraw/editor / tldraw/tldraw
- [@tldraw/indices] gone, merged to tldraw/editor
- [@tldraw/file-format] gone, merged to tldraw/tldraw
💥 Breaking Change
- move some utils into tldraw/utils #1750 (@steveruizok)
- tldraw zero - package shuffle #1710 (@steveruizok @SomeHats)
Authors: 2
- alex (@SomeHats)
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.14 (Tue Jul 04 2023)
Release Notes
[feature] add meta
property to records (#1627)
- todo
🚀 Enhancement
- [feature] add
meta
property to records #1627 (@steveruizok)
Authors: 1
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.13 (Wed Jun 28 2023)
Release Notes
Styles API (#1580)
mini defineShape
API (#1563)
[dev-facing, notes to come]
Stricter ID types (#1439)
[internal only, covered by #1432 changelog]
Create @tldraw/indices package (#1426)
- [@tldraw/editor] Remove fractional indices code into
@tldraw/indices
- [@tldraw/indices] Create library for fractional indices code
avoid lazy race conditions (#1364)
[internal only]
presence-related fixes (#1361)
- Fix a bug where creating a page could throw an error in some multiplayer contexts.
💥 Breaking Change
- Styles API #1580 (@SomeHats @steveruizok)
- mini
defineShape
API #1563 (@SomeHats) - Create @tldraw/indices package #1426 (@steveruizok)
🐛 Bug Fix
- Asset improvements #1557 (@MitjaBezensek)
- Stricter ID types #1439 (@SomeHats @steveruizok)
- presence-related fixes #1361 (@ds300)
- readmes #1195 (@steveruizok)
- [chore] update lazyrepo #1211 (@ds300)
- derived presence state #1204 (@ds300)
- [lite] upgrade lazyrepo #1198 (@ds300)
- transfer-out: transfer out #1195 (@SomeHats)
⚠️ Pushed to main
- update lazyrepo (@ds300)
🏠 Internal
Authors: 4
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Mitja Bezenšek (@MitjaBezensek)
- Steve Ruiz (@steveruizok)
v2.0.0-alpha.12 (Mon Apr 03 2023)
🐛 Bug Fix
- Make sure all types and build stuff get run in CI #1548 (@SomeHats)
- make sure error annotations can't throw #1550 (@SomeHats)
- Fix an error with importing certain files. #1547 (@MitjaBezensek)
- add pre-commit api report generation #1517 (@SomeHats)
- [chore] restore api extractor #1500 (@steveruizok)
- [improvement] docs / api cleanup #1491 (@steveruizok)
- David/publish good #1488 (@ds300)
- [chore] alpha 10 #1486 (@ds300)
- [chore] bump for alpha 8 #1485 (@steveruizok)
- stop using broken-af turbo for publishing #1476 (@ds300)
- [chore] add canary release script #1423 (@ds300 @steveruizok)
- [chore] upgrade yarn #1430 (@ds300)
- repo cleanup #1426 (@steveruizok)
- Vscode extension #1253 (@steveruizok @MitjaBezensek @orangemug)
Authors: 5
- alex (@SomeHats)
- David Sheldrick (@ds300)
- Mitja Bezenšek (@MitjaBezensek)
- Orange Mug (@orangemug)
- Steve Ruiz (@steveruizok)
@tldraw/utils
2.0.0-alpha.10
Patch Changes
- fix some package build scripting
2.0.0-alpha.9
Patch Changes
- 4b4399b6e: redeploy with yarn to prevent package version issues
2.0.0-alpha.8
Patch Changes
- Release day!
2.0.0-alpha.7
Patch Changes
- Bug fixes.
2.0.0-alpha.6
Patch Changes
- Add licenses.
2.0.0-alpha.5
Patch Changes
- Add CSS files to tldraw/tldraw.
2.0.0-alpha.4
Patch Changes
- Add children to tldraw/tldraw
2.0.0-alpha.3
Patch Changes
- Change permissions.
2.0.0-alpha.2
Patch Changes
- Add tldraw, editor
0.1.0-alpha.11
Patch Changes
- Fix stale reactors.
0.1.0-alpha.10
Patch Changes
- Fix type export bug.
0.1.0-alpha.9
Patch Changes
- Fix import bugs.
0.1.0-alpha.8
Patch Changes
- Changes validation requirements, exports validation helpers.
0.1.0-alpha.7
Patch Changes
-
- Pre-pre-release update
0.0.2-alpha.1
Patch Changes
- Fix error with HMR
0.0.2-alpha.0
Patch Changes
- Initial release