fix: bump use-resize-observer to v10 for React 19 support - #1342
Merged
asyncapi-bot merged 1 commit intoAug 31, 2026
Merged
Conversation
boyney123
requested review from
AceTheCreator,
asyncapi-bot-eve,
catosaurusrex2003 and
magicmatatjahu
as code owners
August 28, 2026 11:21
Contributor
There was a problem hiding this comment.
Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
|
Member
|
/rtm |
Contributor
|
🎉 This PR is included in version 3.1.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Changes proposed in this pull request:
use-resize-observerfrom^9.1.0to^10.0.0inlibrary/package.json(lockfile updated minimally; the transitive@juggle/resize-observerdependency goes away).library/src/containers/AsyncApi/Layout.tsxto the nameduseResizeObserverexport, since v10 removed the default export.use-resize-observermock inlibrary/src/__tests__/index.test.tsxto match the named export.Why
use-resize-observer@9declarespeerDependencies.react: "16.8.0 - 18". When@asyncapi/react-componentis installed into a project using React 19, npm's resolver cannot satisfy that peer range and loops indefinitely, alternating React 18 and React 19 at the tree root —npm installnever completes. We hit this as a 10-minute CI timeout while upgrading EventCatalog to React 19. pnpm only emits a peer warning, so it is easy to miss in development.use-resize-observer@10(released 2026-07-31) supports React 18 and 19 with an open-endedreact >=18.2peer range, drops thereact-dompeer and its runtime dependency, and keeps the sameuseResizeObserver({ ref, onResize })API used inLayout.tsx.How the v10 breaking changes affect this library:
react ^18.2.0; the public peer range (>=18.0.0) is unchanged.onResizenow reports a measured0as0instead ofundefined→ the existingwidth === undefinedguard remains safe; a0width falls through to thecontainer:xlbranch as before./polyfilledentry point removed → not used here.Testing
npm run test:unit— 13 suites, 201 tests pass.npm run build:prodinlibrary— ESM, CJS, UMD and standalone bundles build successfully (webpack 5 resolves the newexportsmap).npm cifrom the updated lockfile installs cleanly;npm ls use-resize-observerreports a single10.0.0.Documentation
No documentation changes needed — no public API or configuration changes.
Related issue(s)
See also event-catalog/eventcatalog#2828 (React 19 upgrade blocked by the
use-resize-observer@9peer range).