Skip to content

Commit f9f68ee

Browse files
hortisonleecalcote
andauthored
chore/upgrade packages (#39)
* Fix: downgrade chai to v5 and react-to-print to v2 for compatibility - 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> * drop node 18 support Signed-off-by: Lee Calcote <lee.calcote@layer5.io> --------- Signed-off-by: Lee Calcote <lee.calcote@layer5.io> Co-authored-by: Lee Calcote <lee.calcote@layer5.io>
1 parent 6f2a4bb commit f9f68ee

23 files changed

+422
-1218
lines changed

.babelrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,16 @@
3434
],
3535
"plugins": [
3636
[
37-
"@babel/plugin-proposal-class-properties"
37+
"@babel/plugin-transform-class-properties"
3838
],
3939
[
40-
"@babel/plugin-proposal-nullish-coalescing-operator"
40+
"@babel/plugin-transform-nullish-coalescing-operator"
4141
],
4242
[
43-
"@babel/plugin-proposal-object-rest-spread"
43+
"@babel/plugin-transform-object-rest-spread"
4444
],
4545
[
46-
"@babel/plugin-proposal-optional-chaining"
46+
"@babel/plugin-transform-optional-chaining"
4747
],
4848
[
4949
"@babel/plugin-transform-async-to-generator"

.eslintrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
2-
"parser": "babel-eslint",
2+
"parser": "@babel/eslint-parser",
33
"settings": {
44
"react": {
55
"version": "latest"
66
},
77
"import/extensions": [
88
".js"
99
],
10-
"import/parser": "babel-eslint",
10+
"import/parser": "@babel/eslint-parser",
1111
"import/resolver": {
1212
"node": {
1313
"extensions": [
@@ -20,6 +20,7 @@
2020
}
2121
},
2222
"parserOptions": {
23+
"requireConfigFile": false,
2324
"ecmaVersion": 6,
2425
"sourceType": "module",
2526
"allowImportExportEverywhere": true,

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
npm publish --provenance --access public --verbose
7373
7474
- name: Pull changes from remote
75-
run: git pull origin master
75+
run: git pull --rebase --autostash origin master
7676

7777
- uses: stefanzweifel/git-auto-commit-action@v7
7878
with:

docs/utils/Menu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ class Menu extends React.Component {
4949
<ListSubheader className={classes.listTitle} component="h2">
5050
Examples
5151
</ListSubheader>
52-
}
53-
>
52+
}>
5453
{sandboxes.map((item) => (
5554
<SandboxItem href={item.href} name={item.name} />
5655
))}

docs/utils/layout.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,7 @@ class Layout extends React.Component {
8585
component="a"
8686
color="inherit"
8787
href="https://github.com/gregnb/mui-datatables"
88-
aria-labelledby="appbar-github"
89-
>
88+
aria-labelledby="appbar-github">
9089
<GitHub />
9190
</IconButton>
9291
</Tooltip>

0 commit comments

Comments
 (0)