Skip to content

Commit

Permalink
release v1.3.0 - mrt v1 lock mantine v6 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinVandy committed Sep 18, 2023
1 parent 0d7df5b commit b7212b8
Show file tree
Hide file tree
Showing 10 changed files with 1,025 additions and 1,142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Upgrade Example Versions
on:
push:
branches:
- 'main'
- 'v1'
paths:
- 'packages/mantine-react-table/package.json'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Clean PR
on:
pull_request:
branches:
- main
- v1

jobs:
clean-pr:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Tabs } from '@mantine/core';
import { SampleCodeSnippet } from './SampleCodeSnippet';

const defaultPackagesString =
'mantine-react-table @mantine/core @mantine/hooks @mantine/dates @emotion/react @tabler/icons-react dayjs';
'mantine-react-table @mantine/core@6.0.21 @mantine/hooks@6.0.21 @mantine/dates@6.0.21 @emotion/react @tabler/icons-react dayjs';

export const InstallCommand = ({
packagesString = defaultPackagesString,
Expand Down
7 changes: 7 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,13 @@ import Head from 'next/head';

### V1

#### V1.3.0 - 2023-09-18

- Updated the mrt `package.json` `@mantine/` peerDependencies to `^6.0.0` to indicate that MRT v1 is now compatible with Mantine v6
- Upgraded to `@tanstack/react-table v8.10.0`
- Better accessorKey deep key inference
- New row pinning apis (MRT does not implement row pinning features yet)

#### 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { FAQs } from '../../../components/mdx/FAQs';
<meta name="description" content="How to install Mantine React Table" />
</Head>

> This is the install guide for `mantine-react-table` **V1** and `@mantine/` packages **V6**. MRT V1 will not work with Mantine V7. MRT V2 will be released by the end of 2023 and will work with Mantine V7.
## Installation

> `mantine-react-table` V1 requires **Mantine V6.0+** packages as dependencies in your project.
Expand All @@ -15,9 +17,9 @@ import { FAQs } from '../../../components/mdx/FAQs';
>
> Just double-check that you have the following in your package.json, or use the [full install commands](<#install-with-required-peer-dependencies-(recommended)>) below.
>
> 1. `@mantine/core` (v6.0+)
> 2. `@mantine/hooks` (v6.0+)
> 3. `@mantine/dates` (v6.0+)
> 1. `@mantine/core` (^v6.0)
> 2. `@mantine/hooks` (^v6.0)
> 3. `@mantine/dates` (^v6.0)
> 4. `@tabler/icons-react` (2.23.0+)
> 5. `@emotion/react` (v11)
> 6. `dayjs` (v1.11+)
Expand All @@ -37,6 +39,8 @@ import { FAQs } from '../../../components/mdx/FAQs';
### Common Errors

If you don't see any styles applied to the mantine table components, you may have mismatching versions of `mantine-react-table` and `@mantine/core`. MRT v1 requires Mantine v6 and will not work with Mantine v7. MRT v2 will be released by the end of 2023 and will work with Mantine v7.

If you get an error like this:

```bsh
Expand Down
134 changes: 67 additions & 67 deletions apps/mantine-react-table-docs/public/sitemap-0.xml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions packages/mantine-react-table/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.2.1",
"version": "1.3.0",
"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 @@ -111,9 +111,9 @@
},
"peerDependencies": {
"@emotion/react": ">=11",
"@mantine/core": ">=6",
"@mantine/dates": ">=6",
"@mantine/hooks": ">=6",
"@mantine/core": "^6.0",
"@mantine/dates": "^6.0",
"@mantine/hooks": "^6.0",
"@tabler/icons-react": ">=2.23.0",
"react": ">=18.0",
"react-dom": ">=18.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/mantine-react-table/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ export type MRT_ColumnDef<TData extends Record<string, any> = {}> = Omit<
* @example accessorKey: 'username' //simple
* @example accessorKey: 'name.firstName' //deep key dot notation
*/
accessorKey?: DeepKeys<TData>;
accessorKey?: (string & {}) | DeepKeys<TData>;
aggregationFn?: MRT_AggregationFn<TData> | Array<MRT_AggregationFn<TData>>;
/**
* Specify what type of column this is. Either `data`, `display`, or `group`. Defaults to `data`.
Expand Down
Loading

2 comments on commit b7212b8

@vercel
Copy link

@vercel vercel bot commented on b7212b8 Sep 18, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on b7212b8 Sep 18, 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.