Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose migrations, validators, and versions from tlschema #3613

Merged
merged 2 commits into from Apr 25, 2024

Conversation

SomeHats
Copy link
Contributor

@SomeHats SomeHats commented Apr 25, 2024

Previously, we weren't exporting migrations & validators for our default shapes. This meant that it wasn't possible to make your own tlschema with both our default shapes and some of your own (e.g. for custom multiplayer). This fixes that by exposing all the migrations, validators, and versions from tlschema.

Change Type

  • sdk — Changes the tldraw SDK
  • bugfix — Bug fix

Release notes

Previously, we weren't exporting migrations & validators for our default shapes. This meant that it wasn't possible to make your own tlschema with both our default shapes and some of your own (e.g. for custom multiplayer). This fixes that by exposing all the migrations, validators, and versions from tlschema, plus defaultShapeSchemas which can be passed directly to createTLSchema

@huppy-bot huppy-bot bot added bugfix Fixes a bug of some kind sdk Affects the tldraw sdk labels Apr 25, 2024
Copy link

vercel bot commented Apr 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
examples ✅ Ready (Inspect) Visit Preview Apr 25, 2024 2:28pm
1 Ignored Deployment
Name Status Preview Updated (UTC)
tldraw-docs ⬜️ Ignored (Inspect) Apr 25, 2024 2:28pm

@SomeHats SomeHats enabled auto-merge April 25, 2024 14:26
@SomeHats SomeHats added this pull request to the merge queue Apr 25, 2024
Merged via the queue into main with commit f78719b Apr 25, 2024
12 checks passed
@SomeHats SomeHats deleted the alex/expose-migrations branch April 25, 2024 14:36
SomeHats added a commit that referenced this pull request Apr 25, 2024
Previously, we weren't exporting migrations & validators for our default
shapes. This meant that it wasn't possible to make your own tlschema
with both our default shapes and some of your own (e.g. for custom
multiplayer). This fixes that by exposing all the migrations,
validators, and versions from tlschema.

### Change Type
- [x] `sdk` — Changes the tldraw SDK
- [x] `bugfix` — Bug fix
@hossain666

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes a bug of some kind sdk Affects the tldraw sdk
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants