Skip to content

v0.39.0

Choose a tag to compare

@stephenplusplus stephenplusplus released this 30 Aug 15:20

Updating

$ npm install google-cloud@0.39.0

⚠️ Breaking Changes

Bigtable v2 released!

Issue: #1526
PR: #1439

The zone and cluster options have gone away in favor of Instance objects. See the Cloud Bigtable Quickstart for detailed instructions on how to create an instance.

Before
var bigtable = gcloud.bigtable({
  zone: 'us-central1-b',
  cluster: 'gcloud-node'
});

bigtable.createTable('my-table', function(err, table) {});
After
var bigtable = gcloud.bigtable();
var instance = bigtable.instance('my-instance');

instance.createTable('my-table', function(err, table) {});

Translate's getLanguages() returns each language code and name instead of only the code

PR: #1524

Before
translate.getLanguages(function(err, languages) {
  // languages == [
  //   'af',
  //   'am',
  //   'ar',
  //   ...
  // ]
});
After
translate.getLanguages(function(err, languages) {
  // languages == [
  //   {
  //     code: 'af',
  //     name: 'Afrikaans'
  //   },
  //   {
  //     code: 'am',
  //     name: 'Amharic'
  //   },
  //   {
  //     code: 'ar',
  //     name: 'Arabic'
  //   },
  //   ...
  // ]
});

Features

  • Bigtable (#1439): API updated to v2, introducing Instance and Cluster APIs and a decode option.
  • Bigtable (#1439, #1526): Optionally prevent Bigtable from decoding values when reading rows.
  • Bigtable (#1439, #1526): Properly detect raw Buffers when saving data.
  • Datastore (#1496, #1508): API updated to v1.
  • Vision (#1449, #1488): Buffers are now accepted for feature detection.

Fixes

  • Bigtable (#1526): Properly detect Buffers when saving data.
  • Datastore (#1497, #1498): Properly form deferred keys.
  • Language (#1467, #1529): Removed extraneous dependency.
  • Prediction (#1467, #1529): Removed extraneous dependency.
  • Translate (#1467, #1529): Removed extraneous dependency.
  • Vision (#1467, #1529): Removed extraneous dependency.