Skip to content

Implement analytics-compat package #4460

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Feb 24, 2021
Merged

Implement analytics-compat package #4460

merged 8 commits into from
Feb 24, 2021

Conversation

hsubox76
Copy link
Contributor

Create analytics-compat package wrapping analytics-exp. Did not add to firebase package - doesn't seem like most compat packages have been added to it yet.

@changeset-bot
Copy link

changeset-bot bot commented Feb 11, 2021

⚠️ No Changeset found

Latest commit: 6304140

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 12, 2021

Binary Size Report

Affected SDKs

No changes between base commit (1003b8d) and head commit (36c641e).

Test Logs

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Feb 12, 2021

Size Analysis Report

Affected Products

Diffs between base commit (1003b8d) and head commit (36c641e) are too large (85,644 characters) to display.

Please check below links to see details from the original test log.

*/

import { firebase } from '@firebase/app-compat';
import { _FirebaseNamespace } from '@firebase/app-types/private';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, we may have merge conflict with #4461 depending on which one got merged first.

@@ -226,7 +229,11 @@ export function factory(
app,
// Public methods return void for API simplicity and to better match gtag,
// while internal implementations return promises.
logEvent: (eventName, eventParams, options) => {
logEvent: (
eventName: string,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it necessary to type them explicitly? Are they not inferred by FirebaseAnalyticsInternal ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It used to be fine but after adding the logEvent overloads to analytics-types now it complains if the params aren't typed?

@Feiyang1 Feiyang1 assigned hsubox76 and unassigned Feiyang1 Feb 12, 2021
@hsubox76 hsubox76 force-pushed the ch-analytics-compat branch from 632cabe to 6304140 Compare February 23, 2021 17:11
@hsubox76 hsubox76 assigned Feiyang1 and unassigned hsubox76 Feb 23, 2021
@Feiyang1 Feiyang1 assigned hsubox76 and unassigned Feiyang1 Feb 24, 2021
@hsubox76 hsubox76 merged commit 636dd78 into master Feb 24, 2021
@hsubox76 hsubox76 deleted the ch-analytics-compat branch February 24, 2021 20:23
@firebase firebase locked and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants