Changelog for Go SDK

## v7.3.4 *May 8, 2025* | Type | Changes | |------|----------| | **Modified** | • Revert golang.org/x/net to the safest version. | ## v7.3.3 *May 7, 2025* | Type | Changes | |------|----------| | **Modified** | • Update Go SDK dependencies to fix Snyk vulnerability. Remove Gopkg files. | ## v7.3.2 *March 21, 2025* | Type | Changes | |------|----------| | **Fixed** | • Add handling panic while destroying the pubnub client in case pn.jobQueue is already closed. Thanks @piyushkumar96 for your contribution!. | ## v7.3.1 *March 6, 2025* | Type | Changes | |------|----------| | **Modified** | • Update go sdk dependencies to fix GH Dependabot vulnerabilities (end of support for Go 1.16 and 1.17). | ## v7.3.0 *December 10, 2024* | Type | Changes | |------|----------| | **Added** | • Add `CustomMessageType` to messages and files. | ## v7.2.1 *November 27, 2023* | Type | Changes | |------|----------| | **Fixed** | • Handle unencrypted message while getting messages with crypto. | ## v7.2.0 *October 16, 2023* | Type | Changes | |------|----------| | **Added** | • Update the crypto module structure and add enhanced AES-CBC cryptor. | | **Fixed** | • Improved security of crypto implementation by increasing the cipher key entropy by a factor of two. | ## v7.1.2 *May 11, 2023* | Type | Changes | |------|----------| | **Fixed** | • Use http client configured for subscribe calls to make subscribe calls. | ## v7.1.1 *March 7, 2023* | Type | Changes | |------|----------| | **Fixed** | • Undeprecate Grant Token methods.<br/>• Bump dependencies to avoid vulnerabilities. | ## v7.1.0 *August 9, 2022* | Type | Changes | |------|----------| | **Added** | • Add support for spaces and users permissions in GrantToken.<br/>• Add new Get/SetUserId and NewConfigWithUserId factory method for Config. Deprecate UUID. | ## v7.0.3 *May 4, 2022* | Type | Changes | |------|----------| | **Fixed** | • Set default limit for object calls with context.<br/>• All channel groups management operations could double escape some characters which could cause signature problems. | ## v7.0.2 *March 17, 2022* | Type | Changes | |------|----------| | **Fixed** | • Send region on subscribe calls.<br/>• Close idle connections to free up goroutines when closing PubNub. | ## v7.0.1 *February 8, 2022* | Type | Changes | |------|----------| | **Fixed** | • Omit empty optional parameters for UUID or channel metadata. | ## v7.0.0 *January 6, 2022* | Type | Changes | |------|----------| | **Modified** | • BREAKING CHANGES: UUID is not automatically generated by the SDK anymore. Please set it in the PNConfig before instantiating the PubNub object. If UUID is empty panic will occur. | ## v6.1.0 *December 16, 2021* | Type | Changes | |------|----------| | **Added** | • Add revoke token feature. | ## v6.0.2 *November 24, 2021* | Type | Changes | |------|----------| | **Fixed** | • Fix edge case in Fetch response when filesPayload message is nil. | ## v6.0.1 *October 13, 2021* | Type | Changes | |------|----------| | **Fixed** | • Using correct major version number in imports. | ## v6.0.0 *October 12, 2021* | Type | Changes | |------|----------| | **Added** | • Add grantToken functionality (PAMv3). Method grantToken has been added. It allows generation of signed token with permissions for channels and channel groups.<br/>• Acceptance tests plugged into CI pipeline. | ## v5.0.3 *June 1, 2021* | Type | Changes | |------|----------| | **Fixed** | • Bump version. | ## v5.0.2 *May 27, 2021* | Type | Changes | |------|----------| | **Fixed** | • Go mod file fix. | ## v5.0.0 *May 27, 2021* | Type | Changes | |------|----------| | **Added** | • Update Go SDK Metadata. | | **Modified** | • BREAKING CHANGE - IV used for encryption is now random by default.<br/>• BREAKING CHANGE - The SDK now suppoorts Go Modules. | | **Fixed** | • Presence event occupancy field parsed incorrectly. | ## v4.10.0 *November 2, 2020* | Type | Changes | |------|----------| | **Added** | • Objects v2 PAM changes. | | **Modified** | • Fetch with 100 messages.<br/>• Include timetoken in send file. | | **Fixed** | • Read Publish File Message retry count from config. | ## v4.9.1 *October 1, 2020* | Type | Changes | |------|----------| | **Fixed** | • Fix for a deadlock on destroy.<br/>• Fetch response nil check. | ## v4.9.0 *August 11, 2020* | Type | Changes | |------|----------| | **Added** | • History v3 with UUID and MessageType. | | **Modified** | • BREAKING CHANGE: PNPublishMessage struct changes, PublishFile enhancements. | ## v4.8.0 *July 24, 2020* | Type | Changes | |------|----------| | **Added** | • Files: Allows users to upload and share files. | | **Modified** | • BREAKING CHANGE: EncryptString and DecryptString functions now accept a third param - bool, if true the IV is random and is sent along with the message. Default is false. | | **Fixed** | • BREAKING CHANGE: runes to string converion now returns string, this mostly affect the validation responses. This makes the SDK compatible with Go 1.15 | ## v4.7.0 *June 10, 2020* | Type | Changes | |------|----------| | **Added** | • BREAKING CHANGE: Object V2 (beta). This version does not support Objects v1 (beta) | ## v4.6.5 *March 26, 2020* | Type | Changes | |------|----------| | **Modified** | • Objects Sorting<br/>• Go 1.14+ crypto unit tests fixes | ## v4.6.4 *February 5, 2020* | Type | Changes | |------|----------| | **Fixed** | • Make publish/grant workers per instance | ## v4.6.3 *January 28, 2020* | Type | Changes | |------|----------| | **Fixed** | • Fix data race | ## v4.6.2 *January 24, 2020* | Type | Changes | |------|----------| | **Fixed** | • Make publish key optional on subscribe | ## v4.6.1 *January 3, 2020* | Type | Changes | |------|----------| | **Modified** | • Objects Filtering | ## v4.6.0 *December 17, 2019* | Type | Changes | |------|----------| | **Modified** | • APNS2<br/>• Push payload helper class | ## v4.5.2 *November 27, 2019* | Type | Changes | |------|----------| | **Fixed** | • Heartbeat Manager and Listener Manager deadlock fixes<br/>• Fixed a panic due to a closed channel when `Publish` requests context is cancelled and `Destroy` is called | ## v4.5.1 *October 16, 2019* | Type | Changes | |------|----------| | **Modified** | • UUID in Message Actions response | ## v4.5.0 *October 8, 2019* | Type | Changes | |------|----------| | **Modified** | • WithMeta param is now IncludeMeta in History and Fetch<br/>• WithMessageActions param is now IncludeMessageActions in Fetch | ## v4.4.0 *October 7, 2019* | Type | Changes | |------|----------| | **Modified** | • Message Actions<br/>• Grant Token validation for TTL<br/>• withMeta param in History and Fetch | ## v4.3.1 *October 2, 2019* | Type | Changes | |------|----------| | **Fixed** | • Publish method now sets the ShouldStore flag if it is set to false | ## v4.3.0 *September 23, 2019* | Type | Changes | |------|----------| | **Modified** | • PAM v3 and TMS for Objects<br/>• UUID improvements | ## v4.2.7 *August 28, 2019* | Type | Changes | |------|----------| | **Modified** | • Objects API<br/>• Grant Optimizations | ## v4.2.6 *August 8, 2019* | Type | Changes | |------|----------| | **Modified** | • Signals | ## v4.2.5 *August 1, 2019* | Type | Changes | |------|----------| | **Modified** | • UUID param in Set and Get State | ## v4.2.4 *June 20, 2019* | Type | Changes | |------|----------| | **Fixed** | • Destroy now cleans up all goroutines opened by the SDK | ## v4.2.3 *June 13, 2019* | Type | Changes | |------|----------| | **Fixed** | • Fix deadlock on destroy | | **Modified** | • UUID dependency update | ## v4.2.2 *May 27, 2019* | Type | Changes | |------|----------| | **Modified** | • Presence Timeout cannot be lower than 20 | ## v4.2.1 *March 21, 2019* | Type | Changes | |------|----------| | **Fixed** | • History timetoken float64 to int64 conversion loss fix | ## v4.2.0 *March 13, 2019* | Type | Changes | |------|----------| | **Modified** | • Message Counts simplification (Breaking changes from the previous version). | ## v4.1.7 *March 5, 2019* | Type | Changes | |------|----------| | **Modified** | • Implement history Message Counts | | **Fixed** | • All request were secure (https), even when the Secure flag was false | ## v4.1.6 *January 15, 2019* | Type | Changes | |------|----------| | **Modified** | • Fixes for 32bit and armv7 systems<br/>• QueryParam and State in Presence Heartbeat | ## v4.1.5 *December 18, 2018* | Type | Changes | |------|----------| | **Modified** | • Presence Heartbeat call delays itself when a Subscribe call precedes it | | **Added** | • Heartbeats per channel | ## v4.1.4 *October 18, 2018* | Type | Changes | |------|----------| | **Added** | • QueryParams in all API calls<br/>• d in grant<br/>• maxIdleConnsPerHost setting in config | | **Modified** | • Max concurrent workers for Publish and Grant requests | ## v4.1.3 *September 4, 2018* | Type | Changes | |------|----------| | **Fixed** | • Multiple auth keys in grant fix<br/>• Presence timetoken float64 fix | ## v4.1.2 *August 1, 2018* | Type | Changes | |------|----------| | **Modified** | • Optimizations<br/>• coverage improvements | | **Fixed** | • presence timetoken fix | ## v4.1.1 *June 21, 2018* | Type | Changes | |------|----------| | **Modified** | • MessageQueueOverflowCount and PNRequestMessageCountExceededCategory<br/>• subscribeMessageWorker optimization<br/>• integration tests optimizations | ## v4.1.0 *June 18, 2018* | Type | Changes | |------|----------| | **Modified** | • Some breaking changes from the previous v4's<br/>• config field UseHttp2 is now UseHTTP2<br/>• config field Uuid is now UUID<br/>• Get State/ WhereNow Uuid is now UUID<br/>• In Fire/Publish Ttl() is now TTL()<br/>• In Grant Ttl() is now TTL()<br/>• PNPAMEntityData Ttl is now TTL<br/>• PNAccessManagerKeyData Ttl is now TTL<br/>• TlsEnabled is now TLSEnabled in StatusResponse and ResponseInfo<br/>• Uuid is now UUID in StatusResponse and ResponseInfo | ## v4.0.0-rc.5 *June 8, 2018* | Type | Changes | |------|----------| | **Fixed** | • optimizations and deadlock fixes in subscribe loop<br/>• old channels got subscribed in new sub after reconnection<br/>• data race fixes<br/>• stop tickers, state manager locks | | **Modified** | • close old subworker goroutine before starting new one | ## v4.0.0-rc.4 *May 3, 2018* | Type | Changes | |------|----------| | **Fixed** | • stop heartbeat requests after unsubscribe all<br/>• multiple subscribe fixes<br/>• data race fixes in context<br/>• fix for subscribe listener on disconnect<br/>• heartbeat fixes<br/>• presence heartbeat fixes<br/>• subscribe to presence only channel<br/>• unsubscribe from presence only channel | ## v4.0.0-rc.3 *May 31, 2018* | Type | Changes | |------|----------| | **Fixed** | • Reconnection fixes | ## v4.0.0-rc.2 *May 24, 2018* | Type | Changes | |------|----------| | **Fixed** | • auth fix<br/>• Signature does not match fix when both secret key and auth is set | | **Modified** | • cleanup<br/>• integration tests fixes for the changes done on auth | ## v4.0.0-rc.1 *May 21, 2018* | Type | Changes | |------|----------| | **Fixed** | • set state refactor fix | ## v4.0.0-beta.8 *May 18, 2018* | Type | Changes | |------|----------| | **Modified** | • Subscribe with state | ## v4.0.0-beta.7 *April 12, 2018* | Type | Changes | |------|----------| | **Modified** | • cipher improvements | ## v4.0.0-beta.6 *April 5, 2018* | Type | Changes | |------|----------| | **Modified** | • Fire, Fetch, HereNowRequest | ## v4.0.0-beta.5 *January 10, 2018* | Type | Changes | |------|----------| | **Modified** | • add subscribe builder | ## v4.0.0-beta.4 *January 3, 2018* | Type | Changes | |------|----------| | **Modified** | • add Telemetry Manager | ## v4.0.0-beta.3 *December 20, 2017* | Type | Changes | |------|----------| | **Modified** | • add Destroy() method | ## v4.0.0-beta.2 *November 7, 2017* | Type | Changes | |------|----------| | **Modified** | • add reconnection manager<br/>• rename list, remove, add, delete channel of channel groups | | **Fixed** | • fix comma encoding<br/>• fix signature | ## v4.0.0-beta *October 4, 2017* | Type | Changes | |------|----------| | **Modified** | • initial beta |

