Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ on:

jobs:
test:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
go: ['1.18', '1.19']
go: ['1.25', '1.26']

name: Go ${{ matrix.go }} Test

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}

Expand All @@ -37,7 +37,7 @@ jobs:

finish:
needs: test
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: shogo82148/actions-goveralls@v1
with:
Expand Down
40 changes: 38 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

# Changelog

## 6.0.0

### ⚠️ Breaking Changes

#### Minimum Go Version
- **BREAKING**: Now requires Go 1.26 or later (previously Go 1.11+)

#### Context Support
- **BREAKING**: All HTTP methods now require `context.Context` as the first parameter:
- `Trigger(ctx, channel, event, data)`
- `TriggerWithParams(ctx, channel, event, data, params)`
- `TriggerMulti(ctx, channels, event, data)`
- `TriggerMultiWithParams(ctx, channels, event, data, params)`
- `TriggerBatch(ctx, batch)`
- `SendToUser(ctx, userId, event, data)`
- `Channels(ctx, params)`
- `Channel(ctx, name, params)`
- `GetChannelUsers(ctx, name)`

#### Removed Deprecated APIs
- **BREAKING**: Removed `TriggerExclusive()` - use `TriggerWithParams()` with `SocketID` parameter
- **BREAKING**: Removed `TriggerMultiExclusive()` - use `TriggerMultiWithParams()` with `SocketID` parameter
- **BREAKING**: Removed `AuthenticatePrivateChannel()` - use `AuthorizePrivateChannel()`
- **BREAKING**: Removed `AuthenticatePresenceChannel()` - use `AuthorizePresenceChannel()`
- **BREAKING**: Removed `EncryptionMasterKey` field - use `EncryptionMasterKeyBase64`

### Changed
- Replaced deprecated `io/ioutil` with `io` package
- Updated `golang.org/x/crypto` to v0.49.0
- Updated `testify` to v1.11.1 with new import path `github.com/stretchr/testify`
- Improved error handling (no more panics in library code)
- Fixed typo: "Paramater" → "parameter" in error messages

### Fixed
- Added missing error check after `http.NewRequest` in request handling

## 5.1.1

- [CHANGED] readme example for user authentication
Expand Down
Loading