-
Notifications
You must be signed in to change notification settings - Fork 945
Point browser field to esm build #3932
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
Changes from all commits
c61836d
950ca15
c6ff691
8c0c867
5807bba
130763d
87033ed
77accf5
5e26aa3
6a314f8
3422efd
7d536d0
1cf00d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
"@firebase/app": patch | ||
"@firebase/auth": patch | ||
"@firebase/component": patch | ||
"@firebase/database": patch | ||
"firebase": major | ||
"@firebase/firestore": patch | ||
"@firebase/functions": patch | ||
"@firebase/performance": patch | ||
"@firebase/remote-config": patch | ||
"rxfire": patch | ||
"@firebase/util": patch | ||
--- | ||
|
||
Point browser field to esm build. Now you need to use default import instead of namespace import to import firebase. | ||
|
||
Before this change | ||
``` | ||
import * as firebase from 'firebase/app'; | ||
``` | ||
|
||
After this change | ||
``` | ||
import firebase from 'firebase/app'; | ||
``` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "The primary entrypoint to the Firebase JS SDK", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "dist/index.node.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"react-native": "dist/index.rn.cjs.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@firebase/auth", | ||
"version": "0.15.0", | ||
"main": "dist/auth.js", | ||
"browser": "dist/auth.js", | ||
"browser": "dist/auth.esm.js", | ||
"module": "dist/auth.esm.js", | ||
"description": "Javascript library for Firebase Auth SDK", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "Firebase Component Platform", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "dist/index.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
"files": ["dist"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "dist/index.node.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
"files": ["dist"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "firebase/app", | ||
"main": "dist/index.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"typings": "../index.d.ts" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "dist/index.node.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
"files": ["dist"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "Firebase performance for web", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "dist/index.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
"files": ["dist"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"description": "The Remote Config package of the Firebase JS SDK", | ||
"author": "Firebase <[email protected]> (https://firebase.google.com/)", | ||
"main": "dist/index.cjs.js", | ||
"browser": "dist/index.cjs.js", | ||
"browser": "dist/index.esm.js", | ||
"module": "dist/index.esm.js", | ||
"esm2017": "dist/index.esm2017.js", | ||
"files": ["dist"], | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,16 @@ | |
* limitations under the License. | ||
*/ | ||
|
||
import * as firebase from 'firebase'; | ||
import firebase from 'firebase'; | ||
import { _FirebaseApp } from '@firebase/app-types/private'; | ||
import { FirebaseAuthInternal } from '@firebase/auth-interop-types'; | ||
import * as request from 'request'; | ||
import { base64 } from '@firebase/util'; | ||
import { setLogLevel, LogLevel } from '@firebase/logger'; | ||
import { Component, ComponentType } from '@firebase/component'; | ||
|
||
export { database, firestore } from 'firebase'; | ||
const { firestore, database } = firebase; | ||
export { firestore, database }; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @samtstern @yuchenshi There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe they're used to provide access to Firestore / RTDB classes like this: If those tests still pass I think we're fine? To be honest I don't quite understand namespaces. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, that will continue to work. We are good. Thanks for confirming. |
||
|
||
/** If this environment variable is set, use it for the database emulator's address. */ | ||
const DATABASE_ADDRESS_ENV: string = 'FIREBASE_DATABASE_EMULATOR_HOST'; | ||
|
Uh oh!
There was an error while loading. Please reload this page.