Skip to content

fix(docs): deprecated @mysten/sui.js package references in sui-tooling JSON-RPC section #590

Description

@Sertug17

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
  • TransactionBlockTransaction (from @mysten/sui/transactions)
  • @mysten/sui.js/keypairs/ed25519@mysten/sui/keypairs/ed25519

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions