@nomicfoundation/hardhat-viem 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +1 -1
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @nomicfoundation/hardhat-viem
2
2
 
3
+ ## 3.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8104](https://github.com/NomicFoundation/hardhat/pull/8104) [`e27a7ad`](https://github.com/NomicFoundation/hardhat/commit/e27a7ad584b01392afc9294f739d731ab6e78f06) Thanks [@ChristopherDedominici](https://github.com/ChristopherDedominici)! - Use code 3 for JSON-RPC revert error codes to align with standard node behavior and preserve error causes in viem/ethers.
8
+
9
+ - [#8096](https://github.com/NomicFoundation/hardhat/pull/8096) [`7fb721b`](https://github.com/NomicFoundation/hardhat/commit/7fb721bb2b1c521d0073a156f361c60a049e8fdf) Thanks [@alcuadrado](https://github.com/alcuadrado)! - [chore] Move to packages/ folder.
10
+
11
+ - [#8116](https://github.com/NomicFoundation/hardhat/pull/8116) [`88787e1`](https://github.com/NomicFoundation/hardhat/commit/88787e172a3d90652d0ffaf73e31857f6ed875cc) Thanks [@kanej](https://github.com/kanej)! - Deprecate the `hre.network.connect()` method in favour of `hre.network.create()`, exactly the same method but more clearly indicating that it will create a new connection.
12
+
13
+ - Updated dependencies:
14
+ - hardhat@3.4.0
15
+ - @nomicfoundation/hardhat-errors@3.0.11
16
+ - @nomicfoundation/hardhat-utils@4.0.3
17
+
3
18
  ## 3.0.4
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -30,7 +30,7 @@ This plugin adds a `viem` property to each Network Connection:
30
30
  ```ts
31
31
  import { network } from "hardhat";
32
32
 
33
- const { viem } = await hre.network.connect();
33
+ const { viem } = await network.create();
34
34
 
35
35
  const publicClient = await viem.getPublicClient();
36
36
  console.log(await publicClient.getBlockNumber());
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nomicfoundation/hardhat-viem",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "Hardhat plugin for viem",
5
- "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-viem",
5
+ "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-viem",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/NomicFoundation/hardhat",
9
- "directory": "v-next/hardhat-viem"
9
+ "directory": "packages/hardhat-viem"
10
10
  },
11
11
  "author": "Nomic Foundation",
12
12
  "license": "MIT",
@@ -31,7 +31,7 @@
31
31
  "README.md"
32
32
  ],
33
33
  "devDependencies": {
34
- "@nomicfoundation/hardhat-node-test-reporter": "^3.0.0",
34
+ "@nomicfoundation/hardhat-node-test-reporter": "^3.0.4",
35
35
  "@types/node": "^22.0.0",
36
36
  "c8": "^9.1.0",
37
37
  "eslint": "9.25.1",
@@ -40,17 +40,17 @@
40
40
  "rimraf": "^5.0.5",
41
41
  "tsx": "^4.19.3",
42
42
  "typescript": "~5.8.0",
43
- "viem": "^2.43.0",
44
- "hardhat": "^3.1.11",
43
+ "viem": "^2.47.6",
44
+ "hardhat": "^3.4.0",
45
45
  "@nomicfoundation/hardhat-test-utils": "^2.0.2"
46
46
  },
47
47
  "dependencies": {
48
- "@nomicfoundation/hardhat-errors": "^3.0.7",
49
- "@nomicfoundation/hardhat-utils": "^4.0.0"
48
+ "@nomicfoundation/hardhat-errors": "^3.0.11",
49
+ "@nomicfoundation/hardhat-utils": "^4.0.3"
50
50
  },
51
51
  "peerDependencies": {
52
- "hardhat": "^3.1.11",
53
- "viem": "^2.43.0"
52
+ "hardhat": "^3.4.0",
53
+ "viem": "^2.47.6"
54
54
  },
55
55
  "scripts": {
56
56
  "lint": "pnpm prettier --check && pnpm eslint",
@@ -63,6 +63,6 @@
63
63
  "pretest": "pnpm build",
64
64
  "pretest:only": "pnpm build",
65
65
  "build": "tsc --build .",
66
- "clean": "rimraf dist"
66
+ "clean": "rimraf dist ./test/fixture-projects/*-tmp-*-*-*-*-*"
67
67
  }
68
68
  }