chore: release packages - #196
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This is an automated Changesets release PR to publish the initial @unthrown/drizzle@0.1.0 release by applying the generated version bump, changelog entry, and consuming the corresponding changeset.
Changes:
- Bump
@unthrown/drizzlepackage version to0.1.0. - Add
packages/drizzle/CHANGELOG.mdwith the 0.1.0 release notes. - Remove the consumed Changesets entry (
.changeset/great-hoops-hammer.md).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/drizzle/package.json | Updates the package version to 0.1.0 for the release. |
| packages/drizzle/CHANGELOG.md | Introduces the 0.1.0 changelog entry describing the new package release. |
| .changeset/great-hoops-hammer.md | Removes the changeset after it has been applied to the release outputs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
@unthrown/drizzle@0.1.0
Minor Changes
5c1b926: Add
@unthrown/drizzle, a Drizzle ORM Postgres integration that replaces thestock
drizzle-orm/node-postgresdatabase rather than wrapping one: every methodalready speaks
AsyncResult, so there is notry*prefix to learn and migratinga call site is an import change. Writes (
insert,update,delete, rawdb.execute,transaction) carry the five integrity-constraintSQLSTATEs as tagged errors —
UniqueConstraintViolation(23505),ForeignKeyViolation(23503),NotNullViolation(23502, carryingcolumn),CheckViolation(23514),ExclusionViolation(23P01) — while everyinfrastructure failure (deadlock, serialization failure, statement timeout,
connection loss, a syntax error) is a
Defect, so a retry lives in onerecoverDefectwrapper instead of an arm at every call site. Reads (select,$count,db.query.*,refreshMaterializedView, and their prepared forms)infer
E = never, enforced at runtime throughfromSafePromiseso the typecannot drift from what the runtime produces. Transactions follow the variants
directly:
Okcommits,ErrandDefectboth roll back, anErrre-surfacestyped, and there is deliberately no
tx.rollback()— nesting is a savepoint.Also exports
qualifyPgErrorfor boundaries of your own, and keepsdb.$clientas the escape hatch to a stock drizzle database over the same pool.
Every driver rejection is wrapped in drizzle's own
DrizzleQueryErrorbeforetriage, exactly as stock drizzle does, so a defect names the failing statement
and its params — node-postgres'
DatabaseErrorcarriescode/constraint/table/column/detailbut not the SQL. The driver error stays onecauselevel down, which is where
qualifyPgErroralready reads the SQLSTATE from.The exported pg-core classes are spelled uniformly
PgUnthrown*(
PgUnthrownSelectBase,PgUnthrownInsertBase, …, plusPgUnthrownDatabase,PgUnthrownSession,PgUnthrownPreparedQueryandPgUnthrownSafePreparedQuery), mirroring drizzle's own uniformPgAsync*tree; the node-postgres ones keep drizzle's
NodePg…shape asNodePgUnthrown*. One concept, one name — settled before the first publish,since it is public API.
drizzle-ormandpgare peer dependencies (^1.0.0-rcand^8.16.0); theinternals — which subclass drizzle's
pg-corebuilder tree — were verifiedagainst
drizzle-orm@1.0.0-rc.4.