Skip to content

Commit dbcf553

Browse files
committed
package upgrades excluding mui v6 and rollup
1 parent 0c573a2 commit dbcf553

19 files changed

+1219
-1253
lines changed

apps/material-react-table-docs/package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@docsearch/js": "3.6.1",
17-
"@emotion/react": "^11.13.0",
17+
"@emotion/react": "^11.13.3",
1818
"@emotion/styled": "^11.13.0",
1919
"@faker-js/faker": "^8.4.1",
2020
"@fortawesome/fontawesome-svg-core": "^6.6.0",
@@ -26,32 +26,32 @@
2626
"@mui/material": "^5.16.5",
2727
"@mui/x-charts": "^7.11.1",
2828
"@mui/x-date-pickers": "^7.11.1",
29-
"@next/mdx": "^14.2.5",
30-
"@tanstack/react-query": "^5.51.15",
31-
"@tanstack/react-table-devtools": "^8.19.3",
29+
"@next/mdx": "^14.2.7",
30+
"@tanstack/react-query": "^5.53.1",
31+
"@tanstack/react-table-devtools": "^8.20.5",
3232
"@types/mdx": "^2.0.13",
33-
"dayjs": "^1.11.12",
33+
"dayjs": "^1.11.13",
3434
"export-to-csv": "^1.3.0",
3535
"jspdf": "^2.5.1",
36-
"jspdf-autotable": "^3.8.2",
36+
"jspdf-autotable": "^3.8.3",
3737
"material-react-table": "workspace:*",
38-
"next": "14.2.5",
38+
"next": "14.2.7",
3939
"next-sitemap": "^4.2.3",
40-
"prism-react-renderer": "^2.3.1",
40+
"prism-react-renderer": "^2.4.0",
4141
"react": "18.3.1",
4242
"react-dom": "18.3.1",
4343
"zod": "^3.23.8"
4444
},
4545
"devDependencies": {
46-
"@tanstack/eslint-plugin-query": "^5.51.15",
47-
"@types/node": "^22.0.0",
48-
"@types/react": "^18.3.3",
46+
"@tanstack/eslint-plugin-query": "^5.53.0",
47+
"@types/node": "^22.5.1",
48+
"@types/react": "^18.3.5",
4949
"@types/react-dom": "^18.3.0",
50-
"@typescript-eslint/eslint-plugin": "^7.17.0",
51-
"@typescript-eslint/parser": "^7.17.0",
52-
"eslint": "9.8.0",
53-
"eslint-config-next": "14.2.5",
54-
"next-plausible": "^3.12.0",
50+
"@typescript-eslint/eslint-plugin": "^8.3.0",
51+
"@typescript-eslint/parser": "^8.3.0",
52+
"eslint": "9.9.1",
53+
"eslint-config-next": "14.2.7",
54+
"next-plausible": "^3.12.2",
5555
"raw-loader": "^4.0.2",
5656
"typescript": "5.5.4"
5757
}

