react-native-macos 0.76.7 → 0.76.9

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.
Files changed (64) hide show
  1. package/Libraries/AppDelegate/RCTAppSetupUtils.mm +1 -1
  2. package/Libraries/AppDelegate/React-RCTAppDelegate.podspec +1 -0
  3. package/Libraries/Blob/React-RCTBlob.podspec +3 -1
  4. package/Libraries/Components/TextInput/TextInput.d.ts +16 -0
  5. package/Libraries/Components/TextInput/TextInput.flow.js +2 -0
  6. package/Libraries/Components/TextInput/TextInput.js +4 -0
  7. package/Libraries/Core/ReactNativeVersion.js +1 -1
  8. package/Libraries/Network/FormData.js +11 -3
  9. package/Libraries/Network/RCTDataRequestHandler.mm +24 -13
  10. package/Libraries/Network/RCTFileRequestHandler.mm +25 -14
  11. package/React/Base/RCTVersion.m +1 -1
  12. package/React/CoreModules/React-CoreModules.podspec +9 -10
  13. package/React/CxxModule/RCTCxxMethod.mm +10 -2
  14. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.h +1 -1
  15. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +1 -5
  16. package/React/Fabric/Surface/RCTFabricSurface.mm +1 -0
  17. package/React/React-RCTFabric.podspec +1 -0
  18. package/React/third-party.xcconfig +1 -1
  19. package/React-Core.podspec +2 -1
  20. package/ReactAndroid/api/ReactAndroid.api +1 -1
  21. package/ReactAndroid/build.gradle.kts +24 -0
  22. package/ReactAndroid/gradle.properties +1 -1
  23. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/DevSupportManagerBase.java +3 -1
  24. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/HMRClient.java +4 -1
  25. package/ReactAndroid/src/main/java/com/facebook/react/fabric/FabricUIManager.java +13 -8
  26. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  27. package/ReactAndroid/src/main/jni/CMakeLists.txt +1 -0
  28. package/ReactAndroid/src/main/jni/third-party/fast_float/CMakeLists.txt +13 -0
  29. package/ReactAndroid/src/main/jni/third-party/folly/CMakeLists.txt +5 -6
  30. package/ReactCommon/React-Fabric.podspec +2 -1
  31. package/ReactCommon/React-FabricComponents.podspec +3 -1
  32. package/ReactCommon/React-FabricImage.podspec +7 -5
  33. package/ReactCommon/ReactCommon.podspec +9 -8
  34. package/ReactCommon/cxxreact/CxxNativeModule.cpp +6 -3
  35. package/ReactCommon/cxxreact/React-cxxreact.podspec +11 -10
  36. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  37. package/ReactCommon/hermes/React-hermes.podspec +7 -6
  38. package/ReactCommon/jsi/React-jsi.podspec +4 -3
  39. package/ReactCommon/jsiexecutor/React-jsiexecutor.podspec +7 -6
  40. package/ReactCommon/jsinspector-modern/React-jsinspector.podspec +4 -4
  41. package/ReactCommon/react/nativemodule/core/platform/ios/React-NativeModulesApple.podspec +1 -1
  42. package/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModule.mm +24 -13
  43. package/ReactCommon/react/nativemodule/samples/ReactCommon-Samples.podspec +3 -1
  44. package/ReactCommon/react/renderer/debug/React-rendererdebug.podspec +4 -2
  45. package/ReactCommon/react/renderer/graphics/React-graphics.podspec +4 -2
  46. package/ReactCommon/react/renderer/imagemanager/platform/ios/React-ImageManager.podspec +1 -0
  47. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.h +24 -3
  48. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm +1 -41
  49. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTTextLayoutManager.mm +4 -5
  50. package/ReactCommon/reactperflogger/React-perflogger.podspec +1 -0
  51. package/cli.js +11 -2
  52. package/gradle/libs.versions.toml +3 -2
  53. package/package.json +8 -8
  54. package/react-native.config.js +24 -23
  55. package/scripts/cocoapods/codegen_utils.rb +1 -2
  56. package/scripts/cocoapods/helpers.rb +13 -1
  57. package/scripts/cocoapods/new_architecture.rb +1 -0
  58. package/scripts/cocoapods/utils.rb +2 -0
  59. package/scripts/react_native_pods.rb +14 -0
  60. package/third-party-podspecs/RCT-Folly.podspec +16 -7
  61. package/third-party-podspecs/fast_float.podspec +29 -0
  62. package/third-party-podspecs/fmt.podspec +2 -2
  63. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec-generated.mm +0 -2354
  64. package/React/FBReactNativeSpec/FBReactNativeSpec/FBReactNativeSpec.h +0 -2820
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-macos",
3
- "version": "0.76.7",
3
+ "version": "0.76.9",
4
4
  "description": "React Native for macOS",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -111,13 +111,13 @@
