Skip to content

Releases: googleapis/nodejs-datastore

v1.1.0

16 Dec 01:22
Compare
Choose a tag to compare

Features

v1.0.3

16 Dec 01:21
Compare
Choose a tag to compare

Fixes

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

v1.0.2

16 Dec 01:21
Compare
Choose a tag to compare

Fixes

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

v1.0.0

16 Dec 01:20
Compare
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
Compare
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
Compare
Choose a tag to compare

Fixes

v0.6.0

16 Dec 01:18
Compare
Choose a tag to compare

Features

v0.5.0

16 Dec 01:17
Compare
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) {})

v0.4.0

16 Dec 01:16
Compare
Choose a tag to compare

Features

  • (#1535, #1590, #1605): Sync dependencies with other service modules to minimize download and installation time as much as possible.

v0.3.1

16 Dec 01:16
Compare
Choose a tag to compare

Fixes