v0.45.0
·
43180 commits
to main
since this release
Update
$ npm install google-cloud@0.45.0⚠️ Breaking Changes!
Language: salience and sentiment ranges changed
salience is now a value between 0.0 and 1.0. sentiment is between -1.0 and 1.0.
Pub/Sub: reuseExisting option removed
By default, if you provide a subscription name to subscribe(), a subscription with that name will be created, if necessary.
If you don't provide a name, one will be automatically created.
Before
topic.subscribe('my-subscription', { reuseExisting: true }, function(err, subscription) {
// subscription was either created or re-used
})After
topic.subscribe('my-subscription', function(err, subscription) {
// subscription was either created or re-used
})Vision: API terminology used in face detection response
| Before | After |
|---|---|
blurry |
blurred |
dark |
underExposed |
hat |
headwear |
happy |
joy |
sad |
sorrow |
mad |
anger |
surprised |
surprise |
Features
- Core (#1653, #1656): Auto-detect
projectId. See Authentication for more. - Bigtable (#1790, #1802): Add a
prefixoption totable.createReadStream()andtable.getRows(). - BigQuery (#1787, #1854, #1868, #1869): Support SQL parameters. (Thanks for all of the help, @c0b!)
- Datastore (#1803, #1804): Support easier entity updates by re-using an
entityobject. (Thanks for the idea, @richardkazuomiller!) - Logging (#1808): Log entries are automatically decorated with a default resource object.
- Logging (#1815): Log entries are assigned a timestamp at the time the object is created.
- Pub/Sub (#1257, #1799): Auto-generate subscription names.
- Pub/Sub (#1837, #1843): Return
timestampon all message objects. (Thank you very much, @igorclark!)
Fixes
- Bigtable (#1812, #1853): Confirm
apiResponseargument presence. (Thanks, @BlackSonic!) - Storage (#1813, #1814): Promisify ACL methods.