From 37055e6fab35c32446d5458547ce241a4e7da008 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 05:51:47 +0000 Subject: [PATCH] chore: version packages --- .changeset/drizzle-insert-defaults.md | 5 ----- .changeset/drizzle-paging-typing.md | 5 ----- packages/drizzle/CHANGELOG.md | 8 ++++++++ packages/drizzle/package.json | 2 +- 4 files changed, 9 insertions(+), 11 deletions(-) delete mode 100644 .changeset/drizzle-insert-defaults.md delete mode 100644 .changeset/drizzle-paging-typing.md diff --git a/.changeset/drizzle-insert-defaults.md b/.changeset/drizzle-insert-defaults.md deleted file mode 100644 index b878127..0000000 --- a/.changeset/drizzle-insert-defaults.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@softzweig/spindle-drizzle": minor ---- - -Let `insert` accept the values a table can fill itself. `AbstractDrizzleRepository` gains a `TInsert` generic that defaults to `EntityInsert`, and the PostgreSQL and SQLite identity bindings set it to the table's `InferInsertModel`. A column the database generates, a serial id or a `defaultNow()` timestamp for instance, can now be left out of `insert` and comes back filled on the returned entity. Repositories that map rows to their own entities keep the entity's insert shape, because column values would bypass that mapping. diff --git a/.changeset/drizzle-paging-typing.md b/.changeset/drizzle-paging-typing.md deleted file mode 100644 index 8c17896..0000000 --- a/.changeset/drizzle-paging-typing.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@softzweig/spindle-drizzle": minor ---- - -Keep the row's own type in the identity bindings. `PostgresRepository` and `SqliteRepository` now default their entity to the new `RowEntity` instead of `Entity & InferSelectModel`, so filters and inserts no longer accept properties the table does not have, and a row that already carries an id stays exactly the selected type. Their `of` factory also takes the paging spec, whose entity and cursor flow into the repository, so `PostgresRepository.of(db, table, pagingByCreatedAt)` pages newest first without widening the entity to `Entity`. diff --git a/packages/drizzle/CHANGELOG.md b/packages/drizzle/CHANGELOG.md index 0ae69d6..85d82b1 100644 --- a/packages/drizzle/CHANGELOG.md +++ b/packages/drizzle/CHANGELOG.md @@ -1,5 +1,13 @@ # @softzweig/spindle-drizzle +## 0.2.0 + +### Minor Changes + +- [`0b1883f`](https://github.com/softzweig/spindle/commit/0b1883f2b83ee6b10a7921443abb827f4521091c) Thanks [@vinznt](https://github.com/vinznt)! - Let `insert` accept the values a table can fill itself. `AbstractDrizzleRepository` gains a `TInsert` generic that defaults to `EntityInsert`, and the PostgreSQL and SQLite identity bindings set it to the table's `InferInsertModel`. A column the database generates, a serial id or a `defaultNow()` timestamp for instance, can now be left out of `insert` and comes back filled on the returned entity. Repositories that map rows to their own entities keep the entity's insert shape, because column values would bypass that mapping. + +- [`0b1883f`](https://github.com/softzweig/spindle/commit/0b1883f2b83ee6b10a7921443abb827f4521091c) Thanks [@vinznt](https://github.com/vinznt)! - Keep the row's own type in the identity bindings. `PostgresRepository` and `SqliteRepository` now default their entity to the new `RowEntity` instead of `Entity & InferSelectModel`, so filters and inserts no longer accept properties the table does not have, and a row that already carries an id stays exactly the selected type. Their `of` factory also takes the paging spec, whose entity and cursor flow into the repository, so `PostgresRepository.of(db, table, pagingByCreatedAt)` pages newest first without widening the entity to `Entity`. + ## 0.1.3 ### Patch Changes diff --git a/packages/drizzle/package.json b/packages/drizzle/package.json index b93a94b..b95b316 100644 --- a/packages/drizzle/package.json +++ b/packages/drizzle/package.json @@ -1,6 +1,6 @@ { "name": "@softzweig/spindle-drizzle", - "version": "0.1.3", + "version": "0.2.0", "description": "Drizzle ORM repository bindings for Spindle.", "license": "MIT", "repository": {