@camera.ui/transport 0.0.28 → 0.0.29

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.
@@ -32,6 +32,7 @@ function createSocketioTransport(options = {}) {
32
32
  let queryRefreshing = false;
33
33
  let status = { up: false };
34
34
  let disposed = false;
35
+ let applyEpoch = 0;
35
36
  const staleAfterMs = options.staleAfterMs ?? 6e4;
36
37
  let lastActivityAt = 0;
37
38
  function touchActivity() {
@@ -211,7 +212,13 @@ function createSocketioTransport(options = {}) {
211
212
  return;
212
213
  }
213
214
  if (endpointChanged || !manager) {
214
- await rebuildManager(target);
215
+ const epoch = ++applyEpoch;
216
+ try {
217
+ await rebuildManager(target);
218
+ } catch (err) {
219
+ if (epoch === applyEpoch && currentTarget === target) currentTarget = null;
220
+ throw err;
221
+ }
215
222
  return;
216
223
  }
217
224
  rebindAuth(target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camera.ui/transport",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "description": "camera.ui transport layer — framework-agnostic connection kernel, reducer state, pluggable transports (HTTP/WS/Socket.IO/NATS), lifecycle effects and worker bridge",
5
5
  "author": "seydx (https://github.com/cameraui/clients)",
6
6
  "type": "module",
@@ -63,16 +63,16 @@
63
63
  "devDependencies": {
64
64
  "@eslint/js": "9.39.4",
65
65
  "@stylistic/eslint-plugin": "^5.10.0",
66
- "@typescript-eslint/parser": "^8.68.0",
66
+ "@typescript-eslint/parser": "^8.69.0",
67
67
  "@vue/language-core": "^3.3.11",
68
68
  "eslint": "9.39.2",
69
- "globals": "^17.11.0",
69
+ "globals": "^17.12.0",
70
70
  "jiti": "^2.7.0",
71
71
  "prettier": "^3.9.6",
72
72
  "rimraf": "^6.1.3",
73
73
  "typescript": "5.9.3",
74
- "typescript-eslint": "^8.68.0",
75
- "unplugin-dts": "^1.0.3",
74
+ "typescript-eslint": "^8.69.0",
75
+ "unplugin-dts": "^1.1.0",
76
76
  "updates": "^18.0.7",
77
77
  "vite": "^8.2.2",
78
78
  "vitest": "^4.1.11"