@office-iss/react-native-win32 0.73.0-preview.1 → 0.73.0-preview.2
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 +16 -1
- package/CHANGELOG.md +12 -4
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/LogBox/Data/LogBoxData.js +2 -1
- package/Libraries/NativeComponent/NativeComponentRegistry.js +10 -4
- package/Libraries/promiseRejectionTrackingOptions.js +21 -7
- package/overrides.json +1 -1
- package/package.json +6 -6
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Tue,
|
|
5
|
+
"date": "Tue, 24 Oct 2023 18:22:06 GMT",
|
|
6
|
+
"version": "0.73.0-preview.2",
|
|
7
|
+
"tag": "@office-iss/react-native-win32_v0.73.0-preview.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "tatianakapos@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "dabdd032de98a0ab220ccc417146c073d439d87c",
|
|
14
|
+
"comment": "integrate 0.73-rc3"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Tue, 17 Oct 2023 22:26:52 GMT",
|
|
6
21
|
"version": "0.73.0-preview.1",
|
|
7
22
|
"tag": "@office-iss/react-native-win32_v0.73.0-preview.1",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Tue,
|
|
3
|
+
This log was last generated on Tue, 24 Oct 2023 18:22:06 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.73.0-preview.
|
|
7
|
+
## 0.73.0-preview.2
|
|
8
8
|
|
|
9
|
-
Tue,
|
|
9
|
+
Tue, 24 Oct 2023 18:22:06 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- integrate 0.73-rc3 (tatianakapos@microsoft.com)
|
|
14
14
|
|
|
15
|
+
## 0.73.0-preview.1
|
|
16
|
+
|
|
17
|
+
Tue, 17 Oct 2023 22:26:52 GMT
|
|
18
|
+
|
|
19
|
+
### Changes
|
|
20
|
+
|
|
21
|
+
- Promote 0.73 to preview (tatianakapos@microsoft.com)
|
|
22
|
+
|
|
15
23
|
## 0.0.0-canary.218
|
|
16
24
|
|
|
17
25
|
Thu, 12 Oct 2023 05:15:53 GMT
|
|
@@ -30,6 +30,7 @@ export type LogData = $ReadOnly<{|
|
|
|
30
30
|
message: Message,
|
|
31
31
|
category: Category,
|
|
32
32
|
componentStack: ComponentStack,
|
|
33
|
+
stack?: string,
|
|
33
34
|
|}>;
|
|
34
35
|
|
|
35
36
|
export type Observer = (
|
|
@@ -198,7 +199,7 @@ export function addLog(log: LogData): void {
|
|
|
198
199
|
// otherwise spammy logs would pause rendering.
|
|
199
200
|
setImmediate(() => {
|
|
200
201
|
try {
|
|
201
|
-
const stack = parseErrorStack(errorForStackTrace?.stack);
|
|
202
|
+
const stack = parseErrorStack(log.stack ?? errorForStackTrace?.stack);
|
|
202
203
|
|
|
203
204
|
appendNewLog(
|
|
204
205
|
new LogBoxLog({
|
|
@@ -55,14 +55,20 @@ export function get<Config>(
|
|
|
55
55
|
): HostComponent<Config> {
|
|
56
56
|
ReactNativeViewConfigRegistry.register(name, () => {
|
|
57
57
|
const {native, strict, verify} = getRuntimeConfig?.(name) ?? {
|
|
58
|
-
native:
|
|
58
|
+
native: !global.RN$Bridgeless,
|
|
59
59
|
strict: false,
|
|
60
60
|
verify: false,
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
let viewConfig;
|
|
64
|
+
if (native) {
|
|
65
|
+
viewConfig = getNativeComponentAttributes(name);
|
|
66
|
+
} else {
|
|
67
|
+
viewConfig = createViewConfig(viewConfigProvider());
|
|
68
|
+
if (viewConfig == null) {
|
|
69
|
+
viewConfig = getNativeComponentAttributes(name);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
66
72
|
|
|
67
73
|
if (verify) {
|
|
68
74
|
const nativeViewConfig = native
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
import typeof {enable} from 'promise/setimmediate/rejection-tracking';
|
|
12
12
|
|
|
13
|
+
import LogBox from './LogBox/LogBox';
|
|
14
|
+
|
|
13
15
|
let rejectionTrackingOptions: $NonMaybeType<Parameters<enable>[0]> = {
|
|
14
16
|
allRejections: true,
|
|
15
17
|
onUnhandled: (id, rejection = {}) => {
|
|
@@ -34,17 +36,29 @@ let rejectionTrackingOptions: $NonMaybeType<Parameters<enable>[0]> = {
|
|
|
34
36
|
}
|
|
35
37
|
}
|
|
36
38
|
|
|
37
|
-
const warning =
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
const warning = `Possible unhandled promise rejection (id: ${id}):\n${
|
|
40
|
+
message ?? ''
|
|
41
|
+
}`;
|
|
42
|
+
if (__DEV__) {
|
|
43
|
+
LogBox.addLog({
|
|
44
|
+
level: 'warn',
|
|
45
|
+
message: {
|
|
46
|
+
content: warning,
|
|
47
|
+
substitutions: [],
|
|
48
|
+
},
|
|
49
|
+
componentStack: [],
|
|
50
|
+
stack,
|
|
51
|
+
category: 'possible_unhandled_promise_rejection',
|
|
52
|
+
});
|
|
53
|
+
} else {
|
|
54
|
+
console.warn(warning);
|
|
55
|
+
}
|
|
42
56
|
},
|
|
43
57
|
onHandled: id => {
|
|
44
58
|
const warning =
|
|
45
|
-
`Promise
|
|
59
|
+
`Promise rejection handled (id: ${id})\n` +
|
|
46
60
|
'This means you can ignore any previous messages of the form ' +
|
|
47
|
-
`"Possible
|
|
61
|
+
`"Possible unhandled promise rejection (id: ${id}):"`;
|
|
48
62
|
console.warn(warning);
|
|
49
63
|
},
|
|
50
64
|
};
|
package/overrides.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.73.0-preview.
|
|
3
|
+
"version": "0.73.0-preview.2",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"@react-native/assets": "1.0.0",
|
|
33
33
|
"@react-native/assets-registry": "^0.73.1",
|
|
34
34
|
"@react-native/codegen": "^0.73.1",
|
|
35
|
-
"@react-native/community-cli-plugin": "^0.73.
|
|
36
|
-
"@react-native/gradle-plugin": "^0.73.
|
|
35
|
+
"@react-native/community-cli-plugin": "^0.73.7",
|
|
36
|
+
"@react-native/gradle-plugin": "^0.73.2",
|
|
37
37
|
"@react-native/js-polyfills": "^0.73.1",
|
|
38
38
|
"@react-native/metro-config": "^0.73.0",
|
|
39
39
|
"@react-native/normalize-colors": "^0.73.2",
|
|
40
|
-
"@react-native/virtualized-lists": "^0.73.
|
|
40
|
+
"@react-native/virtualized-lists": "^0.73.2",
|
|
41
41
|
"abort-controller": "^3.0.0",
|
|
42
42
|
"anser": "^1.4.9",
|
|
43
43
|
"ansi-regex": "^5.0.0",
|
|
@@ -85,13 +85,13 @@
|
|
|
85
85
|
"just-scripts": "^1.3.3",
|
|
86
86
|
"prettier": "^2.4.1",
|
|
87
87
|
"react": "18.2.0",
|
|
88
|
-
"react-native": "0.73.0-rc.
|
|
88
|
+
"react-native": "0.73.0-rc.3",
|
|
89
89
|
"react-native-platform-override": "^1.9.16",
|
|
90
90
|
"typescript": "^4.9.5"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"react": "18.2.0",
|
|
94
|
-
"react-native": "0.73.0-rc.
|
|
94
|
+
"react-native": "^0.73.0-rc.3"
|
|
95
95
|
},
|
|
96
96
|
"beachball": {
|
|
97
97
|
"defaultNpmTag": "preview",
|