@cosmicdrift/kumiko-dispatcher-live 0.364.0 → 0.365.0
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/dist/dispatcher-live.js +2 -1
- package/package.json +3 -3
- package/src/changes.json +6 -0
package/dist/dispatcher-live.js
CHANGED
|
@@ -203,7 +203,8 @@ function generateRequestId() {
|
|
|
203
203
|
return `req-${Math.random().toString(36).slice(2)}${Math.random().toString(36).slice(2)}`;
|
|
204
204
|
}
|
|
205
205
|
function buildUnexpectedShapeError(status) {
|
|
206
|
-
|
|
206
|
+
// The server did answer: keep its status so 401/5xx handling still applies.
|
|
207
|
+
return { ...buildNetworkError(`unexpected response shape (${status})`), httpStatus: status };
|
|
207
208
|
}
|
|
208
209
|
// Middleware gates (csrf, origin, auth, rate limits) answer write and batch
|
|
209
210
|
// calls with a bare `{ error }`, without the isSuccess envelope.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dispatcher-live",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.365.0",
|
|
4
4
|
"description": "HTTP-only Dispatcher for Kumiko UIs. Always-online; failures surface immediately. Default client for web admin/cockpit apps.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@cosmicdrift/kumiko-headless": "0.
|
|
28
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
27
|
+
"@cosmicdrift/kumiko-headless": "0.365.0",
|
|
28
|
+
"@cosmicdrift/kumiko-types": "0.365.0",
|
|
29
29
|
"zod": "^4.4.3"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
package/src/changes.json
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.365.0",
|
|
4
|
+
"type": "fix",
|
|
5
|
+
"title": "Responses that match no envelope report their real httpStatus instead of 0",
|
|
6
|
+
"detail": "A 401 from a foreign middleware or a proxy 500 with a plain JSON body used to arrive as httpStatus 0, so logic that reacts to 401 or 5xx never fired. The error keeps the code network_error but now carries the response status."
|
|
7
|
+
},
|
|
2
8
|
{
|
|
3
9
|
"version": "0.363.0",
|
|
4
10
|
"type": "improvement",
|