Skip to content

Releases: googleapis/nodejs-datastore

v1.2.1

18 Dec 17:32
38f0244

Choose a tag to compare

Fixes

  • (#15) Emulator support restored after a bug locating the API transport layer.

v1.2.0

16 Dec 02:30

Choose a tag to compare

New repository

The package has moved to the new repository.

v1.1.0

16 Dec 01:22

Choose a tag to compare

Features

v1.0.3

16 Dec 01:21

Choose a tag to compare

Fixes

  • (#2390) Update parameters under which requests are retried.

v1.0.2

16 Dec 01:21

Choose a tag to compare

Fixes

  • (#2263): Fix kindless queries with a namespace

v1.0.0

16 Dec 01:20

Choose a tag to compare

1.0.0! 🎈 🎉 🍰

@google-cloud/datastore has been promoted to GA (general availability), which means the API is considered stable. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against GA libraries are addressed with the highest priority.

v0.8.0

16 Dec 01:20

Choose a tag to compare

⚠️ Breaking Changes!

Dropped support for Node v0.12.x

(googleapis/google-cloud-node#2171)

We've officially dropped support for Node v0.12.x in all of our APIs. It may still work, but it is not officially supported and may stop working at any time.

v0.7.1

16 Dec 01:18

Choose a tag to compare

Fixes

v0.6.0

16 Dec 01:18

Choose a tag to compare

Features

v0.5.0

16 Dec 01:17

Choose a tag to compare

⚠️ Breaking Changes

Promises have arrived!

Issue: #551
PR: #1704

It's been a long time coming, but we're finally here. We've shipped promise support in the Google Cloud Datastore module!

Do I have to use promises?

Nope, carry on. (But keep reading if you use streams)

How do I use promises?

Don't pass a callback:

var datastore = require('@google-cloud/datastore')();
var query = datastore.createQuery('Kind');

query.run()
  .then(function(data) {
    var entities = data[0];
  })
  .catch(function(err) {});

How do I use a method as a stream?

All of the streaming functionality from our methods have been moved to their own method.

var datastore = require('@google-cloud/datastore')();

- datastore.get()
+ datastore.createReadStream()
   .on('data', function(entity) {})

- datastore.runQuery()
+ datastore.runQueryStream()
   .on('data', function(entity) {})
var transaction = datastore.transaction('transaction-id');

- transaction.get()
+ transaction.createReadStream()
   .on('data', function(entity) {})

- transaction.runQuery()
+ transaction.runQueryStream()
   .on('data', function(entity) {})
var query = datastore.createQuery('Kind');

- query.run()
+ query.runStream()
   .on('data', function(entity) {})