Skip to content

chore: Bump @thomasfosterau/effect-drizzle-ext-pg from 0.7.0 to 0.8.0 - #447

Open
dependabot[bot] wants to merge 1 commit into
trunkfrom
dependabot/npm_and_yarn/thomasfosterau/effect-drizzle-ext-pg-0.8.0
Open

dependabot[bot] wants to merge 1 commit into
trunkfrom
dependabot/npm_and_yarn/thomasfosterau/effect-drizzle-ext-pg-0.8.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Bumps @thomasfosterau/effect-drizzle-ext-pg from 0.7.0 to 0.8.0.

Changelog

Sourced from @​thomasfosterau/effect-drizzle-ext-pg's changelog.

0.8.0

Minor Changes

  • #248 85396a0 Thanks @​thomasfosterau! - Chain writes shaped for aggregate repositories: LeafChain.load reads the head's state and version together, LeafChain.setPointer moves a named pointer (publish, schedule, clear) as a write of its own, and the new ./VersionedRow entry gives a flat table optimistic concurrency (versionColumn, makeVersionedRow).

  • #246 2bbc15f Thanks @​thomasfosterau! - Breaking: adopt Effect v4's export layout. Every module is a PascalCase subpath, and each package root re-exports modules as namespaces instead of flat names. Function and type names are unchanged; only their import paths move.

    Upgrade by renaming subpaths:

    Package Old subpath New subpath
    core . (flat dbColumn, dbTable, defineTree, DerivationError, VersionChainEntry, …) ./Annotation, or the root's Annotation namespace
    core ./derive, ./references, ./constraints, ./columns, ./query, ./sort, ./update, ./errors, ./database ./Derive, ./References, ./Constraints, ./Columns, ./Query, ./Sort, ./Update, ./Errors, ./Database
    core ./query-functions, ./versioned-chain, ./postgis ./QueryFunctions, ./VersionedChain, ./PostGis
    core ./jsonapi, ./jsonapi/derive ./JsonApi, ./JsonApiDerive
    pg . (flat makePgDatabase, pgClientFromUrl, pgClientFromPool, PgDatabase* types) ./PgDatabase, or the root's PgDatabase namespace
    pg ./chain, ./migrations, ./testing, ./tooling ./Chain, ./Migrations, ./Testing, ./Tooling
    // before
    import { dbColumnFor } from "@thomasfosterau/effect-drizzle-ext";
    import { deriveColumnsWith } from "@thomasfosterau/effect-drizzle-ext/derive";
    import { makePgDatabase } from "@thomasfosterau/effect-drizzle-ext-pg";
    // after
    import { dbColumnFor } from "@​thomasfosterau/effect-drizzle-ext/Annotation";
    import { deriveColumnsWith } from "@​thomasfosterau/effect-drizzle-ext/Derive";
    import { makePgDatabase } from "@​thomasfosterau/effect-drizzle-ext-pg/PgDatabase";

    The core root stays Drizzle-free: it re-exports Annotation, Errors, Predicate and Update, plus the PostGis namespace as before. Modules that import Drizzle are subpaths only. The pg root re-exports every module except Tooling, which needs the optional drizzle-kit peer. ./Predicate, ./Where, ./Search, ./Tin, ./Outbox, ./Documents and ./ExternalIds keep their paths.

  • #252 1a3475d Thanks @​thomasfosterau! - The extras generator migrates functions (fn) and triggers (trigger), and splits its output into two custom migrations around drizzle-kit's own: extensions, domains and composite types (and dropped triggers and functions) before it, functions and triggers (and dropped types, domains and extensions) after it. generateMigrations runs the whole sequence, including drizzle-kit generate; generateExtrasMigration now takes a phase, and ExtrasPlan has before and after in place of statements. extras.json is version 2; version 1 files still read. Rename hints and recordOnly apply to the before migration. effect-drizzle-kit generate now runs instead of drizzle-kit generate, and its --name is drizzle-kit's slug.

  • #247 b887899 Thanks @​thomasfosterau! - The extras generator takes rename hints and a record-only mode. generateExtrasMigration({ renames }) (and planExtras's third argument) turns a renamed domain, composite type or attribute into ALTER … RENAME instead of a drop plus a create; recordOnly: true writes the declared state into a custom migration whose SQL you write by hand, for a change the generator refuses. effect-drizzle-kit generate gains --rename and --record-only.

  • #253 1471ece Thanks @​thomasfosterau! - A leaf level may now have children. defineTree no longer throws for a leaf with children: its name joins its own subtree leaves (so its discriminator CHECK), it gets a leaf view like any leaf, and the branch views above it gain its CASE arm. A tree with no such leaf derives exactly the DDL and view SQL it did before. LeafName no longer counts a bare {} marker as a leaf, so such a marker drops out of views.leaves and the chain's types, where it never had a runtime value.

    -pg/chain adds LeafChain.refine({ id, from, patch, actor, keyed?, stable?, expectedVersion? }): on the target leaf, it refines a node of from (a leaf above it on its path) to the target in one write. It reads from's head and checks the precondition there, sets the identity row's type (the refinable arcs cascade it), inserts the stable rows of the levels the target adds, and appends an update at every level carrying from's state with patch applied. Earlier versions have no row at the added levels, so the target reads none of them. A non-refinable arc makes the identity update fail with the driver's foreign-key violation.

  • #254 ba20b3e Thanks @​thomasfosterau! - ./testing: makeTestTransaction also returns inTestTransaction(effect), the always-rollback runner as an Effect for @effect/vitest's it.effect inside a layer(...) block. It re-raises the spec's own failure in the error channel and makes a harness-transaction failure a defect. runInTestTransaction now runs through it, with the same rejections.

