Skip to content

Releases: nats-io/nats.c

Release v3.9.1

02 Oct 21:02
9705670
Compare
Choose a tag to compare

What's Changed

  • Fixed the version string to remove -beta

Full Changelog: v3.9.0...v3.9.1

v3.9.0

01 Oct 19:11
233ca8e
Compare
Choose a tag to compare

Added

  • js_PauseConsumer support (also changed jsConsumerConfig, jsCo… by @levb in #726
  • Expose MaxPendingBytes on the natsOptions by @LaurensVergote in #700
  • kvStore_WatchMulti, js_Subscribe[Sync]Multi by @levb in #750
  • natsConnection_Reconnect by @levb in #757
  • Support %-encoded username/password in server URLs by @levb in #765
  • Support linking with MinGW toolchains on Linux by @XJ-0461 in #763
  • TLS: natsOptions_TLSHandshakeFirst() by @kozlovic in #780
  • Adding SNI extension if available by @thierryba in #787
  • Add filtering to KV method returning all keys by @saurabhojha in #797
  • js_PullSubscribeAsync by @levb in #785
  • [BREAKING] Services: queue group now configurable and can be disabled by @levb in #800
  • nats_GetJWTOrSeed to understand Windows \r\n lines by @levb in #801

Fixed

  • Moved micro_args to examples by @levb in #731
  • Modify JetStream examples (Add comments to SubjectsLen) by @pch-blog in #734
  • Build: issue on Android with NATS_EXTRA_LIB by @kozlovic in #739
  • GH-738, do not prefix endpoint name with the group prefix by @levb in #741
  • GH-736: added extern to micro_Errors by @levb in #743
  • Fix heap buffer overflow in _fetch by @tyler92 in #749
  • Improve Windows build support by @mtmk in #760
  • refactored nats.c, prep for js_PullSubscribeAsync by @levb in #778
  • Fixing setting handshake_first without setting secure in the natsOptions by @thierryba in #789

Non-code changes

  • [ADDED] GitHub action to update docs by @levb in #720
  • [FIXED] doxygen GH action skip ci, include release_* by @levb in #725
  • [FIXED] More fixes for doxygen autoupdate by @levb in #729
  • [FIXED] flapping test: Test_KeyValueMirrorCrossDomains by @levb in #747
  • [ADDED] Build with GitHub actions by @levb in #748
  • [CI only]: Nightly test server main, latest release by @levb in #751
  • [TEST only] increased Test_KeyValueMirrorCrossDomains timeout value by @levb in #753
  • [CI only] Adjusted coverage targets/thresholds by @levb in #752
  • [CI only] run tests once, not x3 except for main, release by @levb in #759
  • [TEST ONLY] Fixed Test_JetStreamSubscribeIdleHeartbeat by @levb in #764
  • [CI only] Skip codecov for forks until they resolve tokenless uploads… by @levb in #768
  • [FIXED] cleaning up sanitize=thread found several races by @levb in #771
  • benchmark for SubscribeAsync by @levb in #774
  • Fixed test_JetStreamInfoAlternates flapper by @kozlovic in #775
  • [CHANGED] sub benchmark tuned by @levb in #777
  • Fixed flappers and test_SSLHandshakeFirst by skipping if server is < 2.10.0 by @kozlovic in #784
  • Fixed test SSLVerifyHostName when build NATS_FORCE_HOST_VERIFICATION=OFF by @kozlovic in #788
  • nats.c is available on conan.io/center by @mathi-m in #791
  • [TEST ONLY] test fixes for 2.11 server changes by @levb in #798

New Contributors

Full Changelog: v3.8.0...v3.9.0

Release v3.8.3

01 Oct 18:02
6b23607
Compare
Choose a tag to compare

Changes

  • Fix heap buffer overflow in _fetch #749
  • Changed "Ws2_32" to "ws2_32" for MinGW compatibility with no adverse e…#763
  • Changed nats_GetJWTOrSeed to understand Windows \r\n lines #801

Test-only changes

  • Fixed flapping test: Test_KeyValueMirrorCrossDomains #747
  • Increased Test_KeyValueMirrorCrossDomains timeout value #753
  • Fixed Test_JetStreamSubscribeIdleHeartbeat #764
  • Test fixes for 2.11 server changes #798

Full Changelog: v3.8.2...v3.8.3

v3.8.2

17 Apr 17:02
d58bb6b
Compare
Choose a tag to compare

Fixed

  • Moved micro_args to examples by @levb in #731
  • [FIXED] Build: issue on Android with NATS_EXTRA_LIB by @kozlovic in #739
  • [FIXED] GH-786, do not prefix endpoint name with the group prefix by @levb in #741
  • [FIXED] GH-736: added extern to micro_Errors by @levb in #743

Full Changelog: v3.8.0...v3.8.2

v3.8.0

28 Feb 18:35
86124c4
Compare
Choose a tag to compare

Added

Fixed

  • nuid: use unsigned intermediate to avoid left shift undefined behavior by @torque in #686
  • Resolve a linking error related to outdated functions in the OpenSSL library by @davidhov in #681
  • Fix link to Homebrew formula by @methvind in #703
  • [FIXED] natsConnection_Connect can get stuck and consume all memory by @kozlovic in #707
  • [FIXED] Random authentication error due to missing signature by @tyler92 in #705
  • [FIXED] Build: Centos issue with pthread by @kozlovic in #710
  • [FIXED] Missing NATS_EXTERN in nats.h for some functions. by @kozlovic in #715

Non-code changes

  • [CHANGED] Updated dependencies.md by @levb in #685
  • Simplify and relax issue forms further by @bruth in #688
  • [CHANGED] Updated maintainers.md by @levb in #687
  • Fix dependencies formatting by @Jarema in #689
  • Disable a Travis-ci matrix run until Ubuntu bug resolved by @kozlovic in #708
  • Fixed download of NATS Server for latest/main by @kozlovic in #711

New Contributors

Full Changelog: v3.7.0...v3.8.0

Release v3.7.0

12 Oct 15:52
5d057f6
Compare
Choose a tag to compare

Changelog

Added

  • NATS Server V2.10 feature support #682, #679
    • Added Metadata to jsStreamConfig and jsConsumerConfig
    • Added Compression, FirstSeq, SubjectTransforms, ConsumerLimits to jsStreamConfig
    • Added SubjectTransforms to jsStreamSourceInfo
    • Added (multiple) jsConsumerConfig.FilterSubjects
  • NATS Microservice framework #640

Fixed

  • Possible crash in async error handler if subscription was destroyed #659
  • Missing connection status check causing unexpected delay during connection close #654 (thx @kolomenkin)
  • nit: conn.c: _doReconnect: remove redundant assignment #651 (thx @kolomenkin)
  • natsConnection_Buffered: fix returned value in case of error #650 (thx @kolomenkin)
  • natsConnection_RequestMsg() incorrectly returns NATS_NO_SERVER_SUPPORT #645
  • Test fixes #655, #643

Complete Changes

nats-io/nats.go@v3.6.1...v3.7.0

Release v3.6.1

07 Mar 20:34
66cec7f
Compare
Choose a tag to compare

Changelog

Fixed

  • Bytes accounting while reading the INFO protocol. Thanks to @dmitrmax for the contribution (#632)
  • natsConnection_GetConnectedUrl() not working during reconnect. Thanks to @Kazmirchuk for the report (#636)
  • Crash processing inbound message for destroyed subscription. Thanks to @fran6co for the report (#638)
  • JetStream:
    • natsSubscription_Fetch() not honoring timeout. Thanks to @kino71 for the report (#634)

Complete Changes

v3.6.0...v3.6.1

Release v3.6.0

27 Jan 00:32
d832491
Compare
Choose a tag to compare

Changelog

Changed

  • Build
    • Deprecated NATS_BUILD_TLS_USE_OPENSSL_1_1_API CMake variable. From a fresh CMake build environment, the build will now assume building against OpenSSL 1.1+ (assuming building with TLS is not disabled). Thanks to @wolfkor for the feedback (#617)
    • Removed git submodule cmake-coveralls since it was causing Travis' "Log Scans" reports (#629)
  • Every connection will now have a default connection error handler (if none is set by the user) that prints the error on stderr (#625)

Added

  • natsOptions_SetUserCredentialsFromMemory option to set the user JWT from memory instead of files. Thanks to @MichaelVoelkel for the contribution (#621)
  • natsOptions_SetMessageBufferPadding that adds padding when allocating buffer for incoming messages. Thanks to @dmitrmax for the contribution (#624)

Fixed

  • Use unsigned char for <ctype.h> functions where appropriate. Thanks to @sebhub for the contribution (#627)

Complete Changes

v3.5.0...v3.6.0

Release v3.5.0

07 Nov 21:22
03ada19
Compare
Choose a tag to compare

Changelog

Added

  • KeyValue:
    • kvStatus_Bytes() to return the size of the bucket (#595)
    • Support for Mirror and Sources (#608)
  • JetStream
    • Stream alternates in jsStreamInfo. See jsStreamInfo.Alternates and jsStreamAlternate structure definition (#611)

Changed

  • KeyValue:
    • Library will no longer try to update the underlying stream when invoking js_CreateKeyValue() (#612)

Complete Changes

v3.4.1...v3.5.0

Release v3.4.1

12 Oct 17:51
b26143d
Compare
Choose a tag to compare

Changelog

Fixed

  • JetStream:
  • Removed unnecessary ifdef in _makeTLSConn. Thanks to @npes87184 for the contribution (#597)
  • The library would reconnect to an implicit NATS Server (one that is discovered with gossip protocol) without using the user's provided username/password present in the server URL(s). The option natsOptions_SetUserInfo() was normally recommended for that case, but with the server ability to be configured with a no_auth_user, the past behavior was leading to very hard issues to investigate. Thanks to @kino71 and @julio77it for the report (#603)

Complete Changes

v3.4.0...v3.4.1