Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

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

Merged
merged 2 commits into from
Jan 18, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ $ npm install google-cloud-kvstore
## Example
```js
const {KVStore} = require('google-cloud-kvstore');
const datastore = require('@google-cloud/datastore')(/*...*/);
const {Datastore} = require('@google-cloud/datastore');

const datastore = new Datastore();
const store = new KVStore(datastore);

// Set an item.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"license": "MIT",
"devDependencies": {
"@compodoc/compodoc": "^1.1.7",
"@google-cloud/datastore": "^2.0.0",
"@google-cloud/datastore": "^3.0.0",
"@types/mocha": "^5.2.5",
"@types/node": "^10.5.6",
"codecov": "^3.0.4",
Expand Down
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "mocha system-test --timeout 10000"
},
"dependencies": {
"@google-cloud/datastore": "^2.0.0",
"@google-cloud/datastore": "^3.0.0",
"google-cloud-kvstore": "^5.0.0"
},
"devDependencies": {
Expand Down
4 changes: 3 additions & 1 deletion samples/quickstart.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
*/

const {KVStore} = require('google-cloud-kvstore');
const datastore = require('@google-cloud/datastore')();
const {Datastore} = require('@google-cloud/datastore');

const datastore = new Datastore();

/**
* Create the store
Expand Down
3 changes: 2 additions & 1 deletion system-test/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@

import * as assert from 'assert';
import {KVStore} from '../src';
const datastore = require('@google-cloud/datastore')();
const {Datastore} = require('@google-cloud/datastore');

const datastore = new Datastore();
const key = 'todos';
const value = ['eat', 'sleep', 'repeat'];
const store = new KVStore(datastore);
Expand Down