react-native-windows 0.80.1 → 0.80.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/Directory.Build.props +1 -1
  2. package/Microsoft.ReactNative/Fabric/Composition/DebuggerUIIsland.cpp +169 -0
  3. package/Microsoft.ReactNative/Fabric/Composition/DebuggerUIIsland.h +42 -0
  4. package/Microsoft.ReactNative/Fabric/Composition/DebuggingOverlayComponentView.cpp +1 -1
  5. package/Microsoft.ReactNative/Fabric/Composition/Modal/WindowsModalHostViewComponentView.cpp +60 -33
  6. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.cpp +68 -1
  7. package/Microsoft.ReactNative/Fabric/Composition/ReactNativeIsland.h +9 -0
  8. package/Microsoft.ReactNative/Fabric/Composition/UriImageManager.cpp +5 -3
  9. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +6 -1
  10. package/Microsoft.ReactNative/Fabric/WindowsImageManager.cpp +14 -1
  11. package/Microsoft.ReactNative/Fabric/platform/react/threading/TaskDispatchThread.cpp +75 -24
  12. package/Microsoft.ReactNative/Fabric/platform/react/threading/TaskDispatchThread.h +4 -25
  13. package/Microsoft.ReactNative/JsiApi.cpp +1 -1
  14. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +1 -0
  15. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj.filters +3 -0
  16. package/Microsoft.ReactNative/ReactHost/DebuggerNotifications.h +54 -0
  17. package/Microsoft.ReactNative/ReactHost/React.h +11 -4
  18. package/Microsoft.ReactNative/ReactHost/ReactHost.cpp +195 -29
  19. package/Microsoft.ReactNative/ReactHost/ReactHost.h +22 -4
  20. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.cpp +24 -5
  21. package/Microsoft.ReactNative/ReactHost/ReactInstanceWin.h +1 -1
  22. package/Microsoft.ReactNative/ReactRootView.cpp +108 -0
  23. package/Microsoft.ReactNative/ReactRootView.h +6 -0
  24. package/Microsoft.ReactNative/Views/DevMenu.cpp +1 -1
  25. package/Microsoft.ReactNative.Cxx/Microsoft.ReactNative.Cxx.vcxitems +1 -1
  26. package/PropertySheets/Generated/PackageVersion.g.props +3 -3
  27. package/PropertySheets/JSEngine.props +1 -1
  28. package/PropertySheets/React.Cpp.props +2 -2
  29. package/ReactCommon/ReactCommon.vcxproj +18 -1
  30. package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/NativeToJsBridge.cpp +1 -1
  31. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsi/jsi/test/testlib.cpp +4 -4
  32. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.cpp +23 -9
  33. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsinspector-modern/NetworkIOAgent.h +16 -0
  34. package/ReactCommon/cgmanifest.json +1 -1
  35. package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +2 -0
  36. package/Shared/DevServerHelper.h +13 -3
  37. package/Shared/DevSettings.h +7 -0
  38. package/Shared/DevSupportManager.cpp +79 -20
  39. package/Shared/DevSupportManager.h +7 -19
  40. package/Shared/Hermes/HermesRuntimeAgentDelegate.cpp +99 -0
  41. package/Shared/Hermes/HermesRuntimeAgentDelegate.h +81 -0
  42. package/Shared/Hermes/HermesRuntimeTargetDelegate.cpp +263 -0
  43. package/Shared/Hermes/HermesRuntimeTargetDelegate.h +77 -0
  44. package/Shared/HermesRuntimeHolder.cpp +29 -111
  45. package/Shared/HermesRuntimeHolder.h +214 -32
  46. package/Shared/IDevSupportManager.h +5 -2
  47. package/Shared/Inspector/ReactInspectorPackagerConnectionDelegate.cpp +108 -0
  48. package/Shared/Inspector/ReactInspectorPackagerConnectionDelegate.h +19 -0
  49. package/Shared/Inspector/ReactInspectorThread.h +18 -0
  50. package/Shared/JSI/RuntimeHolder.h +5 -2
  51. package/Shared/OInstance.cpp +44 -27
  52. package/Shared/Shared.vcxitems +27 -17
  53. package/Shared/Shared.vcxitems.filters +33 -15
  54. package/package.json +4 -4
  55. package/Microsoft.ReactNative.Cxx/ApiLoaders/JSRuntimeApi.cpp +0 -79
  56. package/Microsoft.ReactNative.Cxx/ApiLoaders/JSRuntimeApi.h +0 -51
  57. package/Microsoft.ReactNative.Cxx/ApiLoaders/JSRuntimeApi.inc +0 -50
  58. package/Microsoft.ReactNative.Cxx/ApiLoaders/NodeApi.cpp +0 -41
  59. package/Microsoft.ReactNative.Cxx/ApiLoaders/NodeApi.h +0 -127
  60. package/Microsoft.ReactNative.Cxx/ApiLoaders/NodeApi.inc +0 -125
  61. package/Microsoft.ReactNative.Cxx/ApiLoaders/NodeApi_posix.cpp +0 -16
  62. package/Microsoft.ReactNative.Cxx/ApiLoaders/NodeApi_win.cpp +0 -23
  63. package/Microsoft.ReactNative.Cxx/JSI/decorator.h +0 -1054
  64. package/Microsoft.ReactNative.Cxx/JSI/instrumentation.h +0 -145
  65. package/Microsoft.ReactNative.Cxx/JSI/jsi-inl.h +0 -372
  66. package/Microsoft.ReactNative.Cxx/JSI/jsi.cpp +0 -797
  67. package/Microsoft.ReactNative.Cxx/JSI/jsi.h +0 -1799
  68. package/Microsoft.ReactNative.Cxx/JSI/threadsafe.h +0 -79
  69. package/Microsoft.ReactNative.Cxx/NodeApiJsiRuntime.cpp +0 -3531
  70. package/Microsoft.ReactNative.Cxx/NodeApiJsiRuntime.h +0 -38
  71. package/Microsoft.ReactNative.Cxx/node-api/js_native_api.h +0 -614
  72. package/Microsoft.ReactNative.Cxx/node-api/js_native_api_types.h +0 -212
  73. package/Microsoft.ReactNative.Cxx/node-api/js_runtime_api.h +0 -199
  74. package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.cpp +0 -78
  75. package/ReactCommon/TEMP_UntilReactCommonUpdate/cxxreact/JSExecutor.h +0 -196
  76. package/ReactCommon/TEMP_UntilReactCommonUpdate/jserrorhandler/JsErrorHandler.cpp +0 -429
  77. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsitooling/react/runtime/JSRuntimeFactory.cpp +0 -45
  78. package/ReactCommon/TEMP_UntilReactCommonUpdate/jsitooling/react/runtime/JSRuntimeFactory.h +0 -91
  79. package/ReactCommon/TEMP_UntilReactCommonUpdate/react/runtime/ReactInstance.cpp +0 -670
  80. package/Shared/InspectorPackagerConnection.cpp +0 -232
  81. package/Shared/InspectorPackagerConnection.h +0 -61
  82. /package/Shared/{HermesSamplingProfiler.cpp → Hermes/HermesSamplingProfiler.cpp} +0 -0
  83. /package/Shared/{HermesSamplingProfiler.h → Hermes/HermesSamplingProfiler.h} +0 -0
