Bug Report
docs/sui-tooling.mdx contains references to @mysten/sui.js the deprecated legacy package in the JSON-RPC section. The gRPC section in the same file already uses the current @mysten/sui package.
Affected File
docs/sui-tooling.mdx lines 213, 220, 233, 250–252
Problem
Current (JSON-RPC section):
npm install @mysten/sui.js
import { SuiClient, getFullnodeUrl } from '@mysten/sui.js/client';
import { SuiClient } from '@mysten/sui.js/client';
import { TransactionBlock } from '@mysten/sui.js/transactions';
import { Ed25519Keypair } from '@mysten/sui.js/keypairs/ed25519';
@mysten/sui.js is the legacy package and has been superseded by @mysten/sui. The gRPC section earlier in the same file already uses the correct package:
# npm install @mysten/sui ← correct, used in gRPC section (line 55)
Impact
Developers following the JSON-RPC examples will install a deprecated package. TransactionBlock was also replaced by Transaction in the new package.
Suggested Fix
Update the JSON-RPC section to use @mysten/sui and its updated imports:
@mysten/sui.js/client → @mysten/sui/client
TransactionBlock → Transaction (from @mysten/sui/transactions)
@mysten/sui.js/keypairs/ed25519 → @mysten/sui/keypairs/ed25519
Bug Report
docs/sui-tooling.mdxcontains references to@mysten/sui.jsthe deprecated legacy package in the JSON-RPC section. The gRPC section in the same file already uses the current@mysten/suipackage.Affected File
docs/sui-tooling.mdxlines 213, 220, 233, 250–252Problem
Current (JSON-RPC section):
@mysten/sui.jsis the legacy package and has been superseded by@mysten/sui. The gRPC section earlier in the same file already uses the correct package:# npm install @mysten/sui ← correct, used in gRPC section (line 55)Impact
Developers following the JSON-RPC examples will install a deprecated package.
TransactionBlockwas also replaced byTransactionin the new package.Suggested Fix
Update the JSON-RPC section to use
@mysten/suiand its updated imports:@mysten/sui.js/client→@mysten/sui/clientTransactionBlock→Transaction(from@mysten/sui/transactions)@mysten/sui.js/keypairs/ed25519→@mysten/sui/keypairs/ed25519