apps/test-cra/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
"version": "0.1.0",
44
"private": true,
55
"dependencies": {
6-
"@emotion/react": "^11.13.0",
6+
"@emotion/react": "^11.13.3",
77
"@emotion/styled": "^11.13.0",
88
"@mui/icons-material": "^5.16.5",
99
"@mui/material": "^5.16.5",
1010
"@mui/x-date-pickers": "^7.11.1",
11-
"@testing-library/jest-dom": "^6.4.8",
12-
"@testing-library/react": "^16.0.0",
11+
"@testing-library/jest-dom": "^6.5.0",
12+
"@testing-library/react": "^16.0.1",
1313
"@testing-library/user-event": "^14.5.2",
1414
"material-react-table": "workspace:*",
1515
"react": "^18.3.1",

apps/test-remix/package.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@
1010
"typecheck": "tsc"
1111
},
1212
"dependencies": {
13-
"@emotion/react": "^11.13.0",
13+
"@emotion/react": "^11.13.3",
1414
"@emotion/styled": "^11.13.0",
1515
"@mui/icons-material": "^5.16.5",
1616
"@mui/material": "^5.16.5",
1717
"@mui/x-date-pickers": "^7.11.1",
18-
"@remix-run/css-bundle": "^2.10.3",
19-
"@remix-run/node": "^2.10.3",
20-
"@remix-run/react": "^2.10.3",
21-
"@remix-run/serve": "^2.10.3",
22-
"isbot": "^5.1.13",
18+
"@remix-run/css-bundle": "^2.11.2",
19+
"@remix-run/node": "^2.11.2",
20+
"@remix-run/react": "^2.11.2",
21+
"@remix-run/serve": "^2.11.2",
22+
"isbot": "^5.1.17",
2323
"material-react-table": "workspace:*",
2424
"react": "^18.3.1",
2525
"react-dom": "^18.3.1"
2626
},
2727
"devDependencies": {
28-
"@remix-run/dev": "^2.10.3",
29-
"@remix-run/eslint-config": "^2.10.3",
30-
"@types/react": "^18.3.3",
28+
"@remix-run/dev": "^2.11.2",
29+
"@remix-run/eslint-config": "^2.11.2",
30+
"@types/react": "^18.3.5",
3131
"@types/react-dom": "^18.3.0",
32-
"eslint": "^9.8.0",
32+
"eslint": "^9.9.1",
3333
"typescript": "^5.5.4"
3434
},
3535
"engines": {

apps/test-vite/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"preview": "vite preview"
1111
},
1212
"dependencies": {
13-
"@emotion/react": "^11.13.0",
13+
"@emotion/react": "^11.13.3",
1414
"@emotion/styled": "^11.13.0",
1515
"@mui/icons-material": "^5.16.5",
1616
"@mui/material": "^5.16.5",
@@ -20,15 +20,15 @@
2020
"react-dom": "^18.3.1"
2121
},
2222
"devDependencies": {
23-
"@types/react": "^18.3.3",
23+
"@types/react": "^18.3.5",
2424
"@types/react-dom": "^18.3.0",
25-
"@typescript-eslint/eslint-plugin": "^7.17.0",
26-
"@typescript-eslint/parser": "^7.17.0",
25+
"@typescript-eslint/eslint-plugin": "^8.3.0",
26+
"@typescript-eslint/parser": "^8.3.0",
2727
"@vitejs/plugin-react": "^4.3.1",
28-
"eslint": "^9.8.0",
28+
"eslint": "^9.9.1",
2929
"eslint-plugin-react-hooks": "^4.6.2",
30-
"eslint-plugin-react-refresh": "^0.4.9",
30+
"eslint-plugin-react-refresh": "^0.4.11",
3131
"typescript": "^5.5.4",
32-
"vite": "^5.3.5"
32+
"vite": "^5.4.2"
3333
}
3434
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"devDependencies": {
2828
"prettier": "^3.3.3",
29-
"turbo": "^2.0.9"
29+
"turbo": "^2.1.1"
3030
},
3131
"engines": {
3232
"node": ">=16.0.0"

packages/material-react-table/package.json

+21-21
Original file line numberDiff line numberDiff line change
@@ -62,31 +62,31 @@
6262
"build-storybook": "storybook build"
6363
},
6464
"devDependencies": {
65-
"@emotion/react": "^11.13.0",
65+
"@emotion/react": "^11.13.3",
6666
"@emotion/styled": "^11.13.0",
6767
"@faker-js/faker": "^8.4.1",
6868
"@mui/icons-material": "^5.16.5",
6969
"@mui/material": "^5.16.5",
7070
"@mui/x-date-pickers": "^7.11.1",
7171
"@rollup/plugin-typescript": "^11.1.6",
7272
"@size-limit/preset-small-lib": "^11.1.4",
73-
"@storybook/addon-a11y": "^8.2.6",
74-
"@storybook/addon-essentials": "^8.2.6",
75-
"@storybook/addon-links": "^8.2.6",
76-
"@storybook/addon-storysource": "^8.2.6",
77-
"@storybook/blocks": "^8.2.6",
78-
"@storybook/preview-api": "^8.2.6",
79-
"@storybook/react": "^8.2.6",
80-
"@storybook/react-vite": "^8.2.6",
81-
"@types/node": "^22.0.0",
82-
"@types/react": "^18.3.3",
73+
"@storybook/addon-a11y": "^8.2.9",
74+
"@storybook/addon-essentials": "^8.2.9",
75+
"@storybook/addon-links": "^8.2.9",
76+
"@storybook/addon-storysource": "^8.2.9",
77+
"@storybook/blocks": "^8.2.9",
78+
"@storybook/preview-api": "^8.2.9",
79+
"@storybook/react": "^8.2.9",
80+
"@storybook/react-vite": "^8.2.9",
81+
"@types/node": "^22.5.1",
82+
"@types/react": "^18.3.5",
8383
"@types/react-dom": "^18.3.0",
84-
"@typescript-eslint/eslint-plugin": "^7.17.0",
85-
"@typescript-eslint/parser": "^7.17.0",
84+
"@typescript-eslint/eslint-plugin": "^8.3.0",
85+
"@typescript-eslint/parser": "^8.3.0",
8686
"@vitejs/plugin-react": "^4.3.1",
87-
"eslint": "^9.8.0",
87+
"eslint": "^9.9.1",
8888
"eslint-plugin-mui-path-imports": "^0.0.15",
89-
"eslint-plugin-perfectionist": "^3.0.0",
89+
"eslint-plugin-perfectionist": "^3.3.0",
9090
"eslint-plugin-storybook": "^0.8.0",
9191
"prop-types": "^15.8.1",
9292
"react": "^18.3.1",
@@ -98,11 +98,11 @@
9898
"rollup-plugin-dts": "^6.1.1",
9999
"rollup-plugin-peer-deps-external": "^2.2.4",
100100
"size-limit": "^11.1.4",
101-
"storybook": "^8.2.6",
101+
"storybook": "^8.2.9",
102102
"storybook-dark-mode": "^4.0.2",
103-
"tslib": "^2.6.3",
103+
"tslib": "^2.7.0",
104104
"typescript": "^5.5.4",
105-
"vite": "^5.3.5"
105+
"vite": "^5.4.2"
106106
},
107107
"peerDependencies": {
108108
"@emotion/react": ">=11.11",
@@ -114,9 +114,9 @@
114114
"react-dom": ">=17.0"
115115
},
116116
"dependencies": {
117-
"@tanstack/match-sorter-utils": "8.15.1",
118-
"@tanstack/react-table": "8.19.3",
119-
"@tanstack/react-virtual": "3.8.3",
117+
"@tanstack/match-sorter-utils": "8.19.4",
118+
"@tanstack/react-table": "8.20.5",
119+
"@tanstack/react-virtual": "3.10.6",
120120
"highlight-words": "1.2.2"
121121
}
122122
}

