Aggiornare @react-native-firebase/messaging da 26.x a 27.x
Confronto dell’API pubblica di @react-native-firebase/messaging 26.4.0 e 27.0.0, calcolato automaticamente dai tipi TypeScript. Una firma modificata è una possibile modifica incompatibile, non una certezza.
Riepilogo
| Percorsi di import rimossi | 0 |
|---|---|
| Export rimossi | 0 |
| Firme modificate | 1 |
| Membri di classi o interfacce rimossi | 0 |
| Membri di classi o interfacce modificati | 0 |
| Nuove deprecazioni | 6 |
| Requisiti cambiati (engines, dipendenze peer) | 1 |
| Nuovi export | 8 |
Export rimossi
Nessuna rilevata.
Firme modificate
| export | Prima | Dopo |
|---|---|---|
@react-native-firebase/messaging · SDK_VERSION | "26.4.0" | "27.0.0" |
Membri di classi o interfacce rimossi
Nessuna rilevata.
Membri di classi o interfacce modificati
Nessuna rilevata.
Nuove deprecazioni
| export | @deprecated |
|---|---|
@react-native-firebase/messaging · getToken | Firebase JS 12.14+, Android Messaging 25.1+, and Apple 12.18+ deprecated FCM token APIs (`getToken`, `deleteToken`, `onTokenRefresh`) in favor of FID registration (`register` / `onRegistered`). Prefer {@link register} and {@link onRegistered} after opting in to Installation ID messaging. Token APIs … |
@react-native-firebase/messaging · Messaging.getToken | Firebase JS 12.14+, Android Messaging 25.1+, and Apple 12.18+ deprecated FCM token APIs (`getToken`, `deleteToken`, `onTokenRefresh`) in favor of FID registration (`register` / `onRegistered`). Prefer {@link Messaging.register} and {@link Messaging.onRegistered} after opting in to Installation ID me… |
@react-native-firebase/messaging · Messaging.deleteToken | Firebase JS 12.14+, Android Messaging 25.1+, and Apple 12.18+ deprecated FCM token APIs (`getToken`, `deleteToken`, `onTokenRefresh`) in favor of FID registration (`unregister` / `onUnregistered`). Prefer {@link Messaging.unregister} and {@link Messaging.onUnregistered}after opting in to Installatio… |
@react-native-firebase/messaging · Messaging.onTokenRefresh | Firebase JS 12.14+, Android Messaging 25.1+, and Apple 12.18+ deprecated FCM token APIs (`getToken`, `deleteToken`, `onTokenRefresh`) in favor of FID registration (`register` / `onRegistered`). Prefer {@link Messaging.register} and {@link Messaging.onRegistered} after opting in to Installation ID me… |
@react-native-firebase/messaging · deleteToken | Firebase JS 12.14+, Android Messaging 25.1+, and Apple 12.18+ deprecated FCM token APIs (`getToken`, `deleteToken`, `onTokenRefresh`) in favor of FID registration (`unregister` / `onUnregistered`). Prefer {@link unregister} and {@link onUnregistered} after opting in to Installation ID messaging. Tok… |
@react-native-firebase/messaging · onTokenRefresh | Firebase JS 12.14+, Android Messaging 25.1+, and Apple 12.18+ deprecated FCM token APIs (`getToken`, `deleteToken`, `onTokenRefresh`) in favor of FID registration (`register` / `onRegistered`). Prefer {@link register} and {@link onRegistered} after opting in to Installation ID messaging. Token APIs … |
Requisiti cambiati (engines, dipendenze peer)
| Prima | Dopo | |
|---|---|---|
peerDependencies.@react-native-firebase/app | 26.4.0 | 27.0.0 |
Nuovi export (8)
| import | export | kind |
|---|---|---|
@react-native-firebase/messaging | NextFn | type |
@react-native-firebase/messaging | Observer | interface |
@react-native-firebase/messaging | register | function |
@react-native-firebase/messaging | unregister | function |
@react-native-firebase/messaging | Unsubscribe | type |
@react-native-firebase/messaging | onRegistered | function |
@react-native-firebase/messaging | onUnregistered | function |
@react-native-firebase/messaging | RegisterOptions | interface |
Changelog tra queste versioni
Testo pubblicato dagli autori del pacchetto, mostrato così com’è.
27.0.0
### ⚠ BREAKING CHANGES
- **app, sdk:** bump Firebase Android 35, Apple 13, and JS 13
### Features
- **app, sdk:** bump Firebase Android 35, Apple 13, and JS 13 ([0ca03d1](https://github.com/invertase/react-native-firebase/commit/0ca03d11b0c271fb37cfbee8a0c3074a21969f0b))
- **messaging:** add FID register and onRegistered ([ca301b2](https://github.com/invertase/react-native-firebase/commit/ca301b27673fbef5270d37fc6e49aa80df80069b))
- **messaging:** add messaging_installation_id_enabled firebase.json opt-in ([e9c9741](https://github.com/invertase/react-native-firebase/commit/e9c9741a65a76cc102d2d27ff675c453fd506243))
### Bug Fixes
- **analytics, messaging:** dedupe GoogleUtilities classes under SPM dynamic frameworks ([#9327](https://github.com/invertase/react-native-firebase/issues/9327)) ([b70ba88](https://github.com/invertase/react-native-firebase/commit/b70ba889e215df4b123aacb0c830551f18b14fe8)), closes [#9322](https://github.com/invertase/react-native-firebase/issues/9322) [#9322](https://github.com/invertase/react-native-firebase/issues/9322)
- **app,database:** resolve platform native module when bundlers apply package exports ([959d91f](https://github.com/invertase/react-native-firebase/commit/959d91fc79d7155d1d9a08e1f836789e6e6d6156))
- **messaging, ios:** guard AppDelegate window access for UIScene apps ([79c2d72](https://github.com/invertase/react-native-firebase/commit/79c2d72a7a61bccd41395e8c44b32ead9810d4bc))
- **messaging, ios:** hop notification permission APIs onto the main queue ([3fde064](https://github.com/invertase/react-native-firebase/commit/3fde064e34094760a1395e8fa9753ad4917eaec7))
- **messaging, ios:** hop remaining UIApplication register APIs onto main queue ([07e4562](https://github.com/invertase/react-native-firebase/commit/07e45624f6a7be8a8a47cfb46b3fd29a0553c003))
- **messaging, ios:** normalize sent time ([0b48006](https://github.com/invertase/react-native-firebase/commit/0b4800658e4aa535563abbcd8bb12b279ad9139b))
- **messaging, ios:** port UIScene window guard after rebase ([7cd8f14](https://github.com/invertase/react-native-firebase/commit/7cd8f14ac841d4f5378bf53454b34d50493a619b))
- **messaging, ios:** read isRegisteredForRemoteNotifications on main queue in getConstants ([87a30dc](https://github.com/invertase/react-native-firebase/commit/87a30dcf07882fab22a642946048ad50702ed967))
- **messaging, ios:** serialize notification badges as strings ([c6a8e85](https://github.com/invertase/react-native-firebase/commit/c6a8e85816186189e09ac33da19078d5a6845c8a))
- **messaging, ios:** validate sent-time format ([7b39040](https://github.com/invertase/react-native-firebase/commit/7b39040bf48abdc8d8c16af81c516c9ba449a767))
- **messaging:** detect the iOS APNs environment from the provisioning profile ([56a4141](https://github.com/invertase/react-native-firebase/commit/56a414144c87f467965952ad40d9afe6365800b3))
- **messaging:** nest iOS string sounds correctly ([a34ce00](https://github.com/invertase/react-native-firebase/coDai questi dati al tuo agente IA
Vigia è un server MCP gratuito: il tuo agente di programmazione verifica versioni, modifiche incompatibili e vulnerabilità prima di scrivere codice. Senza registrazione né chiave API.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Aggiungi a CursorAggiungi a VS Code★ Stella su GitHub
Qualsiasi altro client MCP
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Skill per agenti (SKILL.md): dice all'agente quando usare Vigia · GitHub Action per le pull request
Domande frequenti
Quali sono le modifiche incompatibili aggiornando @react-native-firebase/messaging da 26 a 27?
Tra @react-native-firebase/messaging 26.4.0 e 27.0.0, Vigia ha trovato 0 export rimossi, 1 firme modificate e 0 membri di classi o interfacce rimossi o modificati.
Cosa è stato deprecato in @react-native-firebase/messaging 27?
6 export o membri risultano ora deprecati in @react-native-firebase/messaging 27.0.0.
Per gli agenti
GET https://vigia.coredls.cloud/v1/packages/npm/@react-native-firebase/messaging/upgrade?from=26.4.0&to=27.0.0