Skip to content

Releases: pubnub/c-core

v5.1.6

05 Aug 15:07
822d4f1
Compare
Choose a tag to compare

August 05 2025

Fixed

  • Fixed deadlock for sync polling via last_result. Fixed the following issues reported by @lucast-broadsign: #222.

v5.1.5

28 Jul 14:57
bad0962
Compare
Choose a tag to compare

July 28 2025

Fixed

  • Define sleep function for Windows builds.

Modified

  • Guard unistd inclusion with platform check.

v5.1.4

22 Jul 08:25
e63e40f
Compare
Choose a tag to compare

July 22 2025

Fixed

  • Fix bug that UTF8 characters used in some end points were breaking the request format.

v5.1.3

15 Jul 14:49
085bab0
Compare
Choose a tag to compare

July 15 2025

Fixed

  • Fixed memory leak when calling pubnub_free on an initialized PubNub object.
  • Fixed socket leak when calling pubnub_free on a PubNub object with an open connection.
  • Fixed socket leak when publishing using a context with use_http_keep_alive = 0.
  • Fixed crash due to double-free when calling pubnub_free after pbpal_handle_socket_condition encounters a socket error. Fixed the following issues reported by @blake-spangenberg: #221.

v5.1.2

08 Jul 20:55
20a983b
Compare
Choose a tag to compare

July 08 2025

Modified

  • Use recursive semaphore for mutex lock and unlock in pbpal_mutex.h.

v5.1.1

26 Jun 08:31
3792764
Compare
Choose a tag to compare

June 26 2025

Fixed

  • Fix issue because of which it was impossible for sync PubNub context version to cancel operation awaited in secondary thread.

Modified

  • Fix the code for which the compiler emitted warnings during the build for mbedTLS and ESP_PLATFORM=1. Fixed the following issues reported by @blake-spangenberg: #213.

v5.1.0

20 Jun 07:29
7e24c81
Compare
Choose a tag to compare

June 20 2025

Added

  • Add functions which allow to enable and disable "smart heartbeat" behavior for automatic heartbeat: pubnub_enable_smart_heartbeat and pubnub_disable_smart_heartbeat.
  • Add pubnub_last_publish_timetoken function to retrieve recently published message high precision timetoken.

Fixed

  • Fix issue which caused deadlock on secondary thread and as result heartbeat stop.
  • Fix signature of pbntf_init_callback and its usage in Windows dedicated code.

v5.0.3

17 Jun 13:59
74b83e0
Compare
Choose a tag to compare

June 17 2025

Fixed

  • Fixed wrong string copy if multiple channels(groups) are provided for pubnub_set_state. Note that using memcpy instead of strncpy is used intentionally because of the ESP support.
  • Fixed crash when double comma is provided to pubnub_set_state as a channels(groups).
  • Fixed wrong check if the reallocation is required in pubnub_set_state.
  • Removed additional allocation of memory for temporary data.
  • Changed the amount of bytes allocated based on the provided parameters instead of hardcoded values.

v5.0.2

02 Jun 12:36
5dfe360
Compare
Choose a tag to compare

June 02 2025

Fixed

  • Fix pubnub_reconnect and pubnub_disconnect not to print an error when called within incorrect subscription state. Warning will be printed instead and function won't execute further.

v5.0.1

26 May 14:04
24b3601
Compare
Choose a tag to compare

May 26 2025

Fixed

  • Fix crashes that could sometimes happen during unsubscribe due to calling strlen on null pointers.
  • Fix pubnub_fetch_history function when used with crypto api. Change PUBNUB_MAX_URL_PARAMS to 12.
  • Fix the issue that was causing memory fragmentation fault at the moment of the next automated heartbeat call.