Skip to content

Commit 1f7be0b

Browse files
[RN][Changelog] Mark two v0.89.0-rc.0 entries as breaking
## Summary: Moves two v0.89.0-rc.0 changelog entries to Breaking. Both stop existing libraries from building without a change on their side, as found while upgrading Expo to 0.89.0-rc.0 (expo/expo#52979): - #59619 was under Deprecated. The deprecated `invokeJavaMethod` overload fails the build of libraries that ship pre-generated JNI codegen, because codegen CMake builds with `-Werror` (react-native-svg 15.16.0, react-native-maps 1.29.11). - #59405 was under Changed. `constantsToExport` is now nonnull, so Swift overrides declared `-> [AnyHashable : Any]!` no longer compile (lottie-react-native 7.5.0). The entries also say what to change. ## Changelog: [INTERNAL] - Mark two v0.89.0-rc.0 changelog entries as breaking ## Test Plan: N/A, changelog only. The diff moves the two entries and removes one blank line; the rest of `CHANGELOG.md` is unchanged. Differential Revision: D129979450 Pull Request resolved: #59810
1 parent 4a851dd commit 1f7be0b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@
2020
- **New Architecture**: Remove `DefaultNewArchitectureEntryPoint.bridgelessEnabled` and the deprecated three-argument `load(turboModulesEnabled, fabricEnabled, bridgelessEnabled)` overload; bridgeless is always enabled in the New Architecture ([9b18b951ea](https://github.com/react/react-native/commit/9b18b951ea1fac8ef585c13e070e95739f7d0f1e) by [@christophpurrer](https://github.com/christophpurrer))
2121
- **New Architecture**: Remove `DefaultNewArchitectureEntryPoint.fabricEnabled`, `turboModulesEnabled`, `concurrentReactEnabled` and `isConfigurationValid` ([ca2e11af51](https://github.com/react/react-native/commit/ca2e11af51280611fe4740b8b472f4b29a826a7b) by [@christophpurrer](https://github.com/christophpurrer))
2222
- **Text**: Add `lineBreak` and `wordBreak` props to `Text` (CSS `line-break` / `word-break`) for strict/loose line breaking and phrase-based breaking on Android 13+ ([f736393946](https://github.com/react/react-native/commit/f7363939465e03f61016c5b872a45e99fe49ee85) by [@iray-tno](https://github.com/iray-tno))
23+
- **TurboModules**: Libraries that ship pre-generated JNI codegen fail to build until they regenerate it with 0.89's codegen: the `JavaTurboModule::invokeJavaMethod` overload with a `cachedMethodID` argument is deprecated, and codegen CMake builds with `-Werror`. ([f78bdd4aea](https://github.com/react/react-native/commit/f78bdd4aea8fde1eaaf2024ea210ff2188876f51) by [@hryhoriiK97](https://github.com/hryhoriiK97))
2324

2425
#### iOS specific
2526

2627
- **Animated**: Delete legacy RCTNativeAnimatedModule from RN iOS ([46662327fb](https://github.com/react/react-native/commit/46662327fb96554a12845927b5efcd2305dfd88f) by [@christophpurrer](https://github.com/christophpurrer))
2728
- **CocoaPods**: Install `React-cxxreact` headers under `cxxreact/` inside its framework when `USE_FRAMEWORKS` is enabled. Pods that include `<cxxreact/...>` without calling `install_modules_dependencies` must add `React_cxxreact.framework/Headers` to `HEADER_SEARCH_PATHS`. ([0a92baec87](https://github.com/react/react-native/commit/0a92baec8775f43b9bdc39540e894f1af486916c) by [@j-piasecki](https://github.com/j-piasecki))
2829
- **New Architecture**: Remove the deprecated `bridgelessEnabled` property and the deprecated `initWithBundleURLBlock:newArchEnabled:turboModuleEnabled:bridgelessEnabled:` / `initWithBundleURL:newArchEnabled:turboModuleEnabled:bridgelessEnabled:` initializers from `RCTRootViewFactoryConfiguration`; bridgeless is always enabled ([2a9eca81b8](https://github.com/react/react-native/commit/2a9eca81b8d05142a59f4e41fc40e87813668016) by [@christophpurrer](https://github.com/christophpurrer))
2930
- **TurboModules**: `+moduleName` is now optional on `RCTBridgeModule` instead of required, so a TurboModule resolved via a module provider need not declare it ([373385efc9](https://github.com/react/react-native/commit/373385efc934b3e2246afaf73d2c4c4afa6120e3) by [@christophpurrer](https://github.com/christophpurrer))
31+
- **TurboModules**: `RCTBridgeModule.h` now has nullability annotations. `constantsToExport` is nonnull, so a Swift override declared `-> [AnyHashable : Any]!` no longer compiles: declare it `-> [AnyHashable : Any]`. Module and view registry lookups, `methodsToExport`, promise resolve and reject arguments and weak module properties such as `bridge` are now `nullable`. ([08f96fefe4](https://github.com/react/react-native/commit/08f96fefe474037351ee66fe9f911f95aaf466f3) by generatedunixname1608173377072046)
3032

3133
### Added
3234

@@ -125,14 +127,11 @@
125127
- **SwiftPM**: `spm add` and `spm update` write React Native's build settings to `ReactNativeSPM/ReactNativeSPM.xcconfig` and its build scripts to `ReactNativeSPM/Scripts/`, so a version bump no longer changes `project.pbxproj`. A configuration that uses its own xcconfig must now `#include` the generated file, and a target setting that hides React Native's value must add `$(inherited)`. `spm` prints the exact fix in both cases. ([6a2c7c2734](https://github.com/react/react-native/commit/6a2c7c27342d16cab93e398f950ad5b5565d2942) by [@chrfalch](https://github.com/chrfalch))
126128
- **Text**: Build a paragraph's NSAttributedString without copying each text fragment or re-attributing its runs ([7fc58f2192](https://github.com/react/react-native/commit/7fc58f2192f1920bea56f448a14e12bc7de0c980) by [@hryhoriiK97](https://github.com/hryhoriiK97))
127129
- **Text**: Pass `AttributedString` by const reference in `RCTTextLayoutManager` and add a move constructor for `AttributedStringBox`. ([0ffaff80a3](https://github.com/react/react-native/commit/0ffaff80a3b03b657c8f99da18959360bb1db581) by [@dheerajkoppu](https://github.com/dheerajkoppu))
128-
- **TurboModules**: Add nullability annotations to `RCTBridgeModule.h`. Module registry and view registry lookups, `methodsToExport`, promise resolve/reject arguments, and weak module properties such as `bridge` and `moduleRegistry` are now `nullable`. `methodQueue` is now nonnull, so Swift overrides must be declared as `DispatchQueue` rather than `DispatchQueue!`. ([08f96fefe4](https://github.com/react/react-native/commit/08f96fefe474037351ee66fe9f911f95aaf466f3) by generatedunixname1608173377072046)
129130
- **TurboModules**: Look up each TurboModule method's signature once instead of on every call ([1d1fade902](https://github.com/react/react-native/commit/1d1fade90235e0533d5bb24c50ec3ae2b42194fa) by [@hryhoriiK97](https://github.com/hryhoriiK97))
130131
- **TurboModules**: Strings passed from JS to native modules convert faster ([ed15270c6c](https://github.com/react/react-native/commit/ed15270c6c76b5256a258de94bff0e05161b6ddf) by [@hryhoriiK97](https://github.com/hryhoriiK97))
131132

132133
### Deprecated
133134

134-
- **TurboModules**: `JavaTurboModule::invokeJavaMethod` with a `cachedMethodID` argument; use the overload without it ([f78bdd4aea](https://github.com/react/react-native/commit/f78bdd4aea8fde1eaaf2024ea210ff2188876f51) by [@hryhoriiK97](https://github.com/hryhoriiK97))
135-
136135
#### Android specific
137136

138137
- **UIManager**: Deprecate the legacy View-based surface lifecycle methods in `UIManager`. ([d4d0813969](https://github.com/react/react-native/commit/d4d0813969cd5b8fef1fb6307981d99b2ae6b195) by [@javache](https://github.com/javache))

0 commit comments

Comments
 (0)