-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added changelog and some docs (#124)
- Loading branch information
1 parent
03ab332
commit 537c1e0
Showing
3 changed files
with
33 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
# TODO | ||
# Upgrade instructions from v0.4.X | ||
|
||
Migrating Pub/Subs | ||
In v1.0.0 we introduced a couple of breaking changes, to keep a stable API until version v2. | ||
|
||
## Migrating Pub/Subs | ||
|
||
All Pub/Subs (excluding go-channel implementation) were moved to separated repositories. | ||
You can replace all import paths, with provided `sed`: | ||
|
||
find . -type f -iname '*.go' -exec sed -i -E "s/github\.com\/ThreeDotsLabs\/watermill\/message\/infrastructure\/(amqp|googlecloud|http|io|kafka|nats|sql)/github.com\/ThreeDotsLabs\/watermill-\1\/pkg\/\1/" "{}" +; | ||
find . -type f -iname '*.go' -exec sed -i -E "s/github\.com\/ThreeDotsLabs\/watermill\/message\/infrastructure\/gochannel/github\.com\/ThreeDotsLabs\/watermill\/pubsub\/gochannel/" "{}" +; | ||
|
||
# Breaking changes | ||
- `message.PubSub` interface was removed | ||
- `message.NewPubSub` constructor was removed | ||
- `message.NoPublishHandlerFunc` is now passed to `message.Router.AddNoPublisherHandler`, instead of `message.HandlerFunc`. | ||
- `message.Router.Run` now requires `context.Context` in parameter | ||
- `PrometheusMetricsBuilder.DecoratePubSub` was removed (because of `message.PubSub` interface removal) | ||
- `cars.ObjectName` was renamed to `cqrs.FullyQualifiedStructName` | ||
- `github.com/ThreeDotsLabs/watermill/message/infrastructure/gochannel` was moved to `github.com/ThreeDotsLabs/watermill/pubsub/gochannel` | ||
- `middleware.Retry` configuration parameters have been renamed | ||
- Universal Pub/Sub tests have been moved from `github.com/ThreeDotsLabs/watermill/message/infrastructure` to `github.com/ThreeDotsLabs/watermill/pubsub/tests` | ||
- All universal tests require now `TestContext`. | ||
- Removed `context` from `googlecloud.NewPublisher` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters