From 6eebc997426863cf2e24aee1f72d48d4a314b67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Tue, 11 Apr 2023 04:50:05 -0700 Subject: [PATCH] React Native sync for revisions 77ba161...ca01f35 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: This sync includes the following changes: - **[ca01f359b](https://github.com/facebook/react/commit/ca01f359b )**: Remove skipUnmountedBoundaries ([#26489](https://github.com/facebook/react/pull/26489)) //// - **[43a70a610](https://github.com/facebook/react/commit/43a70a610 )**: Limit the meaning of "custom element" to not include `is` ([#26524](https://github.com/facebook/react/pull/26524)) //// - **[1308e49a6](https://github.com/facebook/react/commit/1308e49a6 )**: [Flight Plugin] Scan for "use client" ([#26474](https://github.com/facebook/react/pull/26474)) //// - **[1a1d61fed](https://github.com/facebook/react/commit/1a1d61fed )**: Warn for ARIA typos on custom elements ([#26523](https://github.com/facebook/react/pull/26523)) //// - **[73deff0d5](https://github.com/facebook/react/commit/73deff0d5 )**: Refactor DOMProperty and CSSProperty ([#26513](https://github.com/facebook/react/pull/26513)) //// - **[2d51251e6](https://github.com/facebook/react/commit/2d51251e6 )**: Clean up deferRenderPhaseUpdateToNextBatch ([#26511](https://github.com/facebook/react/pull/26511)) //// - **[0ffc7f632](https://github.com/facebook/react/commit/0ffc7f632 )**: Update useMemoCache test to confirm that cache persists across errors ([#26510](https://github.com/facebook/react/pull/26510)) //// - **[29a3be78b](https://github.com/facebook/react/commit/29a3be78b )**: Move ReactDOMFloat to react-dom/src/ ([#26514](https://github.com/facebook/react/pull/26514)) //// - **[4c2fc0190](https://github.com/facebook/react/commit/4c2fc0190 )**: Generate safe javascript url instead of throwing with disableJavaScriptURLs is on ([#26507](https://github.com/facebook/react/pull/26507)) //// - **[f0aafa1a7](https://github.com/facebook/react/commit/f0aafa1a7 )**: Convert a few more tests to waitFor test helpers ([#26509](https://github.com/facebook/react/pull/26509)) //// - **[90995ef8b](https://github.com/facebook/react/commit/90995ef8b )**: Delete "triangle" resuming fuzz tester ([#26508](https://github.com/facebook/react/pull/26508)) //// - **[f118b7ceb](https://github.com/facebook/react/commit/f118b7ceb )**: [Flight] Gated test for dropped transport of undefined object values ([#26478](https://github.com/facebook/react/pull/26478)) //// - **[fd0511c72](https://github.com/facebook/react/commit/fd0511c72 )**: [Flight] Add support BigInt support ([#26479](https://github.com/facebook/react/pull/26479)) //// - **[85de6fde5](https://github.com/facebook/react/commit/85de6fde5 )**: Refactor DOM special cases per tags including controlled fields ([#26501](https://github.com/facebook/react/pull/26501)) //// - **[1f5cdf8c7](https://github.com/facebook/react/commit/1f5cdf8c7 )**: Update Suspense fuzz tests to use `act` ([#26498](https://github.com/facebook/react/pull/26498)) //// - **[f62cb39ee](https://github.com/facebook/react/commit/f62cb39ee )**: Make disableSchedulerTimeoutInWorkLoop a static ff ([#26497](https://github.com/facebook/react/pull/26497)) //// - **[41b4714f1](https://github.com/facebook/react/commit/41b4714f1 )**: Remove disableNativeComponentFrames ([#26490](https://github.com/facebook/react/pull/26490)) //// - **[fc90eb636](https://github.com/facebook/react/commit/fc90eb636 )**: Codemod more tests to waitFor pattern ([#26494](https://github.com/facebook/react/pull/26494)) //// - **[e0bbc2662](https://github.com/facebook/react/commit/e0bbc2662 )**: Improve tests that deal with microtasks ([#26493](https://github.com/facebook/react/pull/26493)) //// - **[8faf75193](https://github.com/facebook/react/commit/8faf75193 )**: Codemod some expiration tests to waitForExpired ([#26491](https://github.com/facebook/react/pull/26491)) //// - **[8342a0992](https://github.com/facebook/react/commit/8342a0992 )**: Remove unused feature flag disableSchedulerTimeoutBasedOnReactExpirationTime ([#26488](https://github.com/facebook/react/pull/26488)) //// - **[afea1d0c5](https://github.com/facebook/react/commit/afea1d0c5 )**: [flow] make Flow suppressions explicit on the error ([#26487](https://github.com/facebook/react/pull/26487)) //// - **[768f965de](https://github.com/facebook/react/commit/768f965de )**: Suspensily committing a prerendered tree ([#26434](https://github.com/facebook/react/pull/26434)) //// - **[d12bdcda6](https://github.com/facebook/react/commit/d12bdcda6 )**: Fix Flow types of useEffectEvent ([#26468](https://github.com/facebook/react/pull/26468)) //// - **[73b6435ca](https://github.com/facebook/react/commit/73b6435ca )**: [Float][Fiber] Implement waitForCommitToBeReady for stylesheet resources ([#26450](https://github.com/facebook/react/pull/26450)) //// - **[175962c10](https://github.com/facebook/react/commit/175962c10 )**: Fix remaining CommonJS imports after Rollup upgrade ([#26473](https://github.com/facebook/react/pull/26473)) //// - **[909c6dacf](https://github.com/facebook/react/commit/909c6dacf )**: Update Rollup to 3.x ([#26442](https://github.com/facebook/react/pull/26442)) //// - **[9c54b29b4](https://github.com/facebook/react/commit/9c54b29b4 )**: Remove ReactFabricPublicInstance and used definition from ReactNativePrivateInterface ([#26437](https://github.com/facebook/react/pull/26437)) //// - **[f77099b6f](https://github.com/facebook/react/commit/f77099b6f )**: Remove layout effect warning on the server ([#26395](https://github.com/facebook/react/pull/26395)) //// - **[51a7c45f8](https://github.com/facebook/react/commit/51a7c45f8 )**: Bugfix: SuspenseList incorrectly forces a fallback ([#26453](https://github.com/facebook/react/pull/26453)) //// - **[afb3d51dc](https://github.com/facebook/react/commit/afb3d51dc )**: Fix enableClientRenderFallbackOnTextMismatch flag ([#26457](https://github.com/facebook/react/pull/26457)) //// - **[8e17bfd14](https://github.com/facebook/react/commit/8e17bfd14 )**: Make InternalInstanceHandle type opaque in ReactNativeTypes ([#26461](https://github.com/facebook/react/pull/26461)) //// - **[b93b4f074](https://github.com/facebook/react/commit/b93b4f074 )**: Should not throw for children of iframe or object ([#26458](https://github.com/facebook/react/pull/26458)) //// - **[c0b34bc5f](https://github.com/facebook/react/commit/c0b34bc5f )**: chore: update links of docs and api ([#26455](https://github.com/facebook/react/pull/26455)) //// - **[ffb6733ee](https://github.com/facebook/react/commit/ffb6733ee )**: fix docs link for useSyncExternalStore ([#26452](https://github.com/facebook/react/pull/26452)) //// - **[12a1d140e](https://github.com/facebook/react/commit/12a1d140e )**: Don't prerender siblings of suspended component ([#26380](https://github.com/facebook/react/pull/26380)) //// Changelog: [General][Changed] - React Native sync for revisions 77ba161...ca01f35 jest_e2e[run_all_tests] bypass-github-export-checks Reviewed By: sammy-SC Differential Revision: D44669450 fbshipit-source-id: f160aad4719a00df3ceeca78d5f3fcd0aa0f8437 --- .../ReactFabricPublicInstance/ReactFabricHostComponent.js | 5 +++-- .../ReactFabricPublicInstance/ReactFabricPublicInstance.js | 7 +++++-- packages/react-native/Libraries/Renderer/REVISION | 2 +- .../Libraries/Renderer/shims/ReactNativeTypes.js | 4 ++-- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js b/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js index e4d7812345bd5b..b423fad97c7830 100644 --- a/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js +++ b/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricHostComponent.js @@ -12,6 +12,7 @@ import type { AttributeConfiguration, HostComponent, INativeMethods, + InternalInstanceHandle, MeasureInWindowOnSuccessCallback, MeasureLayoutOnSuccessCallback, MeasureOnSuccessCallback, @@ -41,14 +42,14 @@ const noop = () => {}; export default class ReactFabricHostComponent implements INativeMethods { // These need to be accessible from `ReactFabricPublicInstanceUtils`. __nativeTag: number; - __internalInstanceHandle: mixed; + __internalInstanceHandle: InternalInstanceHandle; _viewConfig: ViewConfig; constructor( tag: number, viewConfig: ViewConfig, - internalInstanceHandle: mixed, + internalInstanceHandle: InternalInstanceHandle, ) { this.__nativeTag = tag; this._viewConfig = viewConfig; diff --git a/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js b/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js index b1945fffa1b591..a2c6581912d71a 100644 --- a/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js +++ b/packages/react-native/Libraries/ReactNative/ReactFabricPublicInstance/ReactFabricPublicInstance.js @@ -9,7 +9,10 @@ */ import typeof ReactFabricType from '../../Renderer/shims/ReactFabric'; -import type {ViewConfig} from '../../Renderer/shims/ReactNativeTypes'; +import type { + InternalInstanceHandle, + ViewConfig, +} from '../../Renderer/shims/ReactNativeTypes'; import type ReactFabricHostComponentType from './ReactFabricHostComponent'; // Lazy loaded to avoid evaluating the module when using the legacy renderer. @@ -20,7 +23,7 @@ let ReactFabric: ReactFabricType; export function createPublicInstance( tag: number, viewConfig: ViewConfig, - internalInstanceHandle: mixed, + internalInstanceHandle: InternalInstanceHandle, ): ReactFabricHostComponentType { if (ReactFabricHostComponent == null) { ReactFabricHostComponent = require('./ReactFabricHostComponent').default; diff --git a/packages/react-native/Libraries/Renderer/REVISION b/packages/react-native/Libraries/Renderer/REVISION index 2583e8eb35256d..7c260eddd0646b 100644 --- a/packages/react-native/Libraries/Renderer/REVISION +++ b/packages/react-native/Libraries/Renderer/REVISION @@ -1 +1 @@ -77ba1618a528787baaa8e007fadaff93a86fb675 \ No newline at end of file +ca01f359b9236292c749075bb2fd41bb7b569308 \ No newline at end of file diff --git a/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js b/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js index fd44305c67842f..3b0df3aeb4e69e 100644 --- a/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js +++ b/packages/react-native/Libraries/Renderer/shims/ReactNativeTypes.js @@ -6,7 +6,7 @@ * * @noformat * @flow strict - * @generated SignedSource<<7dc3ed81183377055bac08760fcd775b>> + * @generated SignedSource<> * * This file was sync'd from the facebook/react repository. */ @@ -216,7 +216,7 @@ export type ReactNativeType = { }; export opaque type Node = mixed; -type InternalInstanceHandle = mixed; +export opaque type InternalInstanceHandle = mixed; type PublicInstance = mixed; export type ReactFabricType = {