diff --git a/packages/datastore/package.json b/packages/datastore/package.json index fbd78365594..52dfc0512a9 100644 --- a/packages/datastore/package.json +++ b/packages/datastore/package.json @@ -54,7 +54,7 @@ "concat-stream": "^1.5.0", "create-error-class": "^2.0.1", "extend": "^3.0.0", - "@google-cloud/common": "^0.1.0", + "@google-cloud/common": "^0.2.0", "is": "^3.0.1", "lodash.flatten": "^4.2.0", "modelo": "^4.2.0", diff --git a/packages/datastore/src/index.js b/packages/datastore/src/index.js index 4cb854ab3c4..03edddb5013 100644 --- a/packages/datastore/src/index.js +++ b/packages/datastore/src/index.js @@ -323,7 +323,7 @@ function Datastore(options) { baseUrl: this.baseUrl_, customEndpoint: this.customEndpoint_, service: 'datastore', - apiVersion: 'v1beta3', + apiVersion: 'v1', scopes: ['https://www.googleapis.com/auth/datastore'], userAgent: PKG.name + '/' + PKG.version }; diff --git a/packages/datastore/test/index.js b/packages/datastore/test/index.js index 423f350c6c7..567b9e5a940 100644 --- a/packages/datastore/test/index.js +++ b/packages/datastore/test/index.js @@ -153,7 +153,7 @@ describe('Datastore', function() { assert.strictEqual(calledWith.baseUrl, datastore.baseUrl_); assert.strictEqual(calledWith.customEndpoint, datastore.customEndpoint_); assert.strictEqual(calledWith.service, 'datastore'); - assert.strictEqual(calledWith.apiVersion, 'v1beta3'); + assert.strictEqual(calledWith.apiVersion, 'v1'); assert.deepEqual(calledWith.scopes, [ 'https://www.googleapis.com/auth/datastore' ]);