react-native-macos 0.66.56 → 0.66.59

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: 56,
15
+ patch: 59,
16
16
  prerelease: null,
17
17
  };
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(66),
26
- RCTVersionPatch: @(56),
26
+ RCTVersionPatch: @(59),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -81,11 +81,7 @@ NSString *RCTColorSchemePreference(NSAppearance *appearance)
81
81
  return RCTAppearanceColorSchemeLight;
82
82
  }
83
83
 
84
- if (@available(macOS 11.0, *)) {
85
- appearance = appearance ?: [NSAppearance currentDrawingAppearance];
86
- } else {
87
- appearance = appearance ?: [NSAppearance currentAppearance];
88
- }
84
+ appearance = appearance ?: [NSApp effectiveAppearance];
89
85
  NSAppearanceName appearanceName = [appearance bestMatchFromAppearancesWithNames:@[NSAppearanceNameAqua, NSAppearanceNameDarkAqua]];
90
86
  return appearances[appearanceName] ?: RCTAppearanceColorSchemeLight;
91
87
  }
@@ -115,7 +111,7 @@ RCT_EXPORT_MODULE(Appearance)
115
111
  return std::make_shared<NativeAppearanceSpecJSI>(params);
116
112
  }
117
113
 
118
- #if TARGET_OS_OSX // [TODO(macOS GH#774): on macOS don't lazy init _currentColorScheme because [NSAppearance currentAppearance] cannot be executed on background thread.
114
+ #if TARGET_OS_OSX // [TODO(macOS GH#774): on macOS don't lazy init _currentColorScheme because [NSApp effectiveAppearance] cannot be executed on background thread.
119
115
  - (instancetype)init
120
116
  {
121
117
  if (self = [super init]) {
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.66.56
1
+ VERSION_NAME=0.66.59
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", 56,
20
+ "patch", 59,
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 = 56;
20
+ int32_t Patch = 59;
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.56",
3
+ "version": "0.66.59",
4
4
  "bin": "./cli.js",
5
5
  "description": "React Native for macOS",
6
6
  "license": "MIT",
@@ -209,11 +209,13 @@
209
209
  "resolutions": {
210
210
  "async": "^3.2.2",
211
211
  "es5-ext": "0.10.53",
212
+ "shell-quote": "^1.7.3",
212
213
  "workspace-tools": "^0.18.4"
213
214
  },
214
215
  "_justification": {
215
216
  "async": "Versions of async prior to 3.2.2 are vulnerable to prototype pollution",
216
217
  "es5-ext": "Packages after 0.10.54 and at the moment up until 0.10.59 contain a protest message. A policy prevents us from using packages with protestware, therefore downgrading to the latest release without the message.",
218
+ "shell-quote": "Versions prior to 1.7.3 have an RCE vulnerability. Should be removable once we upgrade CLI tools to ^8.0.0 with RN 0.69.",
217
219
  "workspace-tools": "Versions prior to 0.18.4 are vulnerable to command injection and prototype pollution attacks"
218
220
  }
219
221
  }
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "dependencies": {
13
13
  "react": "17.0.2",
14
- "react-native": "0.66.56"
14
+ "react-native": "0.66.59"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@babel/core": "^7.12.9",