From e5900155c87297023ef06d649315b0ebe03f7787 Mon Sep 17 00:00:00 2001 From: "primer[bot]" <119360173+primer[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:01:12 +0000 Subject: [PATCH] Version Packages --- .changeset/khaki-parrots-eat.md | 6 ---- .changeset/perf-pageheader-has-selectors.md | 5 --- .../perf-remove-expensive-has-selectors.md | 5 --- .changeset/silent-buses-knock.md | 14 --------- .../toggleswitch-onchange-from-handler.md | 5 --- .../underline-nav-shared-overflow-observer.md | 5 --- .changeset/usemedia-sync-external-store.md | 5 --- .../validation-animation-derive-in-render.md | 5 --- examples/codesandbox/package.json | 2 +- examples/nextjs/package.json | 2 +- examples/theming/package.json | 2 +- packages/react/CHANGELOG.md | 31 +++++++++++++++++++ packages/react/package.json | 2 +- 13 files changed, 35 insertions(+), 54 deletions(-) delete mode 100644 .changeset/khaki-parrots-eat.md delete mode 100644 .changeset/perf-pageheader-has-selectors.md delete mode 100644 .changeset/perf-remove-expensive-has-selectors.md delete mode 100644 .changeset/silent-buses-knock.md delete mode 100644 .changeset/toggleswitch-onchange-from-handler.md delete mode 100644 .changeset/underline-nav-shared-overflow-observer.md delete mode 100644 .changeset/usemedia-sync-external-store.md delete mode 100644 .changeset/validation-animation-derive-in-render.md diff --git a/.changeset/khaki-parrots-eat.md b/.changeset/khaki-parrots-eat.md deleted file mode 100644 index 78dd5a30e82..00000000000 --- a/.changeset/khaki-parrots-eat.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@primer/react": minor ---- - -`UnderlineNav`: Replaced dynamic icon visibility with static breakpoints to avoid flickering. Breakpoints customizable via the `hideIconsBreakpoint` prop. - diff --git a/.changeset/perf-pageheader-has-selectors.md b/.changeset/perf-pageheader-has-selectors.md deleted file mode 100644 index 0f7735550aa..00000000000 --- a/.changeset/perf-pageheader-has-selectors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -PageHeader: improve rendering performance by removing expensive `:has()` selectors. No visual or API changes. diff --git a/.changeset/perf-remove-expensive-has-selectors.md b/.changeset/perf-remove-expensive-has-selectors.md deleted file mode 100644 index 936a69d70d7..00000000000 --- a/.changeset/perf-remove-expensive-has-selectors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -Improve rendering performance in Safari by removing expensive `:has()` selectors from ActionList/NavList, Breadcrumbs, SelectPanel, and SegmentedControl. No visual or API changes. diff --git a/.changeset/silent-buses-knock.md b/.changeset/silent-buses-knock.md deleted file mode 100644 index 800a06860b3..00000000000 --- a/.changeset/silent-buses-knock.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@primer/react": minor ---- - -Add data-component attributes and associated tests for: - -SplitPageLayout -Stack -StateLabel -SubNav -TabNav -Text -TextArea -ThemeProvider diff --git a/.changeset/toggleswitch-onchange-from-handler.md b/.changeset/toggleswitch-onchange-from-handler.md deleted file mode 100644 index c2fc448c00d..00000000000 --- a/.changeset/toggleswitch-onchange-from-handler.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -ToggleSwitch: Fire `onChange` from the user interaction instead of an effect, so it no longer fires on mount or when a controlled `checked` value changes externally. diff --git a/.changeset/underline-nav-shared-overflow-observer.md b/.changeset/underline-nav-shared-overflow-observer.md deleted file mode 100644 index 86927be358c..00000000000 --- a/.changeset/underline-nav-shared-overflow-observer.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -UnderlineNav, ActionBar: Detect item overflow with a single shared IntersectionObserver per component instead of one observer per item, reducing observer churn during resize. No public API changes. diff --git a/.changeset/usemedia-sync-external-store.md b/.changeset/usemedia-sync-external-store.md deleted file mode 100644 index d63dd379fd6..00000000000 --- a/.changeset/usemedia-sync-external-store.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -`useMedia` now reads the live `matchMedia` value on the first client render instead of after an effect, removing a redundant render pass. `defaultState` is only used for the SSR/hydration snapshot (no public API changes). diff --git a/.changeset/validation-animation-derive-in-render.md b/.changeset/validation-animation-derive-in-render.md deleted file mode 100644 index c74bd167c4f..00000000000 --- a/.changeset/validation-animation-derive-in-render.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@primer/react': patch ---- - -FormControl: Avoid an extra re-render when showing a validation message. diff --git a/examples/codesandbox/package.json b/examples/codesandbox/package.json index 631a77fef73..747787610a7 100644 --- a/examples/codesandbox/package.json +++ b/examples/codesandbox/package.json @@ -14,7 +14,7 @@ "react-dom": "^18.3.1" }, "devDependencies": { - "@primer/react": "38.31.0", + "@primer/react": "38.32.0", "@primer/styled-react": "1.1.0", "@types/react": "^18.3.11", "@types/react-dom": "^18.3.0", diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index b3005834645..497d04d7313 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -10,7 +10,7 @@ "type-check": "tsc --noEmit" }, "dependencies": { - "@primer/react": "38.31.0", + "@primer/react": "38.32.0", "@primer/styled-react": "1.1.0", "next": "^16.2.10", "react": "^19.2.0", diff --git a/examples/theming/package.json b/examples/theming/package.json index bd1b89e8adb..99450a31e5c 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.31.0", + "@primer/react": "38.32.0", "clsx": "^2.1.1", "next": "^16.2.10", "react": "^19.2.0", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 19564beaf0c..5068f108850 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,36 @@ # @primer/react +## 38.32.0 + +### Minor Changes + +- [#8133](https://github.com/primer/react/pull/8133) [`0cb8e17`](https://github.com/primer/react/commit/0cb8e17219f61f853fcf06ce9ee09c755c9ef5ff) Thanks [@iansan5653](https://github.com/iansan5653)! - `UnderlineNav`: Replaced dynamic icon visibility with static breakpoints to avoid flickering. Breakpoints customizable via the `hideIconsBreakpoint` prop. + +- [#8112](https://github.com/primer/react/pull/8112) [`50face0`](https://github.com/primer/react/commit/50face041d55eb800d643b0d264d23fc12fd4121) Thanks [@llastflowers](https://github.com/llastflowers)! - Add data-component attributes and associated tests for: + + SplitPageLayout + Stack + StateLabel + SubNav + TabNav + Text + TextArea + ThemeProvider + +### Patch Changes + +- [#7901](https://github.com/primer/react/pull/7901) [`8288ed9`](https://github.com/primer/react/commit/8288ed9d88668f93cf3b1eb70ee61edac6217367) Thanks [@mattcosta7](https://github.com/mattcosta7)! - PageHeader: improve rendering performance by removing expensive `:has()` selectors. No visual or API changes. + +- [#8115](https://github.com/primer/react/pull/8115) [`07c530a`](https://github.com/primer/react/commit/07c530a1686ef16b68b2f2fe692b7a3327bdc02b) Thanks [@mattcosta7](https://github.com/mattcosta7)! - Improve rendering performance in Safari by removing expensive `:has()` selectors from ActionList/NavList, Breadcrumbs, SelectPanel, and SegmentedControl. No visual or API changes. + +- [#8024](https://github.com/primer/react/pull/8024) [`18e3b7d`](https://github.com/primer/react/commit/18e3b7d7a7b54275b99d2562eb279722f5cdd60e) Thanks [@mattcosta7](https://github.com/mattcosta7)! - ToggleSwitch: Fire `onChange` from the user interaction instead of an effect, so it no longer fires on mount or when a controlled `checked` value changes externally. + +- [#8035](https://github.com/primer/react/pull/8035) [`723f4d6`](https://github.com/primer/react/commit/723f4d6db12710e2b94f56b945a937158fcbb127) Thanks [@mattcosta7](https://github.com/mattcosta7)! - UnderlineNav, ActionBar: Detect item overflow with a single shared IntersectionObserver per component instead of one observer per item, reducing observer churn during resize. No public API changes. + +- [#8001](https://github.com/primer/react/pull/8001) [`4edc824`](https://github.com/primer/react/commit/4edc8242da557eedd41d71b242674b33254029ec) Thanks [@mattcosta7](https://github.com/mattcosta7)! - `useMedia` now reads the live `matchMedia` value on the first client render instead of after an effect, removing a redundant render pass. `defaultState` is only used for the SSR/hydration snapshot (no public API changes). + +- [#8023](https://github.com/primer/react/pull/8023) [`71fa75c`](https://github.com/primer/react/commit/71fa75c861c55bf29dd30ddf4a83549bf81369f8) Thanks [@mattcosta7](https://github.com/mattcosta7)! - FormControl: Avoid an extra re-render when showing a validation message. + ## 38.31.0 ### Minor Changes diff --git a/packages/react/package.json b/packages/react/package.json index aed0e579418..7d26f364f43 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,7 +1,7 @@ { "name": "@primer/react", "type": "module", - "version": "38.31.0", + "version": "38.32.0", "description": "An implementation of GitHub's Primer Design System using React", "main": "./dist/index.js", "module": "./dist/index.js",