From bb6bb4a5ca79de4946c309f30cfffe0ebd893021 Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Tue, 7 Jan 2025 14:24:25 -0800 Subject: [PATCH 1/2] grpc-js-xds: Preserve resource type version and nonce when unsubscribing --- packages/grpc-js-xds/src/xds-client.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/grpc-js-xds/src/xds-client.ts b/packages/grpc-js-xds/src/xds-client.ts index 0879d6b27..eb37da978 100644 --- a/packages/grpc-js-xds/src/xds-client.ts +++ b/packages/grpc-js-xds/src/xds-client.ts @@ -457,9 +457,6 @@ class AdsCallState { if (authorityMap.size === 0) { typeState.subscribedResources.delete(name.authority); } - if (typeState.subscribedResources.size === 0) { - this.typeStates.delete(type); - } this.updateNames(type); } From b396b7d5ae2792fd34eefacf29d615b32cdfab5d Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Wed, 8 Jan 2025 14:56:38 -0800 Subject: [PATCH 2/2] grpc-js-xds: Bump to version 1.12.1 --- packages/grpc-js-xds/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/grpc-js-xds/package.json b/packages/grpc-js-xds/package.json index f6cb72352..09fd3cdb5 100644 --- a/packages/grpc-js-xds/package.json +++ b/packages/grpc-js-xds/package.json @@ -1,6 +1,6 @@ { "name": "@grpc/grpc-js-xds", - "version": "1.12.0", + "version": "1.12.1", "description": "Plugin for @grpc/grpc-js. Adds the xds:// URL scheme and associated features.", "main": "build/src/index.js", "scripts": {