Skip to content

Commit 4a69950

Browse files
authored
v5.0.0 release (#77)
v5.0.0 release Note that while we already have a go.mod and go.sum files, this package was not fully compatible with go modules because the pacakge name had not been updated to github.com/pusher/pusher-http-go/v4. This commit completes this step. We are taking the approach described in option 1. of https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher, and leaving major versions on the master branch. Note that this will cause problems for legacy package managers like `dep`.
1 parent f15bab9 commit 4a69950

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
5.0.0 / 2021-02-19
2+
==================
3+
* Breaking change: `TriggerBatch` now returns `(*TriggerBatchChannelsList, error)` instead of `error`
4+
* Breaking change: `Channels` takes `ChannelsParams` as a parameter instead of `map[string]string`
5+
* Breaking change: `Channel` takes `ChannelParams` as a parameter instead of `map[string]string`
6+
* Breaking change: switches to go modules using option 1. described in https://github.com/golang/go/wiki/Modules#releasing-modules-v2-or-higher - this will cause problems for legacy package managers like `dep`
7+
* Added `TriggerWithParams` and `TriggerMultiWithParams` - they provide support for requesting channel attributes by specifying an `Info` field
8+
* Added a `Info` field to the `Event` type passed to `TriggerBatch`
9+
* Deprecated `TriggerExclusive` and `TriggerMultiExclusive` (use `TriggerWithParams` and `TriggerMultiWithParams` instead)
10+
111
4.0.4 / 2020-09-02
212
==================
313
* Allow message size to be overridden for dedicate cluster customers (PR [#63](https://github.com/pusher/pusher-http-go/pull/71))

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Register for free at <https://pusher.com/channels> and use the application crede
3232
## Installation
3333

3434
```sh
35-
$ go get github.com/pusher/pusher-http-go
35+
$ go get github.com/pusher/pusher-http-go/v5
3636
```
3737

3838
## Getting Started
@@ -41,7 +41,7 @@ $ go get github.com/pusher/pusher-http-go
4141
package main
4242

4343
import (
44-
"github.com/pusher/pusher-http-go"
44+
"github.com/pusher/pusher-http-go/v5"
4545
)
4646

4747
func main(){
@@ -187,7 +187,7 @@ import (
187187
"appengine"
188188
"appengine/urlfetch"
189189
"fmt"
190-
"github.com/pusher/pusher-http-go"
190+
"github.com/pusher/pusher-http-go/v5"
191191
"net/http"
192192
)
193193

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var pusherPathRegex = regexp.MustCompile("^/apps/([0-9]+)$")
1717
var maxTriggerableChannels = 100
1818

1919
const (
20-
libraryVersion = "4.0.4"
20+
libraryVersion = "5.0.0"
2121
libraryName = "pusher-http-go"
2222
)
2323

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/pusher/pusher-http-go
1+
module github.com/pusher/pusher-http-go/v5
22

33
go 1.14
44

0 commit comments

Comments
 (0)