-
Notifications
You must be signed in to change notification settings - Fork 929
Issue 2393 - Add environment check to Analytics Module #3165
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
Changes from 44 commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
0843a6e
updateDoc()/deleteDoc() signature fix (#3147)
schmidt-sebastian 0c426c3
Transaction/WriteBatch signature fix (#3151)
schmidt-sebastian fd0c0a3
Take WriteStream offline when IndexedDB is unavailable (#2995)
schmidt-sebastian 9512b48
Do not build firestore lite in build because it breaks regular releas…
Feiyang1 b5c7b78
add pre script for build:release (#3161)
Feiyang1 e10388c
Add setLogLevel() (#3154)
schmidt-sebastian 3ac0fe3
Add DocumentReference (#3123)
schmidt-sebastian a377c68
issue #2393 fix for analytics module
XuechunHou 5932e87
removed unnecessary sw check within isSupported method for analytics
XuechunHou 541bb0c
resolved merge conflicts
XuechunHou 0090a18
using raw indexDB api to open a dummy database
XuechunHou 8e979a3
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 7d419f1
added console log for reading code
XuechunHou 08e4a6f
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 571e514
fix for issue-2393
XuechunHou b22c1fc
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou dc75ec1
removed unused import
XuechunHou 64d8be7
fixed so that correct type of variable of errorInfo required errorFa…
XuechunHou 099816a
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou c8cc946
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou d16cbbd
fixed isSupported export
XuechunHou ad09146
addressed feedback
XuechunHou 948a5da
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou a1103e1
removed unnecessary console log
XuechunHou f341f94
removed console logs
XuechunHou 111d792
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou c9f137b
addressed feedback
XuechunHou 1fa549c
revert unrelated files
XuechunHou 9d12700
Create clean-numbers-flow.md
XuechunHou 2b00fc1
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou c5e2596
Merge branch 'issue-2393-analytics' of https://github.com/firebase/fi…
XuechunHou e30d0ec
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou d7b3359
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 12852f9
bring functions to util
XuechunHou e9eb751
convert validateIndexedDBOpenable to async
XuechunHou e00edfa
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 68387e6
trying to fix async error throwing
XuechunHou 17973b6
brought indexedDB check to factory method
XuechunHou 44e5aeb
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 1321327
fixed grammar error
XuechunHou 6debf5d
break down functions
XuechunHou 21a4f7c
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou db750f8
take indexedDB check funcitons out to factory method
XuechunHou 4dec8d9
changed error names
XuechunHou 9d46212
removed eslint comment
XuechunHou 51303b0
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 64df7e5
revert license change
XuechunHou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
"@firebase/analytics": minor | ||
"firebase": minor | ||
--- | ||
|
||
Issue 2393 fix - analytics module | ||
|
||
- Added a public method `isSupported` to Analytics module which returns true if current browser context supports initialization of analytics module. | ||
- Added runtime checks to Analytics module that validate if cookie is enabled in current browser and if current browser environment supports indexedDB functionalities. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,4 +56,4 @@ | |
], | ||
"reportDir": "./coverage/node" | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is eslint ok now if we get rid of this comment?