Packages

@google-cloud/vision

6.2.0 · 12 Oct 2026Apache-2.01.1M / weekRepositoryHomepagenpmAtom feed

Your version

0.24.0

19 Dec 2018Where it was published

0.25.0 is the newest release of 0.24.x.

In short

1 fixed2 changed

Release note

Updating

$ npm install gcloud@0.24.0

Breaking Changes

:key: Authentication is now required (#907)

We removed a quirk of our library that likely benefited a low percentage of users. When we make an API call, we try our hardest to find credentials to go along with it. That might come directly from you (via config.credentials or config.keyFilename), but also can be detected automatically based on the environment you are running the code in.

The quirk is, some of our API calls might not really need authentication, such as downloading a file from a public bucket. Because of that, we would still make the API call without authentication and cross our fingers. If the API call failed, it would return an error. The problem with this approach is that the backend error was not very helpful, returning a simple "Unauthorized". Sure, that gets the point across, but doesn't help correct the problem.

Phew, this is turning into a long story. :zzz: Basically, if we can't find credentials, we return an error before we ever even hit the API. Please let us know if this was a bad move by opening an issue.

Fixes

  • Datastore (#910, #913): Properly parse HTTP responses for errors.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.