happo 6.3.3 → 6.3.5

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 (45) hide show
  1. package/dist/cli/cancelJob-QSJ4H5RQ.js +10 -0
  2. package/dist/cli/{chunk-7GGKMO73.js → chunk-D6LAGJC3.js} +9 -11
  3. package/dist/cli/{chunk-7GGKMO73.js.map → chunk-D6LAGJC3.js.map} +2 -2
  4. package/dist/cli/{chunk-HCCR7LII.js → chunk-EIXHFGQL.js} +2 -2
  5. package/dist/cli/{chunk-EFADKLOS.js → chunk-H6OKM3G2.js} +2 -2
  6. package/dist/cli/{chunk-N5JA5TL4.js → chunk-JQRP37NK.js} +3 -3
  7. package/dist/cli/{chunk-UYPVGDDM.js → chunk-KBSCVKHT.js} +2 -2
  8. package/dist/cli/{chunk-PAR4AAZF.js → chunk-WYDYZN3N.js} +3 -2
  9. package/dist/cli/{chunk-PAR4AAZF.js.map → chunk-WYDYZN3N.js.map} +2 -2
  10. package/dist/cli/createAsyncComparison-2X5JW753.js +10 -0
  11. package/dist/cli/{createAsyncReport-2JVTIVAS.js → createAsyncReport-PWLSEU4U.js} +4 -4
  12. package/dist/cli/{getFlakes-4WW45S3F.js → getFlakes-ISMCYQYN.js} +4 -4
  13. package/dist/cli/main.js +14 -12
  14. package/dist/cli/main.js.map +2 -2
  15. package/dist/cli/package-QA5NMKSG.js +7 -0
  16. package/dist/cli/{prepareSnapRequests-KLZQ4U6E.js → prepareSnapRequests-LKEGFH3U.js} +9 -4
  17. package/dist/cli/prepareSnapRequests-LKEGFH3U.js.map +7 -0
  18. package/dist/cli/startJob-3G7ZMTJL.js +10 -0
  19. package/dist/cli/{wrapper-FBG7WHH4.js → wrapper-AA77AANX.js} +7 -7
  20. package/dist/config/RemoteBrowserTarget.d.ts +3 -3
  21. package/dist/config/RemoteBrowserTarget.d.ts.map +1 -1
  22. package/dist/config/loadConfig.d.ts.map +1 -1
  23. package/dist/cypress/task.js +20 -11
  24. package/dist/cypress/task.js.map +2 -2
  25. package/dist/e2e/controller.d.ts.map +1 -1
  26. package/dist/network/fetchWithRetry.d.ts.map +1 -1
  27. package/dist/playwright/index.js +20 -11
  28. package/dist/playwright/index.js.map +2 -2
  29. package/package.json +8 -10
  30. package/dist/cli/cancelJob-JYPGGQOF.js +0 -10
  31. package/dist/cli/createAsyncComparison-OM4RCCP7.js +0 -10
  32. package/dist/cli/package-IMEAGR5I.js +0 -7
  33. package/dist/cli/prepareSnapRequests-KLZQ4U6E.js.map +0 -7
  34. package/dist/cli/startJob-7FN6WAXU.js +0 -10
  35. /package/dist/cli/{cancelJob-JYPGGQOF.js.map → cancelJob-QSJ4H5RQ.js.map} +0 -0
  36. /package/dist/cli/{chunk-HCCR7LII.js.map → chunk-EIXHFGQL.js.map} +0 -0
  37. /package/dist/cli/{chunk-EFADKLOS.js.map → chunk-H6OKM3G2.js.map} +0 -0
  38. /package/dist/cli/{chunk-N5JA5TL4.js.map → chunk-JQRP37NK.js.map} +0 -0
  39. /package/dist/cli/{chunk-UYPVGDDM.js.map → chunk-KBSCVKHT.js.map} +0 -0
  40. /package/dist/cli/{createAsyncComparison-OM4RCCP7.js.map → createAsyncComparison-2X5JW753.js.map} +0 -0
  41. /package/dist/cli/{createAsyncReport-2JVTIVAS.js.map → createAsyncReport-PWLSEU4U.js.map} +0 -0
  42. /package/dist/cli/{getFlakes-4WW45S3F.js.map → getFlakes-ISMCYQYN.js.map} +0 -0
  43. /package/dist/cli/{package-IMEAGR5I.js.map → package-QA5NMKSG.js.map} +0 -0
  44. /package/dist/cli/{startJob-7FN6WAXU.js.map → startJob-3G7ZMTJL.js.map} +0 -0
  45. /package/dist/cli/{wrapper-FBG7WHH4.js.map → wrapper-AA77AANX.js.map} +0 -0
