react-native-windows 0.66.14 → 0.66.15

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, 28 Feb 2022 16:14:04 GMT",
5
+ "date": "Mon, 14 Mar 2022 15:13:26 GMT",
6
+ "tag": "react-native-windows_v0.66.15",
7
+ "version": "0.66.15",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Safe re-entrancy for EnsureHermesLoaded",
12
+ "author": "tudor.mihai@microsoft.com",
13
+ "commit": "7c9bdabed0af6a90c72ea1840efa5b6f00200627",
14
+ "package": "react-native-windows"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 28 Feb 2022 16:14:18 GMT",
6
21
  "tag": "react-native-windows_v0.66.14",
7
22
  "version": "0.66.14",
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, 28 Feb 2022 16:14:04 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 14 Mar 2022 15:13:26 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.66.14
7
+ ## 0.66.15
8
8
 
9
- Mon, 28 Feb 2022 16:14:04 GMT
9
+ Mon, 14 Mar 2022 15:13:26 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Enable TurboModule Promise completion from any thread (#9595) (vmorozov@microsoft.com)
13
+ - Safe re-entrancy for EnsureHermesLoaded (tudor.mihai@microsoft.com)
14
14
 
15
+ ## 0.66.14
16
+
17
+ Mon, 28 Feb 2022 16:14:18 GMT
18
+
19
+ ### Patches
20
+
21
+ - Enable TurboModule Promise completion from any thread (#9595) (vmorozov@microsoft.com)
22
+
15
23
  ## 0.66.13
16
24
 
17
25
  Thu, 24 Feb 2022 16:40:08 GMT
@@ -39,8 +39,12 @@ constexpr const char *dumpSampledTraceToFileSymbol =
39
39
  "?dumpSampledTraceToFile@HermesRuntime@hermes@facebook@@SAXABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z";
40
40
  #endif
41
41
 
42
+ static std::once_flag s_hermesLoading;
43
+
42
44
  static void EnsureHermesLoaded() noexcept {
43
- if (!s_hermesModule) {
45
+ std::call_once(s_hermesLoading, []() {
46
+ VerifyElseCrashSz(!s_hermesModule, "Invalid state: \"hermes.dll\" being loaded again.");
47
+
44
48
  s_hermesModule = LoadLibrary(L"hermes.dll");
45
49
  VerifyElseCrashSz(s_hermesModule, "Could not load \"hermes.dll\"");
46
50
 
@@ -59,7 +63,7 @@ static void EnsureHermesLoaded() noexcept {
59
63
  s_dumpSampledTraceToFile = reinterpret_cast<decltype(s_dumpSampledTraceToFile)>(
60
64
  GetProcAddress(s_hermesModule, dumpSampledTraceToFileSymbol));
61
65
  VerifyElseCrash(s_dumpSampledTraceToFile);
62
- }
66
+ });
63
67
  }
64
68
 
65
69
  std::unique_ptr<facebook::hermes::HermesRuntime> makeHermesRuntime(const hermes::vm::RuntimeConfig &runtimeConfig) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.66.14",
3
+ "version": "0.66.15",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",