@nomicfoundation/hardhat-viem 3.0.7 → 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,25 @@
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
+
13
+ ## 3.0.8
14
+
15
+ ### Patch Changes
16
+
17
+ - [#8264](https://github.com/NomicFoundation/hardhat/pull/8264) [`8452f97`](https://github.com/NomicFoundation/hardhat/commit/8452f9726205540e1684d3f8458bfd145e790226) Thanks [@alcuadrado](https://github.com/alcuadrado)! - Export `./package.json` so consumers can import the package's manifest.
18
+
19
+ - Updated dependencies:
20
+ - @nomicfoundation/hardhat-errors@3.0.13
21
+ - @nomicfoundation/hardhat-utils@4.1.2
22
+
3
23
  ## 3.0.7
4
24
 
5
25
  ### 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.7",
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": {
@@ -14,7 +14,8 @@
14
14
  "types": "dist/src/index.d.ts",
15
15
  "exports": {
16
16
  ".": "./dist/src/index.js",
17
- "./types": "./dist/src/types.js"
17
+ "./types": "./dist/src/types.js",
18
+ "./package.json": "./package.json"
18
19
  },
19
20
  "keywords": [
20
21
  "ethereum",
@@ -31,7 +32,7 @@
31
32
  "README.md"
32
33
  ],
33
34
  "devDependencies": {
34
- "@nomicfoundation/hardhat-node-test-reporter": "^3.0.5",
35
+ "@nomicfoundation/hardhat-node-test-reporter": "^3.1.0",
35
36
  "@types/node": "^22.0.0",
36
37
  "c8": "^9.1.0",
37
38
  "eslint": "9.25.1",
@@ -39,22 +40,22 @@
39
40
  "prettier": "3.2.5",
40
41
  "rimraf": "^5.0.5",
41
42
  "tsx": "^4.19.3",
42
- "typescript": "~5.8.0",
43
+ "typescript": "~6.0.3",
43
44
  "viem": "^2.47.6",
44
- "hardhat": "^3.4.0",
45
+ "hardhat": "^3.8.0",
45
46
  "@nomicfoundation/hardhat-test-utils": "^2.0.3"
46
47
  },
47
48
  "dependencies": {
48
- "@nomicfoundation/hardhat-errors": "^3.0.11",
49
- "@nomicfoundation/hardhat-utils": "^4.1.1"
49
+ "@nomicfoundation/hardhat-errors": "^3.0.15",
50
+ "@nomicfoundation/hardhat-utils": "^4.1.2"
50
51
  },
51
52
  "peerDependencies": {
52
- "hardhat": "^3.4.0",
53
+ "hardhat": "^3.8.0",
53
54
  "viem": "^2.47.6"
54
55
  },
55
56
  "scripts": {
56
- "lint": "pnpm prettier --check && pnpm eslint",
57
- "lint:fix": "pnpm prettier --write && pnpm eslint --fix",
57
+ "lint": "pnpm eslint && pnpm prettier --check",
58
+ "lint:fix": "pnpm eslint --fix && pnpm prettier --write",
58
59
  "eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
59
60
  "prettier": "prettier \"**/*.{ts,js,md,json}\"",
60
61
  "test": "node --import tsx/esm --test --test-reporter=@nomicfoundation/hardhat-node-test-reporter \"test/*.ts\" \"test/!(fixture-projects|helpers)/**/*.ts\"",
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;