@office-iss/react-native-win32 0.71.15 → 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,37 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 28 Aug 2023 15:14:00 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",
21
+ "tag": "@office-iss/react-native-win32_v0.71.16",
22
+ "version": "0.71.16",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "30809111+acoates-ms@users.noreply.github.com",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "18112893dd511de823af08cc36b01b818cb305f1",
29
+ "comment": "Webpack assets do not prefix paths with /, which causes a lost char in asset path"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Mon, 28 Aug 2023 15:14:29 GMT",
6
36
  "tag": "@office-iss/react-native-win32_v0.71.15",
7
37
  "version": "0.71.15",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,18 +1,34 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 28 Aug 2023 15:14:00 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.15
7
+ ## 0.71.17
8
8
 
9
- Mon, 28 Aug 2023 15:14:00 GMT
9
+ Tue, 03 Oct 2023 02:36:38 GMT
10
10
 
11
11
  ### Patches
12
12
 
13
- - fix a11yState and add support for aria-required and -multiselectable (krsiler@microsoft.com)
14
- - Remove flow usage from saveAssetPlugin codeflow (30809111+acoates-ms@users.noreply.github.com)
13
+ - Have RCTNetworking.win32 fork RCTNetworking.ios (#12199) (julio.rocha@microsoft.com)
15
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
+
23
+ ## 0.71.15
24
+
25
+ Mon, 28 Aug 2023 15:14:29 GMT
26
+
27
+ ### Patches
28
+
29
+ - fix a11yState and add support for aria-required and -multiselectable (krsiler@microsoft.com)
30
+ - Remove flow usage from saveAssetPlugin codeflow (30809111+acoates-ms@users.noreply.github.com)
31
+
16
32
  ## 0.71.14
17
33
 
18
34
  Fri, 11 Aug 2023 00:26:16 GMT
@@ -90,10 +90,13 @@ class AssetResolverLateScaleResolution {
90
90
  }
91
91
 
92
92
  _getBasePath(local: boolean) {
93
+ let basePath = this._resolver.asset.httpServerLocation;
94
+ if (basePath[0] === '/') {
95
+ basePath = basePath.substr(1);
96
+ }
97
+
93
98
  if (local) {
94
- const safePath = this._resolver.asset.httpServerLocation
95
- .substr(1)
96
- .replace(/\.\.\//g, '_');
99
+ const safePath = basePath.replace(/\.\.\//g, '_');
97
100
  // If this asset was created with the newer saveAssetPlugin, then we should shorten the path
98
101
  // This conditional is added to allow back compat of older bundles which might have been created without the saveAssetPlugin
99
102
  if (this._resolver.asset.__useShortPath) {
@@ -102,10 +105,6 @@ class AssetResolverLateScaleResolution {
102
105
  return safePath;
103
106
  }
104
107
 
105
- let basePath = this._resolver.asset.httpServerLocation;
106
- if (basePath[0] === '/') {
107
- basePath = basePath.substr(1);
108
- }
109
108
  return basePath;
110
109
  }
111
110
 
@@ -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.15",
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",