Skip to content

Releases: googleapis/nodejs-pubsub

v0.28.1

11 Mar 23:01
3ebf24b
Compare
Choose a tag to compare

03-11-2019 15:36 PDT

Bug Fixes

  • fix(typescript): correctly import long (#541)

Internal / Testing Changes

  • testing: set skipLibCheck to false for ts install test (#543)
  • refactor: fix/simplify proto gen scripts (#542)

v0.28.0

11 Mar 17:16
ffdda85
Compare
Choose a tag to compare

03-11-2019 09:11 PDT

New Features

  • feat(topic): create setMetadata method (#537)

Dependencies

  • fix(deps): update dependency @google-cloud/paginator to ^0.2.0

Internal / Testing Changes

  • build: Add docuploader credentials to node publish jobs (#533)
  • test: add missing packages and install test (#536)
  • refactor(typescript): noImplicitAny for Subscription test file (#534)

v0.27.1

07 Mar 16:46
01047ff
Compare
Choose a tag to compare

03-06-2019 20:11 PST

Bug Fixes

  • fix(typescript): correct response type of Subscription.get (#525)

Documentation

  • fix(typo): correct typo: recieved => received (#527)

Internal / Testing Changes

  • build: update release configuration
  • refactor(typescript): noImplicitAny for message-stream test file (#522)
  • build: use node10 to run samples-test, system-test etc (#529)
  • refactor: type fixes and some light housekeeping (#528)

v0.27.0

04 Mar 17:31
14947a4
Compare
Choose a tag to compare

03-04-2019 08:42 PST

Bug Fixes

  • refactor(typescript): various fixes/refactors to types (#515)
  • fix(ts): fix getPolicy promise return signature (#511)
  • fix(typescript): export all the types (#516)

Dependencies

  • refactor: clean up unused packages (#517)

Documentation

  • fix(docs): ensure docs are not removed by typescript (#512)
  • docs: update comments on protos (#509)

Internal / Testing Changes

  • refactor(typescript):noImplicitAny for index test file (#502)
  • refactor(ts): enable noImplicitAny for IAM test file (#501)
  • refactor(ts): enable noImplicitAny for lease-manager test file (#508)
  • refactor(ts): enable noImplicitAny for Histogram and Message_queues test file (#510)
  • refactor(ts): enable noImplicitAny for pubsub system test file (#519)
  • refactor(ts): noImplicitAny for publisher test file (#520)

v0.26.0

28 Feb 15:01
cbb60c9
Compare
Choose a tag to compare

02-28-2019 05:42 PST

BREAKING: message.publishTime is now represented by a PreciseDate object. (#503)

The PreciseDate class extends the native Date object, so most users should be unaffected by this change. The notable differences between PreciseDate and Date objects are:

  • toISOString() now returns as a RFC 3339 formatted string.
  • Nano and microsecond data is available via date.getNanoseconds() and date.getMicroseconds() respectively.

New Features

  • feat(typescript): ship typescript declaration files (#498)
  • feat(subscription): support push config auth methods (#504)

Internal / Testing Changes

  • refactor(typescript): noImplicitAny for snapshot and subscriber test file (#490)
  • fix(messageStream): remove call to destroy grpc stream (#499)

v0.25.0

25 Feb 15:02
52eeae9
Compare
Choose a tag to compare

02-20-2019 10:35 PST

Implementation Changes

  • fix: throw on invalid credentials and update retry config (#476)

The retry logic for all methods has changed. It is possible that this could go unnoticed, however if you suddenly start seeing errors in places that were previously quiet, this might account for said errors.

New Features

  • refactor(ts): improve TypeScript types (#482)
  • refactor(typescript): noImplicityAny for snapshot.ts and publisher.ts (#457)

Bug Fixes

  • fix: ignore messages that come in after close (#485)

Dependencies

  • chore(deps): update dependency mocha to v6 (#488)
  • fix(deps): update dependency @google-cloud/promisify to ^0.4.0 (#478)
  • fix(deps): update dependency yargs to v13 (#475)
  • fix(deps): update dependency duplexify to v4 (#462)
  • fix(deps): update dependency google-gax to ^0.25.0 (#456)

Documentation

  • docs: update links in contrib guide (#479)
  • docs: update contributing path in README (#471)
  • chore: move CONTRIBUTING.md to root (#470)
  • docs: make mention of message change in changelog (#469)
  • docs: add lint/fix example to contributing guide (#464)
  • fix(sample): fix retry codes in retry sample code (#458)

Internal / Testing Changes

  • test(samples): correctly handle publishTime value (#495)
  • test: fix publishTime issues (#494)
  • refactor(typescript): noImplicityAny for Topic test file (#487)
  • refactor(ts): noImplicitAny for subscription test file (#489)
  • build: use linkinator for docs test (#477)
  • build: create docs test npm scripts (#474)
  • build: test using @grpc/grpc-js in CI (#472)
  • test: update code style of smoke test (#463)
  • test: make smoke test spam less (#459)

v0.24.1

29 Jan 23:01
Compare
Choose a tag to compare

01-29-2019 13:17 PST

Bug Fixes

  • fix(publisher): unbound max send message size (#454)

v0.24.0

28 Jan 18:17
462eecc
Compare
Choose a tag to compare

01-28-2019 09:54 PST

New Features

  • fix(auth): pass project id to gax clients (#447)
  • refactor(typescript): noImplicityAny for topic.ts and subscription.ts (#420)
  • refactor: improve subscriber error handling (#440)
  • feat(subscription): auto close sub on non-recoverable errors (#441)

Dependencies

  • chore(deps): update dependency eslint-config-prettier to v4 (#450)
  • fix(deps): update dependency google-gax to ^0.24.0 (#444)
  • fix(deps): update dependency google-auth-library to v3 (#433)

Documentation

  • build: ignore googleapis.com in doc link check (#439)
  • chore: update year in the license headers. (#434)

Internal / Testing Changes

  • chore: remove trailing whitespace in package.json
  • fix(sample): factor setTimeout jitter into assertion (#449)
  • fix(test): broken snapshot test hook (#448)

v0.23.0

17 Jan 14:52
52305c7
Compare
Choose a tag to compare

01-16-2019 13:09 PST

This release has breaking changes.

BREAKING: Topic#publisher() has been removed in favor of Topic#publish() (#426)

Before

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

After

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

BREAKING: Subscription options have changed. (#388)

Before

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

After

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
  }
});

BREAKING: messages are no longer plain objects. (#388)

Messages were refactored into a class,
this will only affect (some) users who treat messages like plain old objects.

The following example is something that would have worked previously, but will
now throw a TypeError since ack lives on the prototype chain.

const m = Object.assign({}, message, customData);
m.ack(); // TypeError: m.ack is not a function

New Features

  • feat(topic): create method for publishing json (#430)

Dependencies

  • fix(deps): update dependency google-gax to ^0.23.0 (#423)
  • chore(deps): update dependency @types/sinon to v7 (#411)
  • chore: update nyc and eslint configs (#409)

Documentation

  • docs(samples): correct publish retry settings (#419)
  • docs: sync generated grpc message type docs
  • fix(docs): remove unused long running operations and IAM types
  • fix: modernize the sample tests (#414)

Internal / Testing Changes

  • chore: update subscriber gapic
  • fix: add getSubscriberStub to synth file (#425)
  • build: check broken links in generated docs (#416)
  • chore(build): inject yoshi automation key (#410)
  • chore: fix publish.sh permission +x (#406)
  • fix(build): fix Kokoro release script (#404)

v0.22.2

10 Dec 23:39
837d86a
Compare
Choose a tag to compare

12-10-2018 09:37 PST

Implementation Changes

TypeScript related changes:

  • fix(ts): copy gapic code properly (#399)

Documentation

  • fix(docs): add subscription expiration policy docs (#400)
  • Add migration for v0.20.0 from v0.19.0 (#398)