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