Patch Changes

  • #251 8051a2d Thanks @​thomasfosterau! - ./chain writes no longer turn a unique violation of a constraint other than the chain's own (a consumer's unique external key on a stable table, say) into a defect: it stays the driver's error in the typed channel, as create's documentation already said, so classifyErrors and catchUniqueViolation can recover it. Code that caught it as a defect (Effect.catchDefect, Cause.hasDies) should catch the failure instead.

    The provisioning, migration and ./tooling entry points, and kit's commands, are now Effect.fn functions, so each run is a tracing span (Testing.*, Migrations.*, Tooling.*, Commands.*). The test database name is hashed through effect/crypto's Digest; the name is unchanged.

  • #244 5c40f4e Thanks @​thomasfosterau! - ./tooling's base-migration reads and effect-drizzle-kit's repository lookup clear GIT_DIR, GIT_INDEX_FILE and GIT_WORK_TREE before running git, so the checkout named by cwd is the one read even when called from a git hook in a linked worktree.

... (truncated)

Commits

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a30ef56

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Nov 23, 2026
@socket-security

socket-security Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​thomasfosterau/​effect-drizzle-ext-pg@​0.7.0 ⏵ 0.8.080 +110091 +193 +1100

View full report

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/thomasfosterau/effect-drizzle-ext-pg-0.8.0 branch 2 times, most recently from a20ecc0 to 24fa00a Compare November 24, 2026 07:29
Bumps [@thomasfosterau/effect-drizzle-ext-pg](https://github.com/thomasfosterau/effect-drizzle-ext/tree/HEAD/packages/pg) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/thomasfosterau/effect-drizzle-ext/releases)
- [Changelog](https://github.com/thomasfosterau/effect-drizzle-ext/blob/trunk/packages/pg/CHANGELOG.md)
- [Commits](https://github.com/thomasfosterau/effect-drizzle-ext/commits/HEAD/packages/pg)

---
updated-dependencies:
- dependency-name: "@thomasfosterau/effect-drizzle-ext-pg"
  dependency-version: 0.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/thomasfosterau/effect-drizzle-ext-pg-0.8.0 branch from 24fa00a to a30ef56 Compare November 24, 2026 08:20

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant