create-guren-app 1.18.0 → 1.18.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-guren-app",
3
- "version": "1.18.0",
3
+ "version": "1.18.1",
4
4
  "description": "Scaffold a Guren app: a Bun-first fullstack TypeScript framework with Laravel-style conventions, Inertia.js + React, Drizzle ORM, and an agent harness for Claude Code and other coding agents.",
5
5
  "keywords": [
6
6
  "guren",
@@ -21,9 +21,9 @@
21
21
  "test": "bun test"
22
22
  },
23
23
  "dependencies": {
24
- "@guren/cli": "^2.29.0",
24
+ "@guren/cli": "^2.30.0",
25
25
  "@guren/core": "^1.24.0",
26
- "@guren/orm": "^2.13.1",
26
+ "@guren/orm": "^2.14.0",
27
27
  "drizzle-orm": "1.0.0-rc.4"
28
28
  },
29
29
  "devDependencies": {
@@ -68,9 +68,9 @@ export default class PostController extends Controller {
68
68
  await this.authorize('create', Post)
69
69
  const author = await this.auth.userOrFail<UserRecord>()
70
70
  const { body: data } = this.validated('posts.store')
71
- // forceCreate, because `authorId` is deliberately absent from Post.fillable:
72
- // it comes from the session, and a request must never be able to set it.
73
- const post = await Post.forceCreate({ ...data, authorId: author.id })
71
+ // `authorId` is deliberately absent from Post.fillable: it comes from the
72
+ // session through `set`, and a request must never be able to set it.
73
+ const post = await Post.create(data, { set: { authorId: author.id } })
74
74
 
75
75
  return this.redirect(post?.id ? `/posts/${post.id}` : '/posts')
76
76
  }
@@ -22,10 +22,10 @@
22
22
  "db:seed": "bunx guren db:seed"
23
23
  },
24
24
  "dependencies": {
25
- "@guren/cli": "^2.29.0",
25
+ "@guren/cli": "^2.30.0",
26
26
  "@guren/core": "^1.24.0",
27
27
  "@guren/inertia-client": "^1.2.2",
28
- "@guren/orm": "^2.13.1",
28
+ "@guren/orm": "^2.14.0",
29
29
  "@inertiajs/react": "^3.6.1",
30
30
  "drizzle-orm": "1.0.0-rc.4",
31
31
  "react": "^19.0.0",