# v2.2.0 (Tue Jun 11 2024) ### Release Notes #### Update validation.ts ([#3324](https://github.com/tldraw/tldraw/pull/3324)) - Update example for Union type --- I believe this type was changed and `literal` is what it should be now. --- #### ๐Ÿ“š SDK Changes - Force `interface` instead of `type` for better docs [#3815](https://github.com/tldraw/tldraw/pull/3815) ([@SomeHats](https://github.com/SomeHats)) #### ๐Ÿ“– Documentation changes - make sure everything marked @public gets documented [#3892](https://github.com/tldraw/tldraw/pull/3892) ([@SomeHats](https://github.com/SomeHats)) - Update validation.ts [#3324](https://github.com/tldraw/tldraw/pull/3324) ([@lorenzolewis](https://github.com/lorenzolewis)) #### ๐Ÿ  Internal - Update READMEs, add form link [#3741](https://github.com/tldraw/tldraw/pull/3741) ([@steveruizok](https://github.com/steveruizok)) - Don't check api.json files into git [#3565](https://github.com/tldraw/tldraw/pull/3565) ([@SomeHats](https://github.com/SomeHats)) #### Authors: 3 - alex ([@SomeHats](https://github.com/SomeHats)) - Lorenzo Lewis ([@lorenzolewis](https://github.com/lorenzolewis)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.1.0 (Tue Apr 23 2024) ### Release Notes #### New migrations again ([#3220](https://github.com/tldraw/tldraw/pull/3220)) #### BREAKING CHANGES - The `Migrations` type is now called `LegacyMigrations`. - The serialized schema format (e.g. returned by `StoreSchema.serialize()` and `Store.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 the `RecordVersion` 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 call `schema.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 the `persistedSchema` 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 using `schema.migrateStoreSnapshot` and, if you are building a nuanced sync engine that supports some amount of backwards compatibility, also feel free to use `schema.migratePersistedRecord`. - the `Migration` type has changed. If you need the old one for some reason it has been renamed to `LegacyMigration`. It will be removed in a future release. - the `Migrations` type has been renamed to `LegacyMigrations` and will be removed in a future release. - the `SerializedSchema` type has been augmented. If you need the old version specifically you can use `SerializedSchemaV1` --- #### ๐Ÿ’ฅ Breaking Change - React-powered SVG exports [#3117](https://github.com/tldraw/tldraw/pull/3117) ([@SomeHats](https://github.com/SomeHats) [@huppy-bot[bot]](https://github.com/huppy-bot[bot])) #### ๐Ÿ“š SDK Changes - [fix] allow loading files [#3517](https://github.com/tldraw/tldraw/pull/3517) ([@ds300](https://github.com/ds300)) - New migrations again [#3220](https://github.com/tldraw/tldraw/pull/3220) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok)) - use native structuredClone on node, cloudflare workers, and in tests [#3166](https://github.com/tldraw/tldraw/pull/3166) ([@si14](https://github.com/si14)) #### Authors: 5 - [@huppy-bot[bot]](https://github.com/huppy-bot[bot]) - alex ([@SomeHats](https://github.com/SomeHats)) - Dan Groshev ([@si14](https://github.com/si14)) - David Sheldrick ([@ds300](https://github.com/ds300)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-beta.5 (Thu Feb 29 2024) #### ๐Ÿ”ฉ Dependency Updates - bump typescript / api-extractor [#2949](https://github.com/tldraw/tldraw/pull/2949) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 1 - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-beta.4 (Wed Feb 21 2024) ### Release Notes #### Faster validations + record reference stability at the same time ([#2848](https://github.com/tldraw/tldraw/pull/2848)) - Add a brief release note for your PR here. --- #### ๐Ÿ› Bug Fix - Fix object validator [#2897](https://github.com/tldraw/tldraw/pull/2897) ([@MitjaBezensek](https://github.com/MitjaBezensek)) - Faster validations + record reference stability at the same time [#2848](https://github.com/tldraw/tldraw/pull/2848) ([@ds300](https://github.com/ds300)) - [Snapping 1/5] Validation & strict types for fractional indexes [#2827](https://github.com/tldraw/tldraw/pull/2827) ([@SomeHats](https://github.com/SomeHats)) #### ๐Ÿ  Internal - Check tsconfig "references" arrays [#2891](https://github.com/tldraw/tldraw/pull/2891) ([@ds300](https://github.com/ds300)) - dev: swap yarn test and test-dev for better dx [#2773](https://github.com/tldraw/tldraw/pull/2773) ([@mimecuvalo](https://github.com/mimecuvalo)) #### Authors: 4 - alex ([@SomeHats](https://github.com/SomeHats)) - David Sheldrick ([@ds300](https://github.com/ds300)) - Mime ฤŒuvalo ([@mimecuvalo](https://github.com/mimecuvalo)) - Mitja Bezenลกek ([@MitjaBezensek](https://github.com/MitjaBezensek)) --- # v2.0.0-beta.3 (Tue Feb 13 2024) ### Release Notes #### error reporting: rm ids from msgs for better Sentry grouping ([#2738](https://github.com/tldraw/tldraw/pull/2738)) - Error reporting: improve grouping for Sentry. #### dev: add test-dev command for easier testing of packages ([#2627](https://github.com/tldraw/tldraw/pull/2627)) - Adds easier testing command for individual packages. --- #### ๐Ÿš€ Enhancement - [dx] use Biome instead of Prettier, part 2 [#2731](https://github.com/tldraw/tldraw/pull/2731) ([@si14](https://github.com/si14)) #### ๐Ÿ› Bug Fix - error reporting: rm ids from msgs for better Sentry grouping [#2738](https://github.com/tldraw/tldraw/pull/2738) ([@mimecuvalo](https://github.com/mimecuvalo)) - Fix validation for local files. [#2447](https://github.com/tldraw/tldraw/pull/2447) ([@MitjaBezensek](https://github.com/MitjaBezensek)) #### ๐Ÿ  Internal - Unbiome [#2776](https://github.com/tldraw/tldraw/pull/2776) ([@si14](https://github.com/si14)) - Update the project to Node 20 [#2691](https://github.com/tldraw/tldraw/pull/2691) ([@si14](https://github.com/si14)) - dev: add test-dev command for easier testing of packages [#2627](https://github.com/tldraw/tldraw/pull/2627) ([@mimecuvalo](https://github.com/mimecuvalo)) - Add docs [#2470](https://github.com/tldraw/tldraw/pull/2470) ([@steveruizok](https://github.com/steveruizok)) #### ๐Ÿ”ฉ Dependency Updates - Bump Yarn to 4.0.2 and add version constraints [#2481](https://github.com/tldraw/tldraw/pull/2481) ([@si14](https://github.com/si14)) #### Authors: 4 - Dan Groshev ([@si14](https://github.com/si14)) - Mime ฤŒuvalo ([@mimecuvalo](https://github.com/mimecuvalo)) - Mitja Bezenลกek ([@MitjaBezensek](https://github.com/MitjaBezensek)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-beta.2 (Wed Jan 10 2024) ### Release Notes #### Add url validation ([#2428](https://github.com/tldraw/tldraw/pull/2428)) - Add validation to urls. #### Fix trademark links ([#2380](https://github.com/tldraw/tldraw/pull/2380)) - Fixes broken links in a number of docs files. --- #### ๐Ÿ› Bug Fix - Add url validation [#2428](https://github.com/tldraw/tldraw/pull/2428) ([@MitjaBezensek](https://github.com/MitjaBezensek) [@SomeHats](https://github.com/SomeHats)) #### ๐Ÿ“ Documentation - Fix trademark links [#2380](https://github.com/tldraw/tldraw/pull/2380) ([@nonparibus](https://github.com/nonparibus)) - Another typo fix. [#2366](https://github.com/tldraw/tldraw/pull/2366) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 4 - alex ([@SomeHats](https://github.com/SomeHats)) - David @ HASH ([@nonparibus](https://github.com/nonparibus)) - Mitja Bezenลกek ([@MitjaBezensek](https://github.com/MitjaBezensek)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-beta.1 (Wed Dec 20 2023) #### ๐Ÿ’ฅ Breaking Change - bump to beta [#2364](https://github.com/tldraw/tldraw/pull/2364) ([@steveruizok](https://github.com/steveruizok)) - Change licenses to tldraw [#2167](https://github.com/tldraw/tldraw/pull/2167) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 1 - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-alpha.18 (Fri Nov 10 2023) #### ๐Ÿ  Internal - Revert "bump prerelease from alpha to beta" [#2192](https://github.com/tldraw/tldraw/pull/2192) ([@ds300](https://github.com/ds300)) - bump prerelease from alpha to beta [#2148](https://github.com/tldraw/tldraw/pull/2148) ([@ds300](https://github.com/ds300)) #### Authors: 1 - David Sheldrick ([@ds300](https://github.com/ds300)) --- # v2.0.0-alpha.16 (Wed Oct 11 2023) #### ๐Ÿ  Internal - Publish api.json [#2034](https://github.com/tldraw/tldraw/pull/2034) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 1 - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-alpha.15 (Fri Oct 06 2023) ### Release Notes #### tldraw zero - package shuffle ([#1710](https://github.com/tldraw/tldraw/pull/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 - tldraw zero - package shuffle [#1710](https://github.com/tldraw/tldraw/pull/1710) ([@steveruizok](https://github.com/steveruizok) [@SomeHats](https://github.com/SomeHats)) #### ๐Ÿš€ Enhancement - Add shapes to exports [#1776](https://github.com/tldraw/tldraw/pull/1776) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 2 - alex ([@SomeHats](https://github.com/SomeHats)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-alpha.14 (Tue Jul 04 2023) ### Release Notes #### [feature] add `meta` property to records ([#1627](https://github.com/tldraw/tldraw/pull/1627)) - todo --- #### ๐Ÿš€ Enhancement - [feature] add `meta` property to records [#1627](https://github.com/tldraw/tldraw/pull/1627) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 1 - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-alpha.13 (Wed Jun 28 2023) ### Release Notes #### Styles API ([#1580](https://github.com/tldraw/tldraw/pull/1580)) - #### mini `defineShape` API ([#1563](https://github.com/tldraw/tldraw/pull/1563)) [dev-facing, notes to come] #### Rename tlvalidate to validate ([#1508](https://github.com/tldraw/tldraw/pull/1508)) - Rename tlvalidate to validate --- #### ๐Ÿ’ฅ Breaking Change - Styles API [#1580](https://github.com/tldraw/tldraw/pull/1580) ([@SomeHats](https://github.com/SomeHats) [@steveruizok](https://github.com/steveruizok)) - mini `defineShape` API [#1563](https://github.com/tldraw/tldraw/pull/1563) ([@SomeHats](https://github.com/SomeHats)) - Rename tlvalidate to validate [#1508](https://github.com/tldraw/tldraw/pull/1508) ([@steveruizok](https://github.com/steveruizok)) #### โš ๏ธ Pushed to `main` - update lazyrepo ([@ds300](https://github.com/ds300)) #### Authors: 3 - alex ([@SomeHats](https://github.com/SomeHats)) - David Sheldrick ([@ds300](https://github.com/ds300)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # v2.0.0-alpha.12 (Mon Apr 03 2023) #### ๐Ÿ› Bug Fix - Make sure all types and build stuff get run in CI [#1548](https://github.com/tldraw/tldraw-lite/pull/1548) ([@SomeHats](https://github.com/SomeHats)) - add pre-commit api report generation [#1517](https://github.com/tldraw/tldraw-lite/pull/1517) ([@SomeHats](https://github.com/SomeHats)) - [chore] restore api extractor [#1500](https://github.com/tldraw/tldraw-lite/pull/1500) ([@steveruizok](https://github.com/steveruizok)) - David/publish good [#1488](https://github.com/tldraw/tldraw-lite/pull/1488) ([@ds300](https://github.com/ds300)) - [chore] alpha 10 [#1486](https://github.com/tldraw/tldraw-lite/pull/1486) ([@ds300](https://github.com/ds300)) - [chore] bump for alpha 8 [#1485](https://github.com/tldraw/tldraw-lite/pull/1485) ([@steveruizok](https://github.com/steveruizok)) - [improvement] API Reference docs [#1478](https://github.com/tldraw/tldraw-lite/pull/1478) ([@steveruizok](https://github.com/steveruizok)) - stop using broken-af turbo for publishing [#1476](https://github.com/tldraw/tldraw-lite/pull/1476) ([@ds300](https://github.com/ds300)) - [chore] add canary release script [#1423](https://github.com/tldraw/tldraw-lite/pull/1423) ([@ds300](https://github.com/ds300) [@steveruizok](https://github.com/steveruizok)) - [chore] upgrade yarn [#1430](https://github.com/tldraw/tldraw-lite/pull/1430) ([@ds300](https://github.com/ds300)) - repo cleanup [#1426](https://github.com/tldraw/tldraw-lite/pull/1426) ([@steveruizok](https://github.com/steveruizok)) #### Authors: 3 - alex ([@SomeHats](https://github.com/SomeHats)) - David Sheldrick ([@ds300](https://github.com/ds300)) - Steve Ruiz ([@steveruizok](https://github.com/steveruizok)) --- # @tldraw/tlvalidate ## 2.0.0-alpha.10 ### Patch Changes - fix some package build scripting - Updated dependencies - @tldraw/utils@2.0.0-alpha.10 ## 2.0.0-alpha.9 ### Patch Changes - 4b4399b6e: redeploy with yarn to prevent package version issues - Updated dependencies [4b4399b6e] - @tldraw/utils@2.0.0-alpha.9 ## 2.0.0-alpha.8 ### Patch Changes - Release day! - Updated dependencies - @tldraw/utils@2.0.0-alpha.8 ## 2.0.0-alpha.7 ### Patch Changes - Bug fixes. - Updated dependencies - @tldraw/utils@2.0.0-alpha.7 ## 2.0.0-alpha.6 ### Patch Changes - Add licenses. - Updated dependencies - @tldraw/utils@2.0.0-alpha.6 ## 2.0.0-alpha.5 ### Patch Changes - Add CSS files to tldraw/tldraw. - Updated dependencies - @tldraw/utils@2.0.0-alpha.5 ## 2.0.0-alpha.4 ### Patch Changes - Add children to tldraw/tldraw - Updated dependencies - @tldraw/utils@2.0.0-alpha.4 ## 2.0.0-alpha.3 ### Patch Changes - Change permissions. - Updated dependencies - @tldraw/utils@2.0.0-alpha.3 ## 2.0.0-alpha.2 ### Patch Changes - Add tldraw, editor - Updated dependencies - @tldraw/utils@2.0.0-alpha.2 ## 0.1.0-alpha.11 ### Patch Changes - Fix stale reactors. - Updated dependencies - @tldraw/utils@0.1.0-alpha.11 ## 0.1.0-alpha.10 ### Patch Changes - Fix type export bug. - Updated dependencies - @tldraw/utils@0.1.0-alpha.10 ## 0.1.0-alpha.9 ### Patch Changes - Fix import bugs. - Updated dependencies - @tldraw/utils@0.1.0-alpha.9 ## 0.1.0-alpha.8 ### Patch Changes - Changes validation requirements, exports validation helpers. - Updated dependencies - @tldraw/utils@0.1.0-alpha.8 ## 0.1.0-alpha.7 ### Patch Changes - - Pre-pre-release update - Updated dependencies - @tldraw/utils@0.1.0-alpha.7 ## 0.0.2-alpha.1 ### Patch Changes - Fix error with HMR - Updated dependencies - @tldraw/utils@0.0.2-alpha.1 ## 0.0.2-alpha.0 ### Patch Changes - Initial release - Updated dependencies - @tldraw/utils@0.0.2-alpha.0