Skip to content

Commit 4a8e722

Browse files
authored
Merge pull request #765 from icflorescu/next
Release 8.3.7
2 parents 65a0bd6 + 71d1ce4 commit 4a8e722

31 files changed

+696
-244
lines changed

.github/workflows/publish-and-deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v5
2626

2727
- name: Install pnpm
2828
uses: pnpm/action-setup@v4
@@ -31,9 +31,9 @@ jobs:
3131
run_install: false
3232

3333
- name: Setup Node.js
34-
uses: actions/setup-node@v4
34+
uses: actions/setup-node@v6
3535
with:
36-
node-version: 24.2
36+
node-version: 24.11
3737
cache: pnpm
3838

3939
- name: Restore pnpm store
@@ -53,12 +53,12 @@ jobs:
5353
run: pnpm build
5454

5555
- name: Upload pages artifact
56-
uses: actions/upload-pages-artifact@v3
56+
uses: actions/upload-pages-artifact@v4
5757
with:
5858
path: ./out
5959

6060
- name: Upload package artifact
61-
uses: actions/upload-artifact@v4
61+
uses: actions/upload-artifact@v5
6262
with:
6363
name: package
6464
path: |
@@ -73,10 +73,10 @@ jobs:
7373
runs-on: ubuntu-latest
7474
needs: build
7575
steps:
76-
- uses: actions/download-artifact@v4
76+
- uses: actions/download-artifact@v6
7777
with:
7878
name: package
79-
- uses: JS-DevTools/npm-publish@v3
79+
- uses: JS-DevTools/npm-publish@v4
8080
with:
8181
token: ${{ secrets.NPM_TOKEN }}
8282

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
The following is a list of notable changes to the Mantine DataTable component.
44
Minor versions that are not listed in the changelog are bug fixes and small improvements.
55

6+
## 8.3.7 (2025-11-10)
7+
8+
- Fix [#763](https://github.com/icflorescu/mantine-datatable/issues/763) regression introduced in [#749](https://github.com/icflorescu/mantine-datatable/pull/749)
9+
- Fix [#764](https://github.com/icflorescu/mantine-datatable/issues/764) docs website bug introduced in [#749](https://github.com/icflorescu/mantine-datatable/pull/749)
10+
- Update deps to ensure compatibility with Mantine 8.3.7
11+
- Update other dev deps (docsearch, faker, etc.)
12+
- Fix linting & linting errors
13+
614
## 8.3.6 (2025-11-07)
715

816
- Merge [#740](https://github.com/icflorescu/mantine-datatable/pull/740) to fix [#739](https://github.com/icflorescu/mantine-datatable/issues/739)

app/contribute-and-support/ContributorsImage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export function ContributorsImage() {
1212
};
1313

1414
useWindowEvent('resize', adjustCols);
15+
// eslint-disable-next-line react-hooks/set-state-in-effect
1516
useEffect(adjustCols, []);
1617

1718
return (

app/examples/column-dragging-and-toggling/DraggingTogglingComplexExample.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export default function DraggingTogglingComplexExample() {
1919

2020
useEffect(() => {
2121
const data = sortBy(companies, sortStatus.columnAccessor) as Company[];
22+
// eslint-disable-next-line react-hooks/set-state-in-effect
2223
setRecords(sortStatus.direction === 'desc' ? data.reverse() : data);
2324
}, [sortStatus]);
2425

app/examples/column-resizing/ResizingComplexExample.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export default function ResizingComplexExample() {
1818

1919
useEffect(() => {
2020
const data = sortBy(companies, sortStatus.columnAccessor);
21+
// eslint-disable-next-line react-hooks/set-state-in-effect
2122
setRecords(sortStatus.direction === 'desc' ? data.reverse() : data);
2223
}, [sortStatus]);
2324

app/examples/infinite-scrolling/InfiniteScrollingExample.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export function InfiniteScrollingExample() {
1212
const [records, setRecords] = useState(employees.slice(0, batchSize));
1313
const scrollViewportRef = useRef<HTMLDivElement>(null);
1414

15-
let timeout: ReturnType<typeof setTimeout> | undefined;
15+
const timeoutRef = useRef<ReturnType<typeof setTimeout>>(null);
1616

1717
const loadMoreRecords = () => {
1818
if (records.length < employees.length) {
1919
setLoading(true);
20-
timeout = setTimeout(() => {
20+
timeoutRef.current = setTimeout(() => {
2121
setRecords(employees.slice(0, records.length + batchSize));
2222
setLoading(false);
2323
}, 1000);
@@ -38,9 +38,9 @@ export function InfiniteScrollingExample() {
3838
// Clear timeout on unmount
3939
useEffect(() => {
4040
return () => {
41-
if (timeout) clearTimeout(timeout);
41+
if (timeoutRef.current) clearTimeout(timeoutRef.current);
4242
};
43-
}, [timeout]);
43+
}, []);
4444

4545
return (
4646
<>

app/examples/overriding-the-default-styles/ColorsExample.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export function ColorsExample() {
1616
useEffect(() => {
1717
const from = (page - 1) * PAGE_SIZE;
1818
const to = from + PAGE_SIZE;
19+
// eslint-disable-next-line react-hooks/set-state-in-effect
1920
setRecords(allCompanies.slice(from, to));
2021
}, [page]);
2122

app/examples/overriding-the-default-styles/StylingWithClassNamesExample.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export function StylingWithClassNamesExample() {
1414
useEffect(() => {
1515
const from = (page - 1) * PAGE_SIZE;
1616
const to = from + PAGE_SIZE;
17+
// eslint-disable-next-line react-hooks/set-state-in-effect
1718
setRecords(companies.slice(from, to));
1819
}, [page]);
1920

app/examples/pagination/PaginationCustomRenderExample.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ const PAGE_SIZES = [10, 15, 20];
1111
export default function PaginationCustomRenderExample() {
1212
const [pageSize, setPageSize] = useState(PAGE_SIZES[1]);
1313

14+
const [page, setPage] = useState(1);
15+
const [records, setRecords] = useState(employees.slice(0, pageSize));
16+
1417
useEffect(() => {
18+
// eslint-disable-next-line react-hooks/set-state-in-effect
1519
setPage(1);
1620
}, [pageSize]);
1721

18-
const [page, setPage] = useState(1);
19-
const [records, setRecords] = useState(employees.slice(0, pageSize));
20-
2122
useEffect(() => {
2223
const from = (page - 1) * pageSize;
2324
const to = from + pageSize;
25+
// eslint-disable-next-line react-hooks/set-state-in-effect
2426
setRecords(employees.slice(from, to));
2527
}, [page, pageSize]);
2628

app/examples/pagination/PaginationExample.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default function PaginationExample() {
1414
useEffect(() => {
1515
const from = (page - 1) * PAGE_SIZE;
1616
const to = from + PAGE_SIZE;
17+
// eslint-disable-next-line react-hooks/set-state-in-effect
1718
setRecords(employees.slice(from, to));
1819
}, [page]);
1920

0 commit comments

Comments
 (0)