Skip to content

Conversation

@csandman
Copy link
Owner

@csandman csandman commented Jan 9, 2026

This PR first updates all package versions in both the package and demo:

chakra-react-select

 @arethetypeswrong/cli                   ^0.17.4  →  ^0.18.2
 @chakra-ui/react                        ^2.10.5  →  ^2.10.9
 @eslint/js                              ^9.23.0  →  ^9.39.2
 @trivago/prettier-plugin-sort-imports    ^5.2.2  →   ^6.0.2
 @types/react                           ^18.3.11  →  ^19.2.7
 concurrently                             ^9.1.2  →   ^9.2.1
 eslint                                  ^9.23.0  →  ^9.39.2
 eslint-config-prettier                  ^10.1.1  →  ^10.1.8
 eslint-import-resolver-typescript        ^4.3.1  →   ^4.4.4
 eslint-plugin-import                    ^2.31.0  →  ^2.32.0
 eslint-plugin-react                     ^7.37.4  →  ^7.37.5
 eslint-plugin-react-hooks                ^5.2.0  →   ^7.0.1
 globals                                 ^16.0.0  →  ^17.0.0
 lint-staged                             ^15.5.0  →  ^16.2.7
 prettier                                 ^3.5.3  →   ^3.7.4
 tsup                                     ^8.4.0  →   ^8.5.1
 typescript                               ^5.8.2  →   ^5.9.3
 typescript-eslint                       ^8.29.0  →  ^8.52.0

demo

 @chakra-ui/react                 ^2.10.2  →   ^2.10.9
 @emotion/react                  ^11.13.3  →  ^11.14.0
 @emotion/styled                 ^11.13.0  →  ^11.14.1
 @eslint/js                       ^9.11.1  →   ^9.39.2
 @types/react                    ^18.3.10  →   ^19.2.7
 @types/react-dom                 ^18.3.0  →   ^19.2.3
 @vitejs/plugin-react              ^4.3.2  →    ^5.1.2
 eslint                           ^9.11.1  →   ^9.39.2
 eslint-config-prettier            ^9.1.0  →   ^10.1.8
 eslint-plugin-react              ^7.37.1  →   ^7.37.5
 eslint-plugin-react-hooks    ^5.1.0-rc.0  →    ^7.0.1
 eslint-plugin-react-refresh      ^0.4.12  →   ^0.4.26
 framer-motion                   ^11.11.9  →  ^12.25.0
 globals                          ^15.9.0  →   ^17.0.0
 prettier                          ^3.3.3  →    ^3.7.4
 react                            ^18.3.1  →   ^19.2.3
 react-dom                        ^18.3.1  →   ^19.2.3
 typescript                        ^5.5.3  →    ^5.9.3
 typescript-eslint                 ^8.7.0  →   ^8.52.0
 vite                              ^5.4.8  →    ^7.3.1

Following that, it fixes anything that was deprecated or changed because of it. Similar to #371, I had to fix the vite config to get the demo working again:

// vite.config.ts

// ...
  resolve: {
    dedupe: ["react", "react-dom", "@emotion/react"],
  },
// ...

While doing so, I also added babel-plugin-react-compiler to start using the react compiler.


Finally, it adds eslint-plugin-unicorn to both the package and demo for more opinionated type checking.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

📊 Package size report   0.03%↑

File Before After
package.json 3.0 kB 1%↑3.1 kB
Total (Includes all files) 155.0 kB 0.03%↑155.1 kB
Tarball size 31.1 kB 0.03%↑31.1 kB
Unchanged files
File Size
dist/index.d.mts 20.0 kB
dist/index.d.ts 20.0 kB
dist/index.js 32.5 kB
dist/index.mjs 30.9 kB
LICENSE.md 1.1 kB
README.md 47.5 kB

🤖 This report was automatically generated by pkg-size-action

ref:
| ((instance: SelectInstance<Option, IsMulti, Group> | null) => void)
// eslint-disable-next-line @typescript-eslint/no-deprecated
| MutableRefObject<SelectInstance<Option, IsMulti, Group> | null>
Copy link
Owner Author

@csandman csandman Jan 9, 2026

Choose a reason for hiding this comment

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

This is deprecated in React 19 in favor of the type RefObject. However, in React 18, RefObject has a different meaning, so I'm leaving it as-is for now in case the type change would cause type issues for anyone. Currently, the core react-select package still uses this type, so I'm going to follow their lead: https://github.com/JedWatson/react-select/blob/052e864/packages/react-select/src/stateManager.tsx#L29

@csandman csandman merged commit 34e42b9 into v5 Jan 9, 2026
2 checks passed
@csandman csandman deleted the v5-dep-update-1-9-2026 branch January 9, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants