@byline/host-tanstack-start 4.10.1 → 4.11.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.
@@ -1,6 +1,6 @@
1
1
  import { ErrorCodes } from "@byline/core";
2
2
  function sanitizePhase(phase) {
3
- if ('storageCleanup' === phase || 'afterTreeChange' === phase || 'afterDelete' === phase) return phase;
3
+ if ('afterTreeChange' === phase || 'afterDelete' === phase) return phase;
4
4
  return 'unknown';
5
5
  }
6
6
  function sanitizeCode(code) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "type": "module",
5
5
  "license": "MPL-2.0",
6
- "version": "4.10.1",
6
+ "version": "4.11.0",
7
7
  "engines": {
8
8
  "node": ">=20.9.0"
9
9
  },
@@ -117,13 +117,13 @@
117
117
  "react-json-view-lite": "^2.5.0",
118
118
  "react-swipeable": "^7.0.2",
119
119
  "zod": "^4.4.3",
120
- "@byline/admin": "4.10.1",
121
- "@byline/core": "4.10.1",
122
- "@byline/ai": "4.10.1",
123
- "@byline/auth": "4.10.1",
124
- "@byline/i18n": "4.10.1",
125
- "@byline/client": "4.10.1",
126
- "@byline/ui": "4.10.1"
120
+ "@byline/ai": "4.11.0",
121
+ "@byline/i18n": "4.11.0",
122
+ "@byline/client": "4.11.0",
123
+ "@byline/admin": "4.11.0",
124
+ "@byline/ui": "4.11.0",
125
+ "@byline/core": "4.11.0",
126
+ "@byline/auth": "4.11.0"
127
127
  },
128
128
  "peerDependencies": {
129
129
  "@tanstack/react-router": "^1.167.0",
@@ -20,7 +20,11 @@ describe('delete outcome transport and admin interpretation', () => {
20
20
  outcome: 'committed-with-side-effect-failures',
21
21
  sideEffectFailures: [
22
22
  { phase: 'afterDelete', message: 'secret hook details', code: 'ERR_SEARCH' },
23
- { phase: 'storageCleanup', message: 'private/path.pdf', code: 'ERR_STORAGE' },
23
+ {
24
+ phase: 'storageCleanup' as DeleteDocumentSideEffectPhase,
25
+ message: 'private/path.pdf',
26
+ code: 'ERR_STORAGE',
27
+ },
24
28
  {
25
29
  phase: 'internalOnly' as DeleteDocumentSideEffectPhase,
26
30
  message: 'internal phase details',
@@ -36,7 +40,7 @@ describe('delete outcome transport and admin interpretation', () => {
36
40
  outcome: 'committed-with-side-effect-failures',
37
41
  sideEffectFailures: [
38
42
  { phase: 'afterDelete', code: 'ERR_UNHANDLED' },
39
- { phase: 'storageCleanup', code: 'ERR_STORAGE' },
43
+ { phase: 'unknown', code: 'ERR_STORAGE' },
40
44
  { phase: 'unknown', code: 'ERR_UNHANDLED' },
41
45
  ],
42
46
  })
@@ -39,7 +39,7 @@ export type DeleteDocumentResponse =
39
39
  }
40
40
 
41
41
  function sanitizePhase(phase: DeleteDocumentSideEffectPhase): DeleteDocumentPublicSideEffectPhase {
42
- if (phase === 'storageCleanup' || phase === 'afterTreeChange' || phase === 'afterDelete') {
42
+ if (phase === 'afterTreeChange' || phase === 'afterDelete') {
43
43
  return phase
44
44
  }
45
45
  return 'unknown'