Skip to content

Commit 31ac784

Browse files
dmealingclaude
andcommitted
chore(release): @metaobjectsdev TypeScript packages 0.12.4
Projection read-only query codegen (fixes TS2724), SQLite + Postgres generated Db types accept all drivers, verify-as-teacher advisory pass, model-first agent-context guidance. See CHANGELOG. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LuZWKnWzYGVnESijL7uuky
1 parent 835d6be commit 31ac784

15 files changed

Lines changed: 78 additions & 38 deletions

File tree

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,36 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
77

88
## [Unreleased]
99

10+
## [0.12.4] — 2026-06-27
11+
12+
_npm `0.12.4` (full lockstep across all 13 `@metaobjectsdev/*` publish candidates)._
13+
14+
### Fixed
15+
- **codegen-ts — projection codegen:** an `object.projection` (read-only,
16+
view-backed) now generates **read-only** query helpers (`find…ById` + `list…`
17+
selecting from the view) instead of table-style create/update that imported a
18+
nonexistent `<Name>InsertSchema`. This fixes a `TS2724` compile error that made a
19+
declared projection fail to build, forcing consumers to revert to hand-rolled
20+
aggregates. (Mirrors the `isProjection` guard the routes generator already had.)
21+
- **codegen-ts — generated SQLite `Db` type** is now
22+
`BaseSQLiteDatabase<"sync" | "async", unknown>`, accepting **both** sync
23+
(`better-sqlite3`, the most common driver) and async (libsql/Turso/D1) Drizzle
24+
databases. The previous `<"async">` pin rejected `better-sqlite3` with
25+
"is not assignable", forcing `db: any` casts.
26+
- **codegen-ts — generated Postgres `Db` type** is now the base
27+
`PgDatabase<PgQueryResultHKT, …>` that every PG driver extends (node-postgres,
28+
postgres.js, Neon, Vercel, pglite), not just `NodePgDatabase`.
29+
30+
### Added
31+
- **cli — verify-as-teacher:** `meta verify` and `meta gen` run an **advisory**
32+
pass that flags hand-rolled aggregates, money-as-float, and `CHECK (… IN …)`
33+
enums and names the construct that models them. Warnings only — never changes the
34+
exit code. Opt out with `--no-antipatterns` or `META_NO_ANTIPATTERNS=1` (both
35+
honored on both commands).
36+
- **agent-context skills:** a model-first / generate-first operating principle in
37+
the authoring skill, and a first-class "write your own generators" section in the
38+
codegen skill (with the accurate `Generator` / `perEntity` API).
39+
1040
## [0.12.3] — 2026-06-26
1141

1242
_npm `0.12.3` (full lockstep across all 13 `@metaobjectsdev/*` publish candidates)._

bun.lock

Lines changed: 31 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/web/packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metaobjectsdev/react",
3-
"version": "0.12.3",
3+
"version": "0.12.4",
44
"description": "React runtime for metaobjects: useEntityForm hook and CurrencyInput component.",
55
"type": "module",
66
"main": "./dist/index.js",

client/web/packages/runtime-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metaobjectsdev/runtime-web",
3-
"version": "0.12.3",
3+
"version": "0.12.4",
44
"description": "Pure framework-agnostic browser core for metaobjects: currency, filter URL serialization, fetcher contract types.",
55
"type": "module",
66
"main": "./dist/index.js",

client/web/packages/tanstack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metaobjectsdev/tanstack",
3-
"version": "0.12.3",
3+
"version": "0.12.4",
44
"description": "TanStack runtime for metaobjects: EntityFetcherProvider, EntityGrid, default cell renderers.",
55
"type": "module",
66
"main": "./dist/index.js",

server/typescript/packages/ai-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metaobjectsdev/ai-runtime",
3-
"version": "0.12.3",
3+
"version": "0.12.4",
44
"description": "LLM call loop + typed-trace recorder adapters for MetaObjects: provider-neutral LlmClient seam, callLlm bridge, Composite/Langfuse/OTel recorders.",
55
"type": "module",
66
"main": "./dist/index.js",

server/typescript/packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@metaobjectsdev/cli",
3-
"version": "0.12.3",
3+
"version": "0.12.4",
44
"description": "CLI for MetaObjects: scaffold, codegen, migrate, and drift-detection commands.",
55
"type": "module",
66
"main": "./dist/src/index.js",

server/typescript/packages/codegen-ts-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@metaobjectsdev/codegen-ts-react",
3-
"version": "0.12.3",
4-
"description": "React codegen for metaobjects \u2014 emits <Entity>.form.tsx files using react-hook-form and @metaobjectsdev/react helpers.",
3+
"version": "0.12.4",
4+
"description": "React codegen for metaobjects emits <Entity>.form.tsx files using react-hook-form and @metaobjectsdev/react helpers.",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",

server/typescript/packages/codegen-ts-tanstack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@metaobjectsdev/codegen-ts-tanstack",
3-
"version": "0.12.3",
4-
"description": "TanStack codegen for metaobjects \u2014 emits hooks and column definitions for TanStack Query and Table.",
3+
"version": "0.12.4",
4+
"description": "TanStack codegen for metaobjects emits hooks and column definitions for TanStack Query and Table.",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",

server/typescript/packages/codegen-ts/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@metaobjectsdev/codegen-ts",
3-
"version": "0.12.3",
4-
"description": "TypeScript codegen engine for MetaObjects \u2014 emits Drizzle, Zod, and Fastify artifacts.",
3+
"version": "0.12.4",
4+
"description": "TypeScript codegen engine for MetaObjects emits Drizzle, Zod, and Fastify artifacts.",
55
"type": "module",
66
"main": "./dist/index.js",
77
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)