From 13dae1666a33e8009461c858e93d73478b26d9e1 Mon Sep 17 00:00:00 2001 From: Robert Laszczak Date: Wed, 13 Feb 2019 09:25:50 +0100 Subject: [PATCH] added UPGRADE-0.3.md (#48) --- UPGRADE-0.3.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 UPGRADE-0.3.md diff --git a/UPGRADE-0.3.md b/UPGRADE-0.3.md new file mode 100644 index 000000000..8f2544408 --- /dev/null +++ b/UPGRADE-0.3.md @@ -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