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

Remove UnsafeBeyond2Pow53Minus1 type suffixes #3456

Merged
merged 1 commit into from
Oct 27, 2024

Conversation

lorisleiva
Copy link
Contributor

@lorisleiva lorisleiva commented Oct 25, 2024

Both RPC and RPC Subscriptions packages now use custom JSON serialization to safely convert large integers as bigints from the server requests/responses. This means we are no longer handling bigints that are unsafe below 2^53-1 which also means we can remove the UnsafeBeyond2Pow53Minus1 suffixes to all types currently using it.

Note that the F64UnsafeSeeDocumentation type is excluded from this refactoring as the bigint serialization only affects integers.

Copy link

changeset-bot bot commented Oct 25, 2024

🦋 Changeset detected

Latest commit: 42214f5

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@lorisleiva lorisleiva force-pushed the loris/remove-usafe-type-suffixes branch from 7647088 to b02834e Compare October 25, 2024 12:43
@lorisleiva lorisleiva marked this pull request as ready for review October 25, 2024 12:51
@lorisleiva lorisleiva requested review from steveluscher, mcintyre94 and buffalojoec and removed request for steveluscher October 25, 2024 12:51
Copy link
Contributor

@buffalojoec buffalojoec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beautiful

packages/rpc-types/src/typed-numbers.ts Show resolved Hide resolved
Copy link
Contributor

@mcintyre94 mcintyre94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So good!
Added via Giphy

Copy link
Collaborator

@steveluscher steveluscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added via Giphy

Copy link
Contributor Author

lorisleiva commented Oct 27, 2024

Merge activity

  • Oct 27, 6:03 AM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Oct 27, 6:24 AM EDT: Graphite rebased this pull request as part of a merge.
  • Oct 27, 6:25 AM EDT: A user merged this pull request with Graphite.

@lorisleiva lorisleiva changed the base branch from loris/use-bigint-json-serialization-in-rpc-subscriptions to graphite-base/3456 October 27, 2024 10:20
@lorisleiva lorisleiva changed the base branch from graphite-base/3456 to master October 27, 2024 10:22
@lorisleiva lorisleiva force-pushed the loris/remove-usafe-type-suffixes branch from b02834e to 42214f5 Compare October 27, 2024 10:23
@lorisleiva lorisleiva merged commit 0245265 into master Oct 27, 2024
4 of 6 checks passed
@lorisleiva lorisleiva deleted the loris/remove-usafe-type-suffixes branch October 27, 2024 10:25
Copy link
Contributor

Because there has been no activity on this PR for 14 days since it was merged, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants