Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Releases: googleapis/nodejs-vision

@google-cloud/vision v0.11.1

17 Nov 16:01
Compare
Choose a tag to compare

release level

Dependencies

  • Update auto-generated layer. (#2227)

@google-cloud/vision v0.11.0

17 Nov 16:00
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Dropped support for Node v0.12.x

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.

@google-cloud/vision v0.10.0

17 Nov 15:57
Compare
Choose a tag to compare

release level

Features

  • Include original likelihood scores in responses. (#1887)

@google-cloud/vision v0.9.0

17 Nov 15:56
Compare
Choose a tag to compare

release level

Features

  • Update to v1.1 of the backend Vision API. (#2041)

Bugfixes

  • Fix project ID detection bug. (#1990)

@google-cloud/vision v0.8.1

17 Nov 15:54
Compare
Choose a tag to compare

release level

Dependencies

  • Update auto-generated layer. (#2026)

@google-cloud/vision v0.8.0

17 Nov 15:53
Compare
Choose a tag to compare

release level

Dependencies

  • Update dependencies.

@google-cloud/vision v0.7.0

17 Nov 15:51
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

API terminology used in face detection response

Before After
blurry blurred
dark underExposed
hat headwear
happy joy
sad sorrow
mad anger
surprised surprise

Features

@google-cloud/vision v0.6.0

17 Nov 15:48
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Partial failures are now treated as errors

Previously, if any annotations were not successful, the errors were combined with any successful annotations. We've since introduced a custom error type called PartialFailureError, which is returned as the first err argument to your callback.

Before

vision.detect(image, ['faces'], function(err, detections, apiResponse) {
  if (err) {
    // An API error occurred.
  }

  if (detections.faces.errors.length > 0) {
    // Errors occurred while trying to use this image for a face annotation.
  }
});

After

vision.detect(image, ['faces'], function(err, detections, apiResponse) {
  if (err) {
    // An API error or partial failure occurred.

    if (err.name === 'PartialFailureError') {
      // Errors occurred while trying to use this image for a face annotation.

      // err.errors[].image (original image passed to `detect`)
      // err.errors[].errors[].code
      // err.errors[].errors[].message
      // err.errors[].errors[].type
    }
  }

  // `detections` will contain all of the results that could be annotated.
});

@google-cloud/vision v0.5.0

17 Nov 15:46
Compare
Choose a tag to compare

release level

Implementation Details

  • Update auto-generated API. (#1736)

@google-cloud/vision v0.4.0

17 Nov 15:45
Compare
Choose a tag to compare

release level

⚠️ Breaking Changes!

Promises have arrived!

Issue: #551
PR: #1712

It's been a long time coming, but we're finally here. We've shipped promise support in the Google Cloud Vision module!

Do I have to use promises?

Nope, carry on.

How do I use promises?

Don't pass a callback:

var vision = require('@google-cloud/vision')();

vision.detectFaces('./image.jpg')
  .then(function(data) {
    var faces = data[0];
  })
  .catch(function(err) {});