react-native-macos 0.66.47 → 0.66.48

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.
@@ -12,6 +12,6 @@
12
12
  exports.version = {
13
13
  major: 0,
14
14
  minor: 66,
15
- patch: 47,
15
+ patch: 48,
16
16
  prerelease: null,
17
17
  };
@@ -540,10 +540,33 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
540
540
  // ]TODO(macOS ISS#2323203)
541
541
  }
542
542
 
543
+ // [TODO(macOS GH#774)
544
+ // We've seen a rare ASan crash where _inputStream seems to be invalid. This is just a safety check.
545
+ #if DEBUG
546
+ [self _validateStream:_outputStream name:@"_outputStream"];
547
+ [self _validateStream:_inputStream name:@"_inputStream"];
548
+ #endif
549
+ // ]TODO(macOS GH#774)
550
+
543
551
  [_outputStream open];
544
552
  [_inputStream open];
545
553
  }
546
554
 
555
+ // [TODO(macOS GH#774)
556
+ #if DEBUG
557
+ - (void)_validateStream:(NSStream *)stream name:(NSString *)name {
558
+ NSStreamStatus status = stream.streamStatus;
559
+ if (status != NSStreamStatusNotOpen) {
560
+ RCTLogWarn(@"%@ was already opened, why are we opening it again? status=%@", name, @(status));
561
+ }
562
+
563
+ if (stream.delegate == nil) {
564
+ RCTLogError(@"%@'s delegate is nil, did we clean it up too early?", name);
565
+ }
566
+ }
567
+ #endif
568
+ // ]TODO(macOS GH#774)
569
+
547
570
  - (void)scheduleInRunLoop:(NSRunLoop *)aRunLoop forMode:(NSString *)mode
548
571
  {
549
572
  [_outputStream scheduleInRunLoop:aRunLoop forMode:mode];
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(66),
26
- RCTVersionPatch: @(47),
26
+ RCTVersionPatch: @(48),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.66.47
1
+ VERSION_NAME=0.66.48
2
2
  GROUP=com.facebook.react
3
3
 
4
4
  POM_NAME=ReactNative
@@ -17,6 +17,6 @@ public class ReactNativeVersion {
17
17
  public static final Map<String, Object> VERSION = MapBuilder.<String, Object>of(
18
18
  "major", 0,
19
19
  "minor", 66,
20
- "patch", 47,
20
+ "patch", 48,
21
21
  "prerelease", null);
22
22
  }
@@ -17,7 +17,7 @@ namespace facebook::react {
17
17
  constexpr struct {
18
18
  int32_t Major = 0;
19
19
  int32_t Minor = 66;
20
- int32_t Patch = 47;
20
+ int32_t Patch = 48;
21
21
  std::string_view Prerelease = "";
22
22
  } ReactNativeVersion;
23
23
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.66.47",
3
+ "version": "0.66.48",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.66.47"
14
+ "react-native": "0.66.48"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",