@react-native-firebase/ml 20.3.0 → 20.5.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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
+ ## [20.5.0](https://github.com/invertase/react-native-firebase/compare/v20.4.0...v20.5.0) (2024-09-11)
7
+
8
+ **Note:** Version bump only for package @react-native-firebase/ml
9
+
10
+ ## [20.4.0](https://github.com/invertase/react-native-firebase/compare/v20.3.0...v20.4.0) (2024-08-13)
11
+
12
+ **Note:** Version bump only for package @react-native-firebase/ml
13
+
6
14
  ## [20.3.0](https://github.com/invertase/react-native-firebase/compare/v20.2.1...v20.3.0) (2024-07-19)
7
15
 
8
16
  **Note:** Version bump only for package @react-native-firebase/ml
@@ -0,0 +1,19 @@
1
+ import { describe, expect, it } from '@jest/globals';
2
+
3
+ import { firebase, getML } from '../lib';
4
+
5
+ describe('ml()', function () {
6
+ describe('namespace', function () {
7
+ it('accessible from firebase.app()', function () {
8
+ const app = firebase.app();
9
+ expect(app.ml).toBeDefined();
10
+ expect(app.ml().app).toEqual(app);
11
+ });
12
+ });
13
+
14
+ describe('modular', function () {
15
+ it('`getML` function is properly exposed to end user', function () {
16
+ expect(getML).toBeDefined();
17
+ });
18
+ });
19
+ });
package/lib/index.d.ts CHANGED
@@ -73,6 +73,8 @@ export const firebase: ReactNativeFirebase.Module & {
73
73
 
74
74
  export default defaultExport;
75
75
 
76
+ export * from './modular';
77
+
76
78
  /**
77
79
  * Attach namespace to `firebase.` and `FirebaseApp.`.
78
80
  */
@@ -1,7 +1,6 @@
1
- import { ReactNativeFirebase } from '@react-native-firebase/app';
1
+ import { FirebaseApp } from '@firebase/app-types';
2
2
  import { FirebaseMLTypes } from '..';
3
3
 
4
- type FirebaseApp = ReactNativeFirebase.Module;
5
4
  type FirebaseML = FirebaseMLTypes.Module;
6
5
 
7
6
  /**
@@ -1,7 +1,7 @@
1
1
  import { firebase } from '..';
2
2
 
3
3
  /**
4
- * @typedef {import('@react-native-firebase/app').ReactNativeFirebase.Module} FirebaseApp
4
+ * @typedef {import('@firebase/app').FirebaseApp} FirebaseApp
5
5
  * @typedef {import('..').FirebaseMLTypes.Module} FirebaseML
6
6
  */
7
7
 
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '20.3.0';
2
+ module.exports = '20.5.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/ml",
3
- "version": "20.3.0",
3
+ "version": "20.5.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": "20.3.0"
29
+ "@react-native-firebase/app": "20.5.0"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "a916b37b022cf40588fa0fd915b7ab901e2458d0"
34
+ "gitHead": "daf2bc9086c14bbb0e1b02a4d4274b7060263eb1"
35
35
  }