From b9cd4a17f2ffacf827bb05f69396e6e7c2964008 Mon Sep 17 00:00:00 2001 From: Owen Pearson Date: Thu, 31 Aug 2023 14:05:46 +0100 Subject: [PATCH] feat: ably-js peerDependency --- UPDATING.md | 5 +++++ package.json | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/UPDATING.md b/UPDATING.md index 210935c..9f12e6a 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -44,3 +44,8 @@ useChannel({channelName: 'my_channel', id: 'foo'}, (msg) => { console.log(msg); }); ``` + +### ably is now a peer dependency + +Previously, ably was listed as an explicit dependency of the react-hooks packages, but we've now changed it to a peerDependency to better reflect the relationship between the two packages. +In most cases you won't need to do anything, but if you are using an older version of NPM (below version 7) you may need to `npm install ably` in order to ensure that it is still installed in your project. diff --git a/package.json b/package.json index 7fad776..cdb1307 100644 --- a/package.json +++ b/package.json @@ -47,12 +47,10 @@ "typescript": ">=4.4.4", "vitest": "^0.18.0" }, - "dependencies": { - "ably": "^1.2.27" - }, "peerDependencies": { "react": ">=16.8.0", - "react-dom": ">=16.8.0" + "react-dom": ">=16.8.0", + "ably": "^1.2.27" }, "publishConfig": { "access": "public"