diff --git a/.changeset/react-19-types-compat.md b/.changeset/react-19-types-compat.md deleted file mode 100644 index f23ebeca3..000000000 --- a/.changeset/react-19-types-compat.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@tiny-design/react': patch ---- - -Fix TypeScript compatibility with React 19. Component prop interfaces used the pattern `React.PropsWithRef`, which relied on a globally-augmented `JSX` namespace that `@types/react@19` no longer provides. The resolved prop types collapsed to `any`, silently dropping every intrinsic HTML attribute (`onClick`, `type`, `disabled`, `aria-*`, `children`, etc.) for consumers on React 19. Replaced the pattern with `React.ComponentProps<'x'>` / `React.ComponentPropsWithoutRef<'x'>` across ~60 component type files. Works on React 18 and 19. diff --git a/packages/charts/CHANGELOG.md b/packages/charts/CHANGELOG.md index 410e5a01a..fec64925f 100644 --- a/packages/charts/CHANGELOG.md +++ b/packages/charts/CHANGELOG.md @@ -1,5 +1,7 @@ # @tiny-design/charts +## 1.13.2 + ## 1.13.1 ## 1.13.0 diff --git a/packages/charts/package.json b/packages/charts/package.json index da95b30ea..4dfa7c584 100644 --- a/packages/charts/package.json +++ b/packages/charts/package.json @@ -1,6 +1,6 @@ { "name": "@tiny-design/charts", - "version": "1.13.1", + "version": "1.13.2", "description": "Theme-aware chart components for Tiny Design, built on Recharts", "license": "MIT", "repository": { diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md index 92a33e005..214893913 100644 --- a/packages/icons/CHANGELOG.md +++ b/packages/icons/CHANGELOG.md @@ -1,5 +1,7 @@ # @tiny-design/icons +## 1.13.2 + ## 1.13.1 ## 1.13.0 diff --git a/packages/icons/package.json b/packages/icons/package.json index da04373ee..a4a1e4637 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@tiny-design/icons", - "version": "1.13.1", + "version": "1.13.2", "description": "SVG icon components for tiny-design", "license": "MIT", "keywords": [ diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index e1b9c8975..edf889b9a 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.13.2 + +### Patch Changes + +- Fix TypeScript compatibility with React 19. Component prop interfaces used the pattern `React.PropsWithRef`, which relied on a globally-augmented `JSX` namespace that `@types/react@19` no longer provides. The resolved prop types collapsed to `any`, silently dropping every intrinsic HTML attribute (`onClick`, `type`, `disabled`, `aria-*`, `children`, etc.) for consumers on React 19. Replaced the pattern with `React.ComponentProps<'x'>` / `React.ComponentPropsWithoutRef<'x'>` across ~60 component type files. Works on React 18 and 19. - [#121](https://github.com/wangdicoder/tiny-design/pull/121) [`e928d14`](https://github.com/wangdicoder/tiny-design/commit/e928d14f27b73a2ee9d18454a87122cc22ebd5b3) + ## 1.13.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 0602063a8..e211a4bb2 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@tiny-design/react", - "version": "1.13.1", + "version": "1.13.2", "description": "A friendly UI component set for React", "license": "MIT", "keywords": [ diff --git a/packages/tokens/CHANGELOG.md b/packages/tokens/CHANGELOG.md index dec3dec64..70f4f09cb 100644 --- a/packages/tokens/CHANGELOG.md +++ b/packages/tokens/CHANGELOG.md @@ -1,5 +1,7 @@ # @tiny-design/tokens +## 1.13.2 + ## 1.13.1 ## 1.13.0 diff --git a/packages/tokens/package.json b/packages/tokens/package.json index bddb1de73..972373976 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -1,6 +1,6 @@ { "name": "@tiny-design/tokens", - "version": "1.13.1", + "version": "1.13.2", "description": "Design tokens and v2 theme runtime for Tiny UI", "license": "MIT", "repository": {