@@ -36,7 +36,7 @@
36
36
  <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\Composition.Input.idl</DependentUpon>
37
37
  </ClCompile>
38
38
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionAnnotationProvider.cpp">
39
- <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
39
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
40
40
  </ClCompile>
41
41
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionContextHelper.cpp">
42
42
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
@@ -76,6 +76,10 @@
76
76
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionTextRangeProvider.cpp">
77
77
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
78
78
  </ClCompile>
79
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\DebuggerUIIsland.cpp">
80
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
81
+ <SubType>Code</SubType>
82
+ </ClCompile>
79
83
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ReactNativeIsland.cpp">
80
84
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
81
85
  <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeIsland.idl</DependentUpon>
@@ -228,16 +232,16 @@
228
232
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\ImageRequestParams.cpp">
229
233
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
230
234
  </ClCompile>
231
- <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.cpp"/>
235
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.cpp" />
232
236
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\AsynchronousEventBeat.cpp">
233
237
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
234
238
  </ClCompile>
235
- <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.cpp">
239
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.cpp">
236
240
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
237
241
  <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
238
242
  <SubType>Code</SubType>
239
243
  </ClCompile>
240
- <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.cpp">
244
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.cpp">
241
245
  <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
242
246
  <DependentUpon>$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
243
247
  <SubType>Code</SubType>
@@ -251,8 +255,10 @@
251
255
  <ClCompile Include="$(MSBuildThisFileDirectory)Executors\WebSocketJSExecutorFactory.cpp" />
252
256
  <ClCompile Include="$(MSBuildThisFileDirectory)Hasher.cpp" />
253
257
  <ClCompile Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.cpp" />
254
- <ClCompile Include="$(MSBuildThisFileDirectory)HermesSamplingProfiler.cpp" />
255
- <ClCompile Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.cpp" />
258
+ <ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.cpp" />
259
+ <ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.cpp" />
260
+ <ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.cpp" />
261
+ <ClCompile Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.cpp" />
256
262
  <ClCompile Include="$(MSBuildThisFileDirectory)InstanceManager.cpp" />
257
263
  <ClCompile Include="$(MSBuildThisFileDirectory)JSBigAbiString.cpp" />
258
264
  <ClCompile Include="$(MSBuildThisFileDirectory)JSI\ChakraApi.cpp" />
@@ -261,7 +267,7 @@
261
267
  <ClCompile Include="$(MSBuildThisFileDirectory)JSI\V8RuntimeHolder.cpp">
262
268
  <ExcludedFromBuild Condition="'$(UseV8)' != 'true'">true</ExcludedFromBuild>
263
269
  </ClCompile>
264
- <ClCompile Include="$(MSBuildThisFileDirectory)JSI\JSExecutorFactorySettings.cpp"/>
270
+ <ClCompile Include="$(MSBuildThisFileDirectory)JSI\JSExecutorFactorySettings.cpp" />
265
271
  <ClCompile Include="$(MSBuildThisFileDirectory)LayoutAnimation.cpp" />
266
272
  <ClCompile Include="$(MSBuildThisFileDirectory)Logging.cpp" />
267
273
  <ClCompile Include="$(MSBuildThisFileDirectory)MemoryMappedBuffer.cpp" />
@@ -342,10 +348,10 @@
342
348
  <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.h">
343
349
  <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.idl</DependentUpon>
344
350
  </ClInclude>
345
- <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\CallInvoker.cpp"/>
351
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\CallInvoker.cpp" />
346
352
  <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\SchedulerSettings.h" />
347
- <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.h">
348
- <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
353
+ <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeWin32App.h">
354
+ <ExcludedFromBuild Condition="'$(UseFabric)' != 'true'">true</ExcludedFromBuild>
349
355
  <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\ReactNativeAppBuilder.idl</DependentUpon>
350
356
  <SubType>Code</SubType>
351
357
  </ClInclude>
@@ -408,13 +414,18 @@
408
414
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.cpp">
409
415
  <DependentUpon>$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Timer.idl</DependentUpon>
410
416
  </ClCompile>
411
-
417
+ </ItemGroup>
418
+ <ItemGroup>
412
419
  <ClInclude Include="$(MSBuildThisFileDirectory)AbiSafe.h" />
413
420
  <ClInclude Include="$(MSBuildThisFileDirectory)BaseFileReaderResource.h" />
414
421
  <ClInclude Include="$(MSBuildThisFileDirectory)CppRuntimeOptions.h" />
415
- <ClInclude Include="$(MSBuildThisFileDirectory)HermesSamplingProfiler.h" />
422
+ <ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.h" />
423
+ <ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.h" />
424
+ <ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.h" />
416
425
  <ClInclude Include="$(MSBuildThisFileDirectory)IBlobPersistor.h" />
417
426
  <ClInclude Include="$(MSBuildThisFileDirectory)IFileReaderResource.h" />
427
+ <ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.h" />
428
+ <ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorThread.h" />
418
429
  <ClInclude Include="$(MSBuildThisFileDirectory)JSI\ByteArrayBuffer.h" />
419
430
  <ClInclude Include="$(MSBuildThisFileDirectory)JSI\ChakraApi.h" />
420
431
  <ClInclude Include="$(MSBuildThisFileDirectory)JSI\ChakraRuntime.h" />
@@ -460,7 +471,6 @@
460
471
  <ClInclude Include="$(MSBuildThisFileDirectory)DevSettings.h" />
461
472
  <ClInclude Include="$(MSBuildThisFileDirectory)Executors\WebSocketJSExecutor.h" />
462
473
  <ClInclude Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.h" />
463
- <ClInclude Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.h" />
464
474
  <ClInclude Include="$(MSBuildThisFileDirectory)IDevSupportManager.h" />
465
475
  <ClInclude Include="$(MSBuildThisFileDirectory)InstanceManager.h" />
466
476
  <ClInclude Include="$(MSBuildThisFileDirectory)IReactRootView.h" />
@@ -598,8 +608,8 @@
598
608
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextProps.cpp" />
599
609
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\TextShadowNode.cpp" />
600
610
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\RawTextShadowNode.cpp" />
601
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphComponentDescriptor.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)"/>
602
- <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\TextInputState.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)"/>
611
+ <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\text\ParagraphComponentDescriptor.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)" />
612
+ <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\textinput\TextInputState.cpp" DisableSpecificWarnings="5028;%(DisableSpecificWarnings)" />
603
613
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\AccessibilityProps.cpp" />
604
614
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\PointerEvent.cpp" />
605
615
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\react\renderer\components\view\BaseTouch.cpp" />
@@ -716,7 +726,7 @@
716
726
  <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\Theme.idl" />
717
727
  <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\UriImageManager.idl" />
718
728
  <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ViewProps.idl" />
719
- <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl" />
729
+ <Midl Condition="'$(UseFabric)' == 'true' OR '$(IncludeFabricInterface)' == 'true'" Include="$(ReactNativeWindowsDir)Microsoft.ReactNative\ReactNativeAppBuilder.idl" />
720
730
  </ItemGroup>
721
731
  <ItemGroup>
722
732
  <ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.h" />
@@ -732,4 +742,4 @@
732
742
  <PrecompiledHeader>NotUsing</PrecompiledHeader>
733
743
  </ClCompile>
734
744
  </ItemGroup>
735
- </Project>
745
+ </Project>
@@ -94,9 +94,6 @@
94
94
  <ClCompile Include="$(MSBuildThisFileDirectory)JSI\JSExecutorFactorySettings.cpp">
95
95
  <Filter>Source Files\JSI</Filter>
96
96
  </ClCompile>
97
- <ClCompile Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.cpp">
98
- <Filter>Source Files</Filter>
99
- </ClCompile>
100
97
  <ClCompile Include="$(MSBuildThisFileDirectory)Modules\HttpModule.cpp">
101
98
  <Filter>Source Files\Modules</Filter>
102
99
  </ClCompile>
@@ -218,6 +215,9 @@
218
215
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionAnnotationProvider.cpp">
219
216
  <Filter>Source Files\Fabric\Composition</Filter>
220
217
  </ClCompile>
218
+ <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\DebuggerUIIsland.cpp">
219
+ <Filter>Source Files\Fabric\Composition</Filter>
220
+ </ClCompile>
221
221
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ReactNativeIsland.cpp">
222
222
  <Filter>Source Files\Fabric\Composition</Filter>
223
223
  </ClCompile>
@@ -230,9 +230,6 @@
230
230
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionHwndHost.cpp">
231
231
  <Filter>Source Files\Fabric</Filter>
232
232
  </ClCompile>
233
- <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\ReactNativeIsland.cpp">
234
- <Filter>Source Files\Fabric</Filter>
235
- </ClCompile>
236
233
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionUIService.cpp">
237
234
  <Filter>Source Files\Fabric</Filter>
238
235
  </ClCompile>
@@ -265,9 +262,6 @@
265
262
  <ClCompile Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.cpp">
266
263
  <Filter>Hermes</Filter>
267
264
  </ClCompile>
268
- <ClCompile Include="$(MSBuildThisFileDirectory)HermesSamplingProfiler.cpp">
269
- <Filter>Hermes</Filter>
270
- </ClCompile>
271
265
  <ClCompile Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.cpp" />
272
266
  <ClCompile Include="$(MSBuildThisFileDirectory)JSI\V8RuntimeHolder.cpp" />
273
267
  <ClCompile Include="$(MSBuildThisFileDirectory)SafeLoadLibrary.cpp" />
@@ -344,6 +338,18 @@
344
338
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\oscompat\OSCompatWindows.cpp" />
345
339
  <ClCompile Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\platform\react\renderer\textlayoutmanager\WindowsTextLayoutManager.cpp" />
346
340
  <ClCompile Include="$(ReactNativeDir)\ReactCommon\jsinspector-modern\network\NetworkReporter.cpp" />
341
+ <ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.cpp">
342
+ <Filter>Hermes</Filter>
343
+ </ClCompile>
344
+ <ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.cpp">
345
+ <Filter>Hermes</Filter>
346
+ </ClCompile>
347
+ <ClCompile Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.cpp">
348
+ <Filter>Hermes</Filter>
349
+ </ClCompile>
350
+ <ClCompile Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.cpp">
351
+ <Filter>Inspector</Filter>
352
+ </ClCompile>
347
353
  </ItemGroup>
348
354
  <ItemGroup>
349
355
  <Filter Include="Source Files">
@@ -478,6 +484,9 @@
478
484
  <Filter Include="Hermes">
479
485
  <UniqueIdentifier>{b32590e6-ae3d-4388-ab98-767345ce38c9}</UniqueIdentifier>
480
486
  </Filter>
487
+ <Filter Include="Inspector">
488
+ <UniqueIdentifier>{680511e1-15e0-48c9-a2a3-64addaeacce5}</UniqueIdentifier>
489
+ </Filter>
481
490
  </ItemGroup>
482
491
  <ItemGroup>
483
492
  <ClInclude Include="$(MSBuildThisFileDirectory)Modules\ExceptionsManagerModule.h">
@@ -631,9 +640,6 @@
631
640
  <Filter>Header Files\JSI</Filter>
632
641
  </ClInclude>
633
642
  <ClInclude Include="$(MSBuildThisFileDirectory)..\include\Shared\cdebug.h" />