v7.3.4

May 8, 2025
Modified
  • Revert golang.org/x/net to the safest version.

v7.3.3

May 7, 2025
Modified
  • Update Go SDK dependencies to fix Snyk vulnerability. Remove Gopkg files.

v7.3.2

March 21, 2025
Fixed
  • Add handling panic while destroying the pubnub client in case pn.jobQueue is already closed. Thanks @piyushkumar96 for your contribution!.

v7.3.1

March 6, 2025
Modified
  • Update go sdk dependencies to fix GH Dependabot vulnerabilities (end of support for Go 1.16 and 1.17).

v7.3.0

December 10, 2024
Added
  • Add CustomMessageType to messages and files.

v7.2.1

November 27, 2023
Fixed
  • Handle unencrypted message while getting messages with crypto.

v7.2.0

October 16, 2023
Added
  • Update the crypto module structure and add enhanced AES-CBC cryptor.
Fixed
  • Improved security of crypto implementation by increasing the cipher key entropy by a factor of two.

v7.1.2

May 11, 2023
Fixed
  • Use http client configured for subscribe calls to make subscribe calls.

v7.1.1

March 7, 2023
Fixed
  • Undeprecate Grant Token methods.
  • Bump dependencies to avoid vulnerabilities.

v7.1.0

August 9, 2022
Added
  • Add support for spaces and users permissions in GrantToken.
  • Add new Get/SetUserId and NewConfigWithUserId factory method for Config. Deprecate UUID.

