Skip to content

Commit 9e0db03

Browse files
danielkitadvngrblukasmasuch
authored
React 19 Upgrade (#1036)
* chore: bump deps to react v19 * Update Storybook dependencies and configuration --------- Co-authored-by: dvngrb <[email protected]> Co-authored-by: Lukas Masuch <[email protected]>
1 parent daf5659 commit 9e0db03

File tree

11 files changed

+11110
-21142
lines changed

11 files changed

+11110
-21142
lines changed

.github/workflows/node.js.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,12 @@ jobs:
3535
node-version: 20.10.0
3636
- run: npm install
3737
- run: npm run test-18
38+
test-react-19:
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: 20.10.0
45+
- run: npm install
46+
- run: npm run test-19

.storybook/main.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

.storybook/main.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { mergeConfig } from "vite";
44

55
export default {
66
stories: ["../**/src/**/*.stories.tsx"],
7-
addons: [getAbsolutePath("@storybook/addon-storysource"), getAbsolutePath("@storybook/addon-controls")],
7+
addons: [getAbsolutePath("@storybook/addon-docs")],
88

99
typescript: {
1010
reactDocgen: false,
@@ -19,11 +19,7 @@ export default {
1919
framework: {
2020
name: getAbsolutePath("@storybook/react-vite"),
2121
options: {},
22-
},
23-
24-
docs: {
25-
autodocs: false,
26-
},
22+
}
2723
};
2824

2925
function getAbsolutePath(value) {

.storybook/preview.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
11
const preview = {
22
parameters: {
33
layout: "fullscreen",
4+
45
options: {
56
storySort: {
67
method: "alphabetical",
78
order: ["Glide-Data-Grid", "Extra Packages", "Subcomponents"],
89
locales: "en-US",
910
},
1011
},
12+
13+
docs: {
14+
codePanel: true
15+
}
1116
},
1217
};
1318

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</picture>
1414

1515
[![Version](https://img.shields.io/npm/v/@glideapps/glide-data-grid?color=blue&label=latest&style=for-the-badge)](https://github.com/glideapps/glide-data-grid/releases)
16-
[![React 16+](https://img.shields.io/badge/React-16+-00ADD8?style=for-the-badge&logo=react)](https://reactjs.org)
16+
[![React 16-19](https://img.shields.io/badge/React-16--19-00ADD8?style=for-the-badge&logo=react)](https://reactjs.org)
1717
[![Code Coverage](https://img.shields.io/coverallsCoverage/github/glideapps/glide-data-grid?color=457aba&label=Cover&style=for-the-badge)](https://coveralls.io/github/glideapps/glide-data-grid)
1818
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/@glideapps/glide-data-grid?color=success&label=bundle&style=for-the-badge)](https://bundlephobia.com/package/@glideapps/glide-data-grid)
1919
[![License](https://img.shields.io/github/license/glideapps/glide-data-grid?color=red&style=for-the-badge)](https://github.com/glideapps/glide-data-grid/blob/main/LICENSE)
@@ -40,7 +40,7 @@ You can also visit our [main site](https://grid.glideapps.com).
4040

4141
# ⚡ Quick Start
4242

43-
First make sure you are using React 16 or greater. Then install the data grid:
43+
First make sure you are using React 16 or greater (including React 17, 18, and 19). Then install the data grid:
4444

4545
```shell
4646
npm i @glideapps/glide-data-grid

0 commit comments

Comments
 (0)