Releases: googleapis/nodejs-datastore
v1.2.1
v1.2.0
New repository
The package has moved to the new repository.
v1.1.0
Features
- (#1916, #2497) Embedded properties in an entity can now be excluded from indexes using a new syntax. You can find examples in the new documentation here: https://googlecloudplatform.github.io/google-cloud-node/#/docs/datastore/1.1.0/datastore?method=save.
v1.0.3
v1.0.2
v1.0.0
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
⚠️ 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
v0.6.0
Features
- (#1653, #1656): Auto-detect
projectId. See Authentication for more. - (#1803, #1804): Support easier entity updates by re-using an
entityobject. (Thanks for the idea, @richardkazuomiller!)
v0.5.0
⚠️ Breaking Changes
Promises have arrived!
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) {})