v7.0.3

May 4, 2022
Fixed
  • Set default limit for object calls with context.
  • All channel groups management operations could double escape some characters which could cause signature problems.

v7.0.2

March 17, 2022
Fixed
  • Send region on subscribe calls.
  • Close idle connections to free up goroutines when closing PubNub.

v7.0.1

February 8, 2022
Fixed
  • Omit empty optional parameters for UUID or channel metadata.

v7.0.0

January 6, 2022
Modified
  • BREAKING CHANGES: UUID is not automatically generated by the SDK anymore. Please set it in the PNConfig before instantiating the PubNub object. If UUID is empty panic will occur.

v6.1.0

December 16, 2021
Added
  • Add revoke token feature.

v6.0.2

November 24, 2021
Fixed
  • Fix edge case in Fetch response when filesPayload message is nil.

v6.0.1

October 13, 2021
Fixed
  • Using correct major version number in imports.

v6.0.0

October 12, 2021
Added
  • Add grantToken functionality (PAMv3). Method grantToken has been added. It allows generation of signed token with permissions for channels and channel groups.
  • Acceptance tests plugged into CI pipeline.

v5.0.3

June 1, 2021
Fixed
  • Bump version.

v5.0.2

May 27, 2021
Fixed
  • Go mod file fix.

v5.0.0

