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

Backward-Compatible Serialization #14

Merged
merged 5 commits into from
Mar 19, 2025
Merged

Backward-Compatible Serialization #14

merged 5 commits into from
Mar 19, 2025

Conversation

HuakunShen
Copy link
Member

Support both standard JSON and superjson serialization to ensure backward compatibility

- Added support for versioning in message serialization, allowing for both "json" and "superjson" formats.
- Updated serializeMessage and deserializeMessage functions to handle versioning.
- Introduced new tests to validate serialization and deserialization of messages with versioning.
- Enhanced test script to force color output for better readability.
Copy link

cloudflare-workers-and-pages bot commented Mar 19, 2025

Deploying kkrpc-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ec8c431
Status:⚡️  Build in progress...

View logs

- Added support for specifying serialization formats ("json" and "superjson") in RPCChannel.
- Updated README.md to include detailed examples of serialization usage.
- Removed deprecated serialization functions from serialization.ts.
- Improved test scripts to reflect new serialization options.
@HuakunShen HuakunShen merged commit 6adbd8d into main Mar 19, 2025
2 of 3 checks passed
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