@xh/hoist 83.0.1 → 83.0.2
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 +6 -1
- package/package.json +1 -1
- package/svc/WebSocketService.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 83.0.2 - 2026-03-30
|
|
4
4
|
|
|
5
|
+
### ⚙️ Technical
|
|
6
|
+
|
|
7
|
+
* Updated `WebSocketService` to support same-origin `baseUrl` values (e.g. `/api/`). Previously
|
|
8
|
+
assumed a cross-origin `baseUrl` in dev mode. Required for compatibility with the new
|
|
9
|
+
webpack-dev-server proxy in `@xh/hoist-dev-utils` v12.
|
|
5
10
|
|
|
6
11
|
## 83.0.1 - 2026-03-25
|
|
7
12
|
|
package/package.json
CHANGED
package/svc/WebSocketService.ts
CHANGED
|
@@ -345,7 +345,7 @@ export class WebSocketService extends HoistService {
|
|
|
345
345
|
private buildWebSocketUrl() {
|
|
346
346
|
const protocol = window.location.protocol == 'https:' ? 'wss:' : 'ws:',
|
|
347
347
|
endpoint = `xhWebSocket?${this.METADATA_FOR_HANDSHAKE.map(key => `${key}=${XH[key]}`).join('&')}`;
|
|
348
|
-
return XH.
|
|
348
|
+
return XH.baseUrl.includes('//')
|
|
349
349
|
? `${protocol}//${XH.baseUrl.split('//')[1]}${endpoint}`
|
|
350
350
|
: `${protocol}//${window.location.host}${XH.baseUrl}${endpoint}`;
|
|
351
351
|
}
|