Skip to content

Commit

Permalink
Release 0.11.0
Browse files Browse the repository at this point in the history
* Release 0.11.0
* Lift hiredis to v1.2.0 in CI and tests

Co-authored-by: Viktor Söderqvist <viktor.soderqvist@est.tech>
  • Loading branch information
bjosv and zuiderkwast authored Sep 15, 2023
1 parent 728956c commit 0a4deb6
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions hircluster.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0a4deb6

Please sign in to comment.