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

Data and prop migrations #263

Merged
merged 21 commits into from
Dec 11, 2023
Merged

Data and prop migrations #263

merged 21 commits into from
Dec 11, 2023

Conversation

chrisvxd
Copy link
Member

@chrisvxd chrisvxd commented Nov 24, 2023

Update: automatic data migration has been removed, but the migrate helper method has been retained. This will help users to migrate their data payload should we choose to introduce breaking changes.

New APIs

This PR exposes two new APIs:

  • migrate, which enables the user to manually trigger a data migration, which will transform any deprecated props to the latest model
  • transformProps, a helper function that enables the user to rename component props easily across the entire data payload, closing Add mechanism for prop migration #41

Docs

Closes #41

Copy link

vercel bot commented Nov 24, 2023

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

Name Status Preview Comments Updated (UTC)
puck-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 8, 2023 11:21am
puck-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 8, 2023 11:21am

@chrisvxd chrisvxd merged commit 194c4e5 into main Dec 11, 2023
4 checks passed
@chrisvxd chrisvxd deleted the 41-add-migrations branch December 11, 2023 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add mechanism for prop migration
2 participants