v0.34.0
stephenplusplus
released this
18 May 23:35
·
23085 commits
to main
since this release
Updating
$ npm install gcloud@0.34.0
⚠️ Breaking Changes
Datastore: autoPagination removed
Before
var query = datastore.createQuery('Kind');
datastore.runQuery(query, function(err, entities) {
entities = [...]
});
After
var query = datastore.createQuery('Kind');
datastore.runQuery(query, function(err, entities, info) {
entities = [...]
// info.endCursor can be used to build a follow-up query
// info.moreResults can be used to help decide if you want
// to query for more results
});
Further examples are available under "Paginating Records".
Features
- Compute (#1073, #1320): Creating and managing instance groups is now supported.
- Storage (#1316, #1317):
File#getSignedUrl
now accepts an object for extensionHeaders. (Thanks, @aknuds1!) - Storage (#1321, #1322):
Bucket#upload
andFile#createWriteStream
accept auri
argument to re-use a previously started resumable upload. (Thanks, @bhstahl!) - Storage (#1325):
Bucket#upload
andFile#createWriteStream
accept anoffset
argument to mark the starting byte to resume an upload from. (Thanks again, @bhstahl!)
Fixes
- Logging (#1302, #1329): Correctly convert array and boolean values within a log entry. (Thanks, @1N50MN14!)
- Pub/Sub (#1315):
pubsub.subscribe
won't throw from an undefinedoptions
argument. (Thanks, @chrishiestand!)
Thank you!
If you catch any regressions, please open an issue. See the Contributing guide for how to get started.