v8.0.0
·
1 commit
to master
since this release
October 29 2025
Added
- Add
UseRawMessageparameter toSendFileandPublishFileMessagefunctions - when enabled, message content is sent as-is without wrapping in a "text" JSON field. - Add
CustomMessageTypeparameter toPublishFileMessagefunction to enable custom message type specification. - Add
StatusandTypefields to App Context objects (Channel and UUID Metadata, Channel Members and Memberships). - Add
IfMatchETagmethod toSetChannelMetadataandSetUUIDMetadatato enable conditional updates that prevent overwriting metadata without fetching the latest version first. - The
HereNowmethod now returns a maximum of 1,000 occupants per channel. Previously, it would return all occupants regardless of count. If you have channels with more than 1,000 occupants, you must use pagination (newLimitandOffsetparameters) to retrieve the complete list. BREAKING CHANGE. - Add testable code snippets with examples for all API endpoints. Fix old snippets and remove outdated ones.
Fixed
- Fix bug where
ShouldStoreparameter was not being added toSendFilerequests. Now correctly defaults to false. BREAKING CHANGE. - Fix bug where
SendFilefunction was not includingMetaand other parameters in the request. - Fix bug where
Firemethod was not correctly includingMetaparameter in the request.
Modified
- Remove
PNPushTypeMPNSpush type entirely, deprecatePNPushTypeGCMandPNPushTypeAPNS, and add newPNPushTypeFCMtype for Firebase Cloud Messaging. BREAKING CHANGE. - Change
PNPublishMessage.Textparameter type from string to interface{} to enable sending arbitrary JSON types in published file messages. BREAKING CHANGE. - Remove not supported
Reverseparameter fromFetchfunction. BREAKING CHANGE. - Rename status field to
Statusin response structures to fix JSON marshalling and linter errors. - Add missing unit and e2e tests for all API endpoints to improve code coverage.
- Change testing script to use
GoTestSumfor improved test output formatting and readability.