fix(cloudlyapiclient): update typedsocket identity tagging to use async setTag API

This commit is contained in:
2026-05-08 07:21:40 +00:00
parent fd711e1d93
commit ac4411750e
5 changed files with 1002 additions and 2246 deletions
+7
View File
@@ -1,5 +1,12 @@
# Changelog # Changelog
## 2026-05-08 - 5.3.5 - fix(cloudlyapiclient)
update typedsocket identity tagging to use async setTag API
- replace typedsocketClient.addTag calls with awaited setTag in identity tagging flows
- align client implementation with typedsocket v4 dependency update
- refresh runtime and development dependencies to compatible newer versions
## 2026-04-25 - 5.3.1 - fix(package) ## 2026-04-25 - 5.3.1 - fix(package)
- Extract `@serve.zone/api` into a standalone package. - Extract `@serve.zone/api` into a standalone package.
+9 -9
View File
@@ -15,22 +15,22 @@
"buildDocs": "tsdoc" "buildDocs": "tsdoc"
}, },
"dependencies": { "dependencies": {
"@api.global/typedrequest": "3.1.10", "@api.global/typedrequest": "3.3.0",
"@api.global/typedrequest-interfaces": "^3.0.19", "@api.global/typedrequest-interfaces": "^3.0.19",
"@api.global/typedsocket": "^3.0.1", "@api.global/typedsocket": "^4.1.2",
"@push.rocks/smartexpect": "^2.5.0", "@push.rocks/smartexpect": "^2.5.0",
"@push.rocks/smartpromise": "^4.2.3", "@push.rocks/smartpromise": "^4.2.4",
"@push.rocks/smartrx": "^3.0.10", "@push.rocks/smartrx": "^3.0.10",
"@push.rocks/smartstream": "^3.2.5", "@push.rocks/smartstream": "^3.4.2",
"@serve.zone/interfaces": "^5.4.6", "@serve.zone/interfaces": "^5.5.0",
"@tsclass/tsclass": "^9.2.0" "@tsclass/tsclass": "^9.5.1"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbuild": "^4.4.0", "@git.zone/tsbuild": "^4.4.0",
"@git.zone/tsdoc": "^1.5.2", "@git.zone/tsdoc": "^2.0.3",
"@git.zone/tsrun": "^2.0.2", "@git.zone/tsrun": "^2.0.3",
"@git.zone/tstest": "^3.6.3", "@git.zone/tstest": "^3.6.3",
"@types/node": "^25.6.0" "@types/node": "^25.6.1"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",
+976 -2235
View File
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @push.rocks/commitinfo
*/
export const commitinfo = {
name: '@serve.zone/api',
version: '5.3.5',
description: 'Type-safe API client for Cloudly and the serve.zone control plane.'
}
+2 -2
View File
@@ -110,7 +110,7 @@ export class CloudlyApiClient {
const identity = response.identity; const identity = response.identity;
if (optionsArg.tagConnection) { if (optionsArg.tagConnection) {
this.typedsocketClient.addTag('identity', identity); await this.typedsocketClient.setTag('identity', identity);
} }
if (optionsArg.statefullIdentity) { if (optionsArg.statefullIdentity) {
@@ -225,7 +225,7 @@ export class CloudlyApiClient {
this.identity = response.identity; this.identity = response.identity;
// If WS connection is available, tag it with identity for server-side guards // If WS connection is available, tag it with identity for server-side guards
if (this.typedsocketClient) { if (this.typedsocketClient) {
try { this.typedsocketClient.addTag('identity', this.identity); } catch {} try { await this.typedsocketClient.setTag('identity', this.identity); } catch {}
} }
return this.identity; return this.identity;
} }