fix(cloudlyapiclient): update typedsocket identity tagging to use async setTag API
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
# 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)
|
||||
|
||||
- Extract `@serve.zone/api` into a standalone package.
|
||||
|
||||
+9
-9
@@ -15,22 +15,22 @@
|
||||
"buildDocs": "tsdoc"
|
||||
},
|
||||
"dependencies": {
|
||||
"@api.global/typedrequest": "3.1.10",
|
||||
"@api.global/typedrequest": "3.3.0",
|
||||
"@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/smartpromise": "^4.2.3",
|
||||
"@push.rocks/smartpromise": "^4.2.4",
|
||||
"@push.rocks/smartrx": "^3.0.10",
|
||||
"@push.rocks/smartstream": "^3.2.5",
|
||||
"@serve.zone/interfaces": "^5.4.6",
|
||||
"@tsclass/tsclass": "^9.2.0"
|
||||
"@push.rocks/smartstream": "^3.4.2",
|
||||
"@serve.zone/interfaces": "^5.5.0",
|
||||
"@tsclass/tsclass": "^9.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@git.zone/tsbuild": "^4.4.0",
|
||||
"@git.zone/tsdoc": "^1.5.2",
|
||||
"@git.zone/tsrun": "^2.0.2",
|
||||
"@git.zone/tsdoc": "^2.0.3",
|
||||
"@git.zone/tsrun": "^2.0.3",
|
||||
"@git.zone/tstest": "^3.6.3",
|
||||
"@types/node": "^25.6.0"
|
||||
"@types/node": "^25.6.1"
|
||||
},
|
||||
"files": [
|
||||
"ts/**/*",
|
||||
|
||||
Generated
+976
-2235
File diff suppressed because it is too large
Load Diff
@@ -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.'
|
||||
}
|
||||
@@ -110,7 +110,7 @@ export class CloudlyApiClient {
|
||||
const identity = response.identity;
|
||||
|
||||
if (optionsArg.tagConnection) {
|
||||
this.typedsocketClient.addTag('identity', identity);
|
||||
await this.typedsocketClient.setTag('identity', identity);
|
||||
}
|
||||
|
||||
if (optionsArg.statefullIdentity) {
|
||||
@@ -225,7 +225,7 @@ export class CloudlyApiClient {
|
||||
this.identity = response.identity;
|
||||
// If WS connection is available, tag it with identity for server-side guards
|
||||
if (this.typedsocketClient) {
|
||||
try { this.typedsocketClient.addTag('identity', this.identity); } catch {}
|
||||
try { await this.typedsocketClient.setTag('identity', this.identity); } catch {}
|
||||
}
|
||||
return this.identity;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user