Skip to content

Commit

Permalink
release v1.2.1 - upgrade tanstack versions
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Sep 10, 2023
1 parent 58ccf6d commit 835efbb
Show file tree
Hide file tree
Showing 9 changed files with 1,910 additions and 1,349 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const Example = () => {
enableSelectAll: false,
enableRowSelection: (row) => row.original.age >= 21, //enable row selection conditionally per row
mantineSelectCheckboxProps: { color: 'red', size: 'lg' },
positionToolbarAlertBanner: 'head-overlay'
positionToolbarAlertBanner: 'head-overlay',
});

return <MantineReactTable table={table} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,12 @@ const Example = () => {
}, []);

useEffect(() => {
//scroll to the top of the table when the sorting changes
rowVirtualizerInstanceRef.current?.scrollToIndex(0);
try {
//scroll to the top of the table when the sorting changes
rowVirtualizerInstanceRef.current?.scrollToIndex(0);
} catch (e) {
console.log(e);
}
}, [sorting]);

const table = useMantineReactTable({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,12 @@ const Example = () => {
}, []);

useEffect(() => {
//scroll to the top of the table when the sorting changes
rowVirtualizerInstanceRef.current?.scrollToIndex(0);
try {
//scroll to the top of the table when the sorting changes
rowVirtualizerInstanceRef.current?.scrollToIndex(0);
} catch (e) {
console.log(e);
}
}, [sorting]);

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,12 @@ const Example = () => {
}, []);

useEffect(() => {
//scroll to the top of the table when the sorting changes
rowVirtualizerInstanceRef.current?.scrollToIndex(0);
try {
//scroll to the top of the table when the sorting changes
rowVirtualizerInstanceRef.current?.scrollToIndex(0);
} catch (e) {
console.log(e);
}
}, [sorting]);

const table = useMantineReactTable({
Expand Down
46 changes: 23 additions & 23 deletions apps/mantine-react-table-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,45 +13,45 @@
"sitemap": "pnpm docs:sitemap"
},
"dependencies": {
"@docsearch/js": "3.5.1",
"@docsearch/js": "3.5.2",
"@emotion/react": "^11.11.1",
"@emotion/server": "^11.11.0",
"@faker-js/faker": "^8.0.2",
"@fortawesome/fontawesome-svg-core": "^6.4.2",
"@fortawesome/free-solid-svg-icons": "^6.4.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@mantine/core": "^6.0.19",
"@mantine/dates": "^6.0.19",
"@mantine/hooks": "^6.0.19",
"@mantine/modals": "^6.0.19",
"@mantine/next": "^6.0.19",
"@mantine/prism": "6.0.19",
"@mantine/core": "^6.0.20",
"@mantine/dates": "^6.0.20",
"@mantine/hooks": "^6.0.20",
"@mantine/modals": "^6.0.20",
"@mantine/next": "^6.0.20",
"@mantine/prism": "6.0.20",
"@mdx-js/loader": "^2.3.0",
"@mdx-js/react": "^2.3.0",
"@next/mdx": "^13.4.13",
"@tabler/icons-react": "2.30.0",
"@tanstack/react-query": "^4.32.6",
"@types/mdx": "^2.0.6",
"@next/mdx": "^13.4.19",
"@tabler/icons-react": "2.34.0",
"@tanstack/react-query": "^4.35.0",
"@types/mdx": "^2.0.7",
"dayjs": "^1.11.9",
"export-to-csv": "^0.2.1",
"export-to-csv": "^1.0.0",
"jspdf": "^2.5.1",
"jspdf-autotable": "^3.5.31",
"jspdf-autotable": "^3.6.0",
"mantine-react-table": "workspace:*",
"next": "13.4.13",
"next-sitemap": "^4.2.2",
"next": "13.4.19",
"next-sitemap": "^4.2.3",
"react": "18.2.0",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/node": "^20.4.10",
"@types/react": "^18.2.20",
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"eslint": "8.47.0",
"eslint-config-next": "13.4.13",
"next-plausible": "^3.10.1",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"eslint": "8.49.0",
"eslint-config-next": "13.4.19",
"next-plausible": "^3.11.1",
"raw-loader": "^4.0.2",
"typescript": "5.1.6"
"typescript": "5.2.2"
}
}
4 changes: 4 additions & 0 deletions apps/mantine-react-table-docs/pages/changelog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ import Head from 'next/head';

### V1

#### V1.2.1 - 2023-09-10

- Upgraded to `@tanstack/react-table v8.9.8` and `@tanstack/react-virtual v3.0.0-beta.60` for better performance and bug fixes

#### V1.2.0 - 2023-08-23

- Added new `"head-overlay"` `positionToolbarAlertBanner` option to overlay the alert banner over the table header
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"storybook:dev": "turbo run storybook"
},
"devDependencies": {
"prettier": "^3.0.1",
"turbo": "^1.10.12"
"prettier": "^3.0.3",
"turbo": "^1.10.13"
},
"engines": {
"node": ">=14.0.0"
Expand Down
64 changes: 32 additions & 32 deletions packages/mantine-react-table/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.0",
"version": "1.2.1",
"license": "MIT",
"name": "mantine-react-table",
"description": "A fully featured Mantine implementation of TanStack React Table V8, written from the ground up in TypeScript.",
Expand Down Expand Up @@ -60,54 +60,54 @@
"storybook:dev": "storybook dev -p 6007"
},
"devDependencies": {
"@babel/core": "^7.22.10",
"@babel/preset-react": "^7.22.5",
"@babel/core": "^7.22.17",
"@babel/preset-react": "^7.22.15",
"@emotion/react": "^11.11.1",
"@faker-js/faker": "^8.0.2",
"@mantine/core": "^6.0.19",
"@mantine/dates": "^6.0.19",
"@mantine/hooks": "^6.0.19",
"@mantine/core": "^6.0.20",
"@mantine/dates": "^6.0.20",
"@mantine/hooks": "^6.0.20",
"@rollup/plugin-babel": "^6.0.3",
"@rollup/plugin-node-resolve": "^15.1.0",
"@rollup/plugin-typescript": "^11.1.2",
"@size-limit/preset-small-lib": "^8.2.6",
"@storybook/addon-a11y": "^7.2.3",
"@storybook/addon-essentials": "^7.2.3",
"@storybook/addon-interactions": "^7.2.3",
"@storybook/addon-links": "^7.2.3",
"@storybook/addon-storysource": "^7.2.3",
"@storybook/blocks": "^7.2.3",
"@storybook/react": "^7.2.3",
"@storybook/react-vite": "^7.2.3",
"@rollup/plugin-node-resolve": "^15.2.1",
"@rollup/plugin-typescript": "^11.1.3",
"@size-limit/preset-small-lib": "^9.0.0",
"@storybook/addon-a11y": "^7.4.0",
"@storybook/addon-essentials": "^7.4.0",
"@storybook/addon-interactions": "^7.4.0",
"@storybook/addon-links": "^7.4.0",
"@storybook/addon-storysource": "^7.4.0",
"@storybook/blocks": "^7.4.0",
"@storybook/react": "^7.4.0",
"@storybook/react-vite": "^7.4.0",
"@storybook/testing-library": "^0.2.0",
"@tabler/icons-react": "2.30.0",
"@types/node": "^20.4.10",
"@types/react": "^18.2.20",
"@tabler/icons-react": "2.34.0",
"@types/node": "^20.6.0",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@typescript-eslint/eslint-plugin": "^6.6.0",
"@typescript-eslint/parser": "^6.6.0",
"@vitejs/plugin-react": "^4.0.4",
"dayjs": "^1.11.9",
"eslint": "^8.47.0",
"eslint": "^8.49.0",
"prop-types": "^15.8.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"rollup": "^3.28.0",
"rollup-plugin-copy": "^3.4.0",
"rollup-plugin-dts": "^5.3.1",
"rollup": "^3.29.1",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.0.2",
"rollup-plugin-peer-deps-external": "^2.2.4",
"size-limit": "^8.2.6",
"storybook": "^7.2.3",
"size-limit": "^9.0.0",
"storybook": "^7.4.0",
"storybook-dark-mode": "^3.0.1",
"tslib": "^2.6.1",
"typescript": "^5.1.6",
"tslib": "^2.6.2",
"typescript": "^5.2.2",
"vite": "^4.4.9"
},
"dependencies": {
"@tanstack/match-sorter-utils": "8.8.4",
"@tanstack/react-table": "8.9.3",
"@tanstack/react-virtual": "3.0.0-beta.54"
"@tanstack/react-table": "8.9.8",
"@tanstack/react-virtual": "3.0.0-beta.60"
},
"peerDependencies": {
"@emotion/react": ">=11",
Expand Down
Loading

1 comment on commit 835efbb

@vercel
Copy link

@vercel vercel bot commented on 835efbb Sep 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.