Skip to content

chore: version packages - #28

Merged
Makisuo merged 1 commit into
mainfrom
changeset-release/main
Oct 12, 2026
Merged

Makisuo merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 12, 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

@maple-dev/effect-orm@0.6.0

Minor Changes

  • a379869: Tenant scoping is now opt-in and enforceable. fromSqlClient / layerSqlClient take requireTenantScope: true, which refuses an undeclared "cross-tenant" statement with a TenantScopeViolation defect. Compiled queries carry crossTenantDeclared when the opt-out was explicit, and unions, inserts, updates and deletes gain .crossTenant(). rawCompiledQuery's tenantScope is now optional and defaults to "cross-tenant".
  • e26a29d: Postgres enum types and unique constraints are first-class. PG.enumType(name, labels, { schema? }) is a column type (rows decode to its labels; inserts and comparisons take only them; nullable and array wrap it, and enum arrays decode from the text form drivers send) and a schema object: generate creates the type before the tables that use it, adds labels with ADD VALUE ... BEFORE, renames one behind a confirm_rename hint, asks before dropping the type, and reports removing or reordering labels, or using a label in the migration that adds it, as unsupported. PG.unique(name, columns, { nullsNotDistinct? }) in a table's uniqueConstraints, or unique in PG.column (named <table>_<column>_unique by default), declares an ADD CONSTRAINT ... UNIQUE constraint, diffed as a constraint rather than an index. verify reads enums from pg_enum and unique constraints from pg_constraint, and resolves types of the current schema during its scratch rebuild, so PG.custom("public.x", ...) enums no longer report false drift. generate --baseline --from-drizzle converts drizzle-kit enums, enum columns and unique constraints.

Patch Changes

  • 852429b: A concrete insert is assignable to Runnable (from /database) and accepted by compile under TypeScript 5.x again. Both took CHInsert<any, ...>, which TypeScript 5 compares method by method, and the generic onConflictDoUpdate failed that comparison; they now take an insert by its tag, state and phantom (AnyInsert). A workaround such as type Runnable = Orm.Runnable | { readonly _tag: "CHInsert" } can be removed.

View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a3c89be1-d220-46dd-a687-422431b5d0b8

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Makisuo
Makisuo merged commit 0623054 into main Oct 12, 2026
1 check passed
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