Make a good deal of @solana/rpc-transformers private#353
Conversation
🦋 Changeset detectedLatest commit: 5964839 The changes in this PR will be included in the next version bump. This PR includes changesets to release 39 packages
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 |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| export function downcastNodeToNumberIfBigint(value: bigint): number; | ||
| export function downcastNodeToNumberIfBigint<T>(value: T): T; | ||
| export function downcastNodeToNumberIfBigint(value: unknown): unknown { | ||
| return typeof value === 'bigint' | ||
| ? // FIXME(solana-labs/solana/issues/30341) Create a data type to represent u64 in the Solana | ||
| // JSON RPC implementation so that we can throw away this entire patcher instead of unsafely | ||
| // downcasting `bigints` to `numbers`. | ||
| Number(value) | ||
| : value; | ||
| } |
There was a problem hiding this comment.
[Re: lines +1 to +11]
@lorisleiva, do we still have this because the Rust server doesn't know how to parse JSON with numbers in excess of Number.MAX_SAFE_INTEGER, or did we not ever test that? I can't remember.
See this comment inline on Graphite.
There was a problem hiding this comment.
I don't remember either to be totally honest with you. My hunch is that we did not test this and we just kept the old logic in when refactoring the RPC packages.
BundleMonFiles updated (6)
Unchanged files (121)
Total files change +349B +0.1% Final result: ✅ View report in BundleMon website ➡️ |
0ca4141 to
c99e002
Compare
23d6ef0 to
1d12a42
Compare
1d12a42 to
2c1779c
Compare
c99e002 to
889a4c0
Compare
889a4c0 to
c1ddaae
Compare
2c1779c to
2ea177a
Compare
2ea177a to
64d702a
Compare
c1ddaae to
5afe503
Compare
lorisleiva
left a comment
There was a problem hiding this comment.
Makes sense to me. Do we want to add a changeset for this since this is technically a breaking change? Maybe a minor bump is good enough since this is likely not used anyway?
938dd25 to
5749656
Compare
6444dd1 to
12953cd
Compare
12953cd to
794395a
Compare
dc6ffa8 to
2fb1fbc
Compare
794395a to
73e796f
Compare
73e796f to
5964839
Compare
|
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. |

Problem
I'm not sure that all of this machinery needs to be part of the public API. Please do correct me if I'm wrong.
Summary of Changes
Made methods internal.