diff --git a/CHANGELOG.md b/CHANGELOG.md index bab6f5b7..172d6868 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Changed +- Upgrade `react-components` to [22.0.0](https://github.com/cucumber/react-components/releases/tag/v22.0.0) ([#275](https://github.com/cucumber/html-formatter/pull/275)) + ### Fixed - [Ruby] Fixed up All remaining rubocop offenses / removed excess crud ([#276](https://github.com/cucumber/html-formatter/pull/276)) diff --git a/javascript/package-lock.json b/javascript/package-lock.json index 4f7721b5..c5b7a569 100644 --- a/javascript/package-lock.json +++ b/javascript/package-lock.json @@ -17,7 +17,7 @@ "@cucumber/message-streams": "^4.0.1", "@cucumber/messages": "24.0.0", "@cucumber/query": "^12.0.0", - "@cucumber/react-components": "21.1.1", + "@cucumber/react-components": "22.0.0", "@types/glob": "^8.0.0", "@types/mocha": "10.0.6", "@types/node": "20.10.5", @@ -556,9 +556,9 @@ } }, "node_modules/@cucumber/react-components": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/@cucumber/react-components/-/react-components-21.1.1.tgz", - "integrity": "sha512-YMy1YJIeNR7IzyjGRTT1xyzFKr7fyPLGQidR4fZeyYDdTJ5nEcsu+AQsd6kEDGBOtRtvjfzQRvavr5fTJp5E5g==", + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/@cucumber/react-components/-/react-components-22.0.0.tgz", + "integrity": "sha512-9EmnOhhKCaVGtxNLRgMWvhgU/LtvUE1N4tyN4j35eV2zIG49WSJG/U03PyHb86ZZ3RRNtxYfiQrZN+awSw/NJQ==", "dev": true, "dependencies": { "@cucumber/gherkin-utils": "^8.0.0", @@ -568,21 +568,22 @@ "@fortawesome/fontawesome-svg-core": "6.2.1", "@fortawesome/free-solid-svg-icons": "6.2.1", "@fortawesome/react-fontawesome": "0.2.0", + "@orama/orama": "^2.0.0-beta.7", + "@orama/stemmers": "^2.0.0-beta.7", "@teppeis/multimaps": "2.0.0", - "@types/elasticlunr": "0.9.5", "ansi-to-html": "0.7.2", "color": "4.2.3", "date-fns": "2.29.3", - "elasticlunr": "0.9.5", - "hast-util-sanitize": "3.0.2", - "highlight-words": "1.2.1", + "hast-util-sanitize": "^5.0.1", + "highlight-words": "1.2.2", "mime": "^3.0.0", "react-accessible-accordion": "5.0.0", "react-markdown": "6.0.3", "rehype-raw": "5.1.0", "rehype-sanitize": "4.0.0", "remark-breaks": "2.0.2", - "remark-gfm": "1.0.0" + "remark-gfm": "1.0.0", + "use-debounce": "^10.0.0" }, "peerDependencies": { "react": "~18", @@ -601,6 +602,49 @@ "uuid": "9.0.0" } }, + "node_modules/@cucumber/react-components/node_modules/@types/hast": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz", + "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==", + "dev": true, + "dependencies": { + "@types/unist": "*" + } + }, + "node_modules/@cucumber/react-components/node_modules/@types/unist": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", + "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==", + "dev": true + }, + "node_modules/@cucumber/react-components/node_modules/hast-util-sanitize": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-5.0.1.tgz", + "integrity": "sha512-IGrgWLuip4O2nq5CugXy4GI2V8kx4sFVy5Hd4vF7AR2gxS0N9s7nEAVUyeMtZKZvzrxVsHt73XdTsno1tClIkQ==", + "dev": true, + "dependencies": { + "@types/hast": "^3.0.0", + "@ungap/structured-clone": "^1.2.0", + "unist-util-position": "^5.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, + "node_modules/@cucumber/react-components/node_modules/unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dev": true, + "dependencies": { + "@types/unist": "^3.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/unified" + } + }, "node_modules/@cucumber/tag-expressions": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/@cucumber/tag-expressions/-/tag-expressions-5.0.1.tgz", @@ -933,6 +977,24 @@ "node": ">= 8" } }, + "node_modules/@orama/orama": { + "version": "2.0.0-beta.9", + "resolved": "https://registry.npmjs.org/@orama/orama/-/orama-2.0.0-beta.9.tgz", + "integrity": "sha512-jT9UfHEw1BVlkopY8+SPbriftEQdw/ika9u5qtRBxgGTYMDl/wNy9Oht/8FSpw7LnsiHG3NRwwJ6LrutWKw8Yw==", + "dev": true, + "engines": { + "node": ">= 16.0.0" + } + }, + "node_modules/@orama/stemmers": { + "version": "2.0.0-beta.9", + "resolved": "https://registry.npmjs.org/@orama/stemmers/-/stemmers-2.0.0-beta.9.tgz", + "integrity": "sha512-XD+OE84AZcA4MiQ7vXkDpiI++JhOAx8GVBx8PJoEvabbZwG6KHVo0WuXZlaHLwtDIEKlbZv8lDOt8IimppcNQg==", + "dev": true, + "engines": { + "node": ">= 16.0.0" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -1064,12 +1126,6 @@ "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", "dev": true }, - "node_modules/@types/elasticlunr": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@types/elasticlunr/-/elasticlunr-0.9.5.tgz", - "integrity": "sha512-gzY3gZLI6HczDO3vXM+u3P0dClEQ68k2d0UsZY1lyOaOZiGiamu7Ha/YBoc8CgAu5/3R+/u0HguDgD+xakmSEA==", - "dev": true - }, "node_modules/@types/eslint": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", @@ -1460,6 +1516,12 @@ "url": "https://opencollective.com/typescript-eslint" } }, + "node_modules/@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "node_modules/@webassemblyjs/ast": { "version": "1.11.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", @@ -2711,12 +2773,6 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true }, - "node_modules/elasticlunr": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/elasticlunr/-/elasticlunr-0.9.5.tgz", - "integrity": "sha1-ZVQbswnd3Qz5Ty0ciGGyvmUbsNU=", - "dev": true - }, "node_modules/electron-to-chromium": { "version": "1.4.609", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz", @@ -4242,13 +4298,13 @@ } }, "node_modules/highlight-words": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/highlight-words/-/highlight-words-1.2.1.tgz", - "integrity": "sha512-FtF50tuaaYathtSPFk5FwGf0Zex5iqNsTx/OsVM6mdsB3xqs5nM+PAoPWs/gIUxGF3/Qqu2v86sAUenTh6oL3Q==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/highlight-words/-/highlight-words-1.2.2.tgz", + "integrity": "sha512-Mf4xfPXYm8Ay1wTibCrHpNWeR2nUMynMVFkXCi4mbl+TEgmNOe+I4hV7W3OCZcSvzGL6kupaqpfHOemliMTGxQ==", "dev": true, "engines": { - "node": ">= 12", - "npm": ">= 6" + "node": ">= 16", + "npm": ">= 8" } }, "node_modules/html-void-elements": { @@ -8306,6 +8362,18 @@ "punycode": "^2.1.0" } }, + "node_modules/use-debounce": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/use-debounce/-/use-debounce-10.0.0.tgz", + "integrity": "sha512-XRjvlvCB46bah9IBXVnq/ACP2lxqXyZj0D9hj4K5OzNroMDpTEBg8Anuh1/UfRTRs7pLhQ+RiNxxwZu9+MVl1A==", + "dev": true, + "engines": { + "node": ">= 16.0.0" + }, + "peerDependencies": { + "react": ">=16.8.0" + } + }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", @@ -9272,9 +9340,9 @@ } }, "@cucumber/react-components": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/@cucumber/react-components/-/react-components-21.1.1.tgz", - "integrity": "sha512-YMy1YJIeNR7IzyjGRTT1xyzFKr7fyPLGQidR4fZeyYDdTJ5nEcsu+AQsd6kEDGBOtRtvjfzQRvavr5fTJp5E5g==", + "version": "22.0.0", + "resolved": "https://registry.npmjs.org/@cucumber/react-components/-/react-components-22.0.0.tgz", + "integrity": "sha512-9EmnOhhKCaVGtxNLRgMWvhgU/LtvUE1N4tyN4j35eV2zIG49WSJG/U03PyHb86ZZ3RRNtxYfiQrZN+awSw/NJQ==", "dev": true, "requires": { "@cucumber/gherkin-utils": "^8.0.0", @@ -9284,21 +9352,22 @@ "@fortawesome/fontawesome-svg-core": "6.2.1", "@fortawesome/free-solid-svg-icons": "6.2.1", "@fortawesome/react-fontawesome": "0.2.0", + "@orama/orama": "^2.0.0-beta.7", + "@orama/stemmers": "^2.0.0-beta.7", "@teppeis/multimaps": "2.0.0", - "@types/elasticlunr": "0.9.5", "ansi-to-html": "0.7.2", "color": "4.2.3", "date-fns": "2.29.3", - "elasticlunr": "0.9.5", - "hast-util-sanitize": "3.0.2", - "highlight-words": "1.2.1", + "hast-util-sanitize": "^5.0.1", + "highlight-words": "1.2.2", "mime": "^3.0.0", "react-accessible-accordion": "5.0.0", "react-markdown": "6.0.3", "rehype-raw": "5.1.0", "rehype-sanitize": "4.0.0", "remark-breaks": "2.0.2", - "remark-gfm": "1.0.0" + "remark-gfm": "1.0.0", + "use-debounce": "^10.0.0" }, "dependencies": { "@cucumber/messages": { @@ -9312,6 +9381,41 @@ "reflect-metadata": "0.1.13", "uuid": "9.0.0" } + }, + "@types/hast": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.3.tgz", + "integrity": "sha512-2fYGlaDy/qyLlhidX42wAH0KBi2TCjKMH8CHmBXgRlJ3Y+OXTiqsPQ6IWarZKwF1JoUcAJdPogv1d4b0COTpmQ==", + "dev": true, + "requires": { + "@types/unist": "*" + } + }, + "@types/unist": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.2.tgz", + "integrity": "sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ==", + "dev": true + }, + "hast-util-sanitize": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/hast-util-sanitize/-/hast-util-sanitize-5.0.1.tgz", + "integrity": "sha512-IGrgWLuip4O2nq5CugXy4GI2V8kx4sFVy5Hd4vF7AR2gxS0N9s7nEAVUyeMtZKZvzrxVsHt73XdTsno1tClIkQ==", + "dev": true, + "requires": { + "@types/hast": "^3.0.0", + "@ungap/structured-clone": "^1.2.0", + "unist-util-position": "^5.0.0" + } + }, + "unist-util-position": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz", + "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==", + "dev": true, + "requires": { + "@types/unist": "^3.0.0" + } } } }, @@ -9560,6 +9664,18 @@ "fastq": "^1.6.0" } }, + "@orama/orama": { + "version": "2.0.0-beta.9", + "resolved": "https://registry.npmjs.org/@orama/orama/-/orama-2.0.0-beta.9.tgz", + "integrity": "sha512-jT9UfHEw1BVlkopY8+SPbriftEQdw/ika9u5qtRBxgGTYMDl/wNy9Oht/8FSpw7LnsiHG3NRwwJ6LrutWKw8Yw==", + "dev": true + }, + "@orama/stemmers": { + "version": "2.0.0-beta.9", + "resolved": "https://registry.npmjs.org/@orama/stemmers/-/stemmers-2.0.0-beta.9.tgz", + "integrity": "sha512-XD+OE84AZcA4MiQ7vXkDpiI++JhOAx8GVBx8PJoEvabbZwG6KHVo0WuXZlaHLwtDIEKlbZv8lDOt8IimppcNQg==", + "dev": true + }, "@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -9666,12 +9782,6 @@ "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==", "dev": true }, - "@types/elasticlunr": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/@types/elasticlunr/-/elasticlunr-0.9.5.tgz", - "integrity": "sha512-gzY3gZLI6HczDO3vXM+u3P0dClEQ68k2d0UsZY1lyOaOZiGiamu7Ha/YBoc8CgAu5/3R+/u0HguDgD+xakmSEA==", - "dev": true - }, "@types/eslint": { "version": "8.4.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.4.1.tgz", @@ -9961,6 +10071,12 @@ "eslint-visitor-keys": "^3.4.1" } }, + "@ungap/structured-clone": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz", + "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", + "dev": true + }, "@webassemblyjs/ast": { "version": "1.11.5", "resolved": "https://registry.npmjs.org/@webassemblyjs/ast/-/ast-1.11.5.tgz", @@ -10869,12 +10985,6 @@ "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true }, - "elasticlunr": { - "version": "0.9.5", - "resolved": "https://registry.npmjs.org/elasticlunr/-/elasticlunr-0.9.5.tgz", - "integrity": "sha1-ZVQbswnd3Qz5Ty0ciGGyvmUbsNU=", - "dev": true - }, "electron-to-chromium": { "version": "1.4.609", "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.609.tgz", @@ -12002,9 +12112,9 @@ "dev": true }, "highlight-words": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/highlight-words/-/highlight-words-1.2.1.tgz", - "integrity": "sha512-FtF50tuaaYathtSPFk5FwGf0Zex5iqNsTx/OsVM6mdsB3xqs5nM+PAoPWs/gIUxGF3/Qqu2v86sAUenTh6oL3Q==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/highlight-words/-/highlight-words-1.2.2.tgz", + "integrity": "sha512-Mf4xfPXYm8Ay1wTibCrHpNWeR2nUMynMVFkXCi4mbl+TEgmNOe+I4hV7W3OCZcSvzGL6kupaqpfHOemliMTGxQ==", "dev": true }, "html-void-elements": { @@ -14824,6 +14934,13 @@ "punycode": "^2.1.0" } }, + "use-debounce": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/use-debounce/-/use-debounce-10.0.0.tgz", + "integrity": "sha512-XRjvlvCB46bah9IBXVnq/ACP2lxqXyZj0D9hj4K5OzNroMDpTEBg8Anuh1/UfRTRs7pLhQ+RiNxxwZu9+MVl1A==", + "dev": true, + "requires": {} + }, "util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", diff --git a/javascript/package.json b/javascript/package.json index 7c1835ba..1d3a3b4d 100644 --- a/javascript/package.json +++ b/javascript/package.json @@ -34,7 +34,7 @@ "@cucumber/message-streams": "^4.0.1", "@cucumber/messages": "24.0.0", "@cucumber/query": "^12.0.0", - "@cucumber/react-components": "21.1.1", + "@cucumber/react-components": "22.0.0", "@types/glob": "^8.0.0", "@types/mocha": "10.0.6", "@types/node": "20.10.5",