Changes

1.12.0 (2021-06-23)

Features

  • pubsub/pstest: add channel to support user-defined publish responses (#4251) (e1304f4)

Bug Fixes

  • pubsub: fix memory leak issue in publish scheduler (#4282) (22ffc18)

1.11.0 (2021-05-27)

Features

1.10.3 (2021-04-23)

Bug Fixes

  • pubsub: fix failing message storage policy tests (#4003) (8946158)
  • pubsub: make config call permission error in Receive transparent (#3985) (a1614db)

1.10.2 (2021-04-08)

Bug Fixes

  • pubsub: respect subscription message ordering field in scheduler (#3886) (1fcc78a)
  • pubsub: update quiescenceDur in failing e2e test (#3780) (97e6c69)

1.10.1 (2021-03-04)

Bug Fixes

  • pubsub: hide context.Cancelled error in sync pull (#3752) (f88bdc8)

1.10.0 (2021-02-10)

Features

  • pubsub: add opencensus metrics for outstanding messages/bytes (#3690) (4039b82)

1.9.1 (2020-12-10)

Bug Fixes

  • pubsub: fix default stream ack deadline seconds (#3430) (a10263a)
  • pubsub: respect streamAckDeadlineSeconds with MaxExtensionPeriod (#3367) (45131b6)

1.9.0 (2020-12-03)

Features

  • pubsub: Enable server side flow control by default with the option to turn it off (#3154) (e392e61)

Refactor

NOTE: Several changes were proposed for allowing Message and PublishResult to be used outside the library. However, the decision was made to only allow packages in google-cloud-go to access NewMessage and NewPublishResult (see #3351).

  • pubsub: Allow Message and PublishResult to be used outside the package (#3200) (581bf92)
  • pubsub: Remove NewMessage and NewPublishResult (#3232) (a781a3a)

1.8.3 (2020-11-10)

Bug Fixes

  • pubsub: retry deadline exceeded errors in Acknowledge (#3157) (ae75b46)

v1.8.2

  • Fixes:
    • fix(pubsub): track errors in published messages opencensus metric (#2970)
    • fix(pubsub): do not propagate context deadline exceeded error (#3055)

v1.8.1

  • Suppress connection is closing on error on subscriber close. (#2951)

v1.8.0

  • Add status code to error injection in pstest. This is a BREAKING CHANGE.

v1.7.0

  • Add reactor options to pstest server. (#2916)

v1.6.2

  • Make message.Modacks thread safe in pstest. (#2755)
  • Fix issue with closing publisher and subscriber client errors. (#2867)
  • Fix updating subscription filtering/retry policy in pstest. (#2901)

v1.6.1

  • Fix issue where EnableMessageOrdering wasn't being parsed properly to SubscriptionConfig.

v1.6.0

  • Fix issue where subscriber streams were limited because it was using a single grpc conn.
    • As a side effect, publisher and subscriber grpc conns are no longer shared.
  • Add fake time function in pstest.
  • Add support for server side flow control.

v1.5.0

  • Add support for subscription detachment.
  • Add support for message filtering in subscriptions.
  • Add support for RetryPolicy (server-side feature).
  • Fix publish error path when ordering key is disabled.
  • Fix panic on Topic.ResumePublish method.

v1.4.0

  • Add support for upcoming ordering keys feature.

v1.3.1

  • Fix bug with removing dead letter policy from a subscription
  • Set default value of MaxExtensionPeriod to 0, which is functionally equivalent

v1.3.0

  • Update cloud.google.com/go to v0.54.0

v1.2.0

  • Add support for upcoming dead letter topics feature
  • Expose Subscription.ReceiveSettings.MaxExtensionPeriod setting
  • Standardize default settings with other client libraries
    • Increase publish delay threshold from 1ms to 10ms
    • Increase subscription MaxExtension from 10m to 60m
  • Always send keepalive/heartbeat ping on StreamingPull streams to minimize stream reopen requests

v1.1.0

  • Limit default grpc connections to 4.
  • Fix issues with OpenCensus metric for pull count not including synchronous pull messages.
  • Fix issue with publish bundle size calculations.
  • Add ClearMessages method to pstest server.

v1.0.1

Small fix to a package name.

v1.0.0

This is the first tag to carve out pubsub as its own module. See: https://github.com/golang/go/wiki/Modules#is-it-possible-to-add-a-module-to-a-multi-module-repository.