react-native-windows 0.66.11 → 0.66.12

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, 14 Feb 2022 16:10:33 GMT",
5
+ "date": "Mon, 21 Feb 2022 16:09:24 GMT",
6
+ "tag": "react-native-windows_v0.66.12",
7
+ "version": "0.66.12",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Use temp folder for v8 bytecode cache",
12
+ "author": "30809111+acoates-ms@users.noreply.github.com",
13
+ "commit": "7e3d3a9ad44b5ceafceb9aaeb647a0c0193a04c8",
14
+ "package": "react-native-windows"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 14 Feb 2022 16:10:47 GMT",
6
21
  "tag": "react-native-windows_v0.66.11",
7
22
  "version": "0.66.11",
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, 14 Feb 2022 16:10:33 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 21 Feb 2022 16:09:24 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.66.11
7
+ ## 0.66.12
8
8
 
9
- Mon, 14 Feb 2022 16:10:33 GMT
9
+ Mon, 21 Feb 2022 16:09:24 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Stop exporting data blocks across the dll boundary (30809111+acoates-ms@users.noreply.github.com)
13
+ - Use temp folder for v8 bytecode cache (30809111+acoates-ms@users.noreply.github.com)
14
14
 
15
+ ## 0.66.11
16
+
17
+ Mon, 14 Feb 2022 16:10:47 GMT
18
+
19
+ ### Patches
20
+
21
+ - Stop exporting data blocks across the dll boundary (30809111+acoates-ms@users.noreply.github.com)
22
+
15
23
  ## 0.66.10
16
24
 
17
25
  Mon, 07 Feb 2022 16:12:51 GMT
@@ -8,6 +8,7 @@
8
8
  #include <Base/CoreNativeModules.h>
9
9
  #include <Threading/MessageDispatchQueue.h>
10
10
  #include <Threading/MessageQueueThreadFactory.h>
11
+ #include <appModel.h>
11
12
  #include <comUtil/qiCast.h>
12
13
 
13
14
  #ifndef CORE_ABI
@@ -435,10 +436,19 @@ void ReactInstanceWin::Initialize() noexcept {
435
436
  break;
436
437
  case JSIEngine::V8:
437
438
  #if defined(USE_V8)
438
- #ifndef CORE_ABI
439
- preparedScriptStore =
440
- std::make_unique<facebook::react::BasePreparedScriptStoreImpl>(getApplicationLocalFolder());
441
- #endif // CORE_ABI
439
+ {
440
+ uint32_t length{0};
441
+ if (GetCurrentPackageFullName(&length, nullptr) != APPMODEL_ERROR_NO_PACKAGE) {
442
+ preparedScriptStore =
443
+ std::make_unique<facebook::react::BasePreparedScriptStoreImpl>(getApplicationTempFolder());
444
+ } else {
445
+ wchar_t tempPath[MAX_PATH];
446
+ if (GetTempPathW(static_cast<DWORD>(std::size(tempPath)), tempPath)) {
447
+ preparedScriptStore =
448
+ std::make_unique<facebook::react::BasePreparedScriptStoreImpl>(winrt::to_string(tempPath));
449
+ }
450
+ }
451
+ }
442
452
  devSettings->jsiRuntimeHolder = std::make_shared<facebook::react::V8JSIRuntimeHolder>(
443
453
  devSettings, m_jsMessageThread.Load(), std::move(scriptStore), std::move(preparedScriptStore));
444
454
  break;
@@ -999,8 +1009,8 @@ Mso::CntPtr<IReactInstanceInternal> MakeReactInstance(
999
1009
  }
1000
1010
 
1001
1011
  #if defined(USE_V8)
1002
- std::string ReactInstanceWin::getApplicationLocalFolder() {
1003
- auto local = winrt::Windows::Storage::ApplicationData::Current().LocalFolder().Path();
1012
+ std::string ReactInstanceWin::getApplicationTempFolder() {
1013
+ auto local = winrt::Windows::Storage::ApplicationData::Current().TemporaryFolder().Path();
1004
1014
 
1005
1015
  return Microsoft::Common::Unicode::Utf16ToUtf8(local.c_str(), local.size()) + "\\";
1006
1016
  }
@@ -131,7 +131,7 @@ class ReactInstanceWin final : public Mso::ActiveObject<IReactInstanceInternal>
131
131
  };
132
132
 
133
133
  #if defined(USE_V8)
134
- static std::string getApplicationLocalFolder();
134
+ static std::string getApplicationTempFolder();
135
135
  #endif
136
136
 
137
137
  private: // immutable fields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.66.11",
3
+ "version": "0.66.12",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,7 @@
26
26
  "@react-native-community/cli": "^6.0.0",
27
27
  "@react-native-community/cli-platform-android": "^6.0.0",
28
28
  "@react-native-community/cli-platform-ios": "^6.0.0",
29
- "@react-native-windows/cli": "0.66.2",
29
+ "@react-native-windows/cli": "0.66.3",
30
30
  "@react-native-windows/virtualized-list": "0.66.1",
31
31
  "@react-native/assets": "1.0.0",
32
32
  "@react-native/normalize-color": "1.0.0",