Skip to content

Releases: ThreeDotsLabs/watermill-googlecloud

v2.0.0

25 Aug 14:44

Choose a tag to compare

What's Changed

  • Bump Google pubsub client to v2 by @m110 in #42

Full Changelog: v1.2.6...v2.0.0

Major version bump (v2)

Breaking changes & Upgrade instructions

SubscriberConfig no longer exposes the SubscriptionConfig field. Instead, use GenerateSubscription function.

The function returns *pubsubpb.Subscription which mostly maps 1:1 with the old SubscriptionConfig.

                googlecloud.SubscriberConfig{
                        ProjectID:                "tests",
                        GenerateSubscriptionName: subscriptionName,
-                       SubscriptionConfig: pubsub.SubscriptionConfig{
-                               RetainAckedMessages:   false,
-                               EnableMessageOrdering: enableMessageOrdering,
+                       GenerateSubscription: func(params googlecloud.GenerateSubscriptionParams) *pubsubpb.Subscription {
+                               return &pubsubpb.Subscription{
+                                       RetainAckedMessages:   false,
+                                       EnableMessageOrdering: enableMessageOrdering,
+                               }
                        },
                        Unmarshaler: unmarshaler,
                },

SDK update details: https://github.com/googleapis/google-cloud-go/blob/main/pubsub/MIGRATING.md

v1.2.6

25 Aug 13:43
2053ccb

Choose a tag to compare

What's Changed

  • Propagate message context to publisher by @m110 in #43

Full Changelog: v1.2.5...v1.2.6

v1.2.5

25 Aug 08:14
f4e5614

Choose a tag to compare

What's Changed

  • Bump golang.org/x/oauth2 from 0.22.0 to 0.27.0 by @dependabot[bot] in #41
  • Adding a configuration option for topic-subscription validation. by @matdurand in #29

New Contributors

Full Changelog: v1.2.4...v1.2.5

v1.2.4

04 Jun 15:53
f6106ed

Choose a tag to compare

What's Changed

  • Rework Subscriber to use a single pubsub client by @m110 in #39

Full Changelog: v1.2.3...v1.2.4

v1.2.3

03 Apr 15:35
4a22a44

Choose a tag to compare

What's Changed

  • fix(subscriber): handle concurrent call to close correctly by @jlevesy in #34

New Contributors

Full Changelog: v1.2.2...v1.2.3

v1.2.2

16 Oct 09:07
63b382e

Choose a tag to compare

What's Changed

  • Adds pubsub.ClientConfig to the configuration by @rjfonseca in #35

New Contributors

Full Changelog: v1.2.1...v1.2.2

v1.2.1

26 Aug 14:56
cef4dd1

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.0...v1.2.1

v1.2.0

16 Apr 07:18
6bc9eb2

Choose a tag to compare

What's Changed

  • Adding Server-Generated Message ID To Received Message Attributes by @arthurspa in #31

New Contributors

Full Changelog: v1.1.0...v1.2.0

v1.1.0

12 Oct 19:47

Choose a tag to compare

proper handling of EnableMessageOrdering where a new topic is created

v1.0.13

17 Mar 20:28
b8a24c3

Choose a tag to compare

  • Set ReceiveSettings to an existing subscription - thanks @usumachi!