111
111
  },
112
112
  "dependencies": {
113
113
  "@jest/create-cache-key-function": "^29.6.3",
114
- "@react-native-mac/virtualized-lists": "0.76.6",
115
- "@react-native/assets-registry": "0.76.7",
116
- "@react-native/codegen": "0.76.7",
117
- "@react-native/community-cli-plugin": "0.76.7",
118
- "@react-native/gradle-plugin": "0.76.7",
119
- "@react-native/js-polyfills": "0.76.7",
120
- "@react-native/normalize-colors": "0.76.7",
114
+ "@react-native-mac/virtualized-lists": "0.76.7",
115
+ "@react-native/assets-registry": "0.76.9",
116
+ "@react-native/codegen": "0.76.9",
117
+ "@react-native/community-cli-plugin": "0.76.9",
118
+ "@react-native/gradle-plugin": "0.76.9",
119
+ "@react-native/js-polyfills": "0.76.9",
120
+ "@react-native/normalize-colors": "0.76.9",
121
121
  "abort-controller": "^3.0.0",
122
122
  "anser": "^1.4.9",
123
123
  "ansi-regex": "^5.0.0",
@@ -20,9 +20,24 @@
20
20
 
21
21
  const verbose = process.env.DEBUG && process.env.DEBUG.includes('react-native');
22
22
 
23
+ function findCommunityPlatformPackage(spec, startDir = process.cwd()) {
24
+ // In monorepos, we cannot make any assumptions on where
25
+ // `@react-native-community/*` gets installed. The safest way to find it
26
+ // (barring adding an optional peer dependency) is to start from the project
27
+ // root.
28
+ //
29
+ // Note that we're assuming that the current working directory is the project
30
+ // root. This is also what `@react-native-community/cli` assumes (see
31
+ // https://github.com/react-native-community/cli/blob/14.x/packages/cli-tools/src/findProjectRoot.ts).
32
+ const main = require.resolve(spec, {paths: [startDir]});
33
+ return require(main);
34
+ }
35
+
23
36
  let android;
24
37
  try {
25
- android = require('@react-native-community/cli-platform-android');
38
+ android = findCommunityPlatformPackage(
39
+ '@react-native-community/cli-platform-android',
40
+ );
26
41
  } catch {
27
42
  if (verbose) {
28
43
  console.warn(
@@ -33,7 +48,9 @@ try {
33
48
 
34
49
  let ios;
35
50
  try {
36
- ios = require('@react-native-community/cli-platform-ios');
51
+ ios = findCommunityPlatformPackage(
52
+ '@react-native-community/cli-platform-ios',
53
+ );
37
54
  } catch {
38
55
  if (verbose) {
39
56
  console.warn(
@@ -58,27 +75,11 @@ try {
58
75
  const macosCommands = require('./local-cli/runMacOS/runMacOS'); // [macOS]
59
76
  const commands = [];
60
77
 
61
- try {
62
- const {
63
- bundleCommand,
64
- startCommand,
65
- } = require('@react-native/community-cli-plugin');
66
- commands.push(bundleCommand, startCommand);
67
- } catch (e) {
68
- const known =
69
- e.code === 'MODULE_NOT_FOUND' &&
70
- e.message.includes('@react-native-community/cli-server-api');
71
-
72
- if (!known) {
73
- throw e;
74
- }
75
-
76
- if (verbose) {
77
- console.warn(
78
- '@react-native-community/cli-server-api not found, the react-native.config.js may be unusable.',
79
- );
80
- }
81
- }
78
+ const {
79
+ bundleCommand,
80
+ startCommand,
81
+ } = require('@react-native/community-cli-plugin');
82
+ commands.push(bundleCommand, startCommand);
82
83
 
83
84
  const codegenCommand = {
84
85
  name: 'codegen',
@@ -80,13 +80,12 @@ class CodegenUtils
80
80
  "\"$(PODS_ROOT)/boost\"",
81
81
  "\"$(PODS_ROOT)/RCT-Folly\"",
82
82
  "\"$(PODS_ROOT)/DoubleConversion\"",
83
+ "\"$(PODS_ROOT)/fast_float/include\"",
83
84
  "\"$(PODS_ROOT)/fmt/include\"",
84
85
  "\"${PODS_ROOT}/Headers/Public/ReactCodegen/react/renderer/components\"",
85
86
  "\"$(PODS_ROOT)/Headers/Private/React-Fabric\"",
86
87
  "\"$(PODS_ROOT)/Headers/Private/React-RCTFabric\"",
87
88
  "\"$(PODS_ROOT)/Headers/Private/Yoga\"",
88
- "\"$(PODS_ROOT)/DoubleConversion\"",
89
- "\"$(PODS_ROOT)/fmt/include\"",
90
89
  "\"$(PODS_TARGET_SRCROOT)\"",
91
90
  ]
92
91
  framework_search_paths = []
@@ -46,11 +46,15 @@ module Helpers
46
46
  }
47
47
 
48
48
  @@folly_config = {
49
- :version => '2024.01.01.00',
49
+ :version => '2024.10.14.00',
50
50
  :git => 'https://github.com/facebook/folly.git',
51
51
  :compiler_flags => '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -DFOLLY_CFG_NO_COROUTINES=1 -DFOLLY_HAVE_CLOCK_GETTIME=1 -Wno-comma -Wno-shorten-64-to-32'
52
52
  }
53
53
 
54
+ @@fast_float_config = {
55
+ :git => "https://github.com/fastfloat/fast_float.git",
56
+ }
57
+
54
58
  @@fmt_config = {
55
59
  :git => "https://github.com/fmtlib/fmt.git",
56
60
  }
@@ -89,6 +93,14 @@ module Helpers
89
93
  @@folly_config.update(new_folly_config)
90
94
  end
91
95
 
96
+ def self.fast_float_config
97
+ return @@fast_float_config
98
+ end
99
+
100
+ def self.set_fast_float_config(new_fast_float_config)
101
+ @@fast_float_config.update(new_fast_float_config)
102
+ end
103
+
92
104
  def self.boost_config
93
105
  return @@boost_config
94
106
  end
@@ -83,6 +83,7 @@ class NewArchitectureHelper
83
83
  header_search_paths = ["\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/Headers/Private/Yoga\""]
84
84
  if ENV['USE_FRAMEWORKS']
85
85
  header_search_paths << "\"$(PODS_ROOT)/DoubleConversion\""
86
+ header_search_paths << "\"$(PODS_ROOT)/fast_float/include\""
86
87
  header_search_paths << "\"$(PODS_ROOT)/fmt/include\""
87
88
  ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-graphics", "React_graphics", ["react/renderer/graphics/platform/ios"])
88
89
  .concat(ReactNativePodsUtils.create_header_search_path_for_frameworks("PODS_CONFIGURATION_BUILD_DIR", "React-Fabric", "React_Fabric", ["react/renderer/components/view/platform/cxx"]))
@@ -576,6 +576,7 @@ class ReactNativePodsUtils
576
576
  ReactNativePodsUtils.update_header_paths_if_depends_on(target_installation_result, "RCT-Folly", [
577
577
  "\"$(PODS_ROOT)/RCT-Folly\"",
578
578
  "\"$(PODS_ROOT)/DoubleConversion\"",
579
+ "\"$(PODS_ROOT)/fast_float/include\"",
579
580
  "\"$(PODS_ROOT)/fmt/include\"",
580
581
  "\"$(PODS_ROOT)/boost\""
581
582
  ])
@@ -651,6 +652,7 @@ class ReactNativePodsUtils
651
652
  "ReactCommon",
652
653
  "Yoga",
653
654
  "boost",
655
+ "fast_float",
654
656
  "fmt",
655
657
  "glog",
656
658
  "hermes-engine",
@@ -168,6 +168,7 @@ def use_react_native! (
168
168
  pod 'DoubleConversion', :podspec => "#{prefix}/third-party-podspecs/DoubleConversion.podspec"
169
169
  pod 'glog', :podspec => "#{prefix}/third-party-podspecs/glog.podspec"
170
170
  pod 'boost', :podspec => "#{prefix}/third-party-podspecs/boost.podspec"
171
+ pod 'fast_float', :podspec => "#{prefix}/third-party-podspecs/fast_float.podspec"
171
172
  pod 'fmt', :podspec => "#{prefix}/third-party-podspecs/fmt.podspec"
172
173
  pod 'RCT-Folly', :podspec => "#{prefix}/third-party-podspecs/RCT-Folly.podspec", :modular_headers => true
173
174
  pod 'SocketRocket', :podspec => "#{prefix}/third-party-podspecs/SocketRocket.podspec", :modular_headers => true # [visionOS]
@@ -293,6 +294,13 @@ def get_glog_config()
293
294
  return Helpers::Constants.glog_config
294
295
  end
295
296
 
297
+ # This method returns an hash with the fast_float git url
298
+ # that can be used to configure libraries.
299
+ # @return an hash with the `:git` field.
300
+ def get_fast_float_config()
301
+ return Helpers::Constants.fast_float_config
302
+ end
303
+
296
304
  # This method returns an hash with the fmt git url
297
305
  # that can be used to configure libraries.
298
306
  # @return an hash with the `:git` field.
@@ -332,6 +340,12 @@ def set_glog_config(glog_config)
332
340
  Helpers::Constants.set_glog_config(glog_config)
333
341
  end
334
342
 
343
+ # This method can be used to set the fast_float config
344
+ # that can be used to configure libraries.
345
+ def set_fast_float_config(fmt_config)
346
+ Helpers::Constants.set_fast_float_config(fast_float_config)
347
+ end
348
+
335
349
  # This method can be used to set the fmt config
336
350
  # that can be used to configure libraries.
337
351
  def set_fmt_config(fmt_config)
@@ -23,7 +23,8 @@ Pod::Spec.new do |spec|
23
23
  spec.dependency 'boost'
24
24
  spec.dependency 'DoubleConversion'
25
25
  spec.dependency 'glog'
26
- spec.dependency "fmt", "9.1.0"
26
+ spec.dependency "fast_float"
27
+ spec.dependency "fmt"
27
28
  spec.compiler_flags = folly_compiler_flags + ' -DFOLLY_HAVE_PTHREAD=1 -Wno-documentation -faligned-new'
28
29
  spec.source_files = 'folly/String.cpp',
29
30
  'folly/Conv.cpp',
@@ -34,18 +35,19 @@ Pod::Spec.new do |spec|
34
35
  'folly/lang/ToAscii.cpp',
35
36
  'folly/ScopeGuard.cpp',
36
37
  'folly/Unicode.cpp',
37
- 'folly/dynamic.cpp',
38
- 'folly/json.cpp',
39
- 'folly/json_pointer.cpp',
38
+ 'folly/json/dynamic.cpp',
39
+ 'folly/json/json.cpp',
40
+ 'folly/json/json_pointer.cpp',
40
41
  'folly/container/detail/F14Table.cpp',
41
42
  'folly/detail/Demangle.cpp',
42
43
  'folly/detail/FileUtilDetail.cpp',
43
44
  'folly/detail/SplitStringSimd.cpp',
45
+ 'folly/detail/StaticSingletonManager.cpp',
44
46
  'folly/detail/UniqueInstance.cpp',
45
47
  'folly/hash/SpookyHashV2.cpp',
46
- 'folly/lang/Assume.cpp',
47
48
  'folly/lang/CString.cpp',
48
49
  'folly/lang/Exception.cpp',
50
+ 'folly/memory/ReentrantAllocator.cpp',
49
51
  'folly/memory/detail/MallocImpl.cpp',
50
52
  'folly/net/NetOps.cpp',
51
53
  'folly/portability/SysUio.cpp',
@@ -53,11 +55,15 @@ Pod::Spec.new do |spec|
53
55
  'folly/system/AtFork.cpp',
54
56
  'folly/system/ThreadId.cpp',
55
57
  'folly/*.h',
58
+ 'folly/algorithm/simd/*.h',
59
+ 'folly/algorithm/simd/detail/*.h',
60
+ 'folly/chrono/*.h',
56
61
  'folly/container/*.h',
57
62
  'folly/container/detail/*.h',
58
63
  'folly/detail/*.h',
59
64
  'folly/functional/*.h',
60
65
  'folly/hash/*.h',
66
+ 'folly/json/*.h',
61
67
  'folly/lang/*.h',
62
68
  'folly/memory/*.h',
63
69
  'folly/memory/detail/*.h',
@@ -68,11 +74,15 @@ Pod::Spec.new do |spec|
68
74
 
69
75
  # workaround for https://github.com/facebook/react-native/issues/14326
70
76
  spec.preserve_paths = 'folly/*.h',
77
+ 'folly/algorithm/simd/*.h',
78
+ 'folly/algorithm/simd/detail/*.h',
79
+ 'folly/chrono/*.h',
71
80
  'folly/container/*.h',
72
81
  'folly/container/detail/*.h',
73
82
  'folly/detail/*.h',
74
83
  'folly/functional/*.h',
75
84
  'folly/hash/*.h',
85
+ 'folly/json/*.h',
76
86
  'folly/lang/*.h',
77
87
  'folly/memory/*.h',
78
88
  'folly/memory/detail/*.h',
@@ -84,7 +94,7 @@ Pod::Spec.new do |spec|
84
94
  spec.pod_target_xcconfig = { "USE_HEADERMAP" => "NO",
85
95
  "DEFINES_MODULE" => "YES",
86
96
  "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
87
- "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fmt/include\"",
97
+ "HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/fast_float/include\" \"$(PODS_ROOT)/fmt/include\"",
88
98
  # In dynamic framework (use_frameworks!) mode, ignore the unused and undefined boost symbols when generating the library.
89
99
  "OTHER_LDFLAGS" => "\"-Wl,-U,_jump_fcontext\" \"-Wl,-U,_make_fcontext\""
90
100
  }
@@ -105,7 +115,6 @@ Pod::Spec.new do |spec|
105
115
  'folly/concurrency/CacheLocality.cpp',
106
116
  'folly/detail/Futex.cpp',
107
117
  'folly/synchronization/ParkingLot.cpp',
108
- 'folly/portability/Malloc.cpp',
109
118
  'folly/concurrency/CacheLocality.h',
110
119
  'folly/synchronization/*.h',
111
120
  'folly/system/ThreadId.h'
@@ -0,0 +1,29 @@
1
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
2
+ #
3
+ # This source code is licensed under the MIT license found in the
4
+ # LICENSE file in the root directory of this source tree.
5
+
6
+ fast_float_config = get_fast_float_config()
7
+ fast_float_git_url = fast_float_config[:git]
8
+
9
+ Pod::Spec.new do |spec|
10
+ spec.name = "fast_float"
11
+ spec.version = "6.1.4"
12
+ spec.license = { :type => "MIT" }
13
+ spec.homepage = "https://github.com/fastfloat/fast_float"
14
+ spec.summary = "{fast_float} is an open-source number parsing library for C++. The library provides fast header-only implementations."
15
+ spec.authors = "The fast_float contributors"
16
+ spec.source = {
17
+ :git => fast_float_git_url,
18
+ :tag => "v6.1.4"
19
+ }
20
+ spec.pod_target_xcconfig = {
21
+ "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
22
+ "GCC_WARN_INHIBIT_ALL_WARNINGS" => "YES" # Disable warnings because we don't control this library
23
+ }
24
+ spec.platforms = min_supported_versions
25
+ spec.libraries = "c++"
26
+ spec.public_header_files = "include/fast_float/*.h"
27
+ spec.header_mappings_dir = "include"
28
+ spec.source_files = ["include/fast_float/*.h"]
29
+ end
@@ -8,14 +8,14 @@ fmt_git_url = fmt_config[:git]
8
8
 
9
9
  Pod::Spec.new do |spec|
10
10
  spec.name = "fmt"
11
- spec.version = "9.1.0"
11
+ spec.version = "11.0.2"
12
12
  spec.license = { :type => "MIT" }
13
13
  spec.homepage = "https://github.com/fmtlib/fmt"
14
14
  spec.summary = "{fmt} is an open-source formatting library for C++. It can be used as a safe and fast alternative to (s)printf and iostreams."
15
15
  spec.authors = "The fmt contributors"
16
16
  spec.source = {
17
17
  :git => fmt_git_url,
18
- :tag => "9.1.0"
18
+ :tag => "11.0.2"
19
19
  }
20
20
  spec.pod_target_xcconfig = {
21
21
  "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),