-
Notifications
You must be signed in to change notification settings - Fork 3.2k
docs: add v4 to v5 data migration guide #9352
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
Merged
Merged
+899
−2
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
content/docs/08-migration-guides/25-migration-guide-5-0-data.mdx
Outdated
Show resolved
Hide resolved
lgrammel
approved these changes
Oct 10, 2025
vercel-ai-sdk bot
pushed a commit
that referenced
this pull request
Oct 10, 2025
## Background Many have struggled with the migration from AI SDK 4 to AI SDK 5. Particularly, migrating existing messages is non-trivial. ## Summary This PR introduces a guide that walks users through a safe migration. ## Manual Verification I have followed the instructions on my own repo. ## Checklist - [ ] Tests have been added / updated (for bug fixes / features) - [ ] Documentation has been added / updated (for bug fixes / features) - [ ] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] Formatting issues have been fixed (run `pnpm prettier-fix` in the project root) - [ ] I have reviewed this pull request (self-review) ## Future Work JSON data migration guide.
|
✅ Backport PR created: #9366 |
nicoalbanese
added a commit
that referenced
this pull request
Oct 10, 2025
This is an automated backport of #9352 to the release-v5.0 branch. Co-authored-by: Nico Albanese <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Background
Many have struggled with the migration from AI SDK 4 to AI SDK 5. Particularly, migrating existing messages is non-trivial.
Summary
This PR introduces a guide that walks users through a safe migration.
Manual Verification
I have followed the instructions on my own repo.
Checklist
pnpm changesetin the project root)pnpm prettier-fixin the project root)Future Work
JSON data migration guide.