@react-native-firebase/app 23.0.1 → 23.1.1
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.
- package/CHANGELOG.md +17 -0
- package/android/src/reactnative/java/io/invertase/firebase/app/ReactNativeFirebaseVersion.java +1 -1
- package/ios/RNFBApp/RNFBVersion.m +1 -1
- package/ios_config.sh +4 -1
- package/lib/common/index.js +14 -1
- package/lib/index.d.ts +5 -0
- package/lib/internal/web/structuredClone/index.js +1 -1
- package/lib/modular/index.d.ts +11 -0
- package/lib/modular/index.js +3 -3
- package/lib/version.js +1 -1
- package/package.json +5 -5
- package/plugin/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,23 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [23.1.1](https://github.com/invertase/react-native-firebase/compare/v23.1.0...v23.1.1) (2025-08-22)
|
7
|
+
|
8
|
+
### Bug Fixes
|
9
|
+
|
10
|
+
- validate listenerOrObserver callbacks in auth, app-check, remote-config ([06dcae4](https://github.com/invertase/react-native-firebase/commit/06dcae44e29f18e7716727479fd6e6d048336d91))
|
11
|
+
|
12
|
+
## [23.1.0](https://github.com/invertase/react-native-firebase/compare/v23.0.1...v23.1.0) (2025-08-19)
|
13
|
+
|
14
|
+
### Features
|
15
|
+
|
16
|
+
- **ai:** create `ai` package, `vertexai` wraps around it ([#8555](https://github.com/invertase/react-native-firebase/issues/8555)) ([50c9e0d](https://github.com/invertase/react-native-firebase/commit/50c9e0d8a361b575c6cbf86f028165906d819162))
|
17
|
+
|
18
|
+
### Bug Fixes
|
19
|
+
|
20
|
+
- **app, ios:** fail build with error if firebase.json has syntax errors ([5c752e7](https://github.com/invertase/react-native-firebase/commit/5c752e710e39f0aad40182706a934e5979727fa1))
|
21
|
+
- **app:** adopt firebase-js-sdk 12.1.0 ([115a55c](https://github.com/invertase/react-native-firebase/commit/115a55ce85c1a4db8f8b92f4e30c86776499f6ea))
|
22
|
+
|
6
23
|
## [23.0.1](https://github.com/invertase/react-native-firebase/compare/v23.0.0...v23.0.1) (2025-08-12)
|
7
24
|
|
8
25
|
### Bug Fixes
|
package/ios_config.sh
CHANGED
@@ -88,7 +88,10 @@ done
|
|
88
88
|
|
89
89
|
if [[ ${_SEARCH_RESULT} ]]; then
|
90
90
|
_JSON_OUTPUT_RAW=$(cat "${_SEARCH_RESULT}")
|
91
|
-
_RN_ROOT_EXISTS=$(ruby -Ku -e "require '
|
91
|
+
if ! _RN_ROOT_EXISTS=$(ruby -Ku -e "require 'json'; output=JSON.parse('$_JSON_OUTPUT_RAW'); puts output[$_JSON_ROOT]"); then
|
92
|
+
echo "error: Failed to parse firebase.json, check for syntax errors."
|
93
|
+
exit 1
|
94
|
+
fi
|
92
95
|
|
93
96
|
if [[ ${_RN_ROOT_EXISTS} ]]; then
|
94
97
|
if ! python3 --version >/dev/null 2>&1; then echo "python3 not found, firebase.json file processing error." && exit 1; fi
|
package/lib/common/index.js
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
*/
|
17
17
|
import { Platform } from 'react-native';
|
18
18
|
import Base64 from './Base64';
|
19
|
-
import { isString } from './validate';
|
19
|
+
import { isFunction, isObject, isString } from './validate';
|
20
20
|
|
21
21
|
export * from './id';
|
22
22
|
export * from './path';
|
@@ -103,6 +103,19 @@ export function tryJSONStringify(data) {
|
|
103
103
|
}
|
104
104
|
}
|
105
105
|
|
106
|
+
export function parseListenerOrObserver(listenerOrObserver) {
|
107
|
+
if (!isFunction(listenerOrObserver) && !isObject(listenerOrObserver)) {
|
108
|
+
}
|
109
|
+
if (isFunction(listenerOrObserver)) {
|
110
|
+
return listenerOrObserver;
|
111
|
+
}
|
112
|
+
if (isObject(listenerOrObserver) && isFunction(listenerOrObserver.next)) {
|
113
|
+
return listenerOrObserver.next.bind(listenerOrObserver);
|
114
|
+
}
|
115
|
+
|
116
|
+
throw new Error("'listenerOrObserver' expected a function or an object with 'next' function.");
|
117
|
+
}
|
118
|
+
|
106
119
|
// Used to indicate if there is no corresponding modular function
|
107
120
|
const NO_REPLACEMENT = true;
|
108
121
|
|
package/lib/index.d.ts
CHANGED
@@ -149,6 +149,11 @@ export namespace ReactNativeFirebase {
|
|
149
149
|
*/
|
150
150
|
readonly options: FirebaseAppOptions;
|
151
151
|
|
152
|
+
/**
|
153
|
+
* The settable config flag for GDPR opt-in/opt-out
|
154
|
+
*/
|
155
|
+
automaticDataCollectionEnabled: boolean;
|
156
|
+
|
152
157
|
/**
|
153
158
|
* Make this app unusable and free up resources.
|
154
159
|
*/
|
@@ -205,7 +205,7 @@ const serializer = (strict, json, $, _) => {
|
|
205
205
|
|
206
206
|
function serialize(value, { json, lossy } = {}) {
|
207
207
|
const _ = [];
|
208
|
-
return serializer(!(json || lossy), !!json, new Map(), _)(value), _;
|
208
|
+
return (serializer(!(json || lossy), !!json, new Map(), _)(value), _);
|
209
209
|
}
|
210
210
|
|
211
211
|
let sCloneAvailable = false;
|
package/lib/modular/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ import { ReactNativeFirebase } from '..';
|
|
3
3
|
import FirebaseApp = ReactNativeFirebase.FirebaseApp;
|
4
4
|
import FirebaseAppOptions = ReactNativeFirebase.FirebaseAppOptions;
|
5
5
|
import LogLevelString = ReactNativeFirebase.LogLevelString;
|
6
|
+
import FirebaseAppConfig = ReactNativeFirebase.FirebaseAppConfig;
|
6
7
|
|
7
8
|
/**
|
8
9
|
* Renders this app unusable and frees the resources of all associated services.
|
@@ -57,6 +58,16 @@ export function getApps(): FirebaseApp[];
|
|
57
58
|
*/
|
58
59
|
export function initializeApp(options: FirebaseAppOptions, name?: string): Promise<FirebaseApp>;
|
59
60
|
|
61
|
+
/**
|
62
|
+
* Initializes a Firebase app with the provided options and config.
|
63
|
+
* @param options - Options to configure the services used in the app.
|
64
|
+
* @param config - The optional config for your firebase app.
|
65
|
+
* @returns Promise<FirebaseApp> - The initialized Firebase app.
|
66
|
+
*/
|
67
|
+
export function initializeApp(
|
68
|
+
options: FirebaseAppOptions,
|
69
|
+
config?: FirebaseAppConfig,
|
70
|
+
): Promise<FirebaseApp>;
|
60
71
|
/**
|
61
72
|
* Retrieves an instance of a Firebase app.
|
62
73
|
* @param name - The optional name of the app to return ('[DEFAULT]' if omitted).
|
package/lib/modular/index.js
CHANGED
@@ -60,11 +60,11 @@ export function getApps() {
|
|
60
60
|
/**
|
61
61
|
* Initializes a Firebase app with the provided options and name.
|
62
62
|
* @param {FirebaseAppOptions} options - Options to configure the services used in the app.
|
63
|
-
* @param {string} [
|
63
|
+
* @param {string | FirebaseAppConfig} [configOrName] - The optional name of the app, or config for the app to initialize (a name of '[DEFAULT]' will be used if omitted).
|
64
64
|
* @returns {FirebaseApp} - The initialized Firebase app.
|
65
65
|
*/
|
66
|
-
export function initializeApp(options,
|
67
|
-
return initializeAppCompat.call(null, options,
|
66
|
+
export function initializeApp(options, configOrName) {
|
67
|
+
return initializeAppCompat.call(null, options, configOrName, MODULAR_DEPRECATION_ARG);
|
68
68
|
}
|
69
69
|
|
70
70
|
/**
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '23.
|
2
|
+
module.exports = '23.1.1';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/app",
|
3
|
-
"version": "23.
|
3
|
+
"version": "23.1.1",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "A well tested, feature rich Firebase implementation for React Native, supporting iOS & Android. Individual module support for Admob, Analytics, Auth, Crash Reporting, Cloud Firestore, Database, Dynamic Links, Functions, Messaging (FCM), Remote Config, Storage and more.",
|
6
6
|
"main": "lib/index.js",
|
@@ -57,11 +57,11 @@
|
|
57
57
|
"react-native": "*"
|
58
58
|
},
|
59
59
|
"dependencies": {
|
60
|
-
"firebase": "12.
|
60
|
+
"firebase": "12.1.0"
|
61
61
|
},
|
62
62
|
"devDependencies": {
|
63
|
-
"@react-native-async-storage/async-storage": "^2.
|
64
|
-
"expo": "^
|
63
|
+
"@react-native-async-storage/async-storage": "^2.2.0",
|
64
|
+
"expo": "^53.0.20"
|
65
65
|
},
|
66
66
|
"peerDependenciesMeta": {
|
67
67
|
"expo": {
|
@@ -91,5 +91,5 @@
|
|
91
91
|
"firebaseAppDistributionGradle": "5.1.2"
|
92
92
|
}
|
93
93
|
},
|
94
|
-
"gitHead": "
|
94
|
+
"gitHead": "1cdb412427e0c909ede08f5fed5c6b512e9fb5d5"
|
95
95
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/copyGoogleServices.ts","./src/android/index.ts","./src/ios/appDelegate.ts","./src/ios/googleServicesPlist.ts","./src/ios/index.ts"],"version":"5.
|
1
|
+
{"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/copyGoogleServices.ts","./src/android/index.ts","./src/ios/appDelegate.ts","./src/ios/googleServicesPlist.ts","./src/ios/index.ts"],"version":"5.9.2"}
|