May 27, 2021
Added
  • Update Go SDK Metadata.
Modified
  • BREAKING CHANGE - IV used for encryption is now random by default.
  • BREAKING CHANGE - The SDK now suppoorts Go Modules.
Fixed
  • Presence event occupancy field parsed incorrectly.

v4.10.0

November 2, 2020
Added
  • Objects v2 PAM changes.
Modified
  • Fetch with 100 messages.
  • Include timetoken in send file.
Fixed
  • Read Publish File Message retry count from config.

v4.9.1

October 1, 2020
Fixed
  • Fix for a deadlock on destroy.
  • Fetch response nil check.

v4.9.0

August 11, 2020
Added
  • History v3 with UUID and MessageType.
Modified
  • BREAKING CHANGE: PNPublishMessage struct changes, PublishFile enhancements.

v4.8.0

July 24, 2020
Added
  • Files: Allows users to upload and share files.
Modified
  • BREAKING CHANGE: EncryptString and DecryptString functions now accept a third param - bool, if true the IV is random and is sent along with the message. Default is false.
Fixed
  • BREAKING CHANGE: runes to string converion now returns string, this mostly affect the validation responses. This makes the SDK compatible with Go 1.15

v4.7.0

June 10, 2020
Added
  • BREAKING CHANGE: Object V2 (beta). This version does not support Objects v1 (beta)

v4.6.5

March 26, 2020
Modified
  • Objects Sorting
  • Go 1.14+ crypto unit tests fixes

v4.6.4

February 5, 2020
Fixed
  • Make publish/grant workers per instance

v4.6.3

January 28, 2020
Fixed
  • Fix data race

v4.6.2

January 24, 2020
Fixed
  • Make publish key optional on subscribe

v4.6.1

January 3, 2020
Modified
  • Objects Filtering

v4.6.0

December 17, 2019
Modified
  • APNS2
  • Push payload helper class

v4.5.2

November 27, 2019
Fixed
  • Heartbeat Manager and Listener Manager deadlock fixes
  • Fixed a panic due to a closed channel when Publish requests context is cancelled and Destroy is called

v4.5.1

October 16, 2019
Modified
  • UUID in Message Actions response

v4.5.0

October 8, 2019
Modified
  • WithMeta param is now IncludeMeta in History and Fetch
  • WithMessageActions param is now IncludeMessageActions in Fetch

v4.4.0

