diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f8d097946..a82ea59b12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ #### Changes -* Node: Added `invokeScript` API for cluster client ([#2284](https://github.com/valkey-io/valkey-glide/pull/2284)) +* Node: Added `invokeScript` API with routing for cluster client ([#2284](https://github.com/valkey-io/valkey-glide/pull/2284)) * Python: Replace instances of Redis with Valkey ([#2266](https://github.com/valkey-io/valkey-glide/pull/2266)) * Java: Replace instances of Redis with Valkey ([#2268](https://github.com/valkey-io/valkey-glide/pull/2268)) * Node: Replace instances of Redis with Valkey ([#2260](https://github.com/valkey-io/valkey-glide/pull/2260)) diff --git a/node/src/GlideClusterClient.ts b/node/src/GlideClusterClient.ts index b9027e33f0..55337a519b 100644 --- a/node/src/GlideClusterClient.ts +++ b/node/src/GlideClusterClient.ts @@ -1443,7 +1443,7 @@ export class GlideClusterClient extends BaseClient { } /** - * Invokes a Lua script with its keys and arguments. + * Invokes a Lua script with arguments. * This method simplifies the process of invoking scripts on a Valkey server by using an object that represents a Lua script. * The script loading, argument preparation, and execution will all be handled internally. If the script has not already been loaded, * it will be loaded automatically using the `SCRIPT LOAD` command. After that, it will be invoked using the `EVALSHA` command. diff --git a/node/tests/GlideClusterClient.test.ts b/node/tests/GlideClusterClient.test.ts index 638d286272..baf2331100 100644 --- a/node/tests/GlideClusterClient.test.ts +++ b/node/tests/GlideClusterClient.test.ts @@ -1488,8 +1488,9 @@ describe("GlideClusterClient", () => { client.close(); } }); + it( - "invoke script invokeScript %p", + "invoke script with route invokeScriptWithRoute %p", async () => { const client = await GlideClusterClient.createClient(