Vigia

将 @react-native-firebase/app 从 26.x 升级到 27.x

根据 TypeScript 类型自动比较 @react-native-firebase/app 26.4.0 与 27.0.0 的公开 API。签名变化表示可能存在不兼容变更,并非确定结论。

概要

已删除的导入路径0
已删除的导出0
已修改的签名1
已删除的类或接口成员0
已修改的类或接口成员2
新增弃用0
要求变化(engines、peer 依赖)1
新增导出2

已删除的导出

未发现。

已修改的签名

export之前之后
@react-native-firebase/app/dist/module/internal · SharedEventEmitterEventEmitterReactNativeFirebaseEventEmitter

已删除的类或接口成员

未发现。

已修改的类或接口成员

member之前之后
FirebaseModule.emitterEventEmitterReactNativeFirebaseEventEmitter
RNFBAppModuleInterface.initializeApp(options: FirebaseAppOptions, appConfig: FirebaseAppConfig): Promise<void>(options: FirebaseAppOptions, appConfig: FirebaseAppConfig): Promise<void | { options?: FirebaseAppOptions | undefined; appConfig?: FirebaseAppConfig | undefined; }>

新增弃用

未发现。

要求变化(engines、peer 依赖)

之前之后
peerDependencies.react-native*>=0.60.0-0
新增导出 (2)
importexportkind
@react-native-firebase/app/dist/module/internalgetReactNativeModulefunction
@react-native-firebase/app/dist/module/internalsetReactNativeModulefunction

这些版本之间的 changelog

软件包作者发布的文本,按原样显示。

27.0.0
### ⚠ BREAKING CHANGES

- **ios:** drop CocoaPods Firebase matrix; SPM-only
- **app, sdk:** bump Firebase Android 35, Apple 13, and JS 13
- **ml:** remove discontinued @react-native-firebase/ml package
- **app, ios:** initializeApp now reads automaticDataCollectionEnabled as a
  boolean. Previously any non-nil value (including JS false) enabled collection
  via pointer cast; false, 0, null, and absent now disable it. See
  docs/migrating-to-v27.mdx.

### Features

- **app, sdk:** bump Firebase Android 35, Apple 13, and JS 13 ([0ca03d1](https://github.com/invertase/react-native-firebase/commit/0ca03d11b0c271fb37cfbee8a0c3074a21969f0b))
- **app, sdk:** bump Firebase Android SDK to 34.19.0 ([ca054bc](https://github.com/invertase/react-native-firebase/commit/ca054bc2fdcb298575f1e7412aa8b02540d53def))
- **app, sdk:** bump Firebase iOS SDK to 12.19.0 ([95dca6a](https://github.com/invertase/react-native-firebase/commit/95dca6a4eeb849bc2910946e1477694635bee6b7))
- **app, sdk:** bump Firebase JS SDK to 12.18.0 ([5e2617d](https://github.com/invertase/react-native-firebase/commit/5e2617dcddfd55f10f441f2e9d83fe7b4681470e))
- **app, sdk:** bump Firebase JS SDK to 12.19.0 ([34d0318](https://github.com/invertase/react-native-firebase/commit/34d031849146527ab9b9ee3ba4fbd207bdab0803))
- **messaging:** add messaging_installation_id_enabled firebase.json opt-in ([e9c9741](https://github.com/invertase/react-native-firebase/commit/e9c9741a65a76cc102d2d27ff675c453fd506243))
- **ml:** remove discontinued @react-native-firebase/ml package ([58622b1](https://github.com/invertase/react-native-firebase/commit/58622b1a24a32008fd33ff56346cceb4f71bc29f))

### Bug Fixes

- **app, android:** bind nullable recent-task fields before use ([bed8c71](https://github.com/invertase/react-native-firebase/commit/bed8c71313cd3c0bf60bf9a9d86417ae550ec98f))
- **app, android:** harden RecentTaskInfo null and JSON parse ([908400b](https://github.com/invertase/react-native-firebase/commit/908400b230cfd5d7d4406da9bb350332d6bc8c4c))
- **app, expo:** match scene-based AppDelegate for Expo SDK 58 config plugin ([dce165d](https://github.com/invertase/react-native-firebase/commit/dce165d7283a30060c5b08066cf5841d9247105a))
- **app, ios:** clarify SPM static linkage error when use_frameworks is absent ([cdf99cd](https://github.com/invertase/react-native-firebase/commit/cdf99cde79d46be737b671096e1cc3af7a14f58f))
- **app, ios:** import ObjC NullSentinelDecoder in SharedUtils ([9a565c8](https://github.com/invertase/react-native-firebase/commit/9a565c879edc11c18b5c7ffca92c7f22e2b639e7))
- **app, ios:** pin SPM Firebase SDK and retain Measurement ObjC categories ([7e271af](https://github.com/invertase/react-native-firebase/commit/7e271afecab65ef150140056171265e9c9ca621c))
- **app, ios:** read automaticDataCollectionEnabled as a boolean ([cc18140](https://github.com/invertase/react-native-firebase/commit/cc181400e465895bdb012eff881209315adaed70))
- **app, ios:** tighten the dynamic Firebase probe and import

把这些数据交给你的 AI 智能体

Vigia 是免费的 MCP 服务器:你的编程智能体在写代码之前就能检查版本、不兼容变更和安全漏洞。无需注册,无需 API 密钥。

claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp

添加到 Cursor添加到 VS Code★ 在 GitHub 上加星

任何其他 MCP 客户端
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }

智能体技能(SKILL.md):告诉智能体何时使用 Vigia · 用于拉取请求的 GitHub Action

常见问题

将 @react-native-firebase/app 从 26 升级到 27 有哪些不兼容变更?

在 @react-native-firebase/app 26.4.0 与 27.0.0 之间,Vigia 发现 0 个已删除的导出、1 个已修改的签名,以及 2 个已删除或修改的类或接口成员。

@react-native-firebase/app 27 中弃用了哪些内容?

@react-native-firebase/app 27.0.0 中有 0 个导出或成员新被标记为弃用。

供智能体使用

GET https://vigia.coredls.cloud/v1/packages/npm/@react-native-firebase/app/upgrade?from=26.4.0&to=27.0.0