Skip to content

Commit bc1fdc8

Browse files
hortisonleecalcote
andauthored
Fix: downgrade chai to v5 and react-to-print to v2 for compatibility (#38)
- chai@6 breaks on Node.js 22 due to EventTarget.dispatchEvent incompatibility (PluginEvent is not an instance of the built-in Event class) - react-to-print@3 removed the ReactToPrint component and PrintContextConsumer in favor of the useReactToPrint hook; downgrade to v2 keeps existing usage intact All 233 tests pass. Signed-off-by: Lee Calcote <lee.calcote@layer5.io> Co-authored-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 7fbe253 commit bc1fdc8

File tree

2 files changed

+66
-11
lines changed

2 files changed

+66
-11
lines changed

package-lock.json

Lines changed: 64 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"babel-loader": "^10.1.1",
6363
"babel-plugin-istanbul": "^7.0.1",
6464
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
65-
"chai": "^6.2.2",
65+
"chai": "^5.3.3",
6666
"core-js": "^3.49.0",
6767
"coveralls": "^3.1.1",
6868
"cross-env": "^10.1.0",
@@ -122,7 +122,7 @@
122122
"prop-types": "^15.8.1",
123123
"react-dnd": "^16.0.1",
124124
"react-dnd-html5-backend": "^16.0.1",
125-
"react-to-print": "^3.3.0",
125+
"react-to-print": "^2.15.1",
126126
"tss-react": "^4.9.20"
127127
},
128128
"overrides": {

0 commit comments

Comments
 (0)