diff --git a/sdk/web-pubsub/web-pubsub-express/CHANGELOG.md b/sdk/web-pubsub/web-pubsub-express/CHANGELOG.md index 16a689c988f..8609735bcce 100644 --- a/sdk/web-pubsub/web-pubsub-express/CHANGELOG.md +++ b/sdk/web-pubsub/web-pubsub-express/CHANGELOG.md @@ -2,20 +2,12 @@ # Release History -## 1.0.6 (Unreleased) +## 1.0.6 (2025-02-26) ### Features Added - Add support for MQTT event handling -### Breaking Changes - -### Bugs Fixed - -- Fix issue with mismatched DTO for client protocol when calling generate client access URI API, which causes the response to be incorrect. - -### Other Changes - ## 1.0.5 (2023-06-28) ### Other Changes diff --git a/sdk/web-pubsub/web-pubsub-express/package.json b/sdk/web-pubsub/web-pubsub-express/package.json index 6d433b81a6f..d0b2204e82b 100644 --- a/sdk/web-pubsub/web-pubsub-express/package.json +++ b/sdk/web-pubsub/web-pubsub-express/package.json @@ -24,7 +24,7 @@ "test:browser": "echo \"Browser is not supported.\" && exit 0", "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "unit-test": "npm run unit-test:node && npm run unit-test:browser", - "unit-test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --browser", + "unit-test:browser": "echo \"Browser is not supported.\" && exit 0", "unit-test:node": "dev-tool run test:vitest", "update-snippets": "dev-tool run update-snippets" }, diff --git a/sdk/web-pubsub/web-pubsub-express/tsconfig.json b/sdk/web-pubsub/web-pubsub-express/tsconfig.json index 517133a89ca..bbb3f7ce5b7 100644 --- a/sdk/web-pubsub/web-pubsub-express/tsconfig.json +++ b/sdk/web-pubsub/web-pubsub-express/tsconfig.json @@ -8,7 +8,7 @@ }, { "path": "./tsconfig.test.json" - }, + } ], "compilerOptions": { "esModuleInterop": true diff --git a/sdk/web-pubsub/web-pubsub/CHANGELOG.md b/sdk/web-pubsub/web-pubsub/CHANGELOG.md index 471989f7649..b84af1d43fd 100644 --- a/sdk/web-pubsub/web-pubsub/CHANGELOG.md +++ b/sdk/web-pubsub/web-pubsub/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.1.4 (Unreleased) +## 1.1.4 (2025-02-26) ### Features Added - Added support to generate client access URL and token for `socketio` client protocol. -### Breaking Changes - ### Bugs Fixed - -### Other Changes +- Fix issue with mismatched DTO for client protocol when calling generate client access URI API, causing the response to be incorrect. ## 1.1.3 (2024-08-09) diff --git a/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts b/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts index 6fb0effe9fa..537a87dc0df 100644 --- a/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts +++ b/sdk/web-pubsub/web-pubsub/test/hubs.spec.ts @@ -397,15 +397,17 @@ describe("HubClient", () => { ); const res = await dacClient.getClientAccessToken({ userId: "brian", - groups: ["group1"], clientProtocol: "socketio", }); const url = new URL(res.url); const tokenPayload = parseJwt(res.token!); assert.ok(url.searchParams.has("access_token")); - assert.equal(url.host, new URL(client.endpoint).host); - assert.equal(url.pathname, `/clients/socketio/hubs/${client.hubName}`); - assert.equal(tokenPayload.aud, client.endpoint + `clients/socketio/hubs/${client.hubName}`); + assert.equal(url.host, new URL(dacClient.endpoint).host); + assert.equal(url.pathname, `/clients/socketio/hubs/${dacClient.hubName}`); + assert.equal( + tokenPayload.aud, + dacClient.endpoint + `/clients/socketio/hubs/${dacClient.hubName}`, + ); }); }); });