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

feat(zero-cache): improve the error message for unsupported protocol versions #3462

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

darkgnotic
Copy link
Contributor

@darkgnotic darkgnotic commented Dec 29, 2024

Developers seem to hit protocol version mismatches often, usually when running client code that's newer than server code:

https://discord.com/channels/830183651022471199/1288232858795769917/1321105123224715315
https://discord.com/channels/830183651022471199/1322659299717287946/1322706138126614630

Improve the error message returned by the zero-cache to specify which component should be updated to a newer release.

Also make the deprecation of older protocol versions explicit with a MIN_SERVER_SUPPORTED_PROTOCOL_VERSION constant, rather than forcing PROTOCOL_VERSION - 1. Since protocol version deprecation generally involves manual cleanup (i.e. of old code), the support boundary should also be manually updated.

@darkgnotic darkgnotic requested a review from grgbkr December 29, 2024 08:19
Copy link

vercel bot commented Dec 29, 2024

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

Name Status Preview Comments Updated (UTC)
replicache-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2024 8:19am
zbugs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 29, 2024 8:19am

@darkgnotic darkgnotic enabled auto-merge (squash) December 29, 2024 08:20
@darkgnotic darkgnotic merged commit cc7ac8d into main Dec 29, 2024
9 checks passed
@darkgnotic darkgnotic deleted the darkgnotic/better-protocol-version-error-message branch December 29, 2024 08:31
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.

1 participant