@react-native-firebase/ml 18.4.0 → 18.6.0
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 +10 -0
- package/android/build.gradle +1 -1
- package/lib/index.js +2 -0
- package/lib/modular/index.d.ts +14 -0
- package/lib/modular/index.js +17 -0
- package/lib/version.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,16 @@
|
|
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
|
+
## [18.6.0](https://github.com/invertase/react-native-firebase/compare/v18.5.0...v18.6.0) (2023-10-26)
|
7
|
+
|
8
|
+
### Features
|
9
|
+
|
10
|
+
- **ml:** add modular API ([2d8ac14](https://github.com/invertase/react-native-firebase/commit/2d8ac144a14e79ce1846ecab077f8d7b69d11f05))
|
11
|
+
|
12
|
+
## [18.5.0](https://github.com/invertase/react-native-firebase/compare/v18.4.0...v18.5.0) (2023-09-22)
|
13
|
+
|
14
|
+
**Note:** Version bump only for package @react-native-firebase/ml
|
15
|
+
|
6
16
|
## [18.4.0](https://github.com/invertase/react-native-firebase/compare/v18.3.2...v18.4.0) (2023-09-11)
|
7
17
|
|
8
18
|
**Note:** Version bump only for package @react-native-firebase/ml
|
package/android/build.gradle
CHANGED
package/lib/index.js
CHANGED
@@ -33,6 +33,8 @@ class FirebaseMLModule extends FirebaseModule {}
|
|
33
33
|
// import { SDK_VERSION } from '@react-native-firebase/ml';
|
34
34
|
export const SDK_VERSION = version;
|
35
35
|
|
36
|
+
export * from './modular';
|
37
|
+
|
36
38
|
// import ML from '@react-native-firebase/ml';
|
37
39
|
// ml().X(...);
|
38
40
|
export default createModuleNamespace({
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { ReactNativeFirebase } from '@react-native-firebase/app';
|
2
|
+
import { FirebaseMLTypes } from '..';
|
3
|
+
|
4
|
+
type FirebaseApp = ReactNativeFirebase.Module;
|
5
|
+
type FirebaseML = FirebaseMLTypes.Module;
|
6
|
+
|
7
|
+
/**
|
8
|
+
* Returns the existing default {@link FirebaseML} instance that is associated with the
|
9
|
+
* default {@link @firebase/app#FirebaseApp}. If no instance exists, initializes a new
|
10
|
+
* instance with default settings.
|
11
|
+
*
|
12
|
+
* @returns The {@link FirebaseML} instance of the provided app.
|
13
|
+
*/
|
14
|
+
export declare function getML(app?: FirebaseApp): FirebaseML;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { firebase } from '..';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @typedef {import('@react-native-firebase/app').ReactNativeFirebase.Module} FirebaseApp
|
5
|
+
* @typedef {import('..').FirebaseMLTypes.Module} FirebaseML
|
6
|
+
*/
|
7
|
+
|
8
|
+
/**
|
9
|
+
* @param {FirebaseApp | undefined} app
|
10
|
+
* @returns {FirebaseML}
|
11
|
+
*/
|
12
|
+
export function getML(app) {
|
13
|
+
if (app) {
|
14
|
+
return firebase.ml(app);
|
15
|
+
}
|
16
|
+
return firebase.ml();
|
17
|
+
}
|
package/lib/version.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
// Generated by genversion.
|
2
|
-
module.exports = '18.
|
2
|
+
module.exports = '18.6.0';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-native-firebase/ml",
|
3
|
-
"version": "18.
|
3
|
+
"version": "18.6.0",
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
5
5
|
"description": "React Native Firebase - Firebase ML brings the power of machine learning vision to your React Native application, supporting both Android & iOS.",
|
6
6
|
"main": "lib/index.js",
|
@@ -26,10 +26,10 @@
|
|
26
26
|
"image labeler"
|
27
27
|
],
|
28
28
|
"peerDependencies": {
|
29
|
-
"@react-native-firebase/app": "18.
|
29
|
+
"@react-native-firebase/app": "18.6.0"
|
30
30
|
},
|
31
31
|
"publishConfig": {
|
32
32
|
"access": "public"
|
33
33
|
},
|
34
|
-
"gitHead": "
|
34
|
+
"gitHead": "adbbd4171adb1e3c2306da1285520abbaf9313b8"
|
35
35
|
}
|