October 7, 2019
Modified
  • Message Actions
  • Grant Token validation for TTL
  • withMeta param in History and Fetch

v4.3.1

October 2, 2019
Fixed
  • Publish method now sets the ShouldStore flag if it is set to false

v4.3.0

September 23, 2019
Modified
  • PAM v3 and TMS for Objects
  • UUID improvements

v4.2.7

August 28, 2019
Modified
  • Objects API
  • Grant Optimizations

v4.2.6

August 8, 2019
Modified
  • Signals

v4.2.5

August 1, 2019
Modified
  • UUID param in Set and Get State

v4.2.4

June 20, 2019
Fixed
  • Destroy now cleans up all goroutines opened by the SDK

v4.2.3

June 13, 2019
Fixed
  • Fix deadlock on destroy
Modified
  • UUID dependency update

v4.2.2

May 27, 2019
Modified
  • Presence Timeout cannot be lower than 20

v4.2.1

March 21, 2019
Fixed
  • History timetoken float64 to int64 conversion loss fix

v4.2.0

March 13, 2019
Modified
  • Message Counts simplification (Breaking changes from the previous version).

v4.1.7

March 5, 2019
Modified
  • Implement history Message Counts
Fixed
  • All request were secure (https), even when the Secure flag was false

v4.1.6

January 15, 2019
Modified
  • Fixes for 32bit and armv7 systems
  • QueryParam and State in Presence Heartbeat

v4.1.5

December 18, 2018
Modified
  • Presence Heartbeat call delays itself when a Subscribe call precedes it
Added
  • Heartbeats per channel

v4.1.4

October 18, 2018
Added
  • QueryParams in all API calls
  • d in grant
  • maxIdleConnsPerHost setting in config
Modified
  • Max concurrent workers for Publish and Grant requests

v4.1.3

September 4, 2018
Fixed
  • Multiple auth keys in grant fix
  • Presence timetoken float64 fix

v4.1.2

August 1, 2018
Modified
  • Optimizations
  • coverage improvements
Fixed
  • presence timetoken fix

v4.1.1

June 21, 2018
Modified
  • MessageQueueOverflowCount and PNRequestMessageCountExceededCategory
  • subscribeMessageWorker optimization
  • integration tests optimizations

v4.1.0

June 18, 2018
Modified
  • Some breaking changes from the previous v4's
  • config field UseHttp2 is now UseHTTP2
  • config field Uuid is now UUID
  • Get State/ WhereNow Uuid is now UUID
  • In Fire/Publish Ttl() is now TTL()
  • In Grant Ttl() is now TTL()
  • PNPAMEntityData Ttl is now TTL
  • PNAccessManagerKeyData Ttl is now TTL
  • TlsEnabled is now TLSEnabled in StatusResponse and ResponseInfo
  • Uuid is now UUID in StatusResponse and ResponseInfo

v4.0.0-rc.5

June 8, 2018
Fixed
  • optimizations and deadlock fixes in subscribe loop
  • old channels got subscribed in new sub after reconnection
  • data race fixes
  • stop tickers, state manager locks
Modified
  • close old subworker goroutine before starting new one

v4.0.0-rc.4

May 3, 2018
Fixed
  • stop heartbeat requests after unsubscribe all
  • multiple subscribe fixes
  • data race fixes in context
  • fix for subscribe listener on disconnect
  • heartbeat fixes
  • presence heartbeat fixes
  • subscribe to presence only channel
  • unsubscribe from presence only channel

v4.0.0-rc.3

May 31, 2018
Fixed
  • Reconnection fixes

v4.0.0-rc.2

May 24, 2018
Fixed
  • auth fix
  • Signature does not match fix when both secret key and auth is set
Modified
  • cleanup
  • integration tests fixes for the changes done on auth

v4.0.0-rc.1

May 21, 2018
Fixed
  • set state refactor fix

v4.0.0-beta.8

May 18, 2018
Modified
  • Subscribe with state

v4.0.0-beta.7

April 12, 2018
Modified
  • cipher improvements

v4.0.0-beta.6

April 5, 2018
Modified
  • Fire, Fetch, HereNowRequest

v4.0.0-beta.5

January 10, 2018
Modified
  • add subscribe builder

v4.0.0-beta.4

January 3, 2018
Modified
  • add Telemetry Manager

v4.0.0-beta.3

December 20, 2017
Modified
  • add Destroy() method

v4.0.0-beta.2

November 7, 2017
Modified
  • add reconnection manager
  • rename list, remove, add, delete channel of channel groups
Fixed
  • fix comma encoding
  • fix signature

v4.0.0-beta

October 4, 2017
Modified
  • initial beta
Last updated on
On this page