viem 1.14.0 → 2.57.10: deprecates 17 API(s)
Compared with 1.14.0: `ChainFees.defaultPriorityFee`, `PublicClient.getBytecode`, `PublicActions.getBytecode`, `Chain.fees.defaultPriorityFee`, `utils:getSocket`, and 12 more. 17 newly deprecated.
registry.npmjs.orgquote checked
- 2.57.10from 1.14.0
- Your code17 things to find
Nemotron fixes
In its own wordsread from the page
- ChainFees.defaultPriorityFee: Use `maxPriorityFeePerGas` instead.
- PublicClient.getBytecode: Use `getCode` instead.
- PublicActions.getBytecode: Use `getCode` instead.
- Chain.fees.defaultPriorityFee: Use `maxPriorityFeePerGas` instead.
- utils:getSocket: use `getSocketClient` instead. ```diff -import { getSocket } from 'viem/utils' +import { getSocketClient } from 'viem/utils' -const socket = await getSocket(url) +const socketClient = await getSocketClient(url) +const socket = socketClient.socket ```
- utils:rpc.http: use `getHttpRpcClient` instead. ```diff -import { rpc } from 'viem/utils' +import { getHttpRpcClient } from 'viem/utils' -rpc.http(url, params) +const httpClient = getHttpRpcClient(url) +httpClient.request(params) ```
- utils:rpc.webSocket: use `getWebSocketRpcClient` instead. ```diff -import { rpc } from 'viem/utils' +import { getWebSocketRpcClient } from 'viem/utils' -rpc.webSocket(url, params) +const webSocketClient = getWebSocketRpcClient(url) +webSocketClient.request(params) ```
What Teire looks for in your code
- ChainFees.defaultPriorityFee (ts)
- PublicClient.getBytecode (ts)
- PublicActions.getBytecode (ts)
- Chain.fees.defaultPriorityFee (ts)
- utils:getSocket (ts)
- utils:rpc.http (ts)
- utils:rpc.webSocket (ts)
- utils:rpc.webSocketAsync (ts)
- chains:base.fees.defaultPriorityFee (ts)
- chains:baseGoerli.fees.defaultPriorityFee (ts)
- chains:celo.fees.defaultPriorityFee (ts)
- chains:celoAlfajores.fees.defaultPriorityFee (ts)
- chains:optimism.fees.defaultPriorityFee (ts)
- chains:optimismGoerli.fees.defaultPriorityFee (ts)
- chains:optimismSepolia.fees.defaultPriorityFee (ts)
Does it reach your code?