Repository navigation
Update v2 20261021 - #297
Merged
Merged
Conversation
Bump react, react-dom, @types/react and @types/react-dom to v19. Fix the type errors introduced by the React 19 types: - import JSX from react (the global JSX namespace is removed) - type hook refs as RefObject<T | null>, which is what useRef<T>(null) now returns - give Slot's isValidElement a props type (ReactElement props now default to unknown)
React 19 passes ref to function components as a regular prop, and forwardRef will be deprecated in a future release. Every component already spreads rest onto the element that received the ref, so dropping forwardRef is enough. Heading keeps its HTMLElement ref type with a cast because it renders either hgroup or div. Also use popoverTarget in the LanguageSelector story, which React 19 recognizes as a DOM property.
Update the tech stack to React 19 in README, getting-started and AGENTS.md. Add docs/using-with-react-v18.md describing the changes needed on React 18 (forwardRef, hook ref types, popovertarget) and link it from README and Storybook. Add React version rules to component-rules.
ci: リリースタグとGitHub Releaseの自動作成を追加
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.
更新内容
チェックリスト
以下のチェックリストにすべてチェックが入っていることを確認してからマージしてください
mainブランチになっていますか?リリース前にすること