react-native-windows 0.69.9 → 0.69.11

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.
@@ -727,6 +727,7 @@
727
727
  <PackageReference Include="ReactNative.Hermes.Windows" Version="$(HermesVersion)" />
728
728
  <PackageReference Include="$(WinUIPackageName)" Version="$(WinUIPackageVersion)" Condition="'$(OverrideWinUIPackage)'!='true'" />
729
729
  <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22000.194" />
730
+ <PackageReference Include="$(V8PackageName)" Version="$(V8Version)" Condition="'$(UseV8)' == 'true'" />
730
731
  </ItemGroup>
731
732
  <Choose>
732
733
  <When Condition="'$(EnableSourceLink)' == 'true'">
@@ -737,13 +738,6 @@
737
738
  </ItemGroup>
738
739
  </When>
739
740
  </Choose>
740
- <Choose>
741
- <When Condition="'$(UseV8)' == 'true'">
742
- <ItemGroup>
743
- <PackageReference Include="ReactNative.V8Jsi.Windows.UWP" Version="$(V8Version)" />
744
- </ItemGroup>
745
- </When>
746
- </Choose>
747
741
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
748
742
  <Import Project="$(ReactNativeWindowsDir)PropertySheets\FastBuild.targets" />
749
743
  <Import Project="$(ReactNativeWindowsDir)PropertySheets\FixupRoslynCscWarnings.targets" />
@@ -6,6 +6,8 @@
6
6
  #include "NodeApiJsiRuntime.h"
7
7
 
8
8
  // Standard Library
9
+ #include <array>
10
+ #include <sstream>
9
11
  #include <string_view>
10
12
  #include <unordered_set>
11
13
 
@@ -5,13 +5,13 @@
5
5
  #ifndef MICROSOFT_REACTNATIVE_JSI_NODEAPIJSIRUNTIME
6
6
  #define MICROSOFT_REACTNATIVE_JSI_NODEAPIJSIRUNTIME
7
7
 
8
+ // Standard Library
9
+ #include <memory>
10
+
8
11
  // JSI
9
12
  #include <js_native_ext_api.h>
10
13
  #include <jsi/jsi.h>
11
14
 
