Repository navigation
fix(rich-text-versioning): bump @contentful/app-sdk to 4.61.0 for cross-space resource dialogs [ES-199] - #11311
Open
Mitch Goudy (mgoudy91) wants to merge 1 commit into
Open
Mitch Goudy (mgoudy91) wants to merge 1 commit into
Mitch Goudy (mgoudy91) wants to merge 1 commit into
Conversation
Michael Pham (michaelphamcf)
marked this pull request as ready for review
September 22, 2026 15:47
…ss-space resource dialogs [ES-199] Picks up selectSingleResourceEntity / selectMultipleResourceEntities and recommendations support (shipped in contentful/ui-extensions-sdk#2611) so the embedded @contentful/field-editor-rich-text@6.3.9 can open the cross-space reference picker instead of throwing `selectSingleResourceEntity is not a function`. This is a re-attempt of #11038, which was reverted after INC-1377. Per the RCA (docs.google.com/document/d/1Byt-fFwS_Z3), INC-1377 was caused by @tanstack/react-query v5 getting hoisted through @contentful/field-editor-shared, unrelated to the app-sdk bump. That was fixed independently in #11048 by pinning react-query@4.44.0 as a direct dependency, which this app still has. @contentful/app-sdk has no react-query dependency, so this bump cannot reintroduce that failure mode. npm run build and npm run test:ci (32 tests) pass. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Michael Pham (michaelphamcf)
approved these changes
Sep 22, 2026
Michael Pham (michaelphamcf)
force-pushed
the
mgoudy/ES-199-rtv-app-sdk-cross-space
branch
from
September 22, 2026 15:50
36f13e7 to
4dd9c11
Compare
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.
Summary
This is a re-attempt and demonstration of #11038. That pull request added cross-space resource dialog support to the Rich Text Versioning app. It was reverted after INC-1377. This pull request is a draft. It exists to test the isolation argument below before anyone treats it as ready to ship.
@contentful/app-sdkfrom^4.42.0to4.61.0. This is an exact pin. It matches the version verified in the original fix(rich-text-versioning): bump @contentful/app-sdk to 4.61.0 [] #11038.selectSingleResourceEntity,selectMultipleResourceEntities, andrecommendationssupport on entry selector dialogs. These were added in contentful/ui-extensions-sdk#2611.@contentful/field-editor-rich-text@6.3.9callssdk.dialogs.selectSingleResourceEntity(...)to insert a cross-space resource hyperlink or embed. That method did not exist on the old App SDK contract. The call threwTypeError: u.selectSingleResourceEntity is not a function.Why this should not cause the same rollback as last time
Responders reverted #11038 after INC-1377, an incident where the RTV body field rendered blank. The RCA document does not name
app-sdkas a cause. Here is the actual chain of events.@contentful/field-editor-rich-textto6.3.9. That package depends on@contentful/field-editor-shared, which depends onreact-queryv5.react-queryversion. npm and Vite hoisted the newest resolved version into the bundle. That version was v5.FetchingWrappedInlineEntryCard, tests for the stringstatus === 'loading'. That string is a v4-only status name. Under v5, the same state uses the string'pending'instead. The loading guard never matched. The component rendered before its data arrived and crashed readingentry.sysonundefined.field-editor-rich-textbump and the react-query hoisting. It does not mentionapp-sdk.@contentful/app-sdkhas noreact-querydependency at any version. I verified this directly withnpm view @contentful/app-sdk dependencies, on both4.61.0and the current latest release,4.70.0. Its only dependency iscontentful-management. This bump sits in a separate branch of the dependency graph from the code that broke.The actual fix, #11048, pinned
@tanstack/react-query@4.44.0as a direct dependency of the RTV app. That pin forces the whole bundle onto v4 status names, regardless of what other packages hoist. The pin is still present onmastertoday. This pull request does not touch it. The lockfile diff proves this:This reasoning rests on the dependency graph and the written RCA. It is not a live production test. The RTV app has broken on almost every version bump this year, for different reasons each time. A sound dependency argument is not the same as a verified result in staging. That is why the list below still has open items. A staging smoke test and soak period must happen before this pull request can be called ready for review.
Diff shape
The diff matches the shape of #11038: a version-only bump to
package.jsonandpackage-lock.json, with no other code changes.Test plan
npm run buildpasses with no type errors.npm run test:cipasses all 32 tests.git diffshows noreact-queryversion changes anywhere in the lockfile.recommendations.searchQueryflow works.Context
Generated with Claude Code