Skip to content

Commit b5ebfc7

Browse files
committed
Revert devDependencies to v5
1 parent 4a1357f commit b5ebfc7

File tree

9 files changed

+174
-28
lines changed

9 files changed

+174
-28
lines changed

examples/crm/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"type": "module",
66
"dependencies": {
77
"@hello-pangea/dnd": "^16.3.0",
8-
"@mui/icons-material": "^6.0.0",
9-
"@mui/material": "^6.0.0",
8+
"@mui/icons-material": "^5.16.12",
9+
"@mui/material": "^5.16.12",
1010
"@nivo/bar": "^0.80.0",
1111
"@nivo/core": "^0.80.0",
1212
"clsx": "^2.1.1",

examples/no-code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"serve": "vite preview"
99
},
1010
"dependencies": {
11-
"@mui/material": "^6.0.0",
11+
"@mui/material": "^5.16.12",
1212
"ra-data-local-storage": "^5.0.0",
1313
"ra-no-code": "^5.0.0",
1414
"react": "18.3.1",

examples/simple/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"type-check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@mui/icons-material": "^6.0.0",
14-
"@mui/material": "^6.0.0",
13+
"@mui/icons-material": "^5.16.12",
14+
"@mui/material": "^5.16.12",
1515
"@tanstack/react-query": "^5.21.7",
1616
"@tanstack/react-query-devtools": "^5.21.7",
1717
"jsonexport": "^3.2.0",

examples/tutorial/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"preview": "vite preview"
1010
},
1111
"dependencies": {
12+
"@mui/icons-material": "^6.0.0",
13+
"@mui/material": "^6.0.0",
1214
"ra-data-json-server": "^5.0.0",
1315
"react": "^19.0.0",
1416
"react-admin": "^5.0.0",

packages/ra-input-rich-text/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"react-dom": "^18.0.0 || ^19.0.0"
4747
},
4848
"devDependencies": {
49-
"@mui/icons-material": "^6.0.0",
50-
"@mui/material": "^6.0.0",
49+
"@mui/icons-material": "^5.16.12",
50+
"@mui/material": "^5.16.12",
5151
"@testing-library/react": "^15.0.7",
5252
"@tiptap/extension-mention": "^2.0.3",
5353
"@tiptap/suggestion": "^2.0.3",

packages/ra-ui-materialui/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@
2626
"watch": "tsc --outDir dist/esm --module es2015 --watch"
2727
},
2828
"devDependencies": {
29-
"@mui/icons-material": "^6.0.0",
30-
"@mui/material": "^6.0.0",
31-
"@mui/utils": "^6.0.0",
29+
"@mui/icons-material": "^5.16.12",
30+
"@mui/material": "^5.16.12",
31+
"@mui/utils": "^5.16.12",
3232
"@testing-library/react": "^15.0.7",
3333
"@types/dompurify": "^3.0.2",
3434
"@types/react": "^18.3.3",

packages/ra-ui-materialui/src/layout/ThemeTestWrapper.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ export const ThemeTestWrapper = ({
2222
mode === 'dark' && query === '(prefers-color-scheme: dark)'
2323
? true
2424
: false,
25-
addEventListener: () => {},
26-
removeEventListener: () => {},
25+
addListener: () => {},
26+
removeListener: () => {},
2727
});
2828

2929
return (

packages/ra-ui-materialui/src/theme/useTheme.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ describe('useTheme', () => {
5959
it('should return the user preferred theme by default', async () => {
6060
const ssrMatchMedia = query => ({
6161
matches: query === '(prefers-color-scheme: dark)' ? true : false,
62-
addEventListener: () => {},
63-
removeEventListener: () => {},
62+
addListener: () => {},
63+
removeListener: () => {},
6464
});
6565

6666
render(

yarn.lock

Lines changed: 158 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2815,13 +2815,36 @@ __metadata:
28152815
languageName: node
28162816
linkType: hard
28172817

2818+
"@mui/core-downloads-tracker@npm:^5.16.14":
2819+
version: 5.16.14
2820+
resolution: "@mui/core-downloads-tracker@npm:5.16.14"
2821+
checksum: eb866003ee4564c40423aadc4513b4c7d72c69723fe7dee4697ac70c19951e6e11093bb190761dc51a8f4d2731e562034ecb284930eec931bae1a56b8e18ca60
2822+
languageName: node
2823+
linkType: hard
2824+
28182825
"@mui/core-downloads-tracker@npm:^6.3.1":
28192826
version: 6.3.1
28202827
resolution: "@mui/core-downloads-tracker@npm:6.3.1"
28212828
checksum: a996ad8db6bd8c981c4e2e2d243526c838dd29f0bbe7dc5ab6933be357e41f748781d322b1decf79ae1c9abba24190162559d84deedcb7c8824a68754dddf216
28222829
languageName: node
28232830
linkType: hard
28242831

2832+
"@mui/icons-material@npm:^5.16.12":
2833+
version: 5.16.14
2834+
resolution: "@mui/icons-material@npm:5.16.14"
2835+
dependencies:
2836+
"@babel/runtime": "npm:^7.23.9"
2837+
peerDependencies:
2838+
"@mui/material": ^5.0.0
2839+
"@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0
2840+
react: ^17.0.0 || ^18.0.0 || ^19.0.0
2841+
peerDependenciesMeta:
2842+
"@types/react":
2843+
optional: true
2844+
checksum: 11632d1f9904fda0a751e442d3d948a83977cd9ba81481cda4e61b9dfdbd80b0616e27750728c066a4dc505035d7ad6aa29ff7c6160a9b52a2b313fc89aa4be3
2845+
languageName: node
2846+
linkType: hard
2847+
28252848
"@mui/icons-material@npm:^5.16.12 || ^6.0.0, @mui/icons-material@npm:^6.0.0":
28262849
version: 6.3.1
28272850
resolution: "@mui/icons-material@npm:6.3.1"
@@ -2838,6 +2861,39 @@ __metadata:
28382861
languageName: node
28392862
linkType: hard
28402863

2864+
"@mui/material@npm:^5.16.12":
2865+
version: 5.16.14
2866+
resolution: "@mui/material@npm:5.16.14"
2867+
dependencies:
2868+
"@babel/runtime": "npm:^7.23.9"
2869+
"@mui/core-downloads-tracker": "npm:^5.16.14"
2870+
"@mui/system": "npm:^5.16.14"
2871+
"@mui/types": "npm:^7.2.15"
2872+
"@mui/utils": "npm:^5.16.14"
2873+
"@popperjs/core": "npm:^2.11.8"
2874+
"@types/react-transition-group": "npm:^4.4.10"
2875+
clsx: "npm:^2.1.0"
2876+
csstype: "npm:^3.1.3"
2877+
prop-types: "npm:^15.8.1"
2878+
react-is: "npm:^19.0.0"
2879+
react-transition-group: "npm:^4.4.5"
2880+
peerDependencies:
2881+
"@emotion/react": ^11.5.0
2882+
"@emotion/styled": ^11.3.0
2883+
"@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0
2884+
react: ^17.0.0 || ^18.0.0 || ^19.0.0
2885+
react-dom: ^17.0.0 || ^18.0.0 || ^19.0.0
2886+
peerDependenciesMeta:
2887+
"@emotion/react":
2888+
optional: true
2889+
"@emotion/styled":
2890+
optional: true
2891+
"@types/react":
2892+
optional: true
2893+
checksum: e313c1274f18a245f7128c9ccbd6444d6edb91a99fef7b6ec9ece4d2d19da0fec9a484afc24c0c35e9fcc53fb090dc524083d682c78428754a1c5b6cebb70a63
2894+
languageName: node
2895+
linkType: hard
2896+
28412897
"@mui/material@npm:^5.16.12 || ^6.0.0, @mui/material@npm:^6.0.0":
28422898
version: 6.3.1
28432899
resolution: "@mui/material@npm:6.3.1"
@@ -2874,6 +2930,23 @@ __metadata:
28742930
languageName: node
28752931
linkType: hard
28762932

2933+
"@mui/private-theming@npm:^5.16.14":
2934+
version: 5.16.14
2935+
resolution: "@mui/private-theming@npm:5.16.14"
2936+
dependencies:
2937+
"@babel/runtime": "npm:^7.23.9"
2938+
"@mui/utils": "npm:^5.16.14"
2939+
prop-types: "npm:^15.8.1"
2940+
peerDependencies:
2941+
"@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0
2942+
react: ^17.0.0 || ^18.0.0 || ^19.0.0
2943+
peerDependenciesMeta:
2944+
"@types/react":
2945+
optional: true
2946+
checksum: 9723b63bd19000c096884f5a8900dc228afbe829d880d371865ae29387448cc669c10160bb55369210f3e903afb577ba832a39bc565427351bc27b42591c8099
2947+
languageName: node
2948+
linkType: hard
2949+
28772950
"@mui/private-theming@npm:^6.3.1":
28782951
version: 6.3.1
28792952
resolution: "@mui/private-theming@npm:6.3.1"
@@ -2891,6 +2964,27 @@ __metadata:
28912964
languageName: node
28922965
linkType: hard
28932966

2967+
"@mui/styled-engine@npm:^5.16.14":
2968+
version: 5.16.14
2969+
resolution: "@mui/styled-engine@npm:5.16.14"
2970+
dependencies:
2971+
"@babel/runtime": "npm:^7.23.9"
2972+
"@emotion/cache": "npm:^11.13.5"
2973+
csstype: "npm:^3.1.3"
2974+
prop-types: "npm:^15.8.1"
2975+
peerDependencies:
2976+
"@emotion/react": ^11.4.1
2977+
"@emotion/styled": ^11.3.0
2978+
react: ^17.0.0 || ^18.0.0 || ^19.0.0
2979+
peerDependenciesMeta:
2980+
"@emotion/react":
2981+
optional: true
2982+
"@emotion/styled":
2983+
optional: true
2984+
checksum: cd512faea4ad3ff5a9b315e136a518223ea3e4e34462fe70c56d1f166c46bee0a885ed982773d75c1d56ead62b95989cc5907601e8d65bfa75494b3f3288c2ad
2985+
languageName: node
2986+
linkType: hard
2987+
28942988
"@mui/styled-engine@npm:^6.3.1":
28952989
version: 6.3.1
28962990
resolution: "@mui/styled-engine@npm:6.3.1"
@@ -2914,6 +3008,34 @@ __metadata:
29143008
languageName: node
29153009
linkType: hard
29163010

3011+
"@mui/system@npm:^5.16.14":
3012+
version: 5.16.14
3013+
resolution: "@mui/system@npm:5.16.14"
3014+
dependencies:
3015+
"@babel/runtime": "npm:^7.23.9"
3016+
"@mui/private-theming": "npm:^5.16.14"
3017+
"@mui/styled-engine": "npm:^5.16.14"
3018+
"@mui/types": "npm:^7.2.15"
3019+
"@mui/utils": "npm:^5.16.14"
3020+
clsx: "npm:^2.1.0"
3021+
csstype: "npm:^3.1.3"
3022+
prop-types: "npm:^15.8.1"
3023+
peerDependencies:
3024+
"@emotion/react": ^11.5.0
3025+
"@emotion/styled": ^11.3.0
3026+
"@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0
3027+
react: ^17.0.0 || ^18.0.0 || ^19.0.0
3028+
peerDependenciesMeta:
3029+
"@emotion/react":
3030+
optional: true
3031+
"@emotion/styled":
3032+
optional: true
3033+
"@types/react":
3034+
optional: true
3035+
checksum: d7ab8dfd9fbecbde4423a0d432e63f45cd8c96bb4e48116f9f9b46cb001c2e32df3a1f09727f8b30c1bc182774cc33e338b1475287a2985dba795ee5486fc4cb
3036+
languageName: node
3037+
linkType: hard
3038+
29173039
"@mui/system@npm:^6.3.1":
29183040
version: 6.3.1
29193041
resolution: "@mui/system@npm:6.3.1"
@@ -2942,7 +3064,7 @@ __metadata:
29423064
languageName: node
29433065
linkType: hard
29443066

2945-
"@mui/types@npm:^7.2.21":
3067+
"@mui/types@npm:^7.2.15, @mui/types@npm:^7.2.21":
29463068
version: 7.2.21
29473069
resolution: "@mui/types@npm:7.2.21"
29483070
peerDependencies:
@@ -2954,7 +3076,27 @@ __metadata:
29543076
languageName: node
29553077
linkType: hard
29563078

2957-
"@mui/utils@npm:^6.0.0, @mui/utils@npm:^6.3.1":
3079+
"@mui/utils@npm:^5.16.12, @mui/utils@npm:^5.16.14":
3080+
version: 5.16.14
3081+
resolution: "@mui/utils@npm:5.16.14"
3082+
dependencies:
3083+
"@babel/runtime": "npm:^7.23.9"
3084+
"@mui/types": "npm:^7.2.15"
3085+
"@types/prop-types": "npm:^15.7.12"
3086+
clsx: "npm:^2.1.1"
3087+
prop-types: "npm:^15.8.1"
3088+
react-is: "npm:^19.0.0"
3089+
peerDependencies:
3090+
"@types/react": ^17.0.0 || ^18.0.0 || ^19.0.0
3091+
react: ^17.0.0 || ^18.0.0 || ^19.0.0
3092+
peerDependenciesMeta:
3093+
"@types/react":
3094+
optional: true
3095+
checksum: 5148dedb8597a76df193df4c3b4ff4bb3c19d99f3b69df8b9d6c9905c5cc5eb750a71429aea7e52a03ad8b858c7ec48d04e5670ecf4e39b8c3a6a84f1a83721a
3096+
languageName: node
3097+
linkType: hard
3098+
3099+
"@mui/utils@npm:^6.3.1":
29583100
version: 6.3.1
29593101
resolution: "@mui/utils@npm:6.3.1"
29603102
dependencies:
@@ -4997,7 +5139,7 @@ __metadata:
49975139
languageName: node
49985140
linkType: hard
49995141

5000-
"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.14":
5142+
"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.12, @types/prop-types@npm:^15.7.14":
50015143
version: 15.7.14
50025144
resolution: "@types/prop-types@npm:15.7.14"
50035145
checksum: 1ec775160bfab90b67a782d735952158c7e702ca4502968aa82565bd8e452c2de8601c8dfe349733073c31179116cf7340710160d3836aa8a1ef76d1532893b1
@@ -7126,7 +7268,7 @@ __metadata:
71267268
languageName: node
71277269
linkType: hard
71287270

7129-
"clsx@npm:^2.1.1":
7271+
"clsx@npm:^2.1.0, clsx@npm:^2.1.1":
71307272
version: 2.1.1
71317273
resolution: "clsx@npm:2.1.1"
71327274
checksum: c4c8eb865f8c82baab07e71bfa8897c73454881c4f99d6bc81585aecd7c441746c1399d08363dc096c550cceaf97bd4ce1e8854e1771e9998d9f94c4fe075839
@@ -13978,7 +14120,7 @@ __metadata:
1397814120
version: 0.0.0-use.local
1397914121
resolution: "no-code@workspace:examples/no-code"
1398014122
dependencies:
13981-
"@mui/material": "npm:^6.0.0"
14123+
"@mui/material": "npm:^5.16.12"
1398214124
"@vitejs/plugin-react": "npm:^4.2.1"
1398314125
ra-data-local-storage: "npm:^5.0.0"
1398414126
ra-no-code: "npm:^5.0.0"
@@ -15940,8 +16082,8 @@ __metadata:
1594016082
version: 0.0.0-use.local
1594116083
resolution: "ra-input-rich-text@workspace:packages/ra-input-rich-text"
1594216084
dependencies:
15943-
"@mui/icons-material": "npm:^6.0.0"
15944-
"@mui/material": "npm:^6.0.0"
16085+
"@mui/icons-material": "npm:^5.16.12"
16086+
"@mui/material": "npm:^5.16.12"
1594516087
"@testing-library/react": "npm:^15.0.7"
1594616088
"@tiptap/core": "npm:^2.0.3"
1594716089
"@tiptap/extension-color": "npm:^2.0.3"
@@ -16032,9 +16174,9 @@ __metadata:
1603216174
version: 0.0.0-use.local
1603316175
resolution: "ra-ui-materialui@workspace:packages/ra-ui-materialui"
1603416176
dependencies:
16035-
"@mui/icons-material": "npm:^6.0.0"
16036-
"@mui/material": "npm:^6.0.0"
16037-
"@mui/utils": "npm:^6.0.0"
16177+
"@mui/icons-material": "npm:^5.16.12"
16178+
"@mui/material": "npm:^5.16.12"
16179+
"@mui/utils": "npm:^5.16.12"
1603816180
"@tanstack/react-query": "npm:^5.21.7"
1603916181
"@testing-library/react": "npm:^15.0.7"
1604016182
"@types/dompurify": "npm:^3.0.2"
@@ -16131,8 +16273,8 @@ __metadata:
1613116273
resolution: "react-admin-crm@workspace:examples/crm"
1613216274
dependencies:
1613316275
"@hello-pangea/dnd": "npm:^16.3.0"
16134-
"@mui/icons-material": "npm:^6.0.0"
16135-
"@mui/material": "npm:^6.0.0"
16276+
"@mui/icons-material": "npm:^5.16.12"
16277+
"@mui/material": "npm:^5.16.12"
1613616278
"@nivo/bar": "npm:^0.80.0"
1613716279
"@nivo/core": "npm:^0.80.0"
1613816280
"@testing-library/jest-dom": "npm:^6.4.5"
@@ -17520,8 +17662,8 @@ __metadata:
1752017662
resolution: "simple@workspace:examples/simple"
1752117663
dependencies:
1752217664
"@hookform/devtools": "npm:^4.0.2"
17523-
"@mui/icons-material": "npm:^6.0.0"
17524-
"@mui/material": "npm:^6.0.0"
17665+
"@mui/icons-material": "npm:^5.16.12"
17666+
"@mui/material": "npm:^5.16.12"
1752517667
"@tanstack/react-query": "npm:^5.21.7"
1752617668
"@tanstack/react-query-devtools": "npm:^5.21.7"
1752717669
"@vitejs/plugin-react": "npm:^4.2.1"
@@ -18627,6 +18769,8 @@ __metadata:
1862718769
version: 0.0.0-use.local
1862818770
resolution: "tutorial@workspace:examples/tutorial"
1862918771
dependencies:
18772+
"@mui/icons-material": "npm:^6.0.0"
18773+
"@mui/material": "npm:^6.0.0"
1863018774
"@types/react": "npm:^18.3.3"
1863118775
"@types/react-dom": "npm:^18.3.0"
1863218776
"@vitejs/plugin-react": "npm:^4.2.1"

0 commit comments

Comments
 (0)