634
- <ClInclude Include="$(MSBuildThisFileDirectory)InspectorPackagerConnection.h">
635
- <Filter>Header Files</Filter>
636
- </ClInclude>
637
643
  <ClInclude Include="$(MSBuildThisFileDirectory)tracing\tracing.h">
638
644
  <Filter>Header Files\tracing</Filter>
639
645
  </ClInclude>
@@ -821,9 +827,6 @@
821
827
  <ClInclude Include="$(MSBuildThisFileDirectory)HermesRuntimeHolder.h">
822
828
  <Filter>Hermes</Filter>
823
829
  </ClInclude>
824
- <ClInclude Include="$(MSBuildThisFileDirectory)HermesSamplingProfiler.h">
825
- <Filter>Hermes</Filter>
826
- </ClInclude>
827
830
  <ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.h" />
828
831
  <ClInclude Include="$(NodeApiJsiDir)src\ApiLoaders\HermesApi.inc" />
829
832
  <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\JsiApi.h" />
@@ -832,6 +835,21 @@
832
835
  <ClInclude Include="$(MSBuildThisFileDirectory)V8JSIRuntimeHolder.h" />
833
836
  <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\Modal\WindowsModalHostViewSate.h" />
834
837
  <ClInclude Include="$(MSBuildThisFileDirectory)..\Microsoft.ReactNative\Fabric\Composition\CompositionViewComponentView.h" />
838
+ <ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeAgentDelegate.h">
839
+ <Filter>Hermes</Filter>
840
+ </ClInclude>
841
+ <ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesRuntimeTargetDelegate.h">
842
+ <Filter>Hermes</Filter>
843
+ </ClInclude>
844
+ <ClInclude Include="$(MSBuildThisFileDirectory)Hermes\HermesSamplingProfiler.h">
845
+ <Filter>Hermes</Filter>
846
+ </ClInclude>
847
+ <ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorThread.h">
848
+ <Filter>Inspector</Filter>
849
+ </ClInclude>
850
+ <ClInclude Include="$(MSBuildThisFileDirectory)Inspector\ReactInspectorPackagerConnectionDelegate.h">
851
+ <Filter>Inspector</Filter>
852
+ </ClInclude>
835
853
  </ItemGroup>
836
854
  <ItemGroup>
837
855
  <None Include="$(MSBuildThisFileDirectory)tracing\rnw.wprp">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.80.1",
3
+ "version": "0.80.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@react-native-community/cli": "17.0.0",
27
27
  "@react-native-community/cli-platform-android": "17.0.0",
28
28
  "@react-native-community/cli-platform-ios": "17.0.0",
29
- "@react-native-windows/cli": "0.80.0",
29
+ "@react-native-windows/cli": "0.80.1",
30
30
  "@react-native/assets": "1.0.0",
31
31
  "@react-native/assets-registry": "0.80.0",
32
32
  "@react-native/codegen": "0.80.0",
@@ -68,7 +68,7 @@
68
68
  "yargs": "^17.6.2"
69
69
  },
70
70
  "devDependencies": {
71
- "@react-native-windows/codegen": "0.80.0",
71
+ "@react-native-windows/codegen": "0.80.1",
72
72
  "@react-native/metro-config": "0.80.0",
73
73
  "@rnw-scripts/babel-react-native-config": "0.0.0",
74
74
  "@rnw-scripts/eslint-config": "1.2.36",
@@ -85,7 +85,7 @@
85
85
  "prettier": "2.8.8",
86
86
  "react": "19.1.0",
87
87
  "react-native": "0.80.0",
88
- "react-native-platform-override": "^1.9.56",
88
+ "react-native-platform-override": "0.80.5",
89
89
  "react-refresh": "^0.14.0",
90
90
  "typescript": "5.0.4"
91
91
  },
