diff --git a/.changeset/shy-adults-cover.md b/.changeset/shy-adults-cover.md deleted file mode 100644 index a05e7cac1f..0000000000 --- a/.changeset/shy-adults-cover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -**Experimental:** Added `forceAtomic` and `id` parameters to `sendCalls` diff --git a/.changeset/ten-pets-reply.md b/.changeset/ten-pets-reply.md deleted file mode 100644 index 8274dbe879..0000000000 --- a/.changeset/ten-pets-reply.md +++ /dev/null @@ -1,48 +0,0 @@ ---- -"viem": minor ---- - -**Breaking (Experimental):** Updated EIP-5792 to the latest spec changes. The following APIs have been updated: - -#### `getCallsStatus` - -```diff -const result = await client.getCallsStatus({ id }) -// ^? - { -+ atomic: boolean -+ chainId: number -+ id: string - receipts: Receipt[] -- status: 'PENDING' | 'CONFIRMED' -+ status: 'pending' | 'success' | 'failure' | undefined -+ statusCode: number -+ version: string -} -``` - -#### `sendCalls` - -```diff -const result = await client.sendCalls({ calls }) -// ^? -- string -+ { id: string, capabilities?: Capabilities } -``` - -#### `waitForCallsStatus` - -```diff -const result = await client.waitForCallsStatus({ id }) -// ^? - { -+ atomic: boolean -+ chainId: number -+ id: string - receipts: Receipt[] -- status: 'PENDING' | 'CONFIRMED' -+ status: 'pending' | 'success' | 'failure' | undefined -+ statusCode: number -+ version: string -} -``` \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 720592db85..161b0e1d9e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -150,7 +150,7 @@ importers: dependencies: typescript: specifier: latest - version: 5.8.2 + version: 5.8.3 viem: specifier: file:../../src/ version: link:../../src @@ -178,7 +178,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -191,7 +191,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -204,7 +204,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -217,7 +217,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -230,7 +230,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -249,7 +249,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^19 @@ -277,7 +277,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^19 @@ -299,7 +299,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -312,7 +312,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -331,7 +331,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^19 @@ -353,7 +353,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -366,7 +366,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -379,7 +379,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -392,7 +392,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -439,7 +439,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^19 @@ -467,7 +467,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^19 @@ -489,7 +489,7 @@ importers: dependencies: viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: typescript: specifier: ^5.0.3 @@ -508,7 +508,7 @@ importers: version: 19.0.0(react@19.0.0) viem: specifier: latest - version: 2.24.2(typescript@5.6.2)(zod@3.23.8) + version: 2.25.0(typescript@5.6.2)(zod@3.23.8) devDependencies: '@types/react': specifier: ^19 @@ -542,7 +542,7 @@ importers: version: link:../src vocs: specifier: ^1.0.11 - version: 1.0.11(@types/node@22.13.13)(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(acorn@8.14.0)(jiti@2.4.2)(lightningcss@1.29.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.34.8)(terser@5.36.0)(typescript@5.8.2)(yaml@2.7.0) + version: 1.0.11(@types/node@22.13.13)(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(acorn@8.14.0)(jiti@2.4.2)(lightningcss@1.29.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.34.8)(terser@5.36.0)(typescript@5.8.3)(yaml@2.7.0) src: dependencies: @@ -560,13 +560,13 @@ importers: version: 1.5.4 abitype: specifier: 1.0.8 - version: 1.0.8(typescript@5.8.2)(zod@3.23.8) + version: 1.0.8(typescript@5.8.3)(zod@3.23.8) isows: specifier: 1.0.6 version: 1.0.6(ws@8.18.1) ox: specifier: 0.6.9 - version: 0.6.9(typescript@5.8.2)(zod@3.23.8) + version: 0.6.9(typescript@5.8.3)(zod@3.23.8) ws: specifier: 8.18.1 version: 8.18.1 @@ -6096,6 +6096,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + ua-parser-js@1.0.40: resolution: {integrity: sha512-z6PJ8Lml+v3ichVojCiB8toQJBuwR42ySM4ezjXIqXK3M0HczmKQ3LF4rhU55PfD99KEEXQG6yb7iOMyvYuHew==} hasBin: true @@ -6215,14 +6220,6 @@ packages: vfile@6.0.3: resolution: {integrity: sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==} - viem@2.24.2: - resolution: {integrity: sha512-lUGoTHhMYlR4ktQiOrbTPmYvrMn3jKUdn2PSmB9QLICxnsQJxMkSCeGRoJFq7hi7K6PCMQgAyLMR/9J1key5cg==} - peerDependencies: - typescript: '>=5.0.4' - peerDependenciesMeta: - typescript: - optional: true - viem@2.25.0: resolution: {integrity: sha512-TtFgfQkZOfb642s8+i+h27dRhBfZV//WWOkZ9saoS1Ml8kipj9RiOiDaSmAUly1rhq9kbnYhni1xVtb195XVGA==} peerDependencies: @@ -8742,11 +8739,11 @@ snapshots: '@shikijs/core': 1.29.2 '@shikijs/types': 1.29.2 - '@shikijs/twoslash@1.29.2(typescript@5.8.2)': + '@shikijs/twoslash@1.29.2(typescript@5.8.3)': dependencies: '@shikijs/core': 1.29.2 '@shikijs/types': 1.29.2 - twoslash: 0.2.12(typescript@5.8.2) + twoslash: 0.2.12(typescript@5.8.3) transitivePeerDependencies: - supports-color - typescript @@ -9016,10 +9013,10 @@ snapshots: transitivePeerDependencies: - supports-color - '@typescript/vfs@1.6.1(typescript@5.8.2)': + '@typescript/vfs@1.6.1(typescript@5.8.3)': dependencies: debug: 4.4.0 - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -9281,6 +9278,11 @@ snapshots: typescript: 5.8.2 zod: 3.23.8 + abitype@1.0.8(typescript@5.8.3)(zod@3.23.8): + optionalDependencies: + typescript: 5.8.3 + zod: 3.23.8 + abort-controller@3.0.0: dependencies: event-target-shim: 5.0.1 @@ -11679,6 +11681,20 @@ snapshots: transitivePeerDependencies: - zod + ox@0.6.9(typescript@5.8.3)(zod@3.23.8): + dependencies: + '@adraffy/ens-normalize': 1.11.0 + '@noble/curves': 1.8.1 + '@noble/hashes': 1.7.1 + '@scure/bip32': 1.6.2 + '@scure/bip39': 1.5.4 + abitype: 1.0.8(typescript@5.8.3)(zod@3.23.8) + eventemitter3: 5.0.1 + optionalDependencies: + typescript: 5.8.3 + transitivePeerDependencies: + - zod + p-filter@2.1.0: dependencies: p-map: 2.1.0 @@ -12859,11 +12875,11 @@ snapshots: twoslash-protocol@0.2.12: {} - twoslash@0.2.12(typescript@5.8.2): + twoslash@0.2.12(typescript@5.8.3): dependencies: - '@typescript/vfs': 1.6.1(typescript@5.8.2) + '@typescript/vfs': 1.6.1(typescript@5.8.3) twoslash-protocol: 0.2.12 - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -12877,6 +12893,8 @@ snapshots: typescript@5.8.2: {} + typescript@5.8.3: {} + ua-parser-js@1.0.40: {} ufo@1.5.4: {} @@ -12994,7 +13012,7 @@ snapshots: '@types/unist': 3.0.3 vfile-message: 4.0.2 - viem@2.24.2(typescript@5.6.2)(zod@3.23.8): + viem@2.25.0(typescript@5.6.2)(zod@3.23.8): dependencies: '@noble/curves': 1.8.1 '@noble/hashes': 1.7.1 @@ -13152,7 +13170,7 @@ snapshots: - supports-color - terser - vocs@1.0.11(@types/node@22.13.13)(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(acorn@8.14.0)(jiti@2.4.2)(lightningcss@1.29.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.34.8)(terser@5.36.0)(typescript@5.8.2)(yaml@2.7.0): + vocs@1.0.11(@types/node@22.13.13)(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(acorn@8.14.0)(jiti@2.4.2)(lightningcss@1.29.1)(react-dom@19.0.0(react@19.0.0))(react@19.0.0)(rollup@4.34.8)(terser@5.36.0)(typescript@5.8.3)(yaml@2.7.0): dependencies: '@floating-ui/react': 0.27.4(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@hono/node-server': 1.13.8(hono@4.7.2) @@ -13169,7 +13187,7 @@ snapshots: '@radix-ui/react-tabs': 1.1.3(@types/react-dom@19.0.3(@types/react@19.0.8))(@types/react@19.0.8)(react-dom@19.0.0(react@19.0.0))(react@19.0.0) '@shikijs/rehype': 1.29.2 '@shikijs/transformers': 1.29.2 - '@shikijs/twoslash': 1.29.2(typescript@5.8.2) + '@shikijs/twoslash': 1.29.2(typescript@5.8.3) '@tailwindcss/vite': 4.0.7(vite@6.2.0(@types/node@22.13.13)(jiti@2.4.2)(lightningcss@1.29.1)(terser@5.36.0)(yaml@2.7.0)) '@vanilla-extract/css': 1.17.1 '@vanilla-extract/dynamic': 2.1.2 @@ -13217,7 +13235,7 @@ snapshots: serve-static: 1.16.2 shiki: 1.29.2 toml: 3.0.0 - twoslash: 0.2.12(typescript@5.8.2) + twoslash: 0.2.12(typescript@5.8.3) ua-parser-js: 1.0.40 unified: 11.0.5 unist-util-visit: 5.0.0 diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 218d37fbc3..ecd54dfe0b 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,58 @@ # viem +## 2.26.0 + +### Minor Changes + +- [#3542](https://github.com/wevm/viem/pull/3542) [`082c3d0fcc2e376954116d380c65c6ac95293681`](https://github.com/wevm/viem/commit/082c3d0fcc2e376954116d380c65c6ac95293681) Thanks [@jxom](https://github.com/jxom)! - **Breaking (Experimental):** Updated EIP-5792 to the latest spec changes. The following APIs have been updated: + + #### `getCallsStatus` + + ```diff + const result = await client.getCallsStatus({ id }) + // ^? + { + + atomic: boolean + + chainId: number + + id: string + receipts: Receipt[] + - status: 'PENDING' | 'CONFIRMED' + + status: 'pending' | 'success' | 'failure' | undefined + + statusCode: number + + version: string + } + ``` + + #### `sendCalls` + + ```diff + const result = await client.sendCalls({ calls }) + // ^? + - string + + { id: string, capabilities?: Capabilities } + ``` + + #### `waitForCallsStatus` + + ```diff + const result = await client.waitForCallsStatus({ id }) + // ^? + { + + atomic: boolean + + chainId: number + + id: string + receipts: Receipt[] + - status: 'PENDING' | 'CONFIRMED' + + status: 'pending' | 'success' | 'failure' | undefined + + statusCode: number + + version: string + } + ``` + +### Patch Changes + +- [#3542](https://github.com/wevm/viem/pull/3542) [`082c3d0fcc2e376954116d380c65c6ac95293681`](https://github.com/wevm/viem/commit/082c3d0fcc2e376954116d380c65c6ac95293681) Thanks [@jxom](https://github.com/jxom)! - **Experimental:** Added `forceAtomic` and `id` parameters to `sendCalls` + ## 2.25.0 ### Minor Changes diff --git a/src/errors/version.ts b/src/errors/version.ts index 7b80f297ef..4d0c969aa6 100644 --- a/src/errors/version.ts +++ b/src/errors/version.ts @@ -1 +1 @@ -export const version = '2.25.0' +export const version = '2.26.0' diff --git a/src/jsr.json b/src/jsr.json index 59b51cb51e..7bbcf9cd0d 100644 --- a/src/jsr.json +++ b/src/jsr.json @@ -1,6 +1,6 @@ { "name": "@wevm/viem", - "version": "2.25.0", + "version": "2.26.0", "exports": { ".": "./index.ts", "./accounts-abstraction": "./account-abstraction/index.ts", diff --git a/src/package.json b/src/package.json index 63389891e1..47a610ecb1 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "viem", "description": "TypeScript Interface for Ethereum", - "version": "2.25.0", + "version": "2.26.0", "type": "module", "main": "./_cjs/index.js", "module": "./_esm/index.js",