From b827514920d717f1b30764cf3d53e9b3fcec6d4b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" Date: Mon, 11 Feb 2019 18:07:38 +0000 Subject: [PATCH] fix(deps): update dependency @google-cloud/datastore to v3 --- 2-structured-data/books/model-datastore.js | 4 ++-- 2-structured-data/package.json | 2 +- 3-binary-data/books/model-datastore.js | 4 ++-- 3-binary-data/package.json | 2 +- 4-auth/books/model-datastore.js | 4 ++-- 4-auth/package.json | 2 +- 5-logging/books/model-datastore.js | 4 ++-- 5-logging/package.json | 2 +- 6-pubsub/books/model-datastore.js | 4 ++-- 6-pubsub/package.json | 2 +- 7-gce/books/model-datastore.js | 4 ++-- 7-gce/package.json | 2 +- optional-kubernetes-engine/package.json | 2 +- package.json | 2 +- 14 files changed, 20 insertions(+), 20 deletions(-) diff --git a/2-structured-data/books/model-datastore.js b/2-structured-data/books/model-datastore.js index d3e0fc73f..e0f59e659 100644 --- a/2-structured-data/books/model-datastore.js +++ b/2-structured-data/books/model-datastore.js @@ -13,10 +13,10 @@ 'use strict'; -const Datastore = require('@google-cloud/datastore'); +const {Datastore} = require('@google-cloud/datastore'); // [START config] -const ds = Datastore(); +const ds = new Datastore(); const kind = 'Book'; // [END config] diff --git a/2-structured-data/package.json b/2-structured-data/package.json index 049791238..a050c800a 100644 --- a/2-structured-data/package.json +++ b/2-structured-data/package.json @@ -30,7 +30,7 @@ "init-cloudsql": "node books/model-cloudsql.js" }, "dependencies": { - "@google-cloud/datastore": "2.0.0", + "@google-cloud/datastore": "3.1.0", "body-parser": "1.18.3", "express": "4.16.4", "lodash": "4.17.11", diff --git a/3-binary-data/books/model-datastore.js b/3-binary-data/books/model-datastore.js index c3b95fea6..7d493f28c 100644 --- a/3-binary-data/books/model-datastore.js +++ b/3-binary-data/books/model-datastore.js @@ -13,9 +13,9 @@ 'use strict'; -const Datastore = require('@google-cloud/datastore'); +const {Datastore} = require('@google-cloud/datastore'); -const ds = Datastore(); +const ds = new Datastore(); const kind = 'Book'; // Translates from Datastore's entity format to diff --git a/3-binary-data/package.json b/3-binary-data/package.json index 4afccff0c..fc41abf28 100644 --- a/3-binary-data/package.json +++ b/3-binary-data/package.json @@ -30,7 +30,7 @@ "init-cloudsql": "node books/model-cloudsql.js" }, "dependencies": { - "@google-cloud/datastore": "2.0.0", + "@google-cloud/datastore": "3.1.0", "@google-cloud/storage": "1.7.0", "body-parser": "1.18.3", "express": "4.16.4", diff --git a/4-auth/books/model-datastore.js b/4-auth/books/model-datastore.js index d2528a508..cb8444640 100644 --- a/4-auth/books/model-datastore.js +++ b/4-auth/books/model-datastore.js @@ -13,9 +13,9 @@ 'use strict'; -const Datastore = require('@google-cloud/datastore'); +const {Datastore} = require('@google-cloud/datastore'); -const ds = Datastore(); +const ds = new Datastore(); const kind = 'Book'; // Translates from Datastore's entity format to diff --git a/4-auth/package.json b/4-auth/package.json index 9ac90e57a..81c860689 100644 --- a/4-auth/package.json +++ b/4-auth/package.json @@ -30,7 +30,7 @@ "init-cloudsql": "node books/model-cloudsql.js" }, "dependencies": { - "@google-cloud/datastore": "2.0.0", + "@google-cloud/datastore": "3.1.0", "@google-cloud/storage": "1.7.0", "body-parser": "1.18.3", "connect-memjs": "0.2.1", diff --git a/5-logging/books/model-datastore.js b/5-logging/books/model-datastore.js index a24e41a8f..d06c5ed2b 100644 --- a/5-logging/books/model-datastore.js +++ b/5-logging/books/model-datastore.js @@ -13,9 +13,9 @@ 'use strict'; -const Datastore = require('@google-cloud/datastore'); +const {Datastore} = require('@google-cloud/datastore'); -const ds = Datastore(); +const ds = new Datastore(); const kind = 'Book'; // Translates from Datastore's entity format to diff --git a/5-logging/package.json b/5-logging/package.json index 08bd9764e..9af7330a0 100644 --- a/5-logging/package.json +++ b/5-logging/package.json @@ -30,7 +30,7 @@ "init-cloudsql": "node books/model-cloudsql.js" }, "dependencies": { - "@google-cloud/datastore": "1.4.2", + "@google-cloud/datastore": "3.1.0", "@google-cloud/debug-agent": "3.0.1", "@google-cloud/logging-winston": "^0.8.1", "@google-cloud/storage": "1.6.0", diff --git a/6-pubsub/books/model-datastore.js b/6-pubsub/books/model-datastore.js index 8daf6f7f9..4be2b3a0d 100644 --- a/6-pubsub/books/model-datastore.js +++ b/6-pubsub/books/model-datastore.js @@ -13,10 +13,10 @@ 'use strict'; -const Datastore = require('@google-cloud/datastore'); +const {Datastore} = require('@google-cloud/datastore'); const background = require('../lib/background'); -const ds = Datastore(); +const ds = new Datastore(); const kind = 'Book'; // Translates from Datastore's entity format to diff --git a/6-pubsub/package.json b/6-pubsub/package.json index 4a3143f8a..655c76f33 100644 --- a/6-pubsub/package.json +++ b/6-pubsub/package.json @@ -30,7 +30,7 @@ "init-cloudsql": "node books/model-cloudsql.js" }, "dependencies": { - "@google-cloud/datastore": "1.4.2", + "@google-cloud/datastore": "3.1.0", "@google-cloud/debug-agent": "3.0.1", "@google-cloud/logging-winston": "^0.8.1", "@google-cloud/pubsub": "^0.24.0", diff --git a/7-gce/books/model-datastore.js b/7-gce/books/model-datastore.js index b329045a2..048097006 100644 --- a/7-gce/books/model-datastore.js +++ b/7-gce/books/model-datastore.js @@ -13,10 +13,10 @@ 'use strict'; -const Datastore = require('@google-cloud/datastore'); +const {Datastore} = require('@google-cloud/datastore'); const background = require('../lib/background'); -const ds = Datastore(); +const ds = new Datastore(); const kind = 'Book'; // Translates from Datastore's entity format to diff --git a/7-gce/package.json b/7-gce/package.json index 292c860e2..c07327600 100644 --- a/7-gce/package.json +++ b/7-gce/package.json @@ -26,7 +26,7 @@ }, "license": "Apache-2.0", "dependencies": { - "@google-cloud/datastore": "1.4.2", + "@google-cloud/datastore": "3.1.0", "@google-cloud/debug-agent": "3.0.1", "@google-cloud/logging-winston": "^0.8.1", "@google-cloud/pubsub": "^0.24.0", diff --git a/optional-kubernetes-engine/package.json b/optional-kubernetes-engine/package.json index 9ed692148..13784eacb 100644 --- a/optional-kubernetes-engine/package.json +++ b/optional-kubernetes-engine/package.json @@ -30,7 +30,7 @@ "init-cloudsql": "node books/model-cloudsql.js" }, "dependencies": { - "@google-cloud/datastore": "2.0.0", + "@google-cloud/datastore": "3.1.0", "@google-cloud/debug-agent": "3.0.1", "@google-cloud/logging-winston": "^0.8.1", "@google-cloud/pubsub": "^0.24.0", diff --git a/package.json b/package.json index 135065adc..16297b28f 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "e2e": "mocha test/e2e.js -t 1800000" }, "dependencies": { - "@google-cloud/datastore": "^2.0.0", + "@google-cloud/datastore": "^3.0.0", "@google-cloud/debug-agent": "^3.0.0", "@google-cloud/logging-winston": "^0.10.0", "@google-cloud/pubsub": "^0.24.0",