diff --git a/integration_test/functions/src/index.ts b/integration_test/functions/src/index.ts index 76094b0a4..66d637a16 100644 --- a/integration_test/functions/src/index.ts +++ b/integration_test/functions/src/index.ts @@ -19,7 +19,6 @@ const numTests = Object.keys(exports).length; // Assumption: every exported func import 'firebase-functions'; // temporary shim until process.env.FIREBASE_CONFIG available natively in GCF(BUG 63586213) const firebaseConfig = JSON.parse(process.env.FIREBASE_CONFIG); admin.initializeApp(); -admin.firestore().settings({ timestampsInSnapshots: true }); // TODO(klimt): Get rid of this once the JS client SDK supports callable triggers. function callHttpsTrigger(name: string, data: any) { diff --git a/integration_test/package.node6.json b/integration_test/package.node6.json index efc6380a8..c7397753d 100644 --- a/integration_test/package.node6.json +++ b/integration_test/package.node6.json @@ -8,13 +8,13 @@ "@google-cloud/pubsub": "~0.19.0", "@types/google-cloud__pubsub": "^0.18.0", "@types/lodash": "~4.14.41", - "firebase-admin": "~6.0.0", + "firebase-admin": "~7.0.0", "firebase-functions": "./firebase-functions.tgz", "lodash": "~4.17.2" }, "main": "lib/index.js", "devDependencies": { - "typescript": "~2.8.3" + "typescript": "~3.1.0" }, "engines": { "node": "6" diff --git a/integration_test/package.node8.json b/integration_test/package.node8.json index 0de718c2a..ae861c35b 100644 --- a/integration_test/package.node8.json +++ b/integration_test/package.node8.json @@ -8,13 +8,13 @@ "@google-cloud/pubsub": "~0.19.0", "@types/google-cloud__pubsub": "^0.18.0", "@types/lodash": "~4.14.41", - "firebase-admin": "~6.0.0", + "firebase-admin": "~7.0.0", "firebase-functions": "./firebase-functions.tgz", "lodash": "~4.17.2" }, "main": "lib/index.js", "devDependencies": { - "typescript": "~2.8.3" + "typescript": "~3.1.0" }, "engines": { "node": "8" diff --git a/package.json b/package.json index f8339ad84..390f943fd 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/sinon": "^1.16.29", "chai": "^3.5.0", "chai-as-promised": "^5.2.0", - "firebase-admin": "~6.0.0", + "firebase-admin": "~7.0.0", "istanbul": "^0.4.2", "mocha": "^5.2.0", "mock-require": "^2.0.1", @@ -48,10 +48,10 @@ "prettier": "^1.13.7", "sinon": "^1.17.4", "ts-node": "^7.0.1", - "typescript": "~2.8.3" + "typescript": "~3.1.0" }, "peerDependencies": { - "firebase-admin": "~6.0.0" + "firebase-admin": "~7.0.0" }, "dependencies": { "@types/cors": "^2.8.1", diff --git a/src/providers/firestore.ts b/src/providers/firestore.ts index 7a2931618..20dee281f 100644 --- a/src/providers/firestore.ts +++ b/src/providers/firestore.ts @@ -145,7 +145,6 @@ function _getValueProto(data: any, resource: string, valueFieldName: string) { export function snapshotConstructor(event: Event): DocumentSnapshot { if (!firestoreInstance) { firestoreInstance = firebase.firestore(apps().admin); - firestoreInstance.settings({ timestampsInSnapshots: true }); } let valueProto = _getValueProto( event.data, @@ -161,7 +160,6 @@ export function snapshotConstructor(event: Event): DocumentSnapshot { export function beforeSnapshotConstructor(event: Event): DocumentSnapshot { if (!firestoreInstance) { firestoreInstance = firebase.firestore(apps().admin); - firestoreInstance.settings({ timestampsInSnapshots: true }); } let oldValueProto = _getValueProto( event.data,