react-native-windows 0.64.21 → 0.64.22

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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "react-native-windows",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 11 Oct 2021 15:06:18 GMT",
5
+ "date": "Wed, 13 Oct 2021 20:38:59 GMT",
6
+ "tag": "react-native-windows_v0.64.22",
7
+ "version": "0.64.22",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Use V8 by default in desktop (if enabled)",
12
+ "author": "anandrag@microsoft.com",
13
+ "commit": "bfd47dd49105fbc28b31a52cb8d95ae15a7a7326",
14
+ "package": "react-native-windows"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 11 Oct 2021 15:06:31 GMT",
6
21
  "tag": "react-native-windows_v0.64.21",
7
22
  "version": "0.64.21",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,17 +1,25 @@
1
1
  # Change Log - react-native-windows
2
2
 
3
- This log was last generated on Mon, 11 Oct 2021 15:06:18 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 13 Oct 2021 20:38:59 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.64.21
7
+ ## 0.64.22
8
8
 
9
- Mon, 11 Oct 2021 15:06:18 GMT
9
+ Wed, 13 Oct 2021 20:38:59 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - [0.64] Add ARM64 support to React.Windows.Desktop.Test.DLL (julio.rocha@microsoft.com)
13
+ - Use V8 by default in desktop (if enabled) (anandrag@microsoft.com)
14
14
 
15
+ ## 0.64.21
16
+
17
+ Mon, 11 Oct 2021 15:06:31 GMT
18
+
19
+ ### Patches
20
+
21
+ - [0.64] Add ARM64 support to React.Windows.Desktop.Test.DLL (julio.rocha@microsoft.com)
22
+
15
23
  ## 0.64.20
16
24
 
17
25
  Mon, 04 Oct 2021 15:06:58 GMT
@@ -434,6 +434,25 @@ InstanceImpl::InstanceImpl(
434
434
  !m_devSettings->useFastRefresh,
435
435
  m_innerInstance->getJSCallInvoker());
436
436
  } else {
437
+ #if defined(USE_V8)
438
+ std::unique_ptr<facebook::jsi::ScriptStore> scriptStore = nullptr;
439
+ std::unique_ptr<facebook::jsi::PreparedScriptStore> preparedScriptStore = nullptr;
440
+
441
+ char tempPath[MAX_PATH];
442
+ if (GetTempPathA(MAX_PATH, tempPath)) {
443
+ preparedScriptStore = std::make_unique<facebook::react::BasePreparedScriptStoreImpl>(tempPath);
444
+ }
445
+
446
+ m_devSettings->jsiRuntimeHolder = std::make_shared<facebook::react::V8JSIRuntimeHolder>(
447
+ m_devSettings, m_jsThread, std::move(scriptStore), std::move(preparedScriptStore));
448
+
449
+ jsef = std::make_shared<OJSIExecutorFactory>(
450
+ m_devSettings->jsiRuntimeHolder,
451
+ m_devSettings->loggingCallback,
452
+ m_turboModuleRegistry,
453
+ !m_devSettings->useFastRefresh,
454
+ m_innerInstance->getJSCallInvoker());
455
+ #else
437
456
  // We use the older non-JSI ChakraExecutor pipeline as a fallback as of
438
457
  // now. This will go away once we completely move to JSI flow.
439
458
  ChakraInstanceArgs instanceArgs;
@@ -470,6 +489,7 @@ InstanceImpl::InstanceImpl(
470
489
  : CreateMemoryTracker(std::shared_ptr<MessageQueueThread>{m_nativeQueue});
471
490
 
472
491
  jsef = std::make_shared<ChakraExecutorFactory>(std::move(instanceArgs));
492
+ #endif
473
493
  }
474
494
  }
475
495
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.64.21",
3
+ "version": "0.64.22",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",