@umituz/web-hono 1.8.8 → 1.8.9
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/README.md +2 -1
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -174,10 +174,11 @@ await snapshotToSeed({ specs: TABLE_SPECS, url, outPath: new URL('./seed-data.js
|
|
|
174
174
|
|
|
175
175
|
| Entry point | Exports |
|
|
176
176
|
|---|---|
|
|
177
|
-
| `@umituz/web-hono` | `createApi`, `ApiConfig`, `healthRouter`, `ApiError`, `apiOnError`, `crudRoutes`, `listRoutes`, `CrudSpec`/`CrudTable`/`CreateSpec`/`ListSpec`/`CrudDb`, `getDb`, `uid`, `pickPatch`, `stampUpdate`, `trio`, `apiNotFound`, `spaFallback`, `ApiEnv` |
|
|
177
|
+
| `@umituz/web-hono` | `createApi`, `ApiConfig`, `healthRouter`, `ApiError`, `apiOnError`, `crudRoutes`, `listRoutes`, `CrudSpec`/`CrudTable`/`CreateSpec`/`ListSpec`/`CrudDb`, `getDb`, `uid`, `pickPatch`, `stampUpdate`, `trio`, `apiNotFound`, `spaFallback`, `ApiEnv`, `isoNow`, `isoAt`, `todayISO`, `addDaysISO`, `IsoPrecision` |
|
|
178
178
|
| `@umituz/web-hono/types` | `Row<T>`, `NewRow<T>`, `Serialized<T>`, `ClientRow<T>` — type-only |
|
|
179
179
|
| `@umituz/web-hono/validator` | `validateJson(schema, message?)` |
|
|
180
180
|
| `@umituz/web-hono/client` | `apiFetch<T>`, `apiWrite<T>` (void/204-tolerant) |
|
|
181
|
+
| `@umituz/web-hono/dates` | `isoNow(precision?)`, `isoAt(d, precision?)`, `todayISO()`, `addDaysISO(iso, days)`, `IsoPrecision` — UTC, client-safe (no server imports) |
|
|
181
182
|
| `@umituz/web-hono/store` | `createStore`, `StoreConfig`, `REFETCH_ALL` (+ `read`/`view`/`http`/`subscribeAll`/`snapshot`/`immutable` on the store) |
|
|
182
183
|
| `@umituz/web-hono/store/react` | `makeStoreHooks(store)` → `useQuery`, `useDbValue`, `useCollection`, `useHydration`, `QueryResult` |
|
|
183
184
|
| `@umituz/web-hono/lifecycle` | `resetTables`, `snapshotToSeed`, `seedFromSnapshot`, `TableSpec`, `SeedSnapshot` |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/web-hono",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.9",
|
|
4
4
|
"description": "API backend platform for Cloudflare Workers + Neon Postgres: createApi skeleton + error envelope layer, full-CRUD resource factory (opt-in create/remove, list params), schema→client type bridge (ClientRow), apiFetch/apiWrite client, reactive fetch-backed store (+React hooks), and db lifecycle scripts (reset / snapshot / seed)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"./types": "./src/types.ts",
|
|
12
12
|
"./validator": "./src/validator.ts",
|
|
13
13
|
"./client": "./src/client.ts",
|
|
14
|
+
"./dates": "./src/dates.ts",
|
|
14
15
|
"./store": "./src/store.ts",
|
|
15
16
|
"./store/react": "./src/store-react.ts",
|
|
16
17
|
"./lifecycle": "./src/lifecycle.ts",
|