@react-native-firebase/analytics 21.1.1 → 21.3.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,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
+ ## [21.3.0](https://github.com/invertase/react-native-firebase/compare/v21.2.0...v21.3.0) (2024-10-31)
7
+
8
+ ### Features
9
+
10
+ - **analytics:** allow custom event parameters for Item in events ([d55e891](https://github.com/invertase/react-native-firebase/commit/d55e891064d7343788526f688d303dd01c2484c4))
11
+
12
+ ## [21.2.0](https://github.com/invertase/react-native-firebase/compare/v21.1.1...v21.2.0) (2024-10-22)
13
+
14
+ **Note:** Version bump only for package @react-native-firebase/analytics
15
+
6
16
  ## [21.1.1](https://github.com/invertase/react-native-firebase/compare/v21.1.0...v21.1.1) (2024-10-22)
7
17
 
8
18
  ### Bug Fixes
@@ -311,6 +311,12 @@ describe('Analytics', function () {
311
311
  }),
312
312
  ).toThrowError('firebase.analytics().logAddToWishlist(*):');
313
313
  });
314
+
315
+ it('items accept arbitrary custom event parameters', function () {
316
+ expect(() =>
317
+ firebase.analytics().logAddToWishlist({ items: [{ foo: 'bar' }] }),
318
+ ).not.toThrow();
319
+ });
314
320
  });
315
321
 
316
322
  describe('logBeginCheckout()', function () {
package/lib/index.d.ts CHANGED
@@ -141,6 +141,11 @@ export namespace FirebaseAnalyticsTypes {
141
141
  * The promotion name associated with the item.
142
142
  */
143
143
  promotion_name?: string;
144
+ /**
145
+ * Custom event parameters. The parameter names can be up to 40 characters long and must start with an alphabetic character and contain only alphanumeric characters and underscores. String parameter values can be up to 100 characters long.
146
+ * The "firebase_", "google_" and "ga_" prefixes are reserved and should not be used for parameter names.
147
+ */
148
+ [key: string]: string | number;
144
149
  }
145
150
 
146
151
  export interface AddPaymentInfoEventParameters {
package/lib/structs.js CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import struct from '@react-native-firebase/app/lib/common/struct';
17
17
 
18
- const Item = struct({
18
+ const Item = struct.interface({
19
19
  item_brand: 'string?',
20
20
  item_id: 'string?',
21
21
  item_name: 'string?',
package/lib/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- module.exports = '21.1.1';
2
+ module.exports = '21.3.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-firebase/analytics",
3
- "version": "21.1.1",
3
+ "version": "21.3.0",
4
4
  "author": "Invertase <oss@invertase.io> (http://invertase.io)",
5
5
  "description": "React Native Firebase - The analytics module provides out of the box support with Google Analytics for Firebase. Integration with the Android & iOS allows for in-depth analytical insight reporting, such as device information, location, user actions and more.",
6
6
  "main": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "analytics"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@react-native-firebase/app": "21.1.1"
25
+ "@react-native-firebase/app": "21.3.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
29
29
  },
30
- "gitHead": "f75b60e50a906664ad121c92a3c3d11cff7c1fdd"
30
+ "gitHead": "88d33627112c9c0a6f022379de5ce61dfb9bbc0e"
31
31
  }