From e522ca714e8feb3235566c27b93f1d0f10b8bfb0 Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Fri, 4 Oct 2024 15:41:48 +0100 Subject: [PATCH 1/2] chore: update changelog for 2.4.1 release --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39e1f7b36..21f3eb89c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ This contains only the most important and/or user-facing changes; for a full changelog, see the commit history. +## [2.4.1](https://github.com/ably/ably-js/tree/2.4.1) (2024-10-04) + +- Fix `usePresence` hook wasn't leaving presence if component unmounted during channel attaching state [\#1884](https://github.com/ably/ably-js/pull/1884) + ## [2.4.0](https://github.com/ably/ably-js/tree/2.4.0) (2024-09-11) - Add `wsConnectivityCheckUrl` client option [\#1862](https://github.com/ably/ably-js/pull/1862) From b3af19a76ffcc019c5d1afe0281bf7981e6d2166 Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Fri, 4 Oct 2024 15:42:22 +0100 Subject: [PATCH 2/2] chore: bump version for 2.4.1 release --- package-lock.json | 4 ++-- package.json | 2 +- src/platform/react-hooks/src/AblyReactHooks.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 63325af50..c5f3dea2d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ably", - "version": "2.4.0", + "version": "2.4.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ably", - "version": "2.4.0", + "version": "2.4.1", "license": "Apache-2.0", "dependencies": { "@ably/msgpack-js": "^0.4.0", diff --git a/package.json b/package.json index 5bb15dd54..0a8271645 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ably", "description": "Realtime client library for Ably, the realtime messaging service", - "version": "2.4.0", + "version": "2.4.1", "license": "Apache-2.0", "bugs": { "url": "https://github.com/ably/ably-js/issues", diff --git a/src/platform/react-hooks/src/AblyReactHooks.ts b/src/platform/react-hooks/src/AblyReactHooks.ts index 9874cd8f7..aa421f28c 100644 --- a/src/platform/react-hooks/src/AblyReactHooks.ts +++ b/src/platform/react-hooks/src/AblyReactHooks.ts @@ -12,7 +12,7 @@ export type ChannelNameAndOptions = { export type ChannelNameAndAblyId = Pick; export type ChannelParameters = string | ChannelNameAndOptions; -export const version = '2.4.0'; +export const version = '2.4.1'; export function channelOptionsWithAgent(options?: Ably.ChannelOptions) { return {