chore: upgrade dependencies, add TypeScript support, and restructure build output#435
Merged
chore: upgrade dependencies, add TypeScript support, and restructure build output#435
Conversation
…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
steven-qi
approved these changes
Apr 17, 2026
steven-qi
reviewed
Apr 17, 2026
- 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 Made-with: Cursor
…s 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 Made-with: Cursor
Contributor
|
😮 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
upgrade dependencies, add TypeScript support, and restructure build output
v2.0.0 (2026-04-16)
Breaking Changes
lib/→dist/cjs/,es/→dist/esm/,types/→dist/types/,styles.css→dist/styles.cssreact-base-table/styles.csstoreact-base-table/dist/styles.css~react-base-table/es/_BaseTable.scsstoreact-base-table/dist/esm/_BaseTable.scsstypes/index.d.ts: replaced by auto-generated declarations from TypeScript sourceFeatures
src/) and specs (spec/) in TypeScript; ships.d.tsdeclarations out of the boxColumnShape,RowData,RowKey,CellRendererProps,HeaderRendererProps,RowRendererProps,ScrollArgs,SortByShape,SortState,TableComponents, and morecloneArrayUpgrades
node-sasswithsass(Dart Sass)react-test-rendererwith@testing-library/react.eslintrcto flat config (eslint.config.mjs) with@typescript-eslint/parsersrc/to dedicatedspec/directoryBug Fixes
_handleRowExpandexpand logic was always true (!arr.indexOf(x) >= 0→arr.indexOf(x) < 0)Website (Gatsby demo)
faker→@faker-js/fakerv8