@omnifyjp/omnify 5.8.35 → 5.8.36

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.
@@ -346,6 +346,7 @@
346
346
  "enums": { "$ref": "#/definitions/CodegenGoPath" },
347
347
  "migrations": { "$ref": "#/definitions/CodegenGoPath" },
348
348
  "sqlc": { "$ref": "#/definitions/CodegenGoPath" },
349
+ "repo": { "$ref": "#/definitions/CodegenGoPath", "description": "Trivial CRUD repository generator (Phase 2). Emits <schema>_repo.go per object schema with Get/Insert/Update/Delete/List backed by Bun, plus shared errors.go (ErrNotFound)." },
349
350
  "schemas": {
350
351
  "type": "object",
351
352
  "properties": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@omnifyjp/omnify",
3
- "version": "5.8.35",
3
+ "version": "5.8.36",
4
4
  "description": "Schema-driven code generation for Laravel, TypeScript, and SQL",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "zod": "^3.24.0"
37
37
  },
38
38
  "optionalDependencies": {
39
- "@omnifyjp/omnify-darwin-arm64": "5.8.35",
40
- "@omnifyjp/omnify-darwin-x64": "5.8.35",
41
- "@omnifyjp/omnify-linux-x64": "5.8.35",
42
- "@omnifyjp/omnify-linux-arm64": "5.8.35",
43
- "@omnifyjp/omnify-win32-x64": "5.8.35"
39
+ "@omnifyjp/omnify-darwin-arm64": "5.8.36",
40
+ "@omnifyjp/omnify-darwin-x64": "5.8.36",
41
+ "@omnifyjp/omnify-linux-x64": "5.8.36",
42
+ "@omnifyjp/omnify-linux-arm64": "5.8.36",
43
+ "@omnifyjp/omnify-win32-x64": "5.8.36"
44
44
  }
45
45
  }
package/types/config.d.ts CHANGED
@@ -191,6 +191,15 @@ export interface CodegenGoTarget {
191
191
  migrations?: CodegenGoPathConfig;
192
192
  /** sqlc query files output. */
193
193
  sqlc?: CodegenGoPathConfig;
194
+ /**
195
+ * Trivial CRUD repository generator (Phase 2 of issue #103).
196
+ * Emits `<schema>_repo.go` per object schema with Get / Insert /
197
+ * Update / Delete / List backed by Bun, plus a shared `errors.go`
198
+ * (`ErrNotFound` sentinel). Skipped for `kind: enum` / `kind: pivot`
199
+ * / partial schemas. Uses Bun's `OmitZero()` on Update to avoid
200
+ * clobbering DDL-default columns when caller leaves them at zero.
201
+ */
202
+ repo?: CodegenGoPathConfig;
194
203
  /** Schema include / exclude filter for this target. */
195
204
  schemas?: CodegenGoSchemaFilter;
196
205
  /** Bun ORM tag emission (default off; opt in via `bun.enable: true`). */