Skip to content

Commit 867df69

Browse files
renovate[bot]fhinkel
authored andcommitted
fix(deps): update dependency @google-cloud/datastore to v3 (GoogleCloudPlatform#1094)
* fix(deps): update dependency @google-cloud/datastore to v3 * Fix invocation of constructor
1 parent 62aa23c commit 867df69

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

appengine/datastore/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ app.enable('trust proxy');
2727
// the project specified by the GOOGLE_CLOUD_PROJECT environment variable. See
2828
// https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/docs/authentication.md
2929
// These environment variables are set automatically on Google App Engine
30-
const Datastore = require('@google-cloud/datastore');
30+
const {Datastore} = require('@google-cloud/datastore');
3131

3232
// Instantiate a datastore client
33-
const datastore = Datastore();
33+
const datastore = new Datastore();
3434

3535
/**
3636
* Insert a visit record into the database.

appengine/datastore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"test": "npm run system-test"
1919
},
2020
"dependencies": {
21-
"@google-cloud/datastore": "^2.0.0",
21+
"@google-cloud/datastore": "^3.0.0",
2222
"express": "^4.16.4"
2323
},
2424
"devDependencies": {

functions/datastore/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515

1616
'use strict';
1717

18-
const Datastore = require('@google-cloud/datastore');
18+
const {Datastore} = require('@google-cloud/datastore');
1919

2020
// Instantiates a client
21-
const datastore = Datastore();
21+
const datastore = new Datastore();
2222

2323
/**
2424
* Gets a Datastore key from the kind/key pair in the request.

functions/datastore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"test": "npm run system-test"
1818
},
1919
"dependencies": {
20-
"@google-cloud/datastore": "2.0.0",
20+
"@google-cloud/datastore": "3.1.2",
2121
"supertest": "^3.0.0"
2222
},
2323
"devDependencies": {

functions/datastore/test/index.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
'use strict';
1717

1818
const assert = require('assert');
19-
const Datastore = require('@google-cloud/datastore');
20-
const datastore = Datastore();
19+
const {Datastore} = require('@google-cloud/datastore');
20+
const datastore = new Datastore();
2121
const program = require('../');
2222
const uuid = require('uuid');
2323

0 commit comments

Comments
 (0)