react-native-macos 0.74.29 → 0.74.30

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.
@@ -16,7 +16,7 @@ const version: $ReadOnly<{
16
16
  }> = {
17
17
  major: 0,
18
18
  minor: 74,
19
- patch: 29,
19
+ patch: 30,
20
20
  prerelease: null,
21
21
  };
22
22
 
@@ -23,7 +23,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
23
23
  __rnVersion = @{
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(74),
26
- RCTVersionPatch: @(29),
26
+ RCTVersionPatch: @(30),
27
27
  RCTVersionPrerelease: [NSNull null],
28
28
  };
29
29
  });
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.74.29
1
+ VERSION_NAME=0.74.30
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
 
4
4
  android.useAndroidX=true
@@ -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", 74,
20
- "patch", 29,
20
+ "patch", 30,
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 = 74;
20
- int32_t Patch = 29;
20
+ int32_t Patch = 30;
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.74.29",
3
+ "version": "0.74.30",
4
4
  "description": "React Native for macOS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -6,6 +6,7 @@
6
6
  require 'net/http'
7
7
  require 'rexml/document'
8
8
  require 'open3' # [macOS]
9
+ require 'json' # [macOS]
9
10
 
10
11
  HERMES_GITHUB_URL = "https://github.com/facebook/hermes.git"
11
12
  ENV_BUILD_FROM_SOURCE = "RCT_BUILD_HERMES_FROM_SOURCE"
@@ -238,22 +239,12 @@ end
238
239
  # [macOS react-native-macos does not publish macos specific hermes artifacts
239
240
  # so we attempt to find the latest patch version of the iOS artifacts and use that
240
241
  def findLastestVersionWithArtifact(version)
241
- versionWithoutPatch = version.match(/^(\d+\.\d+)/)
242
- xml_data, = Open3.capture3("curl -s https://repo1.maven.org/maven2/com/facebook/react/react-native-artifacts/maven-metadata.xml")
243
-
244
- metadata = REXML::Document.new(xml_data)
245
- versions = metadata.elements.to_a('//metadata/versioning/versions/version')
246
-
247
- # Extract version numbers and sort them
248
- filtered_versions = versions.select { |version| version.text.match?(/^#{versionWithoutPatch}\.\d+$/) }
249
- if filtered_versions.empty?
250
- return
251
- end
252
-
253
- version_numbers = filtered_versions.map { |version| version.text }
254
- sorted_versions = version_numbers.sort_by { |v| Gem::Version.new(v) }
255
-
256
- return sorted_versions.last
242
+ # See https://central.sonatype.org/search/rest-api-guide/ for details on query params
243
+ versionWithoutPatch = "#{version.match(/^(\d+\.\d+)/)}"
244
+ res, = Open3.capture3("curl -s https://search.maven.org/solrsearch/select?q=g:com.facebook.react+AND+a:react-native-artifacts+AND+v:#{versionWithoutPatch}.*&core=gav&rows=1&wt=json")
245
+ wt = JSON.parse(res)
246
+ response = wt['response']
247
+ return response['docs'][0]['v'] unless response['numFound'] == 0
257
248
  end
258
249
  # macOS]
259
250