You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* chore: upgrade dependencies, add TypeScript support, and restructure build output
- Upgrade all dev dependencies (ESLint 9, Jest 30, Prettier 3, Husky 9, etc.)
- Replace node-sass with sass, react-test-renderer with @testing-library/react
- Migrate ESLint from .eslintrc to flat config (eslint.config.mjs) with TS parser
- Add TypeScript: convert all src/ and spec/ files from JS to TS/TSX
- Keep Babel for JS output, add tsc for type declarations (dist/types/)
- Restructure build output into dist/ (cjs, esm, types, styles.css)
- Upgrade Gatsby website to v4 + React 18 with updated plugins and examples
- Move spec files to dedicated spec/ directory
* refactor: improve TypeScript types and remove unnecessary `as any` casts
- Move Column static properties (Alignment, FrozenDirection) into class body
- Use `keyof TableComponents` for _getComponent instead of untyped string
- Add JSDoc comments to ColumnShape and other shared types
- Export cloneArray from index.ts
- Include LICENSE.md and README.md in published files
* chore: bump version to 2.0.0 and update changelog, docs, and propTypes JSDoc
- Bump version from 1.13.5 to 2.0.0
- Generate v2.0.0 changelog with breaking changes, features, upgrades, and bug fixes
- Update docs (get-started, advance) with new import paths and browser support
- Restore JSDoc comments on BaseTable.propTypes for gatsby-transformer-react-docgen
> **Note:** You must import the stylesheet for BaseTable to render correctly. For advanced styling see [below](#advance).
34
+
38
35
Learn more at the [website](https://autodesk.github.io/react-base-table/)
39
36
40
37
### unique key
@@ -64,11 +61,17 @@ Things getting worse with the introduction of React hooks, we use primitive stat
64
61
65
62
Here is an [example](https://autodesk.github.io/react-base-table/playground#MYewdgzgLgBKA2BXAtpGBeGBzApmHATgIZQ4DCISqEAFAIwAMAlAFCiSwAmJRG2ehEjgAiPGghSQANDABMDZixY4AHgAcQBLjgBmRRPFg0mGAHwwA3ixhxw0GAG1QiMKQIyIOKBRduAunwASjhEwFAAdIieAMpQQjSKNuz2DgCWWGCaOABiLmGp4B5eAJIZWblg+eABmMGhEVE4sfFQBIg4rEl2sGlgAFY4YRRUYEVQxf2D3pSSNTB1YZExcaQ0evCenTAEXogEYDA01jYwADymxydnnKkAbjDQAJ7wOOgWFjBqRJw3YFgAXDAACwyG4QNTwIiPQEAch0LxUMJkfSiUFSOkeFFceCgsPBoRwAFoAEZeADuODwMJgAF8aRcrldTsTEFAoOAYOAyPBUsAANZvYxmB5eHzYgjiEC+QgwADUMDoTHpstOAHoWWzwAzGTZTpDSfBtTrdakwGpWZdjTYoI81K8AETAAAWgz5xJAKntlqtztdOE4b3SmR2FSqYBp3uNXKdRD+rwsOGFnnGZRDeTR4BoOHCcQIuAivv5-qVkauqqNxtKwcTOnTBQOptsI1syC+O1LZ1V+pwho7eqIBorOtOpvNUA7VxtdvQjpd-PdnonJ0LfP9gcmQxmqAjVqu0djuDeifQ5mTEwGm5GWZzRDzXnCK+LO935aX56mMFUrV43DiMHZTaSDAnC6KaqQZmAfZdgOPZDp2Ny3HBpwACoDi8MA6KkKj+sBPBvL+RA0jAQblHW4ATMMkgUK2t7xiRaaVBB9J9pRqBLhY4ScRI1AOAwfjPlaBEAOJeG4gomCetjSgQAnGs44rrhe0zNgA-FJ4owICLggZh+CcLJZZwbqrEHBxXFbpADh0PxMCvlapwmZYnEPhZEAOLINl2caDkWU55kjG5ADMnlGWcjlmS5AUOECIWRmqqHEi8FZqtqrARkAA) to demonstrate
66
63
67
-
## Browser Support
64
+
## TypeScript
65
+
66
+
This package is written in TypeScript and ships type declarations out of the box. All public types are exported from the main entry point:
`BaseTable` is well tested on all modern browsers and IE11. _You have to polyfill `Array.prototype.findIndex` to make it works on IE_
72
+
## Browser Support
70
73
71
-
**The [examples](https://autodesk.github.io/react-base-table/examples) don't work on IE as they are powered by [react-runner](https://github.com/nihgwu/react-runner) which is a `react-live` like library but only for modern browsers.**
74
+
`BaseTable` is tested on all modern browsers (Chrome, Firefox, Safari, Edge). IE is no longer supported.
@@ -140,7 +143,16 @@ We are using a advanced table component based on `BaseTable` internally, with mu
140
143
141
144
## Development
142
145
143
-
We use `Yarn` as the package manager, checkout this repo and run `yarn` under both root folder and `website` folder in install packages, then run `yarn start` to start the demo site powered by `Gatsby`
146
+
Requires **Node.js >= 18** (Node 24 recommended). We use `Yarn` as the package manager.
0 commit comments