react-native-windows 0.66.19 → 0.66.20

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": "Tue, 24 May 2022 21:08:42 GMT",
5
+ "date": "Fri, 27 May 2022 16:26:16 GMT",
6
+ "tag": "react-native-windows_v0.66.20",
7
+ "version": "0.66.20",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "Fix RuntimeOptions for RNW Desktop",
12
+ "author": "vmorozov@microsoft.com",
13
+ "commit": "927b021179ee739610d6ddc81624f30adb4a2d7b",
14
+ "package": "react-native-windows"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Tue, 24 May 2022 21:08:55 GMT",
6
21
  "tag": "react-native-windows_v0.66.19",
7
22
  "version": "0.66.19",
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 Tue, 24 May 2022 21:08:42 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 27 May 2022 16:26:16 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.66.19
7
+ ## 0.66.20
8
8
 
9
- Tue, 24 May 2022 21:08:42 GMT
9
+ Fri, 27 May 2022 16:26:16 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Implement Blob module (#9352) (julio@rochsquadron.net)
13
+ - Fix RuntimeOptions for RNW Desktop (vmorozov@microsoft.com)
14
14
 
15
+ ## 0.66.19
16
+
17
+ Tue, 24 May 2022 21:08:55 GMT
18
+
19
+ ### Patches
20
+
21
+ - Implement Blob module (#9352) (julio@rochsquadron.net)
22
+
15
23
  ## 0.66.18
16
24
 
17
25
  Mon, 02 May 2022 15:10:52 GMT
@@ -94,7 +94,7 @@ void __cdecl MicrosoftReactSetRuntimeOptionString(const char *name, const char *
94
94
  g_runtimeOptionStrings.erase(name);
95
95
  }
96
96
 
97
- const bool __cdecl MicrosoftReactGetRuntimeOptionBool(const char *name) noexcept {
97
+ bool __cdecl MicrosoftReactGetRuntimeOptionBool(const char *name) noexcept {
98
98
  scoped_lock lock{g_runtimeOptionsMutex};
99
99
  auto itr = g_runtimeOptionInts.find(name);
100
100
  if (itr != g_runtimeOptionInts.end())
@@ -103,7 +103,7 @@ const bool __cdecl MicrosoftReactGetRuntimeOptionBool(const char *name) noexcept
103
103
  return false;
104
104
  }
105
105
 
106
- const int32_t __cdecl MicrosoftReactGetRuntimeOptionInt(const char *name) noexcept {
106
+ int32_t __cdecl MicrosoftReactGetRuntimeOptionInt(const char *name) noexcept {
107
107
  scoped_lock lock{g_runtimeOptionsMutex};
108
108
  auto itr = g_runtimeOptionInts.find(name);
109
109
  if (itr != g_runtimeOptionInts.end())
@@ -112,7 +112,10 @@ const int32_t __cdecl MicrosoftReactGetRuntimeOptionInt(const char *name) noexce
112
112
  return 0;
113
113
  }
114
114
 
115
- void MicrosoftReactGetRuntimeOptionString(const char *name, MicrosoftReactGetStringCallback callBack, void *state) {
115
+ void __cdecl MicrosoftReactGetRuntimeOptionString(
116
+ const char *name,
117
+ MicrosoftReactGetStringCallback callBack,
118
+ void *state) {
116
119
  scoped_lock lock{g_runtimeOptionsMutex};
117
120
  auto itr = g_runtimeOptionStrings.find(name);
118
121
  if (itr != g_runtimeOptionStrings.cend()) {
@@ -3,6 +3,10 @@
3
3
 
4
4
  #pragma once
5
5
 
6
+ #ifdef __cplusplus
7
+ extern "C" {
8
+ #endif
9
+
6
10
  /// <summary>
7
11
  /// Sets a global boolean value identified by an arbitrary string.
8
12
  /// </summary>
@@ -26,14 +30,14 @@ void __cdecl MicrosoftReactSetRuntimeOptionString(const char *name, const char *
26
30
  /// </summary>
27
31
  /// <param name="name">Global boolean key</param>
28
32
  /// <returns>Value stored for the given key, or false if the entry doesn't exist (default)</returns>
29
- const bool __cdecl MicrosoftReactGetRuntimeOptionBool(const char *name) noexcept;
33
+ bool __cdecl MicrosoftReactGetRuntimeOptionBool(const char *name) noexcept;
30
34
 
31
35
  /// <summary>
32
36
  /// Retrieves a global boolean value for the given key.
33
37
  /// </summary>
34
38
  /// <param name="name">Global key</param>
35
39
  /// <returns>Value stored for the given key, or 0 if the entry doesn't exist (default)</returns>
36
- const int32_t __cdecl MicrosoftReactGetRuntimeOptionInt(const char *name) noexcept;
40
+ int32_t __cdecl MicrosoftReactGetRuntimeOptionInt(const char *name) noexcept;
37
41
 
38
42
  /// <param name="buffer">String contents. nullptr if none found</param>
39
43
  /// <param name="length">String length. 0 if none found</param>
@@ -46,4 +50,11 @@ typedef void(__cdecl *MicrosoftReactGetStringCallback)(const char *buffer, size_
46
50
  /// <param name="name">Global key</param>
47
51
  /// <param name="callBack">Handler used to access the obtained string</param>
48
52
  /// <param name="state">Arbitrary data to pass on to or retrieve from callBack</param>
49
- void MicrosoftReactGetRuntimeOptionString(const char *name, MicrosoftReactGetStringCallback callBack, void *state);
53
+ void __cdecl MicrosoftReactGetRuntimeOptionString(
54
+ const char *name,
55
+ MicrosoftReactGetStringCallback callBack,
56
+ void *state);
57
+
58
+ #ifdef __cplusplus
59
+ }
60
+ #endif
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-windows",
3
- "version": "0.66.19",
3
+ "version": "0.66.20",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",