Changes

1.21.1 (2022-05-04)

Bug Fixes

  • pubsub: mark ignore option default for publish flow control (#5983) (3f41531)

1.21.0 (2022-04-26)

Features

Bug Fixes

  • pubsub: enable updating enable_exactly_once_delivery in fake pubsub (#5940) (ee44bf6)
  • pubsub: nack messages properly with error from receive scheduler (#5909) (80edea4)

1.20.0 (2022-04-11)

Features

  • pubsub/pstest: add topic retention support (#4790) (0a4ad6a)

Bug Fixes

1.19.0 (2022-03-07)

Features

  • pubsub: add better version metadata to calls (d1ad921)
  • pubsub: set versionClient to module version (55f0d92)

Bug Fixes

  • pubsub: prevent infinite retry with publishing invalid utf-8 chars (#5728) (0a4dab9)
  • pubsub: removing misspelled field, add correctly spelled field (4a223de)

1.18.0 (2022-02-08)

Features

  • pubsub: add exactly once delivery flag (f71dc3d)
  • pubsub: add exactly once delivery flag (f71dc3d)

Bug Fixes

  • pubsub: add deadletter and retries handling in the fake pubsub (#5320) (116a610)
  • pubsub: pass context into checkOrdering to allow cancel (#5316) (fc08c49)

1.17.1 (2021-10-25)

Bug Fixes

  • pubsub: add methods to allow retrieval of topic/sub config names (#4953) (bff5b1c)
  • pubsub: prevent draining error return for Receive (#4733) (c6d5189)
  • pubsub: tag ctx in iterator with subscription for opencensus (#5011) (cdf9588)

1.17.0 (2021-09-08)

Features

1.16.0 (2021-08-24)

Features

  • pubsub: add topic message retention duration (#4520) (0440336)

1.15.0 (2021-08-13)

Features

  • pubsub: Add topic retention options (5996846)

Bug Fixes

  • pubsub: always make config check to prevent race (#4606) (8cfcf53), refs #3626
  • pubsub: mitigate race in checking ordering config (#4602) (112eea2), refs #3626
  • pubsub: replace IAMPolicy in API config (5996846)

1.14.0 (2021-08-09)

Features

  • pubsub: expose CallOptions for pub/sub retries and timeouts (#4428) (8b99dd3)

1.13.0 (2021-07-20)

Features

  • pubsub/pstest: add ability to create a pstest server listening on (#4459) (f1b7c8b)

1.12.2 (2021-07-08)

Bug Fixes

1.12.1 (2021-07-01)

Bug Fixes

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.