Skip to content
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

UPGRADE: firebase to v9 and use compat mode #104

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/node/authInheritance.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { Neurosity } = require("../..");
const firebase = require("firebase/app");
require("firebase/auth");
const firebase = require("firebase/compat/app");
require("firebase/compat/auth");

const config = {
apiKey: "AIzaSyB0TkZ83Fj0CIzn8AAmE-Osc92s3ER8hy8",
Expand Down
717 changes: 394 additions & 323 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neurosity/sdk",
"version": "6.5.4",
"version": "6.6.0",
"description": "Neurosity SDK",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -52,7 +52,7 @@
"axios": "^0.25.0",
"buffer": "^6.0.3",
"fast-deep-equal": "^3.1.3",
"firebase": "^8.10.1",
"firebase": "^9.18.0",
"outliers": "0.0.3",
"rxjs": "^7.5.6",
"semver": "^7.3.8"
Expand Down
10 changes: 5 additions & 5 deletions src/api/firebase/FirebaseApp.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import firebase from "firebase/app";
import "firebase/database";
import "firebase/auth";
import "firebase/functions";
import "firebase/firestore";
import firebase from "firebase/compat/app";
import "firebase/compat/database";
import "firebase/compat/auth";
import "firebase/compat/functions";
import "firebase/compat/firestore";

import { config } from "./config";
import { SDKOptions } from "../../types/options";
Expand Down
2 changes: 1 addition & 1 deletion src/api/firebase/FirebaseDevice.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import firebase from "firebase/app";
import firebase from "firebase/compat/app";

import { FirebaseApp } from "./FirebaseApp";
import { createDeviceStore } from "./deviceStore";
Expand Down
2 changes: 1 addition & 1 deletion src/api/firebase/FirebaseUser.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Observable, fromEventPattern, from, EMPTY } from "rxjs";
import { map, switchMap } from "rxjs/operators";
import firebase from "firebase/app";
import firebase from "firebase/compat/app";
import { User } from "@firebase/auth-types";

import { FirebaseApp } from "./FirebaseApp";
Expand Down
2 changes: 1 addition & 1 deletion src/api/firebase/deviceStore.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import firebase from "firebase/app";
import firebase from "firebase/compat/app";

const SERVER_TIMESTAMP = firebase.database.ServerValue.TIMESTAMP;

Expand Down