Skip to content

v0.34.0

Compare
Choose a tag to compare
@stephenplusplus stephenplusplus released this 18 May 23:35
· 22602 commits to main since this release

Updating

$ npm install gcloud@0.34.0

⚠️ Breaking Changes

Datastore: autoPagination removed


Issue: #1293
PR: #1295

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 and File#createWriteStream accept a uri argument to re-use a previously started resumable upload. (Thanks, @bhstahl!)
  • Storage (#1325): Bucket#upload and File#createWriteStream accept an offset 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 undefined options argument. (Thanks, @chrishiestand!)

Thank you!

If you catch any regressions, please open an issue. See the Contributing guide for how to get started.