Skip to content

Commit

Permalink
added UPGRADE-0.3.md (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
roblaszczak authored and maclav3 committed Feb 13, 2019
1 parent e1f528a commit 13dae16
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions UPGRADE-0.3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# UPGRADE FROM 0.2.x to 0.3

# `watermill/message`

- `message.Message.Ack` and `message.Message.Nack` now return `bool` instead of `error`
- `message.Subscriber.Subscribe` now accepts `context.Context` as the first argument
- `message.Subscriber.Subscribe` now returns `<-chan *Message` instead of `chan *Message`
- `message.Router.AddHandler` and `message.Router.AddNoPublisherHandler` now panic, instead of returning error

# `watermill/message/infrastructure`

- updated all Pub/Subs to new `message.Subscriber` interface
- `gochannel.NewGoChannel` now accepts `gochannel.Config`, instead of positional parameters
- `http.NewSubscriber` now accepts `http.SubscriberConfig`, instead of positional parameters

# `watermill/message/router/middleware`

- `metrics.NewMetrics` is removed, please use the [metrics](components/metrics) component instead

# `watermill`

- `watermill.LoggerAdapter` interface now requires a `With(fields LogFields) LoggerAdapter` method

0 comments on commit 13dae16

Please sign in to comment.