From acfb0a86daca49169d6d2bdcf993e28823f764cd Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 6 Oct 2026 13:05:14 -0500 Subject: [PATCH 1/2] perf(react-compiler): enable first low-risk migration batch Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cf031929-064e-4482-961d-25594325eb1b --- .changeset/react-compiler-low-risk-batch-1.md | 5 +++++ packages/react/script/react-compiler.mjs | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 .changeset/react-compiler-low-risk-batch-1.md diff --git a/.changeset/react-compiler-low-risk-batch-1.md b/.changeset/react-compiler-low-risk-batch-1.md new file mode 100644 index 00000000000..895d9d79356 --- /dev/null +++ b/.changeset/react-compiler-low-risk-batch-1.md @@ -0,0 +1,5 @@ +--- +'@primer/react': patch +--- + +CounterLabel, Truncate: Improve rendering performance with React Compiler support. diff --git a/packages/react/script/react-compiler.mjs b/packages/react/script/react-compiler.mjs index 4aeef8d1cff..334ed4bb249 100644 --- a/packages/react/script/react-compiler.mjs +++ b/packages/react/script/react-compiler.mjs @@ -13,7 +13,6 @@ const files = glob }) const unsupportedPatterns = [ 'src/ActionBar/ActionBar.tsx', - 'src/ActionList/ActionList.examples.stories.tsx', 'src/ActionMenu/ActionMenu.test.tsx', 'src/ActionMenu/ActionMenu.tsx', 'src/AnchoredOverlay/AnchoredOverlay.tsx', @@ -21,13 +20,10 @@ const unsupportedPatterns = [ 'src/Autocomplete/AutocompleteInput.tsx', 'src/Button/ButtonBase.tsx', 'src/Checkbox/Checkbox.tsx', - 'src/CounterLabel/CounterLabel.tsx', 'src/Dialog/Dialog.tsx', 'src/FilteredActionList/FilteredActionList.tsx', 'src/FilteredActionList/useAnnouncements.tsx', 'src/LabelGroup/LabelGroup.tsx', - 'src/NavList/NavList.features.stories.tsx', - 'src/NavList/NavList.test.tsx', 'src/Overlay/Overlay.figma.tsx', 'src/Overlay/Overlay.tsx', 'src/SelectPanel/SelectPanel.examples.stories.tsx', @@ -40,7 +36,6 @@ const unsupportedPatterns = [ 'src/TooltipV2/Tooltip.tsx', 'src/TreeView/TreeView.features.stories.tsx', 'src/TreeView/TreeView.tsx', - 'src/Truncate/Truncate.tsx', 'src/deprecated/utils/create-slots.tsx', 'src/experimental/SelectPanel2/SelectPanel.tsx', 'src/experimental/UnderlinePanels/UnderlinePanels.test.tsx', @@ -53,10 +48,8 @@ const unsupportedPatterns = [ 'src/hooks/useOnOutsideClick.tsx', 'src/hooks/useResizeObserver.ts', 'src/hooks/useSafeTimeout.ts', - 'src/internal/components/Caret.tsx', 'src/internal/hooks/__tests__/useFocus.test.tsx', 'src/internal/hooks/useDevOnlyEffect.ts', - 'src/stories/deprecated/ActionList.stories.tsx', 'src/utils/StressTest.tsx', 'src/utils/react-compiler-runtime.ts', 'src/utils/use-force-update.ts', From 26cbb7ea8151d3c4e731cb403386490958e57635 Mon Sep 17 00:00:00 2001 From: Josh Black Date: Tue, 6 Oct 2026 13:08:08 -0500 Subject: [PATCH 2/2] chore(react-compiler): use minor changeset for migrations Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cf031929-064e-4482-961d-25594325eb1b --- .changeset/react-compiler-low-risk-batch-1.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/react-compiler-low-risk-batch-1.md b/.changeset/react-compiler-low-risk-batch-1.md index 895d9d79356..958988a28d4 100644 --- a/.changeset/react-compiler-low-risk-batch-1.md +++ b/.changeset/react-compiler-low-risk-batch-1.md @@ -1,5 +1,5 @@ --- -'@primer/react': patch +'@primer/react': minor --- CounterLabel, Truncate: Improve rendering performance with React Compiler support.