@objectstack/hono 4.0.3 → 4.0.5

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 DELETED
@@ -1,365 +0,0 @@
1
- # @objectstack/hono
2
-
3
- ## 4.0.3
4
-
5
- ### Patch Changes
6
-
7
- - @objectstack/runtime@4.0.3
8
-
9
- ## 4.0.2
10
-
11
- ### Patch Changes
12
-
13
- - 5f659e9: fix ai
14
- - @objectstack/runtime@4.0.2
15
-
16
- ## 4.0.0
17
-
18
- ### Patch Changes
19
-
20
- - f08ffc3: Fix discovery API endpoint routing and protocol consistency.
21
-
22
- **Discovery route standardization:**
23
-
24
- - All adapters (Express, Fastify, Hono, NestJS, Next.js, Nuxt, SvelteKit) now mount the discovery endpoint at `{prefix}/discovery` instead of `{prefix}` root.
25
- - `.well-known/objectstack` redirects now point to `{prefix}/discovery`.
26
- - Client `connect()` fallback URL changed from `/api/v1` to `/api/v1/discovery`.
27
- - Runtime dispatcher handles both `/discovery` (standard) and `/` (legacy) for backward compatibility.
28
-
29
- **Schema & route alignment:**
30
-
31
- - Added `storage` (service: `file-storage`) and `feed` (service: `data`) routes to `DEFAULT_DISPATCHER_ROUTES`.
32
- - Added `feed` and `discovery` fields to `ApiRoutesSchema`.
33
- - Unified `GetDiscoveryResponseSchema` with `DiscoverySchema` as single source of truth.
34
- - Client `getRoute('feed')` fallback updated from `/api/v1/data` to `/api/v1/feed`.
35
-
36
- **Type safety:**
37
-
38
- - Extracted `ApiRouteType` from `ApiRoutes` keys for type-safe client route resolution.
39
- - Removed `as any` type casting in client route access.
40
-
41
- - Updated dependencies [f08ffc3]
42
- - Updated dependencies [e0b0a78]
43
- - @objectstack/runtime@4.0.0
44
-
45
- ## 3.3.1
46
-
47
- ### Patch Changes
48
-
49
- - @objectstack/runtime@3.3.1
50
-
51
- ## 3.3.0
52
-
53
- ### Patch Changes
54
-
55
- - @objectstack/runtime@3.3.0
56
-
57
- ## 3.2.9
58
-
59
- ### Patch Changes
60
-
61
- - @objectstack/runtime@3.2.9
62
-
63
- ## 3.2.8
64
-
65
- ### Patch Changes
66
-
67
- - @objectstack/runtime@3.2.8
68
-
69
- ## 3.2.8
70
-
71
- ### Patch Changes
72
-
73
- - fix: unified catch-all dispatch pattern — `createHonoApp()` now delegates all non-framework-specific routes to `HttpDispatcher.dispatch()`, automatically supporting packages, analytics, automation, i18n, ui, openapi, custom endpoints, and any future routes
74
- - fix: resolves 404 errors for `/api/v1/meta` and `/api/v1/packages` after Vercel deployment
75
- - Only auth (service check), storage (formData), GraphQL (raw result), and discovery (response wrapper) remain as explicit routes
76
- - Added comprehensive tests for the catch-all dispatch pattern
77
-
78
- ## 3.2.7
79
-
80
- ### Patch Changes
81
-
82
- - @objectstack/runtime@3.2.7
83
-
84
- ## 3.2.6
85
-
86
- ### Patch Changes
87
-
88
- - @objectstack/runtime@3.2.6
89
-
90
- ## 3.2.5
91
-
92
- ### Patch Changes
93
-
94
- - @objectstack/runtime@3.2.5
95
-
96
- ## 3.2.4
97
-
98
- ### Patch Changes
99
-
100
- - @objectstack/runtime@3.2.4
101
-
102
- ## 3.2.3
103
-
104
- ### Patch Changes
105
-
106
- - @objectstack/runtime@3.2.3
107
-
108
- ## 3.2.2
109
-
110
- ### Patch Changes
111
-
112
- - @objectstack/runtime@3.2.2
113
-
114
- ## 3.2.1
115
-
116
- ### Patch Changes
117
-
118
- - @objectstack/runtime@3.2.1
119
-
120
- ## 3.2.0
121
-
122
- ### Patch Changes
123
-
124
- - @objectstack/runtime@3.2.0
125
-
126
- ## 3.1.1
127
-
128
- ### Patch Changes
129
-
130
- - @objectstack/runtime@3.1.1
131
-
132
- ## 3.1.0
133
-
134
- ### Patch Changes
135
-
136
- - @objectstack/runtime@3.1.0
137
-
138
- ## 3.0.11
139
-
140
- ### Patch Changes
141
-
142
- - @objectstack/runtime@3.0.11
143
-
144
- ## 3.0.10
145
-
146
- ### Patch Changes
147
-
148
- - @objectstack/runtime@3.0.10
149
-
150
- ## 3.0.9
151
-
152
- ### Patch Changes
153
-
154
- - @objectstack/runtime@3.0.9
155
-
156
- ## 3.0.8
157
-
158
- ### Patch Changes
159
-
160
- - @objectstack/runtime@3.0.8
161
-
162
- ## 3.0.7
163
-
164
- ### Patch Changes
165
-
166
- - @objectstack/runtime@3.0.7
167
-
168
- ## 3.0.6
169
-
170
- ### Patch Changes
171
-
172
- - @objectstack/runtime@3.0.6
173
-
174
- ## 3.0.5
175
-
176
- ### Patch Changes
177
-
178
- - @objectstack/runtime@3.0.5
179
-
180
- ## 3.0.4
181
-
182
- ### Patch Changes
183
-
184
- - @objectstack/runtime@3.0.4
185
-
186
- ## 3.0.3
187
-
188
- ### Patch Changes
189
-
190
- - c7267f6: Patch release for maintenance updates and improvements.
191
- - Updated dependencies [c7267f6]
192
- - @objectstack/runtime@3.0.3
193
-
194
- ## 3.0.2
195
-
196
- ### Patch Changes
197
-
198
- - @objectstack/runtime@3.0.2
199
-
200
- ## 3.0.1
201
-
202
- ### Patch Changes
203
-
204
- - @objectstack/runtime@3.0.1
205
-
206
- ## 3.0.0
207
-
208
- ### Major Changes
209
-
210
- - Release v3.0.0 — unified version bump for all ObjectStack packages.
211
-
212
- ### Patch Changes
213
-
214
- - Updated dependencies
215
- - @objectstack/runtime@3.0.0
216
-
217
- ## 2.0.7
218
-
219
- ### Patch Changes
220
-
221
- - @objectstack/runtime@2.0.7
222
-
223
- ## 2.0.6
224
-
225
- ### Patch Changes
226
-
227
- - Patch release for maintenance and stability improvements
228
- - Updated dependencies
229
- - @objectstack/runtime@2.0.6
230
-
231
- ## 2.0.5
232
-
233
- ### Patch Changes
234
-
235
- - @objectstack/runtime@2.0.5
236
-
237
- ## 2.0.4
238
-
239
- ### Patch Changes
240
-
241
- - Patch release for maintenance and stability improvements
242
- - Updated dependencies
243
- - @objectstack/runtime@2.0.4
244
-
245
- ## 2.0.3
246
-
247
- ### Patch Changes
248
-
249
- - Patch release for maintenance and stability improvements
250
- - Updated dependencies
251
- - @objectstack/runtime@2.0.3
252
-
253
- ## 2.0.2
254
-
255
- ### Patch Changes
256
-
257
- - @objectstack/runtime@2.0.2
258
-
259
- ## 2.0.1
260
-
261
- ### Patch Changes
262
-
263
- - Patch release for maintenance and stability improvements
264
- - Updated dependencies
265
- - @objectstack/runtime@2.0.1
266
-
267
- ## 2.0.0
268
-
269
- ### Patch Changes
270
-
271
- - @objectstack/runtime@2.0.0
272
-
273
- ## 1.0.12
274
-
275
- ### Patch Changes
276
-
277
- - Updated dependencies
278
- - @objectstack/runtime@1.0.12
279
-
280
- ## 1.0.11
281
-
282
- ### Patch Changes
283
-
284
- - @objectstack/runtime@1.0.11
285
-
286
- ## 1.0.10
287
-
288
- ### Patch Changes
289
-
290
- - @objectstack/runtime@1.0.10
291
-
292
- ## 1.0.9
293
-
294
- ### Patch Changes
295
-
296
- - @objectstack/runtime@1.0.9
297
-
298
- ## 1.0.8
299
-
300
- ### Patch Changes
301
-
302
- - 8f2a3a2: fix: standardize discovery endpoint response to include 'data' wrapper
303
- - @objectstack/runtime@1.0.8
304
-
305
- ## 1.0.7
306
-
307
- ### Patch Changes
308
-
309
- - Updated dependencies [ebdf787]
310
- - @objectstack/runtime@1.0.7
311
-
312
- ## 1.0.6
313
-
314
- ### Patch Changes
315
-
316
- - @objectstack/runtime@1.0.6
317
-
318
- ## 1.0.5
319
-
320
- ### Patch Changes
321
-
322
- - b1d24bd: refactor: migrate build system from tsc to tsup for faster builds
323
- - Replaced `tsc` with `tsup` (using esbuild) across all packages
324
- - Added shared `tsup.config.ts` in workspace root
325
- - Added `tsup` as workspace dev dependency
326
- - significantly improved build performance
327
- - Updated dependencies [b1d24bd]
328
- - Updated dependencies [877b864]
329
- - @objectstack/runtime@1.0.5
330
-
331
- ## 1.0.4
332
-
333
- ### Patch Changes
334
-
335
- - @objectstack/runtime@1.0.4
336
-
337
- ## 1.0.3
338
-
339
- ### Patch Changes
340
-
341
- - Updated dependencies [fb2eabd]
342
- - @objectstack/runtime@1.0.3
343
-
344
- ## 1.0.2
345
-
346
- ### Patch Changes
347
-
348
- - 109fc5b: Unified patch release to align all package versions.
349
- - Updated dependencies [a0a6c85]
350
- - Updated dependencies [109fc5b]
351
- - @objectstack/runtime@1.0.2
352
-
353
- ## 1.0.1
354
-
355
- ### Patch Changes
356
-
357
- - Updated dependencies
358
- - @objectstack/runtime@1.0.1
359
-
360
- ## 1.0.0
361
-
362
- ### Patch Changes
363
-
364
- - Updated dependencies
365
- - @objectstack/runtime@1.0.0
@@ -1,16 +0,0 @@
1
- // Stub for @objectstack/runtime - resolved via vitest alias
2
- import { vi } from 'vitest';
3
-
4
- export class HttpDispatcher {
5
- getDiscoveryInfo = vi.fn().mockReturnValue({ version: '1.0', endpoints: [] });
6
- handleGraphQL = vi.fn().mockResolvedValue({ data: {} });
7
- handleAuth = vi.fn().mockResolvedValue({ handled: true, response: { status: 200, body: { ok: true } } });
8
- handleMetadata = vi.fn().mockResolvedValue({ handled: true, response: { status: 200, body: { objects: [] } } });
9
- handleData = vi.fn().mockResolvedValue({ handled: true, response: { status: 200, body: { records: [] } } });
10
- handleStorage = vi.fn().mockResolvedValue({ handled: true, response: { status: 200, body: {} } });
11
-
12
- constructor(_kernel: any) {}
13
- }
14
-
15
- export type ObjectKernel = any;
16
- export type HttpDispatcherResult = any;