create-caspian-app 1.5.1 → 1.5.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.
@@ -396,7 +396,11 @@ async function shutdown(exitCode: number): Promise<void> {
396
396
  {
397
397
  proxy: {
398
398
  target: `http://localhost:${pythonPort}`,
399
- ws: true,
399
+ // The backend only registers the PulsePoint WebSocket endpoint when
400
+ // this feature is enabled. Do not proxy upgrade requests otherwise:
401
+ // Uvicorn has no WebSocket protocol dependency in a socket-free app,
402
+ // and the attempted upgrade tears down BrowserSync with ECONNRESET.
403
+ ws: caspianConfig.websocket,
400
404
  },
401
405
  port: bsPort,
402
406
  online: true,
@@ -8,7 +8,7 @@ import inspect
8
8
  import io
9
9
  from dataclasses import replace
10
10
  from types import SimpleNamespace
11
- from typing import Optional
11
+ from typing import Optional, cast
12
12
  from unittest.mock import AsyncMock
13
13
 
14
14
  import main
@@ -49,7 +49,7 @@ class TestPrismaLifespan:
49
49
 
50
50
  class TestDevControlPipe:
51
51
  def test_valid_shutdown_command_stops_server(self):
52
- server = SimpleNamespace(should_exit=False)
52
+ server = cast(main.uvicorn.Server, SimpleNamespace(should_exit=False))
53
53
 
54
54
  main._consume_dev_control_stream(
55
55
  server,
@@ -60,7 +60,7 @@ class TestDevControlPipe:
60
60
  assert server.should_exit is True
61
61
 
62
62
  def test_ignores_invalid_commands_until_pipe_closes(self):
63
- server = SimpleNamespace(should_exit=False)
63
+ server = cast(main.uvicorn.Server, SimpleNamespace(should_exit=False))
64
64
 
65
65
  main._consume_dev_control_stream(
66
66
  server,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-caspian-app",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Scaffold a new Caspian project (FastAPI-powered reactive Python framework).",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",