@office-iss/react-native-win32 0.71.16 → 0.71.17

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": "Mon, 11 Sep 2023 15:13:15 GMT",
5
+ "date": "Tue, 03 Oct 2023 02:36:38 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.71.17",
7
+ "version": "0.71.17",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "julio.rocha@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "2dabf59f4f401cba6b7f83ec350bd79cb82fed19",
14
+ "comment": "Have RCTNetworking.win32 fork RCTNetworking.ios (#12199)"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 11 Sep 2023 15:13:29 GMT",
6
21
  "tag": "@office-iss/react-native-win32_v0.71.16",
7
22
  "version": "0.71.16",
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 Mon, 11 Sep 2023 15:13:15 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 03 Oct 2023 02:36:38 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.71.16
7
+ ## 0.71.17
8
8
 
9
- Mon, 11 Sep 2023 15:13:15 GMT
9
+ Tue, 03 Oct 2023 02:36:38 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
13
+ - Have RCTNetworking.win32 fork RCTNetworking.ios (#12199) (julio.rocha@microsoft.com)
14
14
 
15
+ ## 0.71.16
16
+
17
+ Mon, 11 Sep 2023 15:13:29 GMT
18
+
19
+ ### Patches
20
+
21
+ - Webpack assets do not prefix paths with /, which causes a lost char in asset path (30809111+acoates-ms@users.noreply.github.com)
22
+
15
23
  ## 0.71.15
16
24
 
17
25
  Mon, 28 Aug 2023 15:14:29 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
@@ -319,10 +319,10 @@
319
319
  "baseHash": "a14d9698dc312aaba608b2877349d4c54600b56c"
320
320
  },
321
321
  {
322
- "type": "derived",
322
+ "type": "copy",
323
323
  "file": "src/Libraries/Network/RCTNetworking.win32.js",
324
- "baseFile": "Libraries/Network/RCTNetworking.android.js",
325
- "baseHash": "391a7efd0d2529eb536c1c7cf852f5ee538ff0b6",
324
+ "baseFile": "Libraries/Network/RCTNetworking.ios.js",
325
+ "baseHash": "b9d169d83ea1ccd04321190896b5e5e02809f940",
326
326
  "issue": 4318
327
327
  },
328
328
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@office-iss/react-native-win32",
3
- "version": "0.71.16",
3
+ "version": "0.71.17",
4
4
  "description": "Implementation of react native on top of Office's Win32 platform.",
5
5
  "license": "MIT",
6
6
  "main": "./index.win32.js",