12
- // Standard Library
13
- #include <memory>
14
-
15
15
  namespace Microsoft::JSI {
16
16
 
17
17
  ///
@@ -125,8 +125,9 @@
125
125
  <ItemGroup>
126
126
  <None Include="$(MSBuildThisFileDirectory)README.md" />
127
127
  </ItemGroup>
128
- <ItemGroup>
128
+ <ItemGroup Condition="'$(BuildMSRNCxx)' != 'false' and '$(RNExternalReferences)' != 'true'">
129
129
  <ClCompile Include="$(MSBuildThisFileDirectory)JSI\NodeApiJsiRuntime.cpp">
130
+ <PrecompiledHeader>NotUsing</PrecompiledHeader>
130
131
  <ExcludedFromBuild Condition="'$(UseV8)' != 'true'">true</ExcludedFromBuild>
131
132
  </ClCompile>
132
133
  </ItemGroup>
@@ -4,6 +4,9 @@
4
4
  Licensed under the MIT License.
5
5
  -->
6
6
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
7
+ <PropertyGroup>
8
+ <RNExternalReferences>true</RNExternalReferences>
9
+ </PropertyGroup>
7
10
  <!-- To avoid having these references show in in Visual Studio which ignores conditions on items we have to put the source references in source. -->
8
11
  <ImportGroup Label="Shared">
9
12
  <Import Project="$(ReactNativeWindowsDir)\Microsoft.ReactNative.Cxx\Microsoft.ReactNative.Cxx.vcxitems"
@@ -10,10 +10,10 @@
10
10
  -->
11
11
  <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
12
12
  <PropertyGroup>
13
- <ReactNativeWindowsVersion>0.69.9</ReactNativeWindowsVersion>
13
+ <ReactNativeWindowsVersion>0.69.11</ReactNativeWindowsVersion>
14
14
  <ReactNativeWindowsMajor>0</ReactNativeWindowsMajor>
15
15
  <ReactNativeWindowsMinor>69</ReactNativeWindowsMinor>
16
- <ReactNativeWindowsPatch>9</ReactNativeWindowsPatch>
16
+ <ReactNativeWindowsPatch>11</ReactNativeWindowsPatch>
17
17
  <ReactNativeWindowsCanary>false</ReactNativeWindowsCanary>
18
18
  </PropertyGroup>
19
19
  </Project>
@@ -18,10 +18,9 @@
18
18
  <EnableDevServerHBCBundles Condition="'$(EnableDevServerHBCBundles)' == ''">false</EnableDevServerHBCBundles>
19
19
 
20
20
  <UseV8 Condition="'$(UseV8)' == ''">false</UseV8>
21
- <V8Version Condition="'$(V8Version)' == ''">0.69.4</V8Version>
21
+ <V8Version Condition="'$(V8Version)' == ''">0.69.9</V8Version>
22
22
  <V8PackageName>ReactNative.V8Jsi.Windows</V8PackageName>
23
23
  <V8PackageName Condition="'$(V8AppPlatform)' != 'win32'">$(V8PackageName).UWP</V8PackageName>
24
- <V8Package>$(NuGetPackageRoot)\$(V8PackageName).$(V8Version)</V8Package>
25
24
  </PropertyGroup>
26
25
 
27
26
  </Project>
@@ -8,6 +8,8 @@
8
8
  #include "RuntimeHolder.h"
9
9
  #include "ScriptStore.h"
10
10
 
11
+ #include <cxxreact/MessageQueueThread.h>
12
+
11
13
  namespace Microsoft::JSI {
12
14
 
13
15
  class NapiJsiV8RuntimeHolder : public Microsoft::JSI::RuntimeHolderLazyInit {
@@ -640,8 +640,6 @@ void OriginPolicyHttpFilter::ValidateResponse(HttpResponseMessage const &respons
640
640
  }
641
641
 
642
642
  ResponseOperation OriginPolicyHttpFilter::SendPreflightAsync(HttpRequestMessage const &request) const {
643
- // TODO: Inject user agent?
644
-
645
643
  auto coRequest = request;
646
644
 
647
645
  HttpRequestMessage preflightRequest;
@@ -756,6 +754,11 @@ ResponseOperation OriginPolicyHttpFilter::SendRequestAsync(HttpRequestMessage co
756
754
  ValidatePreflightResponse(coRequest, preflightResponse);
757
755
  }
758
756
 
757
+ if (originPolicy == OriginPolicy::SimpleCrossOriginResourceSharing ||
758
+ originPolicy == OriginPolicy::CrossOriginResourceSharing) {
759
+ coRequest.Headers().Insert(L"Origin", s_origin.AbsoluteCanonicalUri());
760
+ }
761
+
759
762
  auto response = co_await m_innerFilter.SendRequestAsync(coRequest);
760
763
 
761
764
  ValidateResponse(response, originPolicy);
@@ -5,6 +5,8 @@
5
5
 
6
6
  #include "RedirectHttpFilter.h"
7
7
 
8
+ // React Native Windows
9
+ #include <CppRuntimeOptions.h>
8
10
  #include "WinRTTypes.h"
9
11
 
10
12
  // Windows API
@@ -211,6 +213,13 @@ ResponseOperation RedirectHttpFilter::SendRequestAsync(HttpRequestMessage const
211
213
  method = coRequest.Method();
212
214
 
213
215
  do {
216
+ // Set User-Agent
217
+ // See https://fetch.spec.whatwg.org/#http-network-or-cache-fetch
218
+ auto userAgent = GetRuntimeOptionString("Http.UserAgent");
219
+ if (userAgent.size() > 0) {
220
+ coRequest.Headers().Append(L"User-Agent", winrt::to_hstring(userAgent));
221
+ }
222
+
214
223
  // Send subsequent requests through the filter that doesn't have the credentials included in the first request
215
224
  response =
216
225
  co_await (redirectCount > 0 ? m_innerFilterWithNoCredentials : m_innerFilter).SendRequestAsync(coRequest);
@@ -155,6 +155,9 @@
155
155
  <ClCompile Include="$(MSBuildThisFileDirectory)Networking\RedirectHttpFilter.cpp">
156
156
  <Filter>Source Files\Networking</Filter>
157
157
  </ClCompile>
158
+ <ClCompile Include="$(MSBuildThisFileDirectory)Modules\BlobModule.cpp">
159
+ <Filter>Source Files\Modules</Filter>
160
+ </ClCompile>
158
161
  </ItemGroup>
159
162
  <ItemGroup>
160
163
  <Filter Include="Source Files">
@@ -469,6 +472,15 @@
469
472
  <ClInclude Include="$(MSBuildThisFileDirectory)Networking\IRedirectEventSource.h">
470
473
  <Filter>Header Files\Networking</Filter>
471
474
  </ClInclude>
475
+ <ClInclude Include="$(MSBuildThisFileDirectory)Modules\BlobModule.h">
476
+ <Filter>Header Files\Modules</Filter>
477
+ </ClInclude>
478
+ <ClInclude Include="$(MSBuildThisFileDirectory)Modules\IWebSocketModuleProxy.h">
479
+ <Filter>Header Files\Modules</Filter>
480
+ </ClInclude>
481
+ <ClInclude Include="$(MSBuildThisFileDirectory)Modules\IWebSocketModuleContentHandler.h">
482
+ <Filter>Header Files\Modules</Filter>
483
+ </ClInclude>
472
484
  </ItemGroup>
473
485
  <ItemGroup>
474
486
  <None Include="$(MSBuildThisFileDirectory)tracing\rnw.wprp">
@@ -10,6 +10,8 @@
10
10
 
11
11
  #include <Logging.h>
12
12
 
13
+ #include <cxxreact/MessageQueueThread.h>
14
+
13
15
  namespace facebook {
14
16
  namespace react {
15
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.69.9",
3
+ "version": "0.69.11",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",