Skip to content

Commit 9add2ea

Browse files
Version Packages
1 parent 990ce7b commit 9add2ea

File tree

12 files changed

+41
-40
lines changed

12 files changed

+41
-40
lines changed

.changeset/anchored-position-scroll-recalculation.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/combined-refs-hook.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/improve-theme-provider-perf.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.changeset/soft-pianos-carry.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/stack-spacing-options.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/codesandbox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"@types/react": "^18.3.11",
1818
"@types/react-dom": "^18.3.0",
1919
"@vitejs/plugin-react": "^4.3.3",
20-
"@primer/react": "38.18.0",
21-
"@primer/styled-react": "1.0.4",
20+
"@primer/react": "38.19.0",
21+
"@primer/styled-react": "1.0.5",
2222
"styled-components": "5.x",
2323
"typescript": "^5.9.2",
2424
"vite": "^7.1.11"

examples/nextjs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"type-check": "tsc --noEmit"
1111
},
1212
"dependencies": {
13-
"@primer/react": "38.18.0",
14-
"@primer/styled-react": "1.0.4",
13+
"@primer/react": "38.19.0",
14+
"@primer/styled-react": "1.0.5",
1515
"next": "^16.1.7",
1616
"react": "^19.2.0",
1717
"react-dom": "^19.2.0",

examples/theming/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
},
1212
"dependencies": {
1313
"@primer/octicons-react": "^19.21.0",
14-
"@primer/react": "38.18.0",
15-
"@primer/styled-react": "1.0.4",
14+
"@primer/react": "38.19.0",
15+
"@primer/styled-react": "1.0.5",
1616
"clsx": "^2.1.1",
1717
"next": "^16.1.7",
1818
"react": "^19.2.0",

packages/react/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @primer/react
22

3+
## 38.19.0
4+
5+
### Minor Changes
6+
7+
- [#7677](https://github.com/primer/react/pull/7677) [`c1a81b1`](https://github.com/primer/react/commit/c1a81b178742ba547b85a3df3ed3c27bcff6b7c5) Thanks [@TylerJDev](https://github.com/TylerJDev)! - AnchoredOverlay: Add Popover API to AnchoredOverlay (behind `primer_react_css_anchor_positioning` feature flag)
8+
9+
- [#7697](https://github.com/primer/react/pull/7697) [`990ce7b`](https://github.com/primer/react/commit/990ce7b625bcf90ef3867e93086d0c74835a9068) Thanks [@hectahertz](https://github.com/hectahertz)! - **Stack**: Add `tight` (4px) and `cozy` (12px) spacing values to `gap` and `padding` props. Add `paddingBlock` and `paddingInline` props for directional padding control.
10+
11+
### Patch Changes
12+
13+
- [#7652](https://github.com/primer/react/pull/7652) [`5d19e2b`](https://github.com/primer/react/commit/5d19e2bb5bbd444f2e82d98eef300c221863941c) Thanks [@owenniblock](https://github.com/owenniblock)! - useAnchoredPosition: recalculate overlay position when any scrollable ancestor (or the window) is scrolled.
14+
15+
- [#7638](https://github.com/primer/react/pull/7638) [`f04e85d`](https://github.com/primer/react/commit/f04e85df536cd6e8047f70b070bd3cf7c0961f92) Thanks [@iansan5653](https://github.com/iansan5653)! - Update internal implementations of combined refs to improve performance and add support for React 19 callback refs
16+
17+
- [#7695](https://github.com/primer/react/pull/7695) [`780fc3d`](https://github.com/primer/react/commit/780fc3d7b52fd0f9b63f313af6355398180a0118) Thanks [@mattcosta7](https://github.com/mattcosta7)! - perf(ThemeProvider): Reduce unnecessary renders and effect cascades
18+
19+
- Replace `useState` + `useEffect` SSR hydration handoff with `useSyncExternalStore` — eliminates post-hydration re-render
20+
- Replace `useState` + `useEffect` in `useSystemColorMode` with `useSyncExternalStore` — eliminates effect gap and stale-then-update flicker
21+
- Cache `getServerHandoff` DOM read + JSON.parse per ID (runs once, not on every call)
22+
- Memoize context value object to prevent unnecessary re-renders of all consumers
23+
324
## 38.18.0
425

526
### Minor Changes

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@primer/react",
33
"type": "module",
4-
"version": "38.18.0",
4+
"version": "38.19.0",
55
"description": "An implementation of GitHub's Primer Design System using React",
66
"main": "./dist/index.js",
77
"module": "./dist/index.js",

0 commit comments

Comments
 (0)