@cucumber/html-formatter 21.9.0 → 21.10.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cucumber/html-formatter",
3
- "version": "21.9.0",
3
+ "version": "21.10.1",
4
4
  "description": "HTML formatter for Cucumber",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",
@@ -18,56 +18,58 @@
18
18
  "prepare": "shx mkdir -p dist/src && shx cp src/*.scss dist/src && shx cp src/index.mustache.html dist/src",
19
19
  "test": "mocha --exclude test/acceptance.ts",
20
20
  "prepublishOnly": "npm run build",
21
- "eslint:fix": "eslint --ext ts,tsx --max-warnings 0 --fix src test",
22
- "eslint": "eslint --ext ts,tsx --max-warnings 0 src test",
21
+ "fix": "eslint --max-warnings 0 --fix src test && prettier --write src test",
22
+ "lint": "eslint --max-warnings 0 src test && prettier --check src test",
23
23
  "validate": "shx mkdir -p acceptance && mocha test/acceptance.ts"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@cucumber/messages": ">=18"
27
27
  },
28
28
  "devDependencies": {
29
- "@babel/core": "7.26.7",
30
- "@cucumber/compatibility-kit": "^15.0.0",
31
- "@cucumber/gherkin": "31.0.0",
29
+ "@babel/core": "7.26.10",
30
+ "@cucumber/compatibility-kit": "^18.0.0",
31
+ "@cucumber/gherkin": "32.1.0",
32
32
  "@cucumber/gherkin-streams": "^5.0.1",
33
33
  "@cucumber/gherkin-utils": "^9.0.0",
34
34
  "@cucumber/message-streams": "4.0.1",
35
35
  "@cucumber/messages": "27.2.0",
36
- "@cucumber/query": "12.2.0",
37
- "@cucumber/react-components": "22.3.0",
36
+ "@cucumber/query": "13.2.0",
37
+ "@cucumber/react-components": "22.4.2",
38
+ "@eslint/compat": "^1.2.7",
39
+ "@eslint/eslintrc": "^3.2.0",
40
+ "@eslint/js": "^9.20.0",
38
41
  "@types/glob": "^8.0.0",
39
42
  "@types/mocha": "10.0.10",
40
- "@types/node": "22.12.0",
41
- "@types/react": "18.3.18",
42
- "@types/react-dom": "18.3.5",
43
- "@typescript-eslint/eslint-plugin": "^8.0.0",
44
- "@typescript-eslint/parser": "^8.0.0",
43
+ "@types/node": "22.14.1",
44
+ "@types/react": "18.3.20",
45
+ "@types/react-dom": "18.3.6",
46
+ "@typescript-eslint/eslint-plugin": "^8.24.1",
47
+ "@typescript-eslint/parser": "^8.24.1",
45
48
  "babel-loader": "9.2.1",
46
- "css-loader": "6.11.0",
47
- "eslint": "^8.13.0",
48
- "eslint-config-prettier": "^9.0.0",
49
- "eslint-plugin-import": "^2.26.0",
50
- "eslint-plugin-node": "^11.1.0",
51
- "eslint-plugin-prettier": "^5.0.0",
52
- "eslint-plugin-react": "^7.29.4",
53
- "eslint-plugin-react-hooks": "^4.4.0",
54
- "eslint-plugin-simple-import-sort": "^12.0.0",
49
+ "css-loader": "7.1.2",
50
+ "eslint": "^9.20.1",
51
+ "eslint-plugin-import": "^2.31.0",
52
+ "eslint-plugin-n": "^17.15.1",
53
+ "eslint-plugin-react": "^7.37.4",
54
+ "eslint-plugin-react-hooks": "^5.1.0",
55
+ "eslint-plugin-simple-import-sort": "^12.1.1",
55
56
  "glob": "^11.0.0",
57
+ "globals": "^16.0.0",
56
58
  "mini-css-extract-plugin": "2.9.2",
57
- "mocha": "10.8.2",
58
- "prettier": "^3.0.0",
59
- "puppeteer": "^23.0.0",
59
+ "mocha": "11.1.0",
60
+ "prettier": "^3.5.1",
61
+ "puppeteer": "^24.0.0",
60
62
  "react": "18.3.1",
61
63
  "react-dom": "18.3.1",
62
- "sass": "1.83.4",
63
- "sass-loader": "16.0.4",
64
- "shx": "^0.3.4",
64
+ "sass": "1.86.3",
65
+ "sass-loader": "16.0.5",
66
+ "shx": "^0.4.0",
65
67
  "source-map-support": "0.5.21",
66
68
  "ts-loader": "9.5.2",
67
69
  "ts-node": "10.9.2",
68
70
  "typescript": "5.7.3",
69
- "webpack": "5.97.1",
70
- "webpack-cli": "5.1.4"
71
+ "webpack": "5.99.6",
72
+ "webpack-cli": "6.0.1"
71
73
  },
