diff --git a/.changeset/beige-radios-burn.md b/.changeset/beige-radios-burn.md deleted file mode 100644 index ec65973736..0000000000 --- a/.changeset/beige-radios-burn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Added `chainId` as a parameter to `eth_sendTransaction`. diff --git a/.changeset/grumpy-cycles-drop.md b/.changeset/grumpy-cycles-drop.md deleted file mode 100644 index 927ba64bff..0000000000 --- a/.changeset/grumpy-cycles-drop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"viem": patch ---- - -Fixed an issue where `getAction` would ignore nullish return values from a synchronous Client Action. diff --git a/.changeset/smart-squids-hope.md b/.changeset/smart-squids-hope.md deleted file mode 100644 index 210d70d158..0000000000 --- a/.changeset/smart-squids-hope.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"viem": patch ---- - -**Experimental:** Added Solady utilities: - -- `hashMessage` -- `hashTypedData` -- `wrapTypedDataSignature` diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 975f62c72e..b5d6b0d039 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -128,10 +128,10 @@ importers: dependencies: typescript: specifier: latest - version: 5.4.5 + version: 5.5.2 viem: specifier: file:../../src/ - version: file:src(typescript@5.4.5)(zod@3.22.4) + version: link:../../src environments/vite: dependencies: @@ -156,7 +156,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -169,7 +169,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -182,7 +182,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -195,7 +195,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -214,7 +214,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: '@types/react': specifier: ^18.0.27 @@ -242,7 +242,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: '@types/react': specifier: ^18.0.27 @@ -264,7 +264,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -277,7 +277,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -296,7 +296,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: '@types/react': specifier: ^18.0.27 @@ -318,7 +318,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -331,7 +331,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -344,7 +344,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -357,7 +357,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -404,7 +404,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: '@types/react': specifier: ^18.0.27 @@ -426,7 +426,7 @@ importers: dependencies: viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: typescript: specifier: ^5.0.3 @@ -445,7 +445,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: '@types/react': specifier: ^18.0.27 @@ -479,7 +479,7 @@ importers: version: 18.2.0(react@18.2.0) viem: specifier: latest - version: 2.14.0(typescript@5.4.2)(zod@3.22.4) + version: 2.16.0(typescript@5.4.2)(zod@3.22.4) devDependencies: '@types/react': specifier: ^18.0.27 @@ -2483,17 +2483,6 @@ packages: '@xtuc/long@4.2.2': resolution: {integrity: sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==} - abitype@1.0.0: - resolution: {integrity: sha512-NMeMah//6bJ56H5XRj8QCV4AwuW6hB6zqz2LnhhLdcWVQOsXki6/Pn3APeqxCma62nXIcmZWdu1DlHWS74umVQ==} - peerDependencies: - typescript: '>=5.0.4' - zod: ^3 >=3.22.0 - peerDependenciesMeta: - typescript: - optional: true - zod: - optional: true - abitype@1.0.4: resolution: {integrity: sha512-UivtYZOGJGE8rsrM/N5vdRkUpqEZVmuTumfTuolm7m/6O09wprd958rx8kUBwVAAAhQDveGAgD0GJdBuR8s6tw==} peerDependencies: @@ -6018,8 +6007,8 @@ packages: vfile@6.0.1: resolution: {integrity: sha512-1bYqc7pt6NIADBJ98UiG0Bn/CHIVOoZ/IyEkqIruLg0mE1BKzkOXY2D6CSqQIcKqgadppE5lrxgWXJmXd7zZJw==} - viem@2.14.0: - resolution: {integrity: sha512-+XnuRNONDRyMNEM+1n6Ak41Py0KBFOmirQ67wPv//ytCmNIJhmy8vqhdFREr3m51GAGgDkllh4JoAdCUUaZJLw==} + viem@2.16.0: + resolution: {integrity: sha512-qXakKfshaDOiQFgb3MgROKDa4bfr095GMUqrD2WN6UMdzH7WtlAYJ65vnrpoXpny9jXAyNoirEJeBBUF9KFNIQ==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -6221,18 +6210,6 @@ packages: utf-8-validate: optional: true - ws@8.13.0: - resolution: {integrity: sha512-x9vcZYTrFPC7aSIbj7sRCYo7L/Xb8Iy+pW0ng0wt2vCJv7M9HOMy0UoN3rr+IFC7hb7vXoqS+P9ktyLLLhO+LA==} - engines: {node: '>=10.0.0'} - peerDependencies: - bufferutil: ^4.0.1 - utf-8-validate: '>=5.0.2' - peerDependenciesMeta: - bufferutil: - optional: true - utf-8-validate: - optional: true - ws@8.16.0: resolution: {integrity: sha512-HS0c//TP7Ina87TfiPUz1rQzMhHrl/SG2guqRcTOIUYD2q8uhUdNHZYJUaQ8aTGPzCh+c6oawMKW35nFl1dxyQ==} engines: {node: '>=10.0.0'} @@ -8654,7 +8631,7 @@ snapshots: '@xtuc/long@4.2.2': {} - abitype@1.0.0(typescript@5.4.2)(zod@3.22.4): + abitype@1.0.4(typescript@5.4.2)(zod@3.22.4): optionalDependencies: typescript: 5.4.2 zod: 3.22.4 @@ -10305,10 +10282,6 @@ snapshots: isexe@2.0.0: {} - isows@1.0.4(ws@8.13.0): - dependencies: - ws: 8.13.0 - isows@1.0.4(ws@8.17.1): dependencies: ws: 8.17.1 @@ -12741,16 +12714,16 @@ snapshots: unist-util-stringify-position: 4.0.0 vfile-message: 4.0.2 - viem@2.14.0(typescript@5.4.2)(zod@3.22.4): + viem@2.16.0(typescript@5.4.2)(zod@3.22.4): dependencies: '@adraffy/ens-normalize': 1.10.0 '@noble/curves': 1.2.0 '@noble/hashes': 1.3.2 '@scure/bip32': 1.3.2 '@scure/bip39': 1.2.1 - abitype: 1.0.0(typescript@5.4.2)(zod@3.22.4) - isows: 1.0.4(ws@8.13.0) - ws: 8.13.0 + abitype: 1.0.4(typescript@5.4.2)(zod@3.22.4) + isows: 1.0.4(ws@8.17.1) + ws: 8.17.1 optionalDependencies: typescript: 5.4.2 transitivePeerDependencies: @@ -13069,8 +13042,6 @@ snapshots: ws@7.5.9: {} - ws@8.13.0: {} - ws@8.16.0: {} ws@8.17.1: {} diff --git a/src/CHANGELOG.md b/src/CHANGELOG.md index 9db9411b1e..d5160134dd 100644 --- a/src/CHANGELOG.md +++ b/src/CHANGELOG.md @@ -1,5 +1,19 @@ # viem +## 2.16.1 + +### Patch Changes + +- [`fa494359`](https://github.com/wevm/viem/commit/fa4943594b9f95a1562c44a48f6eff87dc56a560) Thanks [@jxom](https://github.com/jxom)! - Added `chainId` as a parameter to `eth_sendTransaction`. + +- [#2429](https://github.com/wevm/viem/pull/2429) [`3781bbb8`](https://github.com/wevm/viem/commit/3781bbb8b3ee8de065a581c97410389b84f7e9c8) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `getAction` would ignore nullish return values from a synchronous Client Action. + +- [`ed5c70e0`](https://github.com/wevm/viem/commit/ed5c70e0c5f21e4e2f7eb0fd17afc66888d787d7) Thanks [@jxom](https://github.com/jxom)! - **Experimental:** Added Solady utilities: + + - `hashMessage` + - `hashTypedData` + - `wrapTypedDataSignature` + ## 2.16.0 ### Minor Changes diff --git a/src/errors/version.ts b/src/errors/version.ts index a394cd69f1..27116e0880 100644 --- a/src/errors/version.ts +++ b/src/errors/version.ts @@ -1 +1 @@ -export const version = '2.16.0' +export const version = '2.16.1' diff --git a/src/jsr.json b/src/jsr.json index b85d083fa5..843791efc5 100644 --- a/src/jsr.json +++ b/src/jsr.json @@ -1,6 +1,6 @@ { "name": "@wevm/viem", - "version": "2.16.0", + "version": "2.16.1", "exports": { ".": "./index.ts", "./accounts": "./accounts/index.ts", @@ -16,7 +16,12 @@ "./zksync": "./zksync/index.ts" }, "publish": { - "include": ["LICENSE", "README.md", "CHANGELOG.md", "**/*.ts"], + "include": [ + "LICENSE", + "README.md", + "CHANGELOG.md", + "**/*.ts" + ], "exclude": [ "**/*.bench.ts", "**/*.bench-d.ts", @@ -24,4 +29,4 @@ "**/*.test-d.ts" ] } -} +} \ No newline at end of file diff --git a/src/package.json b/src/package.json index c88b1372cb..ff8e106a9a 100644 --- a/src/package.json +++ b/src/package.json @@ -1,7 +1,7 @@ { "name": "viem", "description": "TypeScript Interface for Ethereum", - "version": "2.16.0", + "version": "2.16.1", "type": "module", "main": "./_cjs/index.js", "module": "./_esm/index.js", @@ -104,20 +104,48 @@ }, "typesVersions": { "*": { - "accounts": ["./_types/accounts/index.d.ts"], - "actions": ["./_types/actions/index.d.ts"], - "celo": ["./_types/celo/index.d.ts"], - "chains": ["./_types/chains/index.d.ts"], - "chains/utils": ["./_types/chains/utils.d.ts"], - "ens": ["./_types/ens/index.d.ts"], - "experimental": ["./_types/experimental/index.d.ts"], - "experimental/solady": ["./_types/experimental/solady/index.d.ts"], - "node": ["./_types/node/index.d.ts"], - "op-stack": ["./_types/op-stack/index.d.ts"], - "siwe": ["./_types/siwe/index.d.ts"], - "utils": ["./_types/utils/index.d.ts"], - "window": ["./_types/window/index.d.ts"], - "zksync": ["./_types/zksync/index.d.ts"] + "accounts": [ + "./_types/accounts/index.d.ts" + ], + "actions": [ + "./_types/actions/index.d.ts" + ], + "celo": [ + "./_types/celo/index.d.ts" + ], + "chains": [ + "./_types/chains/index.d.ts" + ], + "chains/utils": [ + "./_types/chains/utils.d.ts" + ], + "ens": [ + "./_types/ens/index.d.ts" + ], + "experimental": [ + "./_types/experimental/index.d.ts" + ], + "experimental/solady": [ + "./_types/experimental/solady/index.d.ts" + ], + "node": [ + "./_types/node/index.d.ts" + ], + "op-stack": [ + "./_types/op-stack/index.d.ts" + ], + "siwe": [ + "./_types/siwe/index.d.ts" + ], + "utils": [ + "./_types/utils/index.d.ts" + ], + "window": [ + "./_types/window/index.d.ts" + ], + "zksync": [ + "./_types/zksync/index.d.ts" + ] } }, "peerDependencies": { @@ -141,12 +169,22 @@ "license": "MIT", "homepage": "https://viem.sh", "repository": "wevm/viem", - "authors": ["awkweb.eth", "jxom.eth"], + "authors": [ + "awkweb.eth", + "jxom.eth" + ], "funding": [ { "type": "github", "url": "https://github.com/sponsors/wevm" } ], - "keywords": ["eth", "ethereum", "dapps", "wallet", "web3", "typescript"] + "keywords": [ + "eth", + "ethereum", + "dapps", + "wallet", + "web3", + "typescript" + ] }