diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9e5ca5..6341849 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,14 +45,12 @@ jobs: with: packages: libevent-dev libuv1-dev libev-dev libglib2.0-dev ${{ matrix.compiler }} version: 1.0 - - name: Install hiredis (pre-v1.1.1) + - name: Install hiredis env: - SHA: d13c091e9f09fe4ad1858cd54ed3a842ac00b8e6 + VERSION: 1.2.0 run: | - # When v1.1.1 is released update to: - # curl -L https://github.com/redis/hiredis/archive/refs/tags/v1.1.1.tar.gz | tar -xz - curl -L https://github.com/redis/hiredis/archive/${SHA}.tar.gz | tar -xz - cmake -S hiredis-${SHA} -B hiredis-build -DENABLE_SSL=ON + curl -L https://github.com/redis/hiredis/archive/v${VERSION}.tar.gz | tar -xz + cmake -S hiredis-${VERSION} -B hiredis-build -DENABLE_SSL=ON sudo make -C hiredis-build install - name: Setup cmake uses: jwlawson/actions-setup-cmake@v1 diff --git a/CHANGELOG.md b/CHANGELOG.md index f5fa92a..8733096 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +### 0.11.0 - Sep 15, 2023 + +* Add event callback for events like 'slotmap updated'. +* Add connect callback for the sync API. +* Add connect function in the async API for fully asynchronous startup. +* Update the slotmap asynchronously in the async API. +* Follow MOVED redirect and update slot mapping concurrently. +* Update slotmap on error. + When connect failed, update slotmap instead of sending command to random node. + When command fails (timeout, etc.) schedule slotmap update for next command. +* Update slotmap when redisClusterCommandToNode() fails. +* Correct parsing of an IPv6 address in an ASK redirect. +* Correct handling of XREAD and XREADGROUP. +* Rename of some types and functions. + (Old names are still defined by default for backward compability.) +* Update hiredis to v1.2.0 when the CMake build handles the download. +* Build improvements. + ### 0.10.0 - Feb 02, 2023 * More commands are supported. diff --git a/CMakeLists.txt b/CMakeLists.txt index a5a653f..2912cf4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,7 @@ if(DOWNLOAD_HIREDIS) "Upgrade CMake or manually install 'hiredis' and use -DDOWNLOAD_HIREDIS=OFF") endif() - set(HIREDIS_VERSION "1.1.0") + set(HIREDIS_VERSION "1.2.0") message("Downloading dependency: hiredis v${HIREDIS_VERSION}") include(FetchContent) diff --git a/hircluster.h b/hircluster.h index 7b7a926..e56a1ea 100644 --- a/hircluster.h +++ b/hircluster.h @@ -40,9 +40,9 @@ #define UNUSED(x) (void)(x) #define HIREDIS_CLUSTER_MAJOR 0 -#define HIREDIS_CLUSTER_MINOR 10 +#define HIREDIS_CLUSTER_MINOR 11 #define HIREDIS_CLUSTER_PATCH 0 -#define HIREDIS_CLUSTER_SONAME 0.10 +#define HIREDIS_CLUSTER_SONAME 0.11 #define REDIS_CLUSTER_SLOTS 16384