@nomicfoundation/hardhat-viem 3.0.8 → 3.0.9

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # @nomicfoundation/hardhat-viem
2
2
 
3
+ ## 3.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#8339](https://github.com/NomicFoundation/hardhat/pull/8339) [`00720e8`](https://github.com/NomicFoundation/hardhat/commit/00720e848ced4601deb300488beda85491dc7733) Thanks [@alcuadrado](https://github.com/alcuadrado)! - The plugin now uses `definePlugin` from `hardhat/plugins` in its `index.ts`, so it participates in Hardhat's new "imported but unused plugin" warning when omitted from a project's `plugins` array.
8
+
9
+ - Updated dependencies:
10
+ - hardhat@3.8.0
11
+ - @nomicfoundation/hardhat-errors@3.0.15
12
+
3
13
  ## 3.0.8
4
14
 
5
15
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3D,mBAAmB,sBAAsB,CAAC;AAE1C,QAAA,MAAM,aAAa,EAAE,aAMpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAI3D,mBAAmB,sBAAsB,CAAC;AAE1C,QAAA,MAAM,aAAa,EAAE,aAMnB,CAAC;AAEH,eAAe,aAAa,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,9 +1,10 @@
1
- const hardhatPlugin = {
1
+ import { definePlugin } from "hardhat/plugins";
2
+ const hardhatPlugin = definePlugin({
2
3
  id: "hardhat-viem",
3
4
  hookHandlers: {
4
5
  network: () => import("./internal/hook-handlers/network.js"),
5
6
  },
6
7
  npmPackage: "@nomicfoundation/hardhat-viem",
7
- };
8
+ });
8
9
  export default hardhatPlugin;
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,MAAM,aAAa,GAAkB;IACnC,EAAE,EAAE,cAAc;IAClB,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qCAAqC,CAAC;KAC7D;IACD,UAAU,EAAE,+BAA+B;CAC5C,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,MAAM,aAAa,GAAkB,YAAY,CAAC;IAChD,EAAE,EAAE,cAAc;IAClB,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qCAAqC,CAAC;KAC7D;IACD,UAAU,EAAE,+BAA+B;CAC5C,CAAC,CAAC;AAEH,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/hardhat-viem",
3
- "version": "3.0.8",
3
+ "version": "3.0.9",
4
4
  "description": "Hardhat plugin for viem",
5
5
  "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-viem",
6
6
  "repository": {
@@ -32,7 +32,7 @@
32
32
  "README.md"
33
33
  ],
34
34
  "devDependencies": {
35
- "@nomicfoundation/hardhat-node-test-reporter": "^3.0.7",
35
+ "@nomicfoundation/hardhat-node-test-reporter": "^3.1.0",
36
36
  "@types/node": "^22.0.0",
37
37
  "c8": "^9.1.0",
38
38
  "eslint": "9.25.1",
@@ -42,15 +42,15 @@
42
42
  "tsx": "^4.19.3",
43
43
  "typescript": "~6.0.3",
44
44
  "viem": "^2.47.6",
45
- "hardhat": "^3.4.0",
45
+ "hardhat": "^3.8.0",
46
46
  "@nomicfoundation/hardhat-test-utils": "^2.0.3"
47
47
  },
48
48
  "dependencies": {
49
- "@nomicfoundation/hardhat-errors": "^3.0.13",
49
+ "@nomicfoundation/hardhat-errors": "^3.0.15",
50
50
  "@nomicfoundation/hardhat-utils": "^4.1.2"
51
51
  },
52
52
  "peerDependencies": {
53
- "hardhat": "^3.4.0",
53
+ "hardhat": "^3.8.0",
54
54
  "viem": "^2.47.6"
55
55
  },
56
56
  "scripts": {
package/src/index.ts CHANGED
@@ -1,13 +1,15 @@
1
1
  import type { HardhatPlugin } from "hardhat/types/plugins";
2
2
 
3
+ import { definePlugin } from "hardhat/plugins";
4
+
3
5
  export type * from "./type-extensions.js";
4
6
 
5
- const hardhatPlugin: HardhatPlugin = {
7
+ const hardhatPlugin: HardhatPlugin = definePlugin({
6
8
  id: "hardhat-viem",
7
9
  hookHandlers: {
8
10
  network: () => import("./internal/hook-handlers/network.js"),
9
11
  },
10
12
  npmPackage: "@nomicfoundation/hardhat-viem",
11
- };
13
+ });
12
14
 
13
15
  export default hardhatPlugin;