Skip to content

Upgrade @wordpress/components to 32.1.0 - #108301

Merged
arthur791004 merged 6 commits into
trunkfrom
feat/update-wp-components-to-32
Feb 2, 2026
Merged

arthur791004 merged 6 commits into
trunkfrom
feat/update-wp-components-to-32

Conversation

@arthur791004

@arthur791004 arthur791004 commented Jan 23, 2026 •

Copy link
Copy Markdown
Contributor

Part of #

Proposed Changes

  • Upgrade @wordpress/components to 32.1.0
  • Upgrade @wordpress/is-shallow-equal to 5.39.0 as it's required by latest @wordpress/components

Ignore the context below as the issue has been fixed on 32.1.0

  • Upgrade @wordpress/components to 32.0.0

TODO: We have to resolve following errors because Gutenberg recently switched its build tooling from webpack to esbuild, and started to inline styles to JS code (WordPress/gutenberg#72673). Also some components were migrated from Emotion to CSS modules that use this helper (WordPress/gutenberg#73714, WordPress/gutenberg#73786). A possible fix: WordPress/gutenberg#74651.

node_modules/@wordpress/components/src/alignment-matrix-control/style.module.scss:116
document.head
^
ReferenceError: document is not defined
    at Object.<anonymous> (node_modules/@wordpress/components/src/alignment-matrix-control/style.module.scss:116:1)
    at Module._compile (node:internal/modules/cjs/loader:1546:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
    at Module.load (node:internal/modules/cjs/loader:1317:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1127:12)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Module.require (node:internal/modules/cjs/loader:1339:12)
    at require (node:internal/modules/helpers:135:16)
    at Object.<anonymous> (node_modules/@wordpress/components/src/alignment-matrix-control/index.tsx:16:18)

Why are these changes being made?

  • Dependency update

Testing Instructions

  • Run yarn && yarn start
  • Ensure Calypso runs without errors
  • Go through any screens and ensure nothing is broken

Pre-merge Checklist

  • Has the general commit checklist been followed? (PCYsg-hS-p2)
  • Have you written new tests for your changes?
  • Have you tested the feature in Simple (P9HQHe-k8-p2), Atomic (P9HQHe-jW-p2), and self-hosted Jetpack sites (PCYsg-g6b-p2)?
  • Have you checked for TypeScript, React or other console errors?
  • Have you tested accessibility for your changes? Ensure the feature remains usable with various user agents (e.g., browsers), interfaces (e.g., keyboard navigation), and assistive technologies (e.g., screen readers) (PCYsg-S3g-p2).
  • Have you used memoizing on expensive computations? More info in Memoizing with create-selector and Using memoizing selectors and Our Approach to Data
  • Have we added the "[Status] String Freeze" label as soon as any new strings were ready for translation (p4TIVU-5Jq-p2)?
    • For UI changes, have we tested the change in various languages (for example, ES, PT, FR, or DE)? The length of text and words vary significantly between languages.
  • For changes affecting Jetpack: Have we added the "[Status] Needs Privacy Updates" label if this pull request changes what data or activity we track or use (p4TIVU-aUh-p2)?

@arthur791004 arthur791004 self-assigned this Jan 23, 2026
@arthur791004
arthur791004 force-pushed the feat/update-wp-components-to-32 branch from 20441d2 to a1dc3c0 Compare January 30, 2026 03:41
@github-actions

github-actions Bot commented Jan 30, 2026 •

Copy link
Copy Markdown

Design System Reference Site Preview:

https://c8ffe4a5-preview.a8cds.workers.dev

(Latest commit: ce16098)

@matticbot

matticbot commented Jan 30, 2026 •

Copy link
Copy Markdown
Contributor

This PR modifies the release build for the following Calypso Apps:

For info about this notification, see here: PCYsg-OT6-p2

  • blaze-dashboard
  • design-system-docs
  • help-center
  • notifications
  • odyssey-stats

To test WordPress.com changes, run install-plugin.sh $pluginSlug feat/update-wp-components-to-32 on your sandbox.

@arthur791004 arthur791004 changed the title Upgrade @wordpress/components to 32.0.0 Upgrade @wordpress/components to 32.1.0 Jan 30, 2026
@arthur791004
arthur791004 marked this pull request as ready for review January 30, 2026 03:55
@arthur791004
arthur791004 requested review from a team as code owners January 30, 2026 03:55
@matticbot matticbot added [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Jan 30, 2026
@arthur791004
arthur791004 requested a review from a team January 30, 2026 07:34
@arthur791004
arthur791004 merged commit 20ee411 into trunk Feb 2, 2026
13 checks passed
@arthur791004
arthur791004 deleted the feat/update-wp-components-to-32 branch February 2, 2026 02:38
arthur791004 added a commit that referenced this pull request Feb 2, 2026
@github-actions github-actions Bot removed the [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. label Feb 2, 2026
@StevenDufresne

Copy link
Copy Markdown
Contributor

I didn't get a chance to leave the review. I tested this and didn't find any regressions 👍

@fushar fushar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I am late, but I believe this has caused a regression on the selected tab color in DataViews appearance configuration. It was black before, now it's white:

Image

@arthur791004

Copy link
Copy Markdown
Contributor Author

I think the behavior is the same as the storybook 🤔

@fushar

fushar commented Feb 2, 2026

Copy link
Copy Markdown
Contributor

Oh... you're right. Hmmm. Okay then. 😅

gcsecsey pushed a commit that referenced this pull request Feb 6, 2026
* Upgrade @wordpress/components to 32.0.0

* Upgrade @wordpress/components to 32.1.0

* Upgrade @wordpress/is-shallow-equal to 5.39.0

* Update snapshots

* yarn dedupe

* Fix nthOfTypeAnimationDelay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants