@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/.prettierignore +1 -0
- package/dist/main.css +7 -7
- package/dist/main.js +1 -1
- package/dist/package.json +32 -30
- package/dist/src/index.mustache.html +1 -1
- package/dist/src/main.js +3 -3
- package/dist/src/main.js.map +1 -1
- package/dist/src/styles.scss +5 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/eslint.config.mjs +78 -0
- package/package.json +32 -30
- package/src/index.mustache.html +1 -1
- package/src/main.tsx +4 -4
- package/src/styles.scss +5 -5
- package/webpack.config.js +2 -1
- package/.eslintrc.json +0 -51
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cucumber/html-formatter",
|
|
3
|
-
"version": "21.
|
|
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
|
-
"
|
|
22
|
-
"
|
|
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.
|
|
30
|
-
"@cucumber/compatibility-kit": "^
|
|
31
|
-
"@cucumber/gherkin": "
|
|
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": "
|
|
37
|
-
"@cucumber/react-components": "22.
|
|
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.
|
|
41
|
-
"@types/react": "18.3.
|
|
42
|
-
"@types/react-dom": "18.3.
|
|
43
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
44
|
-
"@typescript-eslint/parser": "^8.
|
|
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": "
|
|
47
|
-
"eslint": "^
|
|
48
|
-
"eslint-
|
|
49
|
-
"eslint-plugin-
|
|
50
|
-
"eslint-plugin-
|
|
51
|
-
"eslint-plugin-
|
|
52
|
-
"eslint-plugin-
|
|
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": "
|
|
58
|
-
"prettier": "^3.
|
|
59
|
-
"puppeteer": "^
|
|
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.
|
|
63
|
-
"sass-loader": "16.0.
|
|
64
|
-
"shx": "^0.
|
|
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.
|
|
70
|
-
"webpack-cli": "
|
|
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"
|
package/src/index.mustache.html
CHANGED
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
|
|
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
|
|
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
package/webpack.config.js
CHANGED
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
|
-
}
|