@office-iss/react-native-win32 0.72.5 → 0.72.7
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,37 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 16 Oct 2023 23:50:25 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.72.7",
|
|
7
|
+
"version": "0.72.7",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "jthysell@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "9cf08d5f6bc6d07b1490a6ead29994a7e14ad1ef",
|
|
14
|
+
"comment": "Integrate RN 0.72.6"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 09 Oct 2023 15:13:27 GMT",
|
|
21
|
+
"tag": "@office-iss/react-native-win32_v0.72.6",
|
|
22
|
+
"version": "0.72.6",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "julio.rocha@microsoft.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "2255827c0902a9740b9e029ce22f02fb445093e1",
|
|
29
|
+
"comment": "Have RCTNetworking.win32 fork RCTNetworking.ios (#12199)"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Wed, 27 Sep 2023 21:02:34 GMT",
|
|
6
36
|
"tag": "@office-iss/react-native-win32_v0.72.5",
|
|
7
37
|
"version": "0.72.5",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 16 Oct 2023 23:50:25 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.72.
|
|
7
|
+
## 0.72.7
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Mon, 16 Oct 2023 23:50:25 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Integrate RN 0.72.6 (jthysell@microsoft.com)
|
|
14
14
|
|
|
15
|
+
## 0.72.6
|
|
16
|
+
|
|
17
|
+
Mon, 09 Oct 2023 15:13:27 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Have RCTNetworking.win32 fork RCTNetworking.ios (#12199) (julio.rocha@microsoft.com)
|
|
22
|
+
|
|
23
|
+
## 0.72.5
|
|
24
|
+
|
|
25
|
+
Wed, 27 Sep 2023 21:02:34 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Bump react-native dependency to 0.72.5 (30809111+acoates-ms@users.noreply.github.com)
|
|
30
|
+
|
|
15
31
|
## 0.72.4
|
|
16
32
|
|
|
17
33
|
Mon, 11 Sep 2023 15:14:55 GMT
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
3
|
-
*
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and 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.
|
|
4
6
|
*
|
|
5
7
|
* @flow strict-local
|
|
6
8
|
* @format
|
|
@@ -9,11 +11,10 @@
|
|
|
9
11
|
'use strict';
|
|
10
12
|
|
|
11
13
|
import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter';
|
|
12
|
-
const RCTNetworkingNative =
|
|
13
|
-
require('../BatchedBridge/NativeModules').Networking; // [Windows]
|
|
14
|
-
import {type NativeResponseType} from './XMLHttpRequest';
|
|
15
|
-
import convertRequestBody, {type RequestBody} from './convertRequestBody';
|
|
16
14
|
import {type EventSubscription} from '../vendor/emitter/EventEmitter';
|
|
15
|
+
import convertRequestBody, {type RequestBody} from './convertRequestBody';
|
|
16
|
+
import NativeNetworkingIOS from './NativeNetworkingIOS';
|
|
17
|
+
import {type NativeResponseType} from './XMLHttpRequest';
|
|
17
18
|
|
|
18
19
|
type RCTNetworkingEventDefinitions = $ReadOnly<{
|
|
19
20
|
didSendNetworkData: [
|
|
@@ -61,11 +62,6 @@ type RCTNetworkingEventDefinitions = $ReadOnly<{
|
|
|
61
62
|
],
|
|
62
63
|
}>;
|
|
63
64
|
|
|
64
|
-
let _requestId = 1;
|
|
65
|
-
function generateRequestId(): number {
|
|
66
|
-
return _requestId++;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
65
|
const RCTNetworking = {
|
|
70
66
|
addListener<K: $Keys<RCTNetworkingEventDefinitions>>(
|
|
71
67
|
eventType: K,
|
|
@@ -88,13 +84,11 @@ const RCTNetworking = {
|
|
|
88
84
|
callback: (requestId: number) => void,
|
|
89
85
|
withCredentials: boolean,
|
|
90
86
|
) {
|
|
91
|
-
const requestId = generateRequestId();
|
|
92
87
|
const body = convertRequestBody(data);
|
|
93
|
-
|
|
88
|
+
NativeNetworkingIOS.sendRequest(
|
|
94
89
|
{
|
|
95
90
|
method,
|
|
96
91
|
url,
|
|
97
|
-
requestId,
|
|
98
92
|
data: {...body, trackingName},
|
|
99
93
|
headers,
|
|
100
94
|
responseType,
|
|
@@ -107,11 +101,11 @@ const RCTNetworking = {
|
|
|
107
101
|
},
|
|
108
102
|
|
|
109
103
|
abortRequest(requestId: number) {
|
|
110
|
-
|
|
104
|
+
NativeNetworkingIOS.abortRequest(requestId);
|
|
111
105
|
},
|
|
112
106
|
|
|
113
107
|
clearCookies(callback: (result: boolean) => void) {
|
|
114
|
-
|
|
108
|
+
NativeNetworkingIOS.clearCookies(callback);
|
|
115
109
|
},
|
|
116
110
|
};
|
|
117
111
|
|
|
@@ -109,7 +109,9 @@ export default class EventEmitter<TEventToArgsMap: {...}>
|
|
|
109
109
|
Registration<$ElementType<TEventToArgsMap, TEvent>>,
|
|
110
110
|
> = this._registry[eventType];
|
|
111
111
|
if (registrations != null) {
|
|
112
|
-
|
|
112
|
+
// Copy `registrations` to take a snapshot when we invoke `emit`, in case
|
|
113
|
+
// registrations are added or removed when listeners are invoked.
|
|
114
|
+
for (const registration of Array.from(registrations)) {
|
|
113
115
|
registration.listener.apply(registration.context, args);
|
|
114
116
|
}
|
|
115
117
|
}
|
package/overrides.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"**/__snapshots__/**",
|
|
8
8
|
"src/rntypes/**"
|
|
9
9
|
],
|
|
10
|
-
"baseVersion": "0.72.
|
|
10
|
+
"baseVersion": "0.72.6",
|
|
11
11
|
"overrides": [
|
|
12
12
|
{
|
|
13
13
|
"type": "derived",
|
|
@@ -343,10 +343,10 @@
|
|
|
343
343
|
"baseHash": "daeb879969c322e67efcb9595d6bb171b9dad6d8"
|
|
344
344
|
},
|
|
345
345
|
{
|
|
346
|
-
"type": "
|
|
346
|
+
"type": "copy",
|
|
347
347
|
"file": "src/Libraries/Network/RCTNetworking.win32.js",
|
|
348
|
-
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.
|
|
349
|
-
"baseHash": "
|
|
348
|
+
"baseFile": "packages/react-native/Libraries/Network/RCTNetworking.ios.js",
|
|
349
|
+
"baseHash": "39fc8e1003b0f6345ec4fea060f455d06939a321",
|
|
350
350
|
"issue": 4318
|
|
351
351
|
},
|
|
352
352
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.7",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"just-scripts": "^1.3.3",
|
|
84
84
|
"prettier": "^2.4.1",
|
|
85
85
|
"react": "18.2.0",
|
|
86
|
-
"react-native": "0.72.
|
|
86
|
+
"react-native": "0.72.6",
|
|
87
87
|
"react-native-platform-override": "^1.9.4",
|
|
88
88
|
"typescript": "^4.9.5"
|
|
89
89
|
},
|