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

fix(deps): update dependency @google-cloud/datastore to v3 #257

Merged
merged 3 commits into from Feb 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.1.0",
"@google-cloud/debug-agent": "^3.0.0",
"@google-cloud/logging-winston": "^0.10.0",
"@google-cloud/pubsub": "^0.24.0",
Expand Down