@@ -1,79 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
-
4
- #include "JSRuntimeApi.h"
5
-
6
- EXTERN_C_START
7
-
8
- // Default JSR function implementations if they are not found in the engine DLL.
9
- extern napi_status NAPI_CDECL default_jsr_open_napi_env_scope(napi_env env, jsr_napi_env_scope *scope);
10
- extern napi_status NAPI_CDECL default_jsr_close_napi_env_scope(napi_env env, jsr_napi_env_scope scope);
11
- extern napi_status NAPI_CDECL default_jsr_get_description(napi_env env, const char **result);
12
- extern napi_status NAPI_CDECL default_jsr_queue_microtask(napi_env env, napi_value callback);
13
- extern napi_status NAPI_CDECL default_jsr_drain_microtasks(napi_env env, int32_t max_count_hint, bool *result);
14
- extern napi_status NAPI_CDECL default_jsr_is_inspectable(napi_env env, bool *result);
15
-
16
- extern napi_status NAPI_CDECL default_jsr_create_prepared_script(
17
- napi_env env,
18
- const uint8_t *script_utf8,
19
- size_t script_length,
20
- jsr_data_delete_cb script_delete_cb,
21
- void *deleter_data,
22
- const char *source_url,
23
- jsr_prepared_script *result);
24
- extern napi_status NAPI_CDECL default_jsr_delete_prepared_script(napi_env env, jsr_prepared_script prepared_script);
25
- extern napi_status NAPI_CDECL
26
- default_jsr_prepared_script_run(napi_env env, jsr_prepared_script prepared_script, napi_value *result);
27
-
28
- EXTERN_C_END
29
-
30
- namespace Microsoft::NodeApiJsi {
31
-
32
- namespace {
33
-
34
- struct JSRuntimeApiNames {
35
- #define JSR_FUNC(func) static constexpr const char func[] = #func;
36
- #define JSR_JSI_FUNC JSR_FUNC
37
- #define JSR_PREPARED_SCRIPT JSR_FUNC
38
- #include "JSRuntimeApi.inc"
39
- };
40
-
41
- // Prepared script functions either should be all loaded or we use all default functions.
42
- void loadPreparedScriptFuncs() {
43
- JSRuntimeApi *current = JSRuntimeApi::current();
44
- bool useDefault = false;
45
- #define JSR_PREPARED_SCRIPT(func) \
46
- decltype(::func) *loaded_##func = \
47
- reinterpret_cast<decltype(::func) *>(current->getFuncPtr(JSRuntimeApiNames::func)); \
48
- useDefault = useDefault || loaded_##func == nullptr;
49
- #include "JSRuntimeApi.inc"
50
- #define JSR_PREPARED_SCRIPT(func) \
51
- size_t offset_##func = offsetof(JSRuntimeApi, func); \
52
- *reinterpret_cast<decltype(::func) **>(reinterpret_cast<char *>(current) + offset_##func) = \
53
- useDefault ? &default_##func : loaded_##func;
54
- #include "JSRuntimeApi.inc"
55
- }
56
-
57
- } // namespace
58
-
59
- thread_local JSRuntimeApi *JSRuntimeApi::current_{};
60
-
61
- JSRuntimeApi::JSRuntimeApi(IFuncResolver *funcResolver)
62
- : NodeApi(funcResolver)
63
- #define JSR_FUNC(func) \
64
- , \
65
- func(&ApiFuncResolver<JSRuntimeApi, decltype(::func) *, JSRuntimeApiNames::func, offsetof(JSRuntimeApi, func)>:: \
66
- stub)
67
- #define JSR_JSI_FUNC(func) \
68
- , \
69
- func(&ApiFuncResolver<JSRuntimeApi, decltype(::func) *, JSRuntimeApiNames::func, offsetof(JSRuntimeApi, func)>:: \
70
- optionalStub<&default_##func>)
71
- #define JSR_PREPARED_SCRIPT(func) \
72
- , \
73
- func(&ApiFuncResolver<JSRuntimeApi, decltype(::func) *, JSRuntimeApiNames::func, offsetof(JSRuntimeApi, func)>:: \
74
- preloadStub<&loadPreparedScriptFuncs>)
75
- #include "JSRuntimeApi.inc"
76
- {
77
- }
78
-
79
- } // namespace Microsoft::NodeApiJsi
@@ -1,51 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
-
4
- #ifndef APILOADERS_JSRUNTIMEAPI_H_
5
- #define APILOADERS_JSRUNTIMEAPI_H_
6
-
7
- #include <js_runtime_api.h>
8
- #include "NodeApi.h"
9
-
10
- namespace Microsoft::NodeApiJsi {
11
-
12
- class JSRuntimeApi : public NodeApi {
13
- public:
14
- JSRuntimeApi(IFuncResolver *funcResolver);
15
-
16
- static JSRuntimeApi *current() {
17
- return current_;
18
- }
19
-
20
- static void setCurrent(JSRuntimeApi *current) {
21
- NodeApi::setCurrent(current);
22
- current_ = current;
23
- }
24
-
25
- class Scope : public NodeApi::Scope {
26
- public:
27
- Scope(JSRuntimeApi *api) : NodeApi::Scope(api), prevJSRuntimeApi_(JSRuntimeApi::current_) {
28
- JSRuntimeApi::current_ = api;
29
- }
30
-
31
- ~Scope() {
32
- JSRuntimeApi::current_ = prevJSRuntimeApi_;
33
- }
34
-
35
- private:
36
- JSRuntimeApi *prevJSRuntimeApi_;
37
- };
38
-
39
- public:
40
- #define JSR_FUNC(func) decltype(::func) *const func;
41
- #define JSR_JSI_FUNC JSR_FUNC
42
- #define JSR_PREPARED_SCRIPT JSR_FUNC
43
- #include "JSRuntimeApi.inc"
44
-
45
- private:
46
- static thread_local JSRuntimeApi *current_;
47
- };
48
-
49
- } // namespace Microsoft::NodeApiJsi
50
-
51
- #endif // !APILOADERS_JSRUNTIMEAPI_H_
@@ -1,50 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
-
4
- #ifndef JSR_FUNC
5
- #define JSR_FUNC(func)
6
- #endif
7
-
8
- #ifndef JSR_JSI_FUNC
9
- #define JSR_JSI_FUNC(func)
10
- #endif
11
-
12
- #ifndef JSR_PREPARED_SCRIPT
13
- #define JSR_PREPARED_SCRIPT(func)
14
- #endif
15
-
16
- // The JS runtime functions sorted alphabetically.
17
- JSR_FUNC(jsr_collect_garbage)
18
- JSR_FUNC(jsr_config_enable_gc_api)
19
- JSR_FUNC(jsr_config_enable_inspector)
20
- JSR_FUNC(jsr_config_set_explicit_microtasks)
21
- JSR_FUNC(jsr_config_set_inspector_break_on_start)
22
- JSR_FUNC(jsr_config_set_inspector_port)
23
- JSR_FUNC(jsr_config_set_inspector_runtime_name)
24
- JSR_FUNC(jsr_config_set_script_cache)
25
- JSR_FUNC(jsr_config_set_task_runner)
26
- JSR_FUNC(jsr_create_config)
27
- JSR_FUNC(jsr_create_runtime)
28
- JSR_FUNC(jsr_delete_config)
29
- JSR_FUNC(jsr_delete_runtime)
30
- JSR_FUNC(jsr_get_and_clear_last_unhandled_promise_rejection)
31
- JSR_FUNC(jsr_has_unhandled_promise_rejection)
32
- JSR_FUNC(jsr_run_script)
33
- JSR_FUNC(jsr_runtime_get_node_api_env)
34
-
35
- // The JS runtime functions needed for JSI.
36
- JSR_JSI_FUNC(jsr_close_napi_env_scope)
37
- JSR_JSI_FUNC(jsr_queue_microtask)
38
- JSR_JSI_FUNC(jsr_drain_microtasks)
39
- JSR_JSI_FUNC(jsr_get_description)
40
- JSR_JSI_FUNC(jsr_is_inspectable)
41
- JSR_JSI_FUNC(jsr_open_napi_env_scope)
42
-
43
- // The JS runtime functions needed for prepared script.
44
- JSR_PREPARED_SCRIPT(jsr_create_prepared_script)
45
- JSR_PREPARED_SCRIPT(jsr_delete_prepared_script)
46
- JSR_PREPARED_SCRIPT(jsr_prepared_script_run)
47
-
48
- #undef JSR_FUNC
49
- #undef JSR_JSI_FUNC
50
- #undef JSR_PREPARED_SCRIPT
@@ -1,41 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
-
4
- #include "NodeApi.h"
5
-
6
- namespace Microsoft::NodeApiJsi {
7
-
8
- namespace {
9
-
10
- struct NodeApiNames {
11
- #define NODE_API_FUNC(func) static constexpr const char func[] = #func;
12
- #include "NodeApi.inc"
13
- };
14
-
15
- } // namespace
16
-
17
- LibFuncResolver::LibFuncResolver(const char *libName) : libHandle_(LibLoader::loadLib(libName)) {}
18
-
19
- FuncPtr LibFuncResolver::getFuncPtr(const char *funcName) {
20
- return LibLoader::getFuncPtr(libHandle_, funcName);
21
- }
22
-
23
- DelayLoadedApi::DelayLoadedApi(IFuncResolver *funcResolver) : funcResolver_(funcResolver) {}
24
-
25
- DelayLoadedApi::~DelayLoadedApi() = default;
26
-
27
- FuncPtr DelayLoadedApi::getFuncPtr(const char *funcName) {
28
- return funcResolver_->getFuncPtr(funcName);
29
- }
30
-
31
- thread_local NodeApi *NodeApi::current_{};
32
-
33
- NodeApi::NodeApi(IFuncResolver *funcResolver)
34
- : DelayLoadedApi(funcResolver)
35
- #define NODE_API_FUNC(func) \
36
- , func(&ApiFuncResolver<NodeApi, decltype(::func) *, NodeApiNames::func, offsetof(NodeApi, func)>::stub)
37
- #include "NodeApi.inc"
38
- {
39
- }
40
-
41
- } // namespace Microsoft::NodeApiJsi
@@ -1,127 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT License.
3
-
4
- #pragma once
5
- #ifndef APILOADERS_NODEAPI_H_
6
- #define APILOADERS_NODEAPI_H_
7
-
8
- #include <js_native_api.h>
9
-
10
- namespace Microsoft::NodeApiJsi {
11
-
12
- using LibHandle = struct LibHandle_t *;
13
- using FuncPtr = struct FuncPtr_t *;
14
-
15
- class LibLoader {
16
- public:
17
- static LibHandle loadLib(const char *libName);
18
- static FuncPtr getFuncPtr(LibHandle libHandle, const char *funcName);
19
- };
20
-
21
- template <typename TApi, typename T, const char *funcName, size_t offset>
22
- struct ApiFuncResolver;
23
-
24
- template <typename TApi, typename TResult, const char *funcName, size_t offset, typename... TArgs>
25
- struct ApiFuncResolver<TApi, TResult(NAPI_CDECL *)(TArgs...), funcName, offset> {
26
- // Stub is a special function that loads the targeting function on the first call,
27
- // replaces function pointer field with the loaded function, and executes the function.
28
- // After this all future calls to the loaded function are going to be directly from
29
- // the field and not use this Stub.
30
- static TResult NAPI_CDECL stub(TArgs... args) {
31
- using TFunc = TResult(NAPI_CDECL *)(TArgs...);
32
- TApi *current = TApi::current();
33
- TFunc func = reinterpret_cast<TFunc>(current->getFuncPtr(funcName));
34
- *reinterpret_cast<TFunc *>(reinterpret_cast<char *>(current) + offset) = func;
35
- return (*func)(args...);
36
- }
37
-
38
- // Optional stub tries to load target function on the first call and set it
39
- // as the function pointer. If loading fails, then it uses provided default
40
- // function implementation. The default function can either do the required
41
- // work or return a failure.
42
- template <TResult(NAPI_CDECL *defaultFunc)(TArgs...)>
43
- static TResult NAPI_CDECL optionalStub(TArgs... args) {
44
- using TFunc = TResult(NAPI_CDECL *)(TArgs...);
45
- TApi *current = TApi::current();
46
- TFunc func = reinterpret_cast<TFunc>(current->getFuncPtr(funcName));
47
- if (func == nullptr) {
48
- func = defaultFunc;
49
- }
50
- *reinterpret_cast<TFunc *>(reinterpret_cast<char *>(current) + offset) = func;
51
- return (*func)(args...);
52
- }
53
-
54
- template <void (*preloadFunc)()>
55
- static TResult NAPI_CDECL preloadStub(TArgs... args) {
56
- using TFunc = TResult(NAPI_CDECL *)(TArgs...);
57
- preloadFunc();
58
- TApi *current = TApi::current();
59
- TFunc func = *reinterpret_cast<TFunc *>(reinterpret_cast<char *>(current) + offset);
60
- return (*func)(args...);
61
- }
62
- };
63
-
64
- struct IFuncResolver {
65
- virtual FuncPtr getFuncPtr(const char *funcName) = 0;
66
- };
67
-
68
- class LibFuncResolver : public IFuncResolver {
69
- public:
70
- LibFuncResolver(const char *libName);
71
- FuncPtr getFuncPtr(const char *funcName) override;
72
-
73
- private:
74
- LibHandle libHandle_;
75
- };
76
-
77
- class DelayLoadedApi {
78
- public:
79
- DelayLoadedApi(IFuncResolver *funcResolver);
80
- ~DelayLoadedApi();
81
-
82
- FuncPtr getFuncPtr(const char *funcName);
83
-
84
- DelayLoadedApi(const DelayLoadedApi &) = delete;
85
- DelayLoadedApi &operator=(const DelayLoadedApi &) = delete;
86
-
87
- private:
88
- IFuncResolver *funcResolver_;
89
- };
90
-
91
- class NodeApi : public DelayLoadedApi {
92
- public:
93
- NodeApi(IFuncResolver *funcResolver);
94
-
95
- static NodeApi *current() {
96
- return current_;
97
- }
98
-
99
- static void setCurrent(NodeApi *current) {
100
- current_ = current;
101
- }
102
-
103
- class Scope {
104
- public:
105
- Scope(NodeApi *nodeApi) : prevNodeApi_(NodeApi::current_) {
106
- NodeApi::current_ = nodeApi;
107
- }
108
-
109
- ~Scope() {
110
- NodeApi::current_ = prevNodeApi_;
111
- }
112
-
113
- private:
114
- NodeApi *prevNodeApi_;
115
- };
116
-
117
- public:
118
- #define NODE_API_FUNC(func) decltype(::func) *const func;
119
- #include "NodeApi.inc"
120
-
121
- private:
122
- static thread_local NodeApi *current_;
123
- };
124
-
125
- } // namespace Microsoft::NodeApiJsi
126
-
127
- #endif // !APILOADERS_NODEAPI_H_