Skip to content

Commit

Permalink
Merge branch 'release-1.1' into CI/fix_maven_release_test
Browse files Browse the repository at this point in the history
  • Loading branch information
GumpacG authored Sep 20, 2024
2 parents 2c3302e + ae86153 commit 2811164
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#### Changes
* Node: Fix binary variant for xinfogroups and lrem ([#2324](https://github.com/valkey-io/valkey-glide/pull/2324))
* Node: Fixed missing exports ([#2301](https://github.com/valkey-io/valkey-glide/pull/2301))
* Node: Use `options` struct for all optional arguments ([#2287](https://github.com/valkey-io/valkey-glide/pull/2287))
* Node: Added `invokeScript` API with routing for cluster client ([#2284](https://github.com/valkey-io/valkey-glide/pull/2284))
Expand Down
2 changes: 1 addition & 1 deletion node/src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5523,7 +5523,7 @@ export class BaseClient {
* ```
*/
public async xinfoGroups(
key: string,
key: GlideString,
options?: DecoderOption,
): Promise<Record<string, GlideString | number | null>[]> {
return this.createWritePromise<
Expand Down
2 changes: 1 addition & 1 deletion node/src/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2694,7 +2694,7 @@ export function createXInfoStream(
}

/** @internal */
export function createXInfoGroups(key: string): command_request.Command {
export function createXInfoGroups(key: GlideString): command_request.Command {
return createCommand(RequestType.XInfoGroups, [key]);
}

Expand Down
4 changes: 2 additions & 2 deletions node/src/Transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1252,7 +1252,7 @@ export class BaseTransaction<T extends BaseTransaction<T>> {
* Command Response - the number of the removed elements.
* If `key` does not exist, 0 is returned.
*/
public lrem(key: GlideString, count: number, element: string): T {
public lrem(key: GlideString, count: number, element: GlideString): T {
return this.addAndReturn(createLRem(key, count, element));
}

Expand Down Expand Up @@ -2651,7 +2651,7 @@ export class BaseTransaction<T extends BaseTransaction<T>> {
* attributes of a consumer group for the stream at `key`.
* The response comes in format `GlideRecord<GlideString | number | null>[]`, see {@link GlideRecord}.
*/
public xinfoGroups(key: string): T {
public xinfoGroups(key: GlideString): T {
return this.addAndReturn(createXInfoGroups(key));
}

Expand Down
2 changes: 1 addition & 1 deletion node/tests/SharedTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10752,7 +10752,7 @@ export function runBaseTests(config: {
).toEqual("OK");

// one empty group exists
expect(await client.xinfoGroups(key)).toEqual(
expect(await client.xinfoGroups(Buffer.from(key))).toEqual(
cluster.checkIfServerVersionLessThan("7.0.0")
? [
{
Expand Down

0 comments on commit 2811164

Please sign in to comment.