@nomicfoundation/hardhat-ethers-chai-matchers 3.0.8 → 3.0.10

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,23 @@
1
1
  # @nomicfoundation/hardhat-ethers-chai-matchers
2
2
 
3
+ ## 3.0.10
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
+
12
+ ## 3.0.9
13
+
14
+ ### Patch Changes
15
+
16
+ - [#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.
17
+
18
+ - Updated dependencies:
19
+ - @nomicfoundation/hardhat-utils@4.1.2
20
+
3
21
  ## 3.0.8
4
22
 
5
23
  ### 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,yBAAyB,EAAE,aAOhC,CAAC;AAEF,eAAe,yBAAyB,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,yBAAyB,EAAE,aAO/B,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,10 +1,11 @@
1
- const hardhatChaiMatchersPlugin = {
1
+ import { definePlugin } from "hardhat/plugins";
2
+ const hardhatChaiMatchersPlugin = definePlugin({
2
3
  id: "hardhat-ethers-chai-matchers",
3
4
  hookHandlers: {
4
5
  network: () => import("./internal/hook-handlers/network.js"),
5
6
  },
6
7
  npmPackage: "@nomicfoundation/hardhat-ethers-chai-matchers",
7
8
  dependencies: () => [import("@nomicfoundation/hardhat-ethers")],
8
- };
9
+ });
9
10
  export default hardhatChaiMatchersPlugin;
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAIA,MAAM,yBAAyB,GAAkB;IAC/C,EAAE,EAAE,8BAA8B;IAClC,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qCAAqC,CAAC;KAC7D;IACD,UAAU,EAAE,+CAA+C;IAC3D,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;CAChE,CAAC;AAEF,eAAe,yBAAyB,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,yBAAyB,GAAkB,YAAY,CAAC;IAC5D,EAAE,EAAE,8BAA8B;IAClC,YAAY,EAAE;QACZ,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qCAAqC,CAAC;KAC7D;IACD,UAAU,EAAE,+CAA+C;IAC3D,YAAY,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC;CAChE,CAAC,CAAC;AAEH,eAAe,yBAAyB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nomicfoundation/hardhat-ethers-chai-matchers",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "description": "Hardhat utils for testing",
5
5
  "homepage": "https://github.com/NomicFoundation/hardhat/tree/main/packages/hardhat-ethers-chai-matchers",
6
6
  "repository": {
@@ -15,7 +15,8 @@
15
15
  "exports": {
16
16
  ".": "./dist/src/index.js",
17
17
  "./panic": "./dist/src/panic.js",
18
- "./withArgs": "./dist/src/withArgs.js"
18
+ "./withArgs": "./dist/src/withArgs.js",
19
+ "./package.json": "./package.json"
19
20
  },
20
21
  "keywords": [
21
22
  "ethereum",
@@ -31,8 +32,8 @@
31
32
  "README.md"
32
33
  ],
33
34
  "devDependencies": {
34
- "@nomicfoundation/hardhat-mocha": "^3.0.19",
35
- "@nomicfoundation/hardhat-node-test-reporter": "^3.0.6",
35
+ "@nomicfoundation/hardhat-mocha": "^3.0.21",
36
+ "@nomicfoundation/hardhat-node-test-reporter": "^3.1.0",
36
37
  "@types/chai": "^5.2.3",
37
38
  "@types/deep-eql": "^4.0.2",
38
39
  "@types/mocha": ">=10.0.10",
@@ -44,28 +45,28 @@
44
45
  "prettier": "3.2.5",
45
46
  "rimraf": "^5.0.5",
46
47
  "tsx": "^4.19.3",
47
- "typescript": "~5.8.0",
48
- "hardhat": "^3.4.0",
48
+ "typescript": "~6.0.3",
49
+ "hardhat": "^3.8.0",
49
50
  "@nomicfoundation/hardhat-ethers": "^4.0.7",
50
51
  "chai": ">=5.1.2 <7",
51
52
  "ethers": "^6.14.0",
52
53
  "@nomicfoundation/hardhat-test-utils": "^2.0.3"
53
54
  },
54
55
  "dependencies": {
55
- "@nomicfoundation/hardhat-utils": "^4.1.1",
56
+ "@nomicfoundation/hardhat-utils": "^4.1.2",
56
57
  "@types/chai-as-promised": "^8.0.1",
57
58
  "chai-as-promised": "^8.0.0",
58
59
  "deep-eql": "^5.0.1"
59
60
  },
60
61
  "peerDependencies": {
61
- "hardhat": "^3.4.0",
62
+ "hardhat": "^3.8.0",
62
63
  "@nomicfoundation/hardhat-ethers": "^4.0.7",
63
64
  "chai": ">=5.1.2 <7",
64
65
  "ethers": "^6.14.0"
65
66
  },
66
67
  "scripts": {
67
- "lint": "pnpm prettier --check && pnpm eslint",
68
- "lint:fix": "pnpm prettier --write && pnpm eslint --fix",
68
+ "lint": "pnpm eslint && pnpm prettier --check",
69
+ "lint:fix": "pnpm eslint --fix && pnpm prettier --write",
69
70
  "eslint": "eslint \"src/**/*.ts\" \"test/**/*.ts\"",
70
71
  "prettier": "prettier \"**/*.{ts,js,md,json}\"",
71
72
  "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,14 +1,16 @@
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 hardhatChaiMatchersPlugin: HardhatPlugin = {
7
+ const hardhatChaiMatchersPlugin: HardhatPlugin = definePlugin({
6
8
  id: "hardhat-ethers-chai-matchers",
7
9
  hookHandlers: {
8
10
  network: () => import("./internal/hook-handlers/network.js"),
9
11
  },
10
12
  npmPackage: "@nomicfoundation/hardhat-ethers-chai-matchers",
11
13
  dependencies: () => [import("@nomicfoundation/hardhat-ethers")],
12
- };
14
+ });
13
15
 
14
16
  export default hardhatChaiMatchersPlugin;