REMOVED · API
WalletConnection and connect() (near-api-js before v7)
near-api-js 7 exports no WalletConnection, connect() or Near: code written for v4 against wallet.near.org does not build. Read and send with a JsonRpcProvider and an Account; connect browser wallets with @hot-labs/near-connect.
synced 2h agocurated, re-checked on every build
Removedsince 2026-01-19effective near-api-js 7.0.0
Evidence
probestrongchecked by hand 2026-11-02
“The type definitions of near-api-js 7.4.0 (lib/index.d.ts) export no WalletConnection, connect or Near”
https://www.npmjs.com/package/near-api-js/v/7.4.0 (opens in a new tab)
Removed in a releasemediumconfirmed in synced data
“`Connection` has been deprecated, as it is no longer used by the `Account` class”
https://github.com/near/near-api-js/releases/tag/v6.0.0 (opens in a new tab)
2025-05-21
docs_statementmediumconfirmed in synced data
“Yes. Install `@hot-labs/near-connect` and `near-api-js` and follow our [integration guide](/web3-apps/tutorials/wallet-login).”
https://docs.near.org/web3-apps/quickstart (opens in a new tab)
Agents get this entry from check_deprecation("near-api-js-wallet-connection") and GET /api/v1/deprecations/near-api-js-wallet-connection; check_code flags code that uses it. All deprecations →