packages/material-react-table/src/components/body/MRT_TableBody.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ export const MRT_TableBody = <TData extends MRT_RowData>({
172172
rowVirtualizer,
173173
staticRowIndex,
174174
virtualRow: rowVirtualizer
175-
? (rowOrVirtualRow as VirtualItem<HTMLTableRowElement>)
175+
? (rowOrVirtualRow as VirtualItem)
176176
: undefined,
177177
};
178178
const key = `${row.id}-${row.index}`;

packages/material-react-table/src/components/body/MRT_TableBodyCell.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export const MRT_TableBodyCell = <TData extends MRT_RowData>({
287287
{tableCellProps.children ?? (
288288
<>
289289
{cell.getIsPlaceholder() ? (
290-
columnDef.PlaceholderCell?.({ cell, column, row, table }) ?? null
290+
(columnDef.PlaceholderCell?.({ cell, column, row, table }) ?? null)
291291
) : showSkeletons !== false && (isLoading || showSkeletons) ? (
292292
<Skeleton
293293
animation="wave"

packages/material-react-table/src/components/body/MRT_TableBodyRow.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface MRT_TableBodyRowProps<TData extends MRT_RowData>
3535
rowVirtualizer?: MRT_RowVirtualizer;
3636
staticRowIndex: number;
3737
table: MRT_TableInstance<TData>;
38-
virtualRow?: VirtualItem<HTMLTableRowElement>;
38+
virtualRow?: VirtualItem;
3939
}
4040

4141
export const MRT_TableBodyRow = <TData extends MRT_RowData>({

packages/material-react-table/src/components/body/MRT_TableDetailPanel.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export interface MRT_TableDetailPanelProps<TData extends MRT_RowData>
1818
rowVirtualizer?: MRT_RowVirtualizer;
1919
staticRowIndex: number;
2020
table: MRT_TableInstance<TData>;
21-
virtualRow?: MRT_VirtualItem<HTMLTableRowElement>;
21+
virtualRow?: MRT_VirtualItem;
2222
}
2323

2424
export const MRT_TableDetailPanel = <TData extends MRT_RowData>({

packages/material-react-table/src/components/footer/MRT_TableFooterCell.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ export const MRT_TableFooterCell = <TData extends MRT_RowData>({
7979
{tableCellProps.children ??
8080
(footer.isPlaceholder
8181
? null
82-
: parseFromValuesOrFunc(columnDef.Footer, {
82+
: (parseFromValuesOrFunc(columnDef.Footer, {
8383
column,
8484
footer,
8585
table,
8686
}) ??
8787
columnDef.footer ??
88-
null)}
88+
null))}
8989
</TableCell>
9090
);
9191
};

packages/material-react-table/src/components/inputs/MRT_FilterRangeSlider.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const MRT_FilterRangeSlider = <TData extends MRT_RowData>({
4141
let [min, max] =
4242
sliderProps.min !== undefined && sliderProps.max !== undefined
4343
? [sliderProps.min, sliderProps.max]
44-
: column.getFacetedMinMaxValues() ?? [0, 1];
44+
: (column.getFacetedMinMaxValues() ?? [0, 1]);
4545

4646
//fix potential TanStack Table bugs where min or max is an array
4747
if (Array.isArray(min)) min = min[0];

packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx

+6-3
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,11 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
117117
: '';
118118

119119
const filterPlaceholder = !isRangeFilter
120-
? textFieldProps?.placeholder ??
121-
localization.filterByColumn?.replace('{column}', String(columnDef.header))
120+
? (textFieldProps?.placeholder ??
121+
localization.filterByColumn?.replace(
122+
'{column}',
123+
String(columnDef.header),
124+
))
122125
: rangeFilterIndex === 0
123126
? localization.min
124127
: rangeFilterIndex === 1
@@ -141,7 +144,7 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
141144
? (column.getFilterValue() as [string, string])?.[
142145
rangeFilterIndex as number
143146
] || ''
144-
: (column.getFilterValue() as string) ?? '',
147+
: ((column.getFilterValue() as string) ?? ''),
145148
);
146149
const [autocompleteValue, setAutocompleteValue] =
147150
useState<DropdownOption | null>(

packages/material-react-table/src/components/menus/MRT_FilterOptionMenu.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ export const MRT_FilterOptionMenu = <TData extends MRT_RowData>({
254254
{...rest}
255255
>
256256
{(header && column && columnDef
257-
? columnDef.renderColumnFilterModeMenuItems?.({
257+
? (columnDef.renderColumnFilterModeMenuItems?.({
258258
column: column as any,
259259
internalFilterOptions,
260260
onSelectFilterMode: handleSelectFilterMode,
@@ -265,7 +265,7 @@ export const MRT_FilterOptionMenu = <TData extends MRT_RowData>({
265265
internalFilterOptions,
266266
onSelectFilterMode: handleSelectFilterMode,
267267
table,
268-
})
268+
}))
269269
: renderGlobalFilterModeMenuItems?.({
270270
internalFilterOptions,
271271
onSelectFilterMode: handleSelectFilterMode,

packages/material-react-table/src/components/table/MRT_TableContainer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ export const MRT_TableContainer = <TData extends MRT_RowData>({
5656
useIsomorphicLayoutEffect(() => {
5757
const topToolbarHeight =
5858
typeof document !== 'undefined'
59-
? topToolbarRef.current?.offsetHeight ?? 0
59+
? (topToolbarRef.current?.offsetHeight ?? 0)
6060
: 0;
6161

6262
const bottomToolbarHeight =
6363
typeof document !== 'undefined'
64-
? bottomToolbarRef?.current?.offsetHeight ?? 0
64+
? (bottomToolbarRef?.current?.offsetHeight ?? 0)
6565
: 0;
6666

6767
setTotalToolbarHeight(topToolbarHeight + bottomToolbarHeight);

packages/material-react-table/src/hooks/display-columns/getMRT_RowExpandColumnDef.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const getMRT_RowExpandColumnDef = <TData extends MRT_RowData>(
7979
id: 'mrt-row-expand',
8080
size:
8181
groupedColumnMode === 'remove'
82-
? defaultColumn?.size ?? 180
82+
? (defaultColumn?.size ?? 180)
8383
: renderDetailPanel
8484
? enableExpandAll
8585
? 60

packages/material-react-table/src/hooks/useMRT_TableInstance.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,10 @@ export const useMRT_TableInstance = <TData extends MRT_RowData>(
9999
).map((col) => ({
100100
[getColumnId(col)]:
101101
col.filterFn instanceof Function
102-
? col.filterFn.name ?? 'custom'
103-
: col.filterFn ??
102+
? (col.filterFn.name ?? 'custom')
103+
: (col.filterFn ??
104104
initialState?.columnFilterFns?.[getColumnId(col)] ??
105-
getDefaultColumnFilterFn(col),
105+
getDefaultColumnFilterFn(col)),
106106
})),
107107
),
108108
);

packages/material-react-table/src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export type MRT_PaginationState = PaginationState;
114114
export type MRT_RowSelectionState = RowSelectionState;
115115
export type MRT_SortingState = SortingState;
116116
export type MRT_Updater<T> = Updater<T>;
117-
export type MRT_VirtualItem<T extends Element = Element> = VirtualItem<T>;
117+
export type MRT_VirtualItem = VirtualItem;
118118
export type MRT_VisibilityState = VisibilityState;
119119

120120
export type MRT_VirtualizerOptions<

0 commit comments

Comments
 (0)