@axe-core/watcher 3.23.0-rc.8ee0c24e → 4.0.0-next.04c215a2

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 (51) hide show
  1. package/dist/Controller.d.ts +0 -1
  2. package/dist/Controller.js +0 -7
  3. package/dist/Controller.js.map +1 -1
  4. package/dist/cypress/cypress.js +4 -11
  5. package/dist/cypress/cypress.js.map +1 -1
  6. package/dist/cypressCommands.js +3 -3
  7. package/dist/cypressCommands.js.map +1 -1
  8. package/dist/cypressCommandsDeprecated.d.ts +1 -0
  9. package/dist/cypressCommandsDeprecated.js +25 -0
  10. package/dist/cypressCommandsDeprecated.js.map +1 -0
  11. package/dist/git.d.ts +1 -0
  12. package/dist/git.js +32 -3
  13. package/dist/git.js.map +1 -1
  14. package/dist/index.d.ts +1 -1
  15. package/dist/index.js +8 -4
  16. package/dist/index.js.map +1 -1
  17. package/dist/playwright/playwright.d.ts +8 -3
  18. package/dist/playwright/playwright.js.map +1 -1
  19. package/dist/playwright-test/playwrightTest.d.ts +4 -4
  20. package/dist/playwright-test/playwrightTest.js +2 -1
  21. package/dist/playwright-test/playwrightTest.js.map +1 -1
  22. package/dist/sendResultsToServer.d.ts +3 -0
  23. package/dist/sendResultsToServer.js +31 -17
  24. package/dist/sendResultsToServer.js.map +1 -1
  25. package/dist/utils/initializeSession.d.ts +2 -1
  26. package/dist/utils/initializeSession.js +18 -9
  27. package/dist/utils/initializeSession.js.map +1 -1
  28. package/dist/utils/isCI.d.ts +1 -0
  29. package/dist/utils/isCI.js +11 -0
  30. package/dist/utils/isCI.js.map +1 -0
  31. package/dist/utils/shouldUseEnvProxy.d.ts +5 -0
  32. package/dist/utils/shouldUseEnvProxy.js +22 -0
  33. package/dist/utils/shouldUseEnvProxy.js.map +1 -0
  34. package/dist/utils/sync-fetch-worker.mjs +170 -0
  35. package/dist/utils/sync-fetch.d.ts +11 -0
  36. package/dist/utils/sync-fetch.js +80 -0
  37. package/dist/utils/sync-fetch.js.map +1 -0
  38. package/dist/utils/test-constants.d.ts +14 -0
  39. package/dist/utils/test-constants.js +12 -0
  40. package/dist/utils/test-constants.js.map +1 -0
  41. package/dist/utils/writeVariables.d.ts +5 -1
  42. package/dist/utils/writeVariables.js +5 -5
  43. package/dist/utils/writeVariables.js.map +1 -1
  44. package/extension/axe.js +1 -1
  45. package/extension/axe.js.LICENSE.txt +1 -1
  46. package/extension/background.js +1 -1
  47. package/extension/content.js +1 -1
  48. package/package.json +81 -12
  49. package/dist/shared/strings.d.ts +0 -1
  50. package/dist/shared/strings.js +0 -5
  51. package/dist/shared/strings.js.map +0 -1
package/package.json CHANGED
@@ -1,16 +1,60 @@
1
1
  {
2
2
  "name": "@axe-core/watcher",
3
- "version": "3.23.0-rc.8ee0c24e",
3
+ "version": "4.0.0-next.04c215a2",
4
4
  "description": "",
5
5
  "license": "UNLICENSED",
6
- "main": "dist/index.js",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "default": "./dist/index.js"
10
+ },
11
+ "./cypress/config": {
12
+ "types": "./dist/cypress/cypress.d.ts",
13
+ "default": "./dist/cypress/cypress.js"
14
+ },
15
+ "./cypress/support": {
16
+ "types": "./dist/cypressCommands.d.ts",
17
+ "default": "./dist/cypressCommands.js"
18
+ },
19
+ "./dist/cypressCommands": {
20
+ "types": "./dist/cypressCommandsDeprecated.d.ts",
21
+ "default": "./dist/cypressCommandsDeprecated.js"
22
+ },
23
+ "./dist/cypressCommands.js": {
24
+ "types": "./dist/cypressCommandsDeprecated.d.ts",
25
+ "default": "./dist/cypressCommandsDeprecated.js"
26
+ },
27
+ "./puppeteer": {
28
+ "types": "./dist/puppeteer/puppeteer.d.ts",
29
+ "default": "./dist/puppeteer/puppeteer.js"
30
+ },
31
+ "./playwright": {
32
+ "types": "./dist/playwright/playwright.d.ts",
33
+ "default": "./dist/playwright/playwright.js"
34
+ },
35
+ "./playwright-test": {
36
+ "types": "./dist/playwright-test/playwrightTest.d.ts",
37
+ "default": "./dist/playwright-test/playwrightTest.js"
38
+ },
39
+ "./webdriverio": {
40
+ "types": "./dist/wdio/wdio.d.ts",
41
+ "default": "./dist/wdio/wdio.js"
42
+ },
43
+ "./selenium-webdriver": {
44
+ "types": "./dist/webdriver/webdriver.d.ts",
45
+ "default": "./dist/webdriver/webdriver.js"
46
+ }
47
+ },
7
48
  "files": [
8
49
  "dist",
9
50
  "extension",
10
51
  "LICENSES-3RD-PARTY.md"
11
52
  ],
53
+ "engines": {
54
+ "node": "^20.18.1 || ^22.11.0 || ^24.11.0"
55
+ },
12
56
  "scripts": {
13
- "build": "tsc --removeComments && tsc --declaration --emitDeclarationOnly",
57
+ "build": "tsc --removeComments && tsc --declaration --emitDeclarationOnly && cp src/utils/sync-fetch-worker.mjs dist/utils/",
14
58
  "test": "mocha 'src/**/*.test.ts'",
15
59
  "pretest:e2e": "npm run copy-extension",
16
60
  "test:e2e": "mocha 'e2e/*.test.ts'",
@@ -23,9 +67,7 @@
23
67
  "dependencies": {
24
68
  "debug": "^4.3.5",
25
69
  "eventemitter3": "^5.0.1",
26
- "node-fetch": "^2.6.7",
27
- "sync-request": "^6.1.0",
28
- "uuid": "^11.0.3"
70
+ "undici": "^7.16.0"
29
71
  },
30
72
  "devDependencies": {
31
73
  "@cypress/react": "^9.0.1",
@@ -39,23 +81,21 @@
39
81
  "@types/mocha": "^10.0.0",
40
82
  "@types/morgan": "^1.9.3",
41
83
  "@types/node": "22.17.1",
42
- "@types/node-fetch": "2",
43
84
  "@types/proxyquire": "^1.3.28",
44
85
  "@types/react": "19",
45
86
  "@types/react-dom": "19",
46
87
  "@types/selenium-webdriver": "^4.1.15",
47
88
  "@types/sinon": "^17.0.3",
48
- "@types/uuid": "^10.0.0",
49
89
  "@wdio/types": "^9.0.4",
50
- "axe-core": "^4.10.3",
90
+ "axe-core": "^4.11.0",
51
91
  "axe-test-fixtures": "github:dequelabs/axe-test-fixtures#v1",
52
- "body-parser": "^1.20.1",
92
+ "body-parser": "^2.2.0",
53
93
  "chai": "^4.3.6",
54
94
  "cors": "^2.8.5",
55
95
  "cypress": "^14.0.1",
56
96
  "execa": "5",
57
97
  "express": "^4.18.2",
58
- "jsdom": "^26.0.0",
98
+ "jsdom": "^27.0.0",
59
99
  "mocha": "^11.0.1",
60
100
  "morgan": "^1.10.0",
61
101
  "nock": "^14.0.0",
@@ -71,6 +111,35 @@
71
111
  "ts-loader": "^9.5.2",
72
112
  "ts-node": "^10.9.2",
73
113
  "typescript": "^5.1.6",
74
- "webdriverio": "^9.0.5"
114
+ "webdriverio": "^9.0.5",
115
+ "yaml": "^2.8.1"
116
+ },
117
+ "peerDependencies": {
118
+ "@playwright/test": ">=1.45.0",
119
+ "cypress": "^14 || >=15",
120
+ "playwright-core": ">=1.45.0",
121
+ "puppeteer": "^23 || >=24",
122
+ "selenium-webdriver": "^4",
123
+ "webdriverio": "^8 || >=9"
124
+ },
125
+ "peerDependenciesMeta": {
126
+ "cypress": {
127
+ "optional": true
128
+ },
129
+ "selenium-webdriver": {
130
+ "optional": true
131
+ },
132
+ "@playwright/test": {
133
+ "optional": true
134
+ },
135
+ "playwright-core": {
136
+ "optional": true
137
+ },
138
+ "puppeteer": {
139
+ "optional": true
140
+ },
141
+ "webdriverio": {
142
+ "optional": true
143
+ }
75
144
  }
76
145
  }
@@ -1 +0,0 @@
1
- export declare const CHROME_139_WARNING = "Branded versions of Google Chrome v139 and higher removed support for tools like @axe-core/watcher. Use Chrome for Testing or Chromium instead. Please refer to our System Requirements for more information: https://docs.deque.com/developer-hub/2/en/dh-system-requirements";
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CHROME_139_WARNING = void 0;
4
- exports.CHROME_139_WARNING = 'Branded versions of Google Chrome v139 and higher removed support for tools like @axe-core/watcher. Use Chrome for Testing or Chromium instead. Please refer to our System Requirements for more information: https://docs.deque.com/developer-hub/2/en/dh-system-requirements';
5
- //# sourceMappingURL=strings.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strings.js","sourceRoot":"","sources":["../../src/shared/strings.ts"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAC7B,gRAAgR,CAAA"}