Skip to content

chore: version packages - #22

Merged
vinznt merged 1 commit into
mainfrom
changeset-release/main
Dec 2, 2026
Merged

vinznt merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@softzweig/spindle-drizzle@0.2.0

Minor Changes

  • 0b1883f Thanks @vinznt! - Let insert accept the values a table can fill itself. AbstractDrizzleRepository gains a TInsert generic that defaults to EntityInsert<TEntity>, 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 Thanks @vinznt! - Keep the row's own type in the identity bindings. PostgresRepository and SqliteRepository now default their entity to the new RowEntity<TTable> instead of Entity & InferSelectModel<TTable>, 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<Asset>) pages newest first without widening the entity to Entity.

@vinznt
vinznt merged commit c7a25e2 into main Dec 2, 2026
2 checks passed
@vinznt
vinznt deleted the changeset-release/main branch December 2, 2026 05:52
@vinznt
vinznt restored the changeset-release/main branch December 2, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant