efficient-storefront-blocks 0.126.2 → 0.126.4
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 +30 -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 +14 -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,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.126.4 — 2026-11-25 — A guest's chat socket offers its token as a subprotocol
|
|
4
|
+
|
|
5
|
+
**For hosts:** no peer change, but the backend must first be on a release
|
|
6
|
+
whose `/ws/chat/` reads `efficient-chat-guest` (efficient-backend, SG#02937):
|
|
7
|
+
an older backend refuses a guest socket opened this way. The storefront
|
|
8
|
+
re-vendors `src/` with `node scripts/sync-storefront-blocks.mjs`, then runs
|
|
9
|
+
`just check`.
|
|
10
|
+
|
|
11
|
+
- **A guest's live-chat and assistant sockets no longer put the `guest_token`
|
|
12
|
+
in the URL** (SG#02937). It is offered as
|
|
13
|
+
`Sec-WebSocket-Protocol: efficient-chat-guest, <guest_token>`, as a signed-in
|
|
14
|
+
shopper's access token already is. New export `GUEST_TOKEN_SUBPROTOCOL`.
|
|
15
|
+
|
|
16
|
+
## 0.126.3 — 2026-11-25 — A shopper's chat socket offers the access token as a subprotocol
|
|
17
|
+
|
|
18
|
+
**For hosts:** no peer change. The storefront re-vendors `src/` with
|
|
19
|
+
`node scripts/sync-storefront-blocks.mjs`, then runs `just check`.
|
|
20
|
+
|
|
21
|
+
- **A signed-in shopper's live-chat and assistant sockets no longer put the
|
|
22
|
+
access token in the URL** (SG#02937). A URL's query string reaches the
|
|
23
|
+
backend's handshake log, and an access token there is a login. The socket
|
|
24
|
+
now offers it as `Sec-WebSocket-Protocol: efficient-access-token, <jwt>`,
|
|
25
|
+
which the backend's `/ws/chat/` already reads and echoes. A guest's
|
|
26
|
+
`guest_token` still rides on `?token=` until the backend reads it from a
|
|
27
|
+
subprotocol too.
|
|
28
|
+
- New in `render/lib/chat-socket`: `chatSocketTarget(id, credential)`,
|
|
29
|
+
`ChatSocketCredential`, `ChatSocketTarget`, `ACCESS_TOKEN_SUBPROTOCOL`, and
|
|
30
|
+
`openChatSocket`'s `credential` option. `chatSocketUrl` and the `token`
|
|
31
|
+
option are deprecated: both still put the token on the URL.
|
|
32
|
+
|
|
3
33
|
## 0.126.2 — 2026-11-25 — The Product Gallery turns a wheel through 360°
|
|
4
34
|
|
|
5
35
|
**For hosts:** no peer change. The storefront re-vendors `src/` with
|