From 74c8789f275bc17e5062eb2c3ed19eb5639a1c55 Mon Sep 17 00:00:00 2001 From: Fiona Date: Wed, 26 Aug 2026 21:36:40 -0700 Subject: [PATCH] fix(codepush): forward jsxRuntimes through the partial configuration `buildPartialConfiguration` builds a `RequiredOrDiscard` precisely so that a new field cannot be added without this path being updated to carry it. Adding `jsxRuntimes` did exactly that, and the guard caught it - during the declaration build, which the test suite does not run, so it only surfaced when a release tried to publish. Forward the field, and extend the two assertions that enumerate the resulting configuration. --- packages/codepush/src/__tests__/index.test.tsx | 2 ++ packages/codepush/src/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/packages/codepush/src/__tests__/index.test.tsx b/packages/codepush/src/__tests__/index.test.tsx index 3f9de9045..aca776d57 100644 --- a/packages/codepush/src/__tests__/index.test.tsx +++ b/packages/codepush/src/__tests__/index.test.tsx @@ -296,6 +296,7 @@ describe('AppCenter Codepush integration', () => { DdSdkReactNative._enableFeaturesFromDatadogProvider ).toHaveBeenCalledWith({ actionEventMapper: null, + jsxRuntimes: [], logEventMapper: null, resourceEventMapper: null, errorEventMapper: null, @@ -363,6 +364,7 @@ describe('AppCenter Codepush integration', () => { DdSdkReactNative._enableFeaturesFromDatadogProvider ).toHaveBeenCalledWith({ actionEventMapper: null, + jsxRuntimes: [], logEventMapper: null, resourceEventMapper: null, errorEventMapper: null, diff --git a/packages/codepush/src/index.ts b/packages/codepush/src/index.ts index 277795e81..91c273a1b 100644 --- a/packages/codepush/src/index.ts +++ b/packages/codepush/src/index.ts @@ -56,6 +56,7 @@ const buildPartialConfiguration = ( actionEventMapper: configuration.actionEventMapper, useAccessibilityLabel: configuration.useAccessibilityLabel, resourceTracingSamplingRate: configuration.resourceTracingSamplingRate, + jsxRuntimes: configuration.jsxRuntimes, actionNameAttribute: configuration.actionNameAttribute ?? DISCARD_PROPERTY };