@nanokajs/core 1.0.3 → 1.0.4

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -324,6 +324,8 @@ const result = await app.db
324
324
  .innerJoin(Post.table, eq(User.table.id, Post.table.userId))
325
325
  ```
326
326
 
327
+ For relations and N+1 prevention, use `app.db` with Drizzle's `innerJoin` / `leftJoin` directly — this is the recommended long-term approach.
328
+
327
329
  `User.table` is the underlying Drizzle table. Combine with `eq()`, `lt()`, `and()`, `or()` from `drizzle-orm` for complex conditions. SQL injection is prevented by Drizzle's parametrized bindings.
328
330
 
329
331
  ### `app.batch()` — D1 batch API directly
@@ -405,11 +407,9 @@ Route-level OpenAPI is available via explicit route metadata: `app.openapi(metad
405
407
 
406
408
  The following features remain planned for later 1.x releases:
407
409
 
408
- - **Relations**: `t.hasMany()` / `t.belongsTo()` with cascade and N+1 query support
409
- - **Typed query helper**: optional query ergonomics without reimplementing Drizzle
410
410
  - **VSCode extension**: schema autocomplete and diagnostics
411
411
 
412
- For complex joins in the meantime, use raw Drizzle via `app.db`. The escape hatch is always open.
412
+ For complex joins, use raw Drizzle via `app.db`. The escape hatch is always open.
413
413
 
414
414
  ## Workspace structure (for contributors)
415
415
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanokajs/core",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "description": "Thin wrapper over Hono + Drizzle + Zod for Cloudflare Workers + D1. 80% automatic, 20% explicit.",
6
6
  "author": "Eiichiro Iriguchi <eiichiro_iriguchi@a-1ro.dev>",