72
74
  "bugs": {
73
75
  "url": "https://github.com/cucumber/html-formatter/issues"
@@ -19,4 +19,4 @@ window.CUCUMBER_MESSAGES = [{{messages}}];
19
19
  {{script}}
20
20
  </script>
21
21
  </body>
22
- </html>
22
+ </html>
package/src/main.tsx CHANGED
@@ -3,7 +3,7 @@ import './styles.scss'
3
3
  import * as messages from '@cucumber/messages'
4
4
  import { components, searchFromURLParams } from '@cucumber/react-components'
5
5
  import React from 'react'
6
- import ReactDOM from 'react-dom'
6
+ import { createRoot } from 'react-dom/client'
7
7
 
8
8
  const { CucumberReact } = components
9
9
  const { FilteredResults, EnvelopesWrapper, SearchWrapper } = components.app
@@ -14,7 +14,9 @@ declare global {
14
14
  }
15
15
  }
16
16
 
17
- const app = (
17
+ const root = createRoot(document.getElementById('content') as HTMLElement)
18
+
19
+ root.render(
18
20
  <CucumberReact theme="auto">
19
21
  <EnvelopesWrapper envelopes={window.CUCUMBER_MESSAGES}>
20
22
  <SearchWrapper {...searchFromURLParams()}>
@@ -23,5 +25,3 @@ const app = (
23
25
  </EnvelopesWrapper>
24
26
  </CucumberReact>
25
27
  )
26
-
27
- ReactDOM.render(app, document.getElementById('content'))
package/src/styles.scss CHANGED
@@ -1,10 +1,10 @@
1
1
  body {
2
- padding: 0;
3
- margin: 0;
2
+ padding: 0;
3
+ margin: 0;
4
4
  }
5
5
 
6
6
  .html-formatter {
7
- max-width: 1600px;
8
- min-height: 100vh;
9
- margin: 0 auto;
7
+ max-width: 1600px;
8
+ min-height: 100vh;
9
+ margin: 0 auto;
10
10
  }
package/webpack.config.js CHANGED
@@ -12,7 +12,8 @@ module.exports = {
12
12
  loader: 'css-loader',
13
13
  options: {
14
14
  modules: {
15
- auto: true
15
+ auto: true,
16
+ namedExport: false
16
17
  }
17
18
  }
18
19
  },
package/.eslintrc.json DELETED
@@ -1,51 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "node": true
5
- },
6
- "parser": "@typescript-eslint/parser",
7
- "parserOptions": {
8
- "sourceType": "module"
9
- },
10
- "plugins": ["react", "import", "simple-import-sort", "node", "@typescript-eslint"],
11
- "extends": [
12
- "eslint:recommended",
13
- "plugin:react/recommended",
14
- "plugin:react-hooks/recommended",
15
- "plugin:import/typescript",
16
- "plugin:@typescript-eslint/eslint-recommended",
17
- "plugin:@typescript-eslint/recommended",
18
- "plugin:prettier/recommended",
19
- "prettier"
20
- ],
21
- "rules": {
22
- "import/no-cycle": "error",
23
- "node/no-extraneous-import": "error",
24
- "@typescript-eslint/ban-ts-ignore": "off",
25
- "@typescript-eslint/ban-ts-comment": "off",
26
- "@typescript-eslint/explicit-module-boundary-types": "off",
27
- "@typescript-eslint/explicit-function-return-type": "off",
28
- "@typescript-eslint/no-use-before-define": "off",
29
- "@typescript-eslint/interface-name-prefix": "off",
30
- "@typescript-eslint/member-delimiter-style": "off",
31
- "@typescript-eslint/no-explicit-any": "error",
32
- "@typescript-eslint/no-non-null-assertion": "error",
33
- "simple-import-sort/imports": "error",
34
- "simple-import-sort/exports": "error",
35
- "react/prop-types": "off"
36
- },
37
- "overrides": [
38
- {
39
- "files": ["test/**"],
40
- "rules": {
41
- "@typescript-eslint/no-non-null-assertion": "off"
42
- }
43
- }
44
- ],
45
- "settings": {
46
- "react": {
47
- "pragma": "React",
48
- "version": "detect"
49
- }
50
- }
51
- }