diff --git a/.changeset/breadcrumbs-shrink-in-flex-row.md b/.changeset/breadcrumbs-shrink-in-flex-row.md deleted file mode 100644 index 74d6ef66ad6..00000000000 --- a/.changeset/breadcrumbs-shrink-in-flex-row.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Breadcrumbs: In `menu` and `menu-with-root` overflow modes, collapse crumbs as soon as they no longer fit beside sibling content in a flex row, so the collapse point no longer depends on crumb length or resize direction. diff --git a/.changeset/data-table-group-count-descriptions.md b/.changeset/data-table-group-count-descriptions.md deleted file mode 100644 index cc3dec32dd2..00000000000 --- a/.changeset/data-table-group-count-descriptions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -DataTable: Describe group selection checkboxes with the member count. Add count-label formatters for localizing checkbox and disclosure descriptions in DataTable and Table.Group. diff --git a/.changeset/fix-treeview-visible-paging.md b/.changeset/fix-treeview-visible-paging.md deleted file mode 100644 index be3b4ef5d02..00000000000 --- a/.changeset/fix-treeview-visible-paging.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Fix TreeView PageUp and PageDown navigation targeting items hidden inside collapsed subtrees. Paging now counts only visible tree items and moves at least one item when the scroll container is shorter than a row. diff --git a/.changeset/icy-suits-lead.md b/.changeset/icy-suits-lead.md deleted file mode 100644 index 5eed4cfc226..00000000000 --- a/.changeset/icy-suits-lead.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -ActionMenu: Fix a memory leak when opening and closing menus. diff --git a/.changeset/mcp-guideline-redirects.md b/.changeset/mcp-guideline-redirects.md deleted file mode 100644 index a756928d991..00000000000 --- a/.changeset/mcp-guideline-redirects.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/mcp': patch ---- - -Guidelines: Avoid returning homepage content when a component has no guidelines page. diff --git a/.changeset/merged-forwarded-refs.md b/.changeset/merged-forwarded-refs.md deleted file mode 100644 index d5917de3135..00000000000 --- a/.changeset/merged-forwarded-refs.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Ref handling: Preserve forwarded refs while maintaining internal component refs. diff --git a/.changeset/pagination-empty-next.md b/.changeset/pagination-empty-next.md deleted file mode 100644 index 1b1e37f5dfb..00000000000 --- a/.changeset/pagination-empty-next.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Pagination: Disable Next for empty results when page numbers are hidden. diff --git a/.changeset/quiet-rings-forward.md b/.changeset/quiet-rings-forward.md deleted file mode 100644 index b68cafe5abd..00000000000 --- a/.changeset/quiet-rings-forward.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -PageHeader: Forward standard heading attributes from `PageHeader.Title`. diff --git a/.changeset/react-compiler-action-menu.md b/.changeset/react-compiler-action-menu.md deleted file mode 100644 index 26e5af3c7f7..00000000000 --- a/.changeset/react-compiler-action-menu.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -ActionMenu: Improve rendering performance with React Compiler support. diff --git a/.changeset/remove-unused-react-dependencies.md b/.changeset/remove-unused-react-dependencies.md deleted file mode 100644 index 66a79acdd1f..00000000000 --- a/.changeset/remove-unused-react-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': minor ---- - -Remove the unused hsluv dependency and move react-intersection-observer to devDependencies. diff --git a/.changeset/retire-timeline-semantics-flag.md b/.changeset/retire-timeline-semantics-flag.md deleted file mode 100644 index b8e085fd6fe..00000000000 --- a/.changeset/retire-timeline-semantics-flag.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': major ---- - -Timeline: Always render an ordered list with list items, removing the list-semantics opt-out. Refs now target list elements instead of divs. diff --git a/.changeset/sidebar-padding.md b/.changeset/sidebar-padding.md deleted file mode 100644 index e7569a5ed15..00000000000 --- a/.changeset/sidebar-padding.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@primer/react": patch ---- - -Fix PageLayout.Sidebar ignoring its padding prop diff --git a/.changeset/smooth-hooks-compile.md b/.changeset/smooth-hooks-compile.md deleted file mode 100644 index b4550dc4e43..00000000000 --- a/.changeset/smooth-hooks-compile.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -PageLayout and TreeView: Preserve pane resizing and keyboard focus behavior diff --git a/.changeset/tooltip-empty-text.md b/.changeset/tooltip-empty-text.md deleted file mode 100644 index 42f3744acfa..00000000000 --- a/.changeset/tooltip-empty-text.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Tooltip: Empty or whitespace-only text no longer opens a tooltip or labels or describes the trigger when there is no keybinding hint. diff --git a/.changeset/underline-nav-reduced-motion.md b/.changeset/underline-nav-reduced-motion.md deleted file mode 100644 index 86b0309ce0c..00000000000 --- a/.changeset/underline-nav-reduced-motion.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -UnderlineNav and TabNav: skip the loading-counter pulse when prefers-reduced-motion is reduce. diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 66410bea4eb..dc715078479 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -14,7 +14,7 @@ "react-dom": "^18.3.1" }, "devDependencies": { - "@primer/react": "38.46.0", + "@primer/react": "39.0.0", "@primer/styled-react": "1.1.1", "@types/react": "^18.3.11", "@types/react-dom": "^18.3.0", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index eac7a110a8e..605401332a5 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "38.46.0", + "@primer/react": "39.0.0", "@primer/styled-react": "1.1.1", "next": "^16.4.6", "react": "^19.2.8", diff --git a/examples/theming/package.json b/examples/theming/package.json index 6fc0d96046e..6f6d5ddf146 100644 --- a/examples/theming/package.json +++ b/examples/theming/package.json @@ -11,7 +11,7 @@ }, "dependencies": { "@primer/octicons-react": "^19.28.1", - "@primer/react": "38.46.0", + "@primer/react": "39.0.0", "clsx": "^2.1.1", "next": "^16.4.6", "react": "^19.2.8", diff --git a/packages/canvas/package.json b/packages/canvas/package.json index ec9ac19862e..93ea6f06936 100644 --- a/packages/canvas/package.json +++ b/packages/canvas/package.json @@ -23,7 +23,7 @@ }, "devDependencies": { "@primer/primitives": "11.x", - "@primer/react": "^38.27.0", + "@primer/react": "^39.0.0", "rimraf": "^6.1.3", "rolldown": "^1.2.16", "typescript": "^6.0.3" diff --git a/packages/mcp/CHANGELOG.md b/packages/mcp/CHANGELOG.md index 51dc0a9a6f1..32e9ecf0d18 100644 --- a/packages/mcp/CHANGELOG.md +++ b/packages/mcp/CHANGELOG.md @@ -1,5 +1,13 @@ # @primer/mcp +## 1.1.3 + +### Patch Changes + +- [#8784](https://github.com/primer/react/pull/8784) [`13d5ff6`](https://github.com/primer/react/commit/13d5ff6748035c94260818ba220935f583c648bd) Thanks [@joshblack](https://github.com/joshblack)! - Guidelines: Avoid returning homepage content when a component has no guidelines page. +- Updated dependencies [[`4fc8b82`](https://github.com/primer/react/commit/4fc8b82cd8f2dbc0fcc0fd1ded8393abf7fbba41), [`92a1fca`](https://github.com/primer/react/commit/92a1fca80cd63c2b729141a38a4a93ec27c47a43), [`24ce6b2`](https://github.com/primer/react/commit/24ce6b2c48dc3e301f03717f565a1427dc15d9d0), [`1588875`](https://github.com/primer/react/commit/15888757f6681f615efcf88e0218b70c2165c390), [`6075e98`](https://github.com/primer/react/commit/6075e98c6ea8fefb1d20f3918a0c133e77a68c9a), [`16c41d3`](https://github.com/primer/react/commit/16c41d3e57bb7358d887c613aaeb22aaea3a0d97), [`31c717c`](https://github.com/primer/react/commit/31c717c3901f0940af23c40e0c54de9f54f9036c), [`998b471`](https://github.com/primer/react/commit/998b471a4ad78c7c23426038ef0c4a5261fc41cf), [`d2dd516`](https://github.com/primer/react/commit/d2dd516adc1eb82657df80a07e91b9a86a295165), [`5817eb9`](https://github.com/primer/react/commit/5817eb9d2ec60193a933f09bfb3446eb479950cc), [`77a8d08`](https://github.com/primer/react/commit/77a8d088f1528d8b2101254d45ddf880b1e317dd), [`cb71c93`](https://github.com/primer/react/commit/cb71c93fada0adb063905e1894fe1667c0e3c3fa), [`f0918eb`](https://github.com/primer/react/commit/f0918eb4ed19fe94a336840041d844857bddab23), [`78abbdf`](https://github.com/primer/react/commit/78abbdf9d3c7bdef81bb54814288cc4f84aaf3ac)]: + - @primer/react@39.0.0 + ## 1.1.2 ### Patch Changes diff --git a/packages/mcp/package.json b/packages/mcp/package.json index e87c736394b..b41ccc7c2ea 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,7 +1,7 @@ { "name": "@primer/mcp", "description": "An MCP server that connects AI tools to the Primer Design System", - "version": "1.1.2", + "version": "1.1.3", "type": "module", "bin": { "mcp": "./bin/mcp.js" @@ -41,7 +41,7 @@ "@modelcontextprotocol/server": "^2.3.0", "@primer/octicons": "^19.15.5", "@primer/primitives": "10.x || 11.x", - "@primer/react": "^38.43.0", + "@primer/react": "^39.0.0", "cheerio": "^1.0.0", "turndown": "^7.2.0", "zod": "^4.6.6" diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index bed0985750a..c1cb66b0cef 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,41 @@ # @primer/react +## 39.0.0 + +### Major Changes + +- [#8742](https://github.com/primer/react/pull/8742) [`5817eb9`](https://github.com/primer/react/commit/5817eb9d2ec60193a933f09bfb3446eb479950cc) Thanks [@janmaarten-a11y](https://github.com/janmaarten-a11y)! - Timeline: Always render an ordered list with list items, removing the list-semantics opt-out. Refs now target list elements instead of divs. + +### Minor Changes + +- [#8688](https://github.com/primer/react/pull/8688) [`92a1fca`](https://github.com/primer/react/commit/92a1fca80cd63c2b729141a38a4a93ec27c47a43) Thanks [@rickyzhangca](https://github.com/rickyzhangca)! - DataTable: Describe group selection checkboxes with the member count. Add count-label formatters for localizing checkbox and disclosure descriptions in DataTable and Table.Group. + +- [#8768](https://github.com/primer/react/pull/8768) [`31c717c`](https://github.com/primer/react/commit/31c717c3901f0940af23c40e0c54de9f54f9036c) Thanks [@adierkens](https://github.com/adierkens)! - PageHeader: Forward standard heading attributes from `PageHeader.Title`. + +- [#8563](https://github.com/primer/react/pull/8563) [`998b471`](https://github.com/primer/react/commit/998b471a4ad78c7c23426038ef0c4a5261fc41cf) Thanks [@joshblack](https://github.com/joshblack)! - ActionMenu: Improve rendering performance with React Compiler support. + +- [#8746](https://github.com/primer/react/pull/8746) [`d2dd516`](https://github.com/primer/react/commit/d2dd516adc1eb82657df80a07e91b9a86a295165) Thanks [@Archanachaurasiya30](https://github.com/Archanachaurasiya30)! - Remove the unused hsluv dependency and move react-intersection-observer to devDependencies. + +### Patch Changes + +- [#8750](https://github.com/primer/react/pull/8750) [`4fc8b82`](https://github.com/primer/react/commit/4fc8b82cd8f2dbc0fcc0fd1ded8393abf7fbba41) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Breadcrumbs: In `menu` and `menu-with-root` overflow modes, collapse crumbs as soon as they no longer fit beside sibling content in a flex row, so the collapse point no longer depends on crumb length or resize direction. + +- [#8761](https://github.com/primer/react/pull/8761) [`24ce6b2`](https://github.com/primer/react/commit/24ce6b2c48dc3e301f03717f565a1427dc15d9d0) Thanks [@nemo-crypto](https://github.com/nemo-crypto)! - Fix TreeView PageUp and PageDown navigation targeting items hidden inside collapsed subtrees. Paging now counts only visible tree items and moves at least one item when the scroll container is shorter than a row. + +- [#8709](https://github.com/primer/react/pull/8709) [`1588875`](https://github.com/primer/react/commit/15888757f6681f615efcf88e0218b70c2165c390) Thanks [@TheoGoulart333](https://github.com/TheoGoulart333)! - ActionMenu: Fix a memory leak when opening and closing menus. + +- [#8548](https://github.com/primer/react/pull/8548) [`6075e98`](https://github.com/primer/react/commit/6075e98c6ea8fefb1d20f3918a0c133e77a68c9a) Thanks [@llastflowers](https://github.com/llastflowers)! - Ref handling: Preserve forwarded refs while maintaining internal component refs. + +- [#8708](https://github.com/primer/react/pull/8708) [`16c41d3`](https://github.com/primer/react/commit/16c41d3e57bb7358d887c613aaeb22aaea3a0d97) Thanks [@vivanvv](https://github.com/vivanvv)! - Pagination: Disable Next for empty results when page numbers are hidden. + +- [#8801](https://github.com/primer/react/pull/8801) [`77a8d08`](https://github.com/primer/react/commit/77a8d088f1528d8b2101254d45ddf880b1e317dd) Thanks [@llastflowers](https://github.com/llastflowers)! - Fix PageLayout.Sidebar ignoring its padding prop + +- [#8731](https://github.com/primer/react/pull/8731) [`cb71c93`](https://github.com/primer/react/commit/cb71c93fada0adb063905e1894fe1667c0e3c3fa) Thanks [@dependabot](https://github.com/apps/dependabot)! - PageLayout and TreeView: Preserve pane resizing and keyboard focus behavior + +- [#8740](https://github.com/primer/react/pull/8740) [`f0918eb`](https://github.com/primer/react/commit/f0918eb4ed19fe94a336840041d844857bddab23) Thanks [@tay1orjones](https://github.com/tay1orjones)! - Tooltip: Empty or whitespace-only text no longer opens a tooltip or labels or describes the trigger when there is no keybinding hint. + +- [#8656](https://github.com/primer/react/pull/8656) [`78abbdf`](https://github.com/primer/react/commit/78abbdf9d3c7bdef81bb54814288cc4f84aaf3ac) Thanks [@RafaelHDSV](https://github.com/RafaelHDSV)! - UnderlineNav and TabNav: skip the loading-counter pulse when prefers-reduced-motion is reduce. + ## 38.46.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index 5f94d88229f..eb25e98450a 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@primer/react", "type": "module", - "version": "38.46.0", + "version": "39.0.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "./dist/index.js", "module": "./dist/index.js", diff --git a/packages/styled-react/package.json b/packages/styled-react/package.json index 17cb53c6d42..46cad8cf9a4 100644 --- a/packages/styled-react/package.json +++ b/packages/styled-react/package.json @@ -44,7 +44,7 @@ "@babel/preset-react": "^8.0.1", "@babel/preset-typescript": "^8.0.7", "@primer/primitives": "10.x || 11.x", - "@primer/react": "^38.36.0", + "@primer/react": "^39.0.0", "@rolldown/plugin-babel": "^0.3.0", "@storybook/react-vite": "10.6.2", "@types/react": "18.3.11",