react-native-windows 0.66.21 → 0.66.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,28 @@
|
|
|
2
2
|
"name": "react-native-windows",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 09 Jun 2022 04:18:22 GMT",
|
|
6
|
+
"tag": "react-native-windows_v0.66.22",
|
|
7
|
+
"version": "0.66.22",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "Enable Blob module with runtime option",
|
|
12
|
+
"author": "julio.rocha@microsoft.com",
|
|
13
|
+
"commit": "acda9008283ce5637feacebedec2f82603e15eb6",
|
|
14
|
+
"package": "react-native-windows"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"comment": "Change the definition of YGUndefined from NAN to __builtin_nanf(\"0\")",
|
|
18
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
19
|
+
"commit": "11cf0605630d8998ee90a2cfd3bcf07044569f62",
|
|
20
|
+
"package": "react-native-windows"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Mon, 30 May 2022 15:09:34 GMT",
|
|
6
27
|
"tag": "react-native-windows_v0.66.21",
|
|
7
28
|
"version": "0.66.21",
|
|
8
29
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
# Change Log - react-native-windows
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 09 Jun 2022 04:18:22 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.66.
|
|
7
|
+
## 0.66.22
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Thu, 09 Jun 2022 04:18:22 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- Support PreparedScriptStore for V8 Node-API. (vmorozov@microsoft.com)
|
|
13
|
+
- Enable Blob module with runtime option (julio.rocha@microsoft.com)
|
|
14
|
+
- Change the definition of YGUndefined from NAN to __builtin_nanf("0") (30809111+acoates-ms@users.noreply.github.com)
|
|
16
15
|
|
|
16
|
+
## 0.66.21
|
|
17
|
+
|
|
18
|
+
Mon, 30 May 2022 15:09:34 GMT
|
|
19
|
+
|
|
20
|
+
### Patches
|
|
21
|
+
|
|
22
|
+
- [0.66] Change CG registration for folly and fmt from `other` to `git` (jthysell@microsoft.com)
|
|
23
|
+
- Expose LoadingState on ReactContext (acoates@microsoft.com)
|
|
24
|
+
- Support PreparedScriptStore for V8 Node-API. (vmorozov@microsoft.com)
|
|
25
|
+
|
|
17
26
|
## 0.66.20
|
|
18
27
|
|
|
19
28
|
Fri, 27 May 2022 16:26:29 GMT
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include <math.h>
|
|
11
|
+
#include "YGEnums.h"
|
|
12
|
+
#include "YGMacros.h"
|
|
13
|
+
|
|
14
|
+
#if defined(_MSC_VER) && defined(__clang__)
|
|
15
|
+
#define COMPILING_WITH_CLANG_ON_WINDOWS
|
|
16
|
+
#endif
|
|
17
|
+
#if defined(COMPILING_WITH_CLANG_ON_WINDOWS)
|
|
18
|
+
#include <limits>
|
|
19
|
+
constexpr float YGUndefined = std::numeric_limits<float>::quiet_NaN();
|
|
20
|
+
#else
|
|
21
|
+
YG_EXTERN_C_BEGIN
|
|
22
|
+
|
|
23
|
+
#if defined(_MSC_VER)
|
|
24
|
+
#define YGUndefined __builtin_nanf("0")
|
|
25
|
+
#else
|
|
26
|
+
#define YGUndefined NAN
|
|
27
|
+
#endif
|
|
28
|
+
|
|
29
|
+
#endif
|
|
30
|
+
|
|
31
|
+
typedef struct YGValue {
|
|
32
|
+
float value;
|
|
33
|
+
YGUnit unit;
|
|
34
|
+
} YGValue;
|
|
35
|
+
|
|
36
|
+
YOGA_EXPORT extern const YGValue YGValueAuto;
|
|
37
|
+
YOGA_EXPORT extern const YGValue YGValueUndefined;
|
|
38
|
+
YOGA_EXPORT extern const YGValue YGValueZero;
|
|
39
|
+
|
|
40
|
+
#if !defined(COMPILING_WITH_CLANG_ON_WINDOWS)
|
|
41
|
+
YG_EXTERN_C_END
|
|
42
|
+
#endif
|
|
43
|
+
#undef COMPILING_WITH_CLANG_ON_WINDOWS
|
|
44
|
+
|
|
45
|
+
#ifdef __cplusplus
|
|
46
|
+
|
|
47
|
+
inline bool operator==(const YGValue& lhs, const YGValue& rhs) {
|
|
48
|
+
if (lhs.unit != rhs.unit) {
|
|
49
|
+
return false;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
switch (lhs.unit) {
|
|
53
|
+
case YGUnitUndefined:
|
|
54
|
+
case YGUnitAuto:
|
|
55
|
+
return true;
|
|
56
|
+
case YGUnitPoint:
|
|
57
|
+
case YGUnitPercent:
|
|
58
|
+
return lhs.value == rhs.value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
inline bool operator!=(const YGValue& lhs, const YGValue& rhs) {
|
|
65
|
+
return !(lhs == rhs);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
inline YGValue operator-(const YGValue& value) {
|
|
69
|
+
return {-value.value, value.unit};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
namespace facebook {
|
|
73
|
+
namespace yoga {
|
|
74
|
+
namespace literals {
|
|
75
|
+
|
|
76
|
+
inline YGValue operator"" _pt(long double value) {
|
|
77
|
+
return YGValue{static_cast<float>(value), YGUnitPoint};
|
|
78
|
+
}
|
|
79
|
+
inline YGValue operator"" _pt(unsigned long long value) {
|
|
80
|
+
return operator"" _pt(static_cast<long double>(value));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
inline YGValue operator"" _percent(long double value) {
|
|
84
|
+
return YGValue{static_cast<float>(value), YGUnitPercent};
|
|
85
|
+
}
|
|
86
|
+
inline YGValue operator"" _percent(unsigned long long value) {
|
|
87
|
+
return operator"" _percent(static_cast<long double>(value));
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
} // namespace literals
|
|
91
|
+
} // namespace yoga
|
|
92
|
+
} // namespace facebook
|
|
93
|
+
|
|
94
|
+
#endif
|
package/Shared/OInstance.cpp
CHANGED
|
@@ -614,20 +614,20 @@ std::vector<std::unique_ptr<NativeModule>> InstanceImpl::GetDefaultNativeModules
|
|
|
614
614
|
[]() { return std::make_unique<StatusBarManagerModule>(); },
|
|
615
615
|
nativeQueue));
|
|
616
616
|
|
|
617
|
-
//
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
617
|
+
// #10036 - Blob module not supported in UWP. Need to define property bag lifetime and onwership.
|
|
618
|
+
if (Microsoft::React::GetRuntimeOptionBool("Blob.EnableModule")) {
|
|
619
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
620
|
+
m_innerInstance,
|
|
621
|
+
Microsoft::React::GetBlobModuleName(),
|
|
622
|
+
[transitionalProps]() { return Microsoft::React::CreateBlobModule(transitionalProps); },
|
|
623
|
+
nativeQueue));
|
|
624
624
|
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
625
|
+
modules.push_back(std::make_unique<CxxNativeModule>(
|
|
626
|
+
m_innerInstance,
|
|
627
|
+
Microsoft::React::GetFileReaderModuleName(),
|
|
628
|
+
[transitionalProps]() { return Microsoft::React::CreateFileReaderModule(transitionalProps); },
|
|
629
|
+
nativeQueue));
|
|
630
|
+
}
|
|
631
631
|
|
|
632
632
|
return modules;
|
|
633
633
|
}
|