Skip to content

Commit

Permalink
fix: update dependency @google-cloud/datastore to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored and fhinkel committed Feb 15, 2019
1 parent 5ca52b1 commit 5e752a4
Show file tree
Hide file tree
Showing 15 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions 2-structured-data/books/model-datastore.js
Expand Up @@ -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]

Expand Down
2 changes: 1 addition & 1 deletion 2-structured-data/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions 3-binary-data/books/model-datastore.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 3-binary-data/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions 4-auth/books/model-datastore.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 4-auth/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions 5-logging/books/model-datastore.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 5-logging/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions 6-pubsub/books/model-datastore.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 6-pubsub/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions 7-gce/books/model-datastore.js
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 7-gce/package.json
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions optional-kubernetes-engine/books/model-datastore.js
Expand Up @@ -13,11 +13,11 @@

'use strict';

const Datastore = require('@google-cloud/datastore');
const {Datastore} = require('@google-cloud/datastore');
const config = require('../config');
const background = require('../lib/background');

const ds = Datastore({
const ds = new Datastore({
projectId: config.get('GCLOUD_PROJECT'),
});
const kind = 'Book';
Expand Down
2 changes: 1 addition & 1 deletion optional-kubernetes-engine/package.json
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 5e752a4

Please sign in to comment.