cypress-annotate 0.1.1 → 0.1.2

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 (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +11 -5
package/README.md CHANGED
@@ -16,6 +16,10 @@ else to configure.
16
16
  npm install --save-dev cypress-annotate
17
17
  ```
18
18
 
19
+ Needs Node 20.19+ or 22.12+. The package is ESM, and those are the versions that
20
+ can `require()` an ES module, which is what Cypress's default webpack and Babel
21
+ preprocessor ends up doing with the import in step 3.
22
+
19
23
  ### 2. Register the Node task
20
24
 
21
25
  The measuring happens in the browser, the image compositing happens in Node. This
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cypress-annotate",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Annotate Cypress screenshots and failed-test runs with pixel-accurate boxes, pointing at exactly what broke.",
5
5
  "keywords": [
6
6
  "cypress",
@@ -37,7 +37,7 @@
37
37
  },
38
38
  "homepage": "https://github.com/bidemiajala/cypress-annotate#readme",
39
39
  "engines": {
40
- "node": ">=20"
40
+ "node": "^20.19.0 || >=22.12.0"
41
41
  },
42
42
  "type": "module",
43
43
  "main": "dist/index.js",
@@ -45,15 +45,21 @@
45
45
  "exports": {
46
46
  ".": {
47
47
  "types": "./dist/index.d.ts",
48
- "import": "./dist/index.js"
48
+ "import": "./dist/index.js",
49
+ "require": "./dist/index.js",
50
+ "default": "./dist/index.js"
49
51
  },
50
52
  "./reasoner": {
51
53
  "types": "./dist/claude-reasoner.d.ts",
52
- "import": "./dist/claude-reasoner.js"
54
+ "import": "./dist/claude-reasoner.js",
55
+ "require": "./dist/claude-reasoner.js",
56
+ "default": "./dist/claude-reasoner.js"
53
57
  },
54
58
  "./cypress/*": {
55
59
  "types": "./dist/cypress/*.d.ts",
56
- "import": "./dist/cypress/*.js"
60
+ "import": "./dist/cypress/*.js",
61
+ "require": "./dist/cypress/*.js",
62
+ "default": "./dist/cypress/*.js"
57
63
  }
58
64
  },
59
65
  "files": [