Skip to content

Commit

Permalink
Release @google-cloud/pubsub v0.23.0 (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmehiphop authored Jan 17, 2019
1 parent 5dbdcca commit 52305c7
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 2 deletions.
81 changes: 81 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,87 @@

[1]: https://www.npmjs.com/package/nodejs-pubsub?activeTab=versions

## v0.23.0

01-16-2019 13:09 PST

**This release has breaking changes.**

#### BREAKING: `Topic#publisher()` has been removed in favor of `Topic#publish()` ([#426](https://github.com/googleapis/nodejs-pubsub/pull/426))

Before
```js
const publisher = topic.publisher(publishOptions);
await publisher.publish(Buffer.from('Hello, world!'));
```

After
```js
topic.setPublishOptions(publishOptions);
await topic.publish(Buffer.from('Hello, world!'));
```

#### BREAKING: `Subscription` options have changed. ([#388](https://github.com/googleapis/nodejs-pubsub/pull/388))

Before
```js
const subscription = topic.subscription('my-sub', {
batching: {
maxMilliseconds: 100,
},
flowControl: {
maxBytes: os.freem() * 0.2,
maxMessages: 100,
},
maxConnections: 5,
});
```

After
```js
const subscription = topic.subscription('my-sub', {
ackDeadline: 10,
batching: {
callOptions: {}, // gax call options
maxMessages: 3000,
maxMilliseconds: 100,
},
flowControl: {
allowExcessMessages: true,
maxBytes: os.freem() * 0.2,
maxExtension: Infinity,
maxMessages: 100
},
streamingOptions: {
highWaterMark: 0,
maxStreams: 5, // formerly known as maxConnections
timeout: 60000 * 5, // 5 minutes
}
});
```

### New Features
- feat(topic): create method for publishing json ([#430](https://github.com/googleapis/nodejs-pubsub/pull/430))

### Dependencies
- fix(deps): update dependency google-gax to ^0.23.0 ([#423](https://github.com/googleapis/nodejs-pubsub/pull/423))
- chore(deps): update dependency @types/sinon to v7 ([#411](https://github.com/googleapis/nodejs-pubsub/pull/411))
- chore: update nyc and eslint configs ([#409](https://github.com/googleapis/nodejs-pubsub/pull/409))

### Documentation
- docs(samples): correct publish retry settings ([#419](https://github.com/googleapis/nodejs-pubsub/pull/419))
- docs: sync generated grpc message type docs
- fix(docs): remove unused long running operations and IAM types
- fix: modernize the sample tests ([#414](https://github.com/googleapis/nodejs-pubsub/pull/414))

### Internal / Testing Changes
- chore: update subscriber gapic
- fix: add getSubscriberStub to synth file ([#425](https://github.com/googleapis/nodejs-pubsub/pull/425))
- build: check broken links in generated docs ([#416](https://github.com/googleapis/nodejs-pubsub/pull/416))
- chore(build): inject yoshi automation key ([#410](https://github.com/googleapis/nodejs-pubsub/pull/410))
- chore: fix publish.sh permission +x ([#406](https://github.com/googleapis/nodejs-pubsub/pull/406))
- fix(build): fix Kokoro release script ([#404](https://github.com/googleapis/nodejs-pubsub/pull/404))

## v0.22.2

12-10-2018 09:37 PST
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@google-cloud/pubsub",
"description": "Cloud Pub/Sub Client Library for Node.js",
"version": "0.22.2",
"version": "0.23.0",
"license": "Apache-2.0",
"author": "Google Inc.",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion samples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"test": "mocha system-test --timeout 600000"
},
"dependencies": {
"@google-cloud/pubsub": "^0.22.2",
"@google-cloud/pubsub": "^0.23.0",
"yargs": "^12.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 52305c7

Please sign in to comment.