@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 CHANGED
@@ -1,7 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## 84.0.0-SNAPSHOT - unreleased
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist",
3
- "version": "83.0.1",
3
+ "version": "83.0.2",
4
4
  "description": "Hoist add-on for building and deploying React Applications.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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.isDevelopmentMode
348
+ return XH.baseUrl.includes('//')
349
349
  ? `${protocol}//${XH.baseUrl.split('//')[1]}${endpoint}`
350
350
  : `${protocol}//${window.location.host}${XH.baseUrl}${endpoint}`;
351
351
  }