efficient-storefront-blocks 0.126.2 → 0.126.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/index.js +22 -22
- package/dist/render/components/AssistantChatPanel.js +1 -1
- package/dist/render/components/ChatContext.js +1 -1
- package/dist/render/lib/chat-socket.d.ts +13 -2
- package/dist/render/lib/chat-socket.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.126.3 — 2026-11-25 — A shopper's chat socket offers the access token as a subprotocol
|
|
4
|
+
|
|
5
|
+
**For hosts:** no peer change. The storefront re-vendors `src/` with
|
|
6
|
+
`node scripts/sync-storefront-blocks.mjs`, then runs `just check`.
|
|
7
|
+
|
|
8
|
+
- **A signed-in shopper's live-chat and assistant sockets no longer put the
|
|
9
|
+
access token in the URL** (SG#02937). A URL's query string reaches the
|
|
10
|
+
backend's handshake log, and an access token there is a login. The socket
|
|
11
|
+
now offers it as `Sec-WebSocket-Protocol: efficient-access-token, <jwt>`,
|
|
12
|
+
which the backend's `/ws/chat/` already reads and echoes. A guest's
|
|
13
|
+
`guest_token` still rides on `?token=` until the backend reads it from a
|
|
14
|
+
subprotocol too.
|
|
15
|
+
- New in `render/lib/chat-socket`: `chatSocketTarget(id, credential)`,
|
|
16
|
+
`ChatSocketCredential`, `ChatSocketTarget`, `ACCESS_TOKEN_SUBPROTOCOL`, and
|
|
17
|
+
`openChatSocket`'s `credential` option. `chatSocketUrl` and the `token`
|
|
18
|
+
option are deprecated: both still put the token on the URL.
|
|
19
|
+
|
|
3
20
|
## 0.126.2 — 2026-11-25 — The Product Gallery turns a wheel through 360°
|
|
4
21
|
|
|
5
22
|
**For hosts:** no peer change. The storefront re-vendors `src/` with
|