@@ -18,7 +18,7 @@ import asyncRetry from "async-retry";
18
18
  // package.json
19
19
  var package_default = {
20
20
  name: "happo",
21
- version: "6.3.3",
21
+ version: "6.3.5",
22
22
  description: "Catch unexpected visual and accessibility changes and UI bugs",
23
23
  license: "MIT",
24
24
  repository: {
@@ -120,39 +120,37 @@ var package_default = {
120
120
  arrowParens: "always"
121
121
  },
122
122
  devDependencies: {
123
- "@eslint/js": "^9.36.0",
123
+ "@eslint/js": "^10.0.1",
124
124
  "@playwright/test": "^1.55.1",
125
125
  "@reporters/github": "^1.11.0",
126
126
  "@storybook/builder-vite": "^10.0.1",
127
127
  "@storybook/react-vite": "^10.0.1",
128
128
  "@types/async-retry": "^1.4.9",
129
129
  "@types/base64-stream": "^1.0.5",
130
- "@types/jsdom": "^27.0.0",
130
+ "@types/jsdom": "^28.0.0",
131
131
  "@types/mime-types": "^3.0.1",
132
132
  "@types/multiparty": "^4.2.1",
133
133
  "@types/node": "^24.9.1",
134
134
  "@types/react": "^19.2.0",
135
135
  "@types/react-dom": "^19.2.0",
136
- "@types/serve-handler": "^6.1.4",
137
136
  cypress: "^15.5.0",
138
137
  esbuild: "^0.27.0",
139
- eslint: "^9.36.0",
138
+ eslint: "^10.0.2",
140
139
  "eslint-config-prettier": "^10.1.8",
141
- "eslint-plugin-compat": "^6.0.2",
142
- "eslint-plugin-depend": "^1.3.1",
140
+ "eslint-plugin-compat": "^6.2.0",
141
+ "eslint-plugin-depend": "^1.4.0",
143
142
  "eslint-plugin-simple-import-sort": "^12.1.1",
144
143
  "eslint-plugin-unicorn": "^63.0.0",
145
- jiti: "^2.6.0",
144
+ jiti: "^2.6.1",
146
145
  jsdom: "^28.0.0",
147
146
  multiparty: "^4.2.3",
148
147
  prettier: "^3.6.2",
149
148
  react: "^19.2.0",
150
149
  "react-dom": "^19.2.0",
151
150
  "react-error-boundary": "^6.0.0",
152
- "serve-handler": "^6.1.6",
153
151
  storybook: "^10.0.1",
154
152
  typescript: "^5.9.2",
155
- "typescript-eslint": "^8.44.1"
153
+ "typescript-eslint": "^8.56.1"
156
154
  },
157
155
  dependencies: {
158
156
  "async-retry": "^1.3.3",
@@ -252,6 +250,7 @@ async function fetchWithRetry(url, {
252
250
  const originalError = maybeError instanceof Error ? maybeError : new Error(String(maybeError));
253
251
  const message = originalError.name === "TimeoutError" ? `Timeout when fetching ${url} using method ${method}` : originalError.message;
254
252
  throw new Error(`${message} (took ${Date.now() - start} ms)`, {
253
+ // eslint-disable-next-line preserve-caught-error -- We actually are preserving the original error, the rule is wrong in this case
255
254
  cause: originalError
256
255
  });
257
256
  }
@@ -560,7 +559,9 @@ async function loadConfigFile(configFilePath, environment, logger = console) {
560
559
  }
561
560
  } catch (error) {
562
561
  if (error instanceof Error && "code" in error && error.code === "ENOENT") {
563
- throw new Error(`Happo config file could not be found: ${configFilePath}`);
562
+ throw new Error(`Happo config file could not be found: ${configFilePath}`, {
563
+ cause: error
564
+ });
564
565
  }
565
566
  throw error;
566
567
  }
@@ -733,6 +734,11 @@ var RemoteBrowserTarget = class {
733
734
  maxHeight,
734
735
  ...otherOptions
735
736
  }) {
737
+ if (!browserName) {
738
+ throw new Error(
739
+ `Invalid browser type: "${browserName}". Make sure the "type" field in your target configuration is set to a valid browser type.`
740
+ );
741
+ }
736
742
  const viewportMatch = viewport.match(VIEWPORT_PATTERN);
737
743
  if (!viewportMatch) {
738
744
  throw new Error(
@@ -1360,6 +1366,9 @@ Documentation:
1360
1366
  return assetsPath;
1361
1367
  }
1362
1368
  async finish() {
1369
+ if (!this.happoConfig) {
1370
+ return;
1371
+ }
1363
1372
  if (this.happoDebug) {
1364
1373
  console.log("[HAPPO] Running Controller.finish");
1365
1374
  }