@office-iss/react-native-win32 0.72.5 → 0.72.6

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": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 27 Sep 2023 21:02:07 GMT",
5
+ "date": "Mon, 09 Oct 2023 15:13:04 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.72.6",
7
+ "version": "0.72.6",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "julio.rocha@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "2255827c0902a9740b9e029ce22f02fb445093e1",
14
+ "comment": "Have RCTNetworking.win32 fork RCTNetworking.ios (#12199)"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 27 Sep 2023 21:02:34 GMT",
6
21
  "tag": "@office-iss/react-native-win32_v0.72.5",
7
22
  "version": "0.72.5",
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 Wed, 27 Sep 2023 21:02:07 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 09 Oct 2023 15:13:04 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.72.5
7
+ ## 0.72.6
8
8
 
9
- Wed, 27 Sep 2023 21:02:07 GMT
9
+ Mon, 09 Oct 2023 15:13:04 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Bump react-native dependency to 0.72.5 (30809111+acoates-ms@users.noreply.github.com)
13
+ - Have RCTNetworking.win32 fork RCTNetworking.ios (#12199) (julio.rocha@microsoft.com)
14
14
 
15
+ ## 0.72.5
16
+
17
+ Wed, 27 Sep 2023 21:02:34 GMT
18
+
19
+ ### Patches
20
+
21
+ - Bump react-native dependency to 0.72.5 (30809111+acoates-ms@users.noreply.github.com)
22
+
15
23
  ## 0.72.4
16
24
 
17
25
  Mon, 11 Sep 2023 15:14:55 GMT
@@ -1,6 +1,8 @@
1
1
  /**
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
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
- RCTNetworkingNative.sendRequest(
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
- RCTNetworkingNative.abortRequest(requestId);
104
+ NativeNetworkingIOS.abortRequest(requestId);
111
105
  },
112
106
 
113
107
  clearCookies(callback: (result: boolean) => void) {
114
- RCTNetworkingNative.clearCookies(callback);
108
+ NativeNetworkingIOS.clearCookies(callback);
115
109
  },
116
110
  };
117
111
 
package/overrides.json CHANGED
@@ -343,10 +343,10 @@
343
343
  "baseHash": "daeb879969c322e67efcb9595d6bb171b9dad6d8"
344
344
  },
345
345
  {
346
- "type": "derived",
346
+ "type": "copy",
347
347
  "file": "src/Libraries/Network/RCTNetworking.win32.js",
348
- "baseFile": "packages/react-native/Libraries/Network/RCTNetworking.android.js",
349
- "baseHash": "67d0d4757fcd7a1c2c0f6de642f713f0fa300e28",
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.5",
3
+ "version": "0.72.6",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "repository": {
6
6
  "type": "git",