Skip to content

Bump @prisma/orm-postgres from 8.0.0-rc.24 to 8.0.0-rc.25 - #415

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/prisma/orm-postgres-8.0.0-rc.25
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/prisma/orm-postgres-8.0.0-rc.25

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026

Copy link
Copy Markdown
Contributor

Bumps @prisma/orm-postgres from 8.0.0-rc.24 to 8.0.0-rc.25.

Release notes

Sourced from @​prisma/orm-postgres's releases.

v8.0.0-rc.25

A database can now record how it may change and what data it protects, and the CLI refuses a migration or update that breaks those rules. MariaDB gets a client of its own, and MySQL gains the ORM's aggregates. Int, BigInt, Float, Decimal, String, Boolean, Bytes and Json are convenience types on every database. SQL clients run nested transactions with tx.transaction(callback), and an ORM write inside a transaction is atomic. On PostgreSQL and SQLite, a changed @@map, @map or enum stored value is planned as a rename. Nested writes gain onConflict, variants of a polymorphic model, a disconnect that applies its criteria, and update and delete of one related row. prisma orm init --target takes any target package by name.

The upgrade recipes for this hop: the app recipe and the extension recipe. Each breaking change below names the change ids to look for in them. The examples write the ORM client as db.orm.public.<Model>, the PostgreSQL form; on SQLite, MySQL and MariaDB it is db.orm.<Model>. After upgrading, run prisma contract emit once: the generated contract.d.ts now imports from one module of the target package, SQL contracts record two new capabilities, and MySQL and MariaDB contracts gain aggregate types.

Breaking changes

  • pg and @types/pg are peer dependencies. @prisma/orm-postgres, @prisma/orm-target-postgres and @prisma/orm-extension-supabase no longer install their own copy of pg and @types/pg. Add "pg": "^8.22.0" to your dependencies and "@types/pg": "^8.20.0" to your dev dependencies before you install the upgrade. This fixes a Pool from your own pg not being accepted by the client when the two @types/pg versions differed. See pg-is-a-peer-dependency in the app recipe and the extension recipe, and extension-importing-pg-peers-it in the extension recipe. (#31060)

  • temporal-polyfill must be 1.0.8 or later. Every database package that requires temporal-polyfill as a peer dependency now requires ^1.0.8, where it required ^1.0.4. A project or extension package that pins an older 1.0.x version updates it. See temporal-polyfill-peer-range-moves-to-1-0-8 in the app recipe and the extension recipe. (#31045)

  • PostgreSQL connections no longer set lc_monetary=C. This lets a pooled Prisma Postgres URL connect. If you use money columns, run SHOW lc_monetary as the application's role, outside Prisma. If it is not C, POSIX or en_US, run ALTER ROLE <role> SET lc_monetary = 'C' before you deploy the upgrade; otherwise a money read fails with RUNTIME.LC_MONETARY_NOT_C. Under a locale with no or three fraction digits, writes made before the change are stored wrong, so make the change first. See postgres-lc-monetary-not-set in the app recipe. (#31081)

  • The config type is PrismaConfig. The type defineConfig returns is renamed from PrismaNextConfig to PrismaConfig, with no alias. The language server's diagnostic PRISMA_NEXT_INTERPRETATION_FAILED is now PRISMA_INTERPRETATION_FAILED. See config-type-renamed-to-prisma-config in the app recipe and the extension recipe. (#31062)

    Before:

    import type { PrismaNextConfig } from '@prisma/orm-toolchain/cli/config-types';
    const config: PrismaNextConfig<'sql', 'postgres'> = defineConfig({ /* ... */ });

    After:

    import type { PrismaConfig } from '@prisma/orm-toolchain/cli/config-types';
    const config: PrismaConfig<'sql', 'postgres'> = defineConfig({ /* ... */ });
  • Generated files import from the module the target package names. A generated contract.d.ts now imports all its types from one module, such as @prisma/orm-postgres/contract-types; run prisma contract emit to regenerate it. A config that you assemble from the framework's own defineConfig, not a target package's, must set contract.typesModule and migrations.module, or commands fail with CONFIG.CONTRACT_TYPES_MODULE_MISSING and CONFIG.MIGRATION_MODULE_MISSING. Control API callers pass typesModule to emit and renderContractDts, and the projectDir option is gone. @prisma/orm-toolchain/publish-surface and its two sub-entries are removed. Extension authors: the emitter, migration renderer and MySQL config factory take the module names too. See contract-types-import-from-the-target-package, hand-assembled-config-names-generated-file-modules, control-api-takes-types-module and toolchain-publish-surface-entrypoints-removed in the app recipe, and target-package-names-generated-file-modules, extension-config-names-generated-file-modules, family-imports-are-import-requirements, migration-renderer-takes-the-migration-module, emitter-takes-the-types-module, mysql-config-components-carry-family-and-modules, control-api-takes-types-module, component-type-import-module-is-not-a-literal-type and toolchain-publish-surface-entrypoints-removed in the extension recipe. (#31078)

  • On PostgreSQL and SQLite, a changed stored name is planned as a rename. When a model, field or enum member keeps its name and only its @@map, @map or stored value changes, migration plan and db update now rename the table or column, or replace the stored value, without asking. A script that passed --delete for such a change now fails with CLI.CONSENT_UNUSED; remove the flag. To get an empty table under the new name, remove the model in one migration and add it back in the next. Swaps, chains and takeovers of table and column names are refused with MIGRATION.PLANNING_FAILED, and so are enum members that swap stored values or take the stored value of a removed member; make them in two migrations: the first moves every name involved to a name nothing uses, and the second moves them to the final names. Chains of enum stored values are planned. A table that still has the lowered name an earlier release gave a model with no @@map is renamed to the model name; add @@map to keep the old name. MySQL and MongoDB plan these changes as before. See sql-stored-name-change-is-a-rename, sql-stored-name-delete-is-unused, sql-stored-name-empty-table, sql-stored-name-swaps-refused and sql-lowered-table-names-renamed in the app recipe. Extension authors who call the SQL family's statement planning see schema-tables-same-name, plan-statements-plans-stored-name-renames, subjects-of-calls-storage-renames and stored-value-keep-data-edit-removed in the extension recipe. (#31088)

    Before:

    prisma migration plan --name move-users --delete User

    After:

    prisma migration plan --name move-users
  • sql.String(n) is now sql.Varchar(n), and PostgreSQL's jsonColumn is plainJsonColumn. sql.String(n) still works as a deprecated alias that warns with PSL_DEPRECATED_SCALAR_NAME, in PSL and as type.sql.String(n) in TypeScript. The PostgreSQL column helper jsonColumn is removed; import plainJsonColumn. No contract changes. See psl-renamed-sql-string, ts-renamed-sql-string and ts-renamed-postgres-json-column-helper in the app recipe, and ts-postgres-explicit-json-type in the extension recipe. (#31065)

    Before:

    model Label {
      id   Int            @id
      name sql.String(50)

... (truncated)

Changelog

Sourced from @​prisma/orm-postgres's changelog.

v8.0.0-rc.25

A database can now record how it may change and what data it protects, and the CLI refuses a migration or update that breaks those rules. MariaDB gets a client of its own, and MySQL gains the ORM's aggregates. Int, BigInt, Float, Decimal, String, Boolean, Bytes and Json are convenience types on every database. SQL clients run nested transactions with tx.transaction(callback), and an ORM write inside a transaction is atomic. On PostgreSQL and SQLite, a changed @@map, @map or enum stored value is planned as a rename. Nested writes gain onConflict, variants of a polymorphic model, a disconnect that applies its criteria, and update and delete of one related row. prisma orm init --target takes any target package by name.

The upgrade recipes for this hop: the app recipe and the extension recipe. Each breaking change below names the change ids to look for in them. The examples write the ORM client as db.orm.public.<Model>, the PostgreSQL form; on SQLite, MySQL and MariaDB it is db.orm.<Model>. After upgrading, run prisma contract emit once: the generated contract.d.ts now imports from one module of the target package, SQL contracts record two new capabilities, and MySQL and MariaDB contracts gain aggregate types.

Breaking changes

  • pg and @types/pg are peer dependencies. @prisma/orm-postgres, @prisma/orm-target-postgres and @prisma/orm-extension-supabase no longer install their own copy of pg and @types/pg. Add "pg": "^8.22.0" to your dependencies and "@types/pg": "^8.20.0" to your dev dependencies before you install the upgrade. This fixes a Pool from your own pg not being accepted by the client when the two @types/pg versions differed. See pg-is-a-peer-dependency in the app recipe and the extension recipe, and extension-importing-pg-peers-it in the extension recipe. (#31060)

  • temporal-polyfill must be 1.0.8 or later. Every database package that requires temporal-polyfill as a peer dependency now requires ^1.0.8, where it required ^1.0.4. A project or extension package that pins an older 1.0.x version updates it. See temporal-polyfill-peer-range-moves-to-1-0-8 in the app recipe and the extension recipe. (#31045)

  • PostgreSQL connections no longer set lc_monetary=C. This lets a pooled Prisma Postgres URL connect. If you use money columns, run SHOW lc_monetary as the application's role, outside Prisma. If it is not C, POSIX or en_US, run ALTER ROLE <role> SET lc_monetary = 'C' before you deploy the upgrade; otherwise a money read fails with RUNTIME.LC_MONETARY_NOT_C. Under a locale with no or three fraction digits, writes made before the change are stored wrong, so make the change first. See postgres-lc-monetary-not-set in the app recipe. (#31081)

  • The config type is PrismaConfig. The type defineConfig returns is renamed from PrismaNextConfig to PrismaConfig, with no alias. The language server's diagnostic PRISMA_NEXT_INTERPRETATION_FAILED is now PRISMA_INTERPRETATION_FAILED. See config-type-renamed-to-prisma-config in the app recipe and the extension recipe. (#31062)

    Before:

    import type { PrismaNextConfig } from '@prisma/orm-toolchain/cli/config-types';
    const config: PrismaNextConfig<'sql', 'postgres'> = defineConfig({ /* ... */ });

    After:

    import type { PrismaConfig } from '@prisma/orm-toolchain/cli/config-types';
    const config: PrismaConfig<'sql', 'postgres'> = defineConfig({ /* ... */ });
  • Generated files import from the module the target package names. A generated contract.d.ts now imports all its types from one module, such as @prisma/orm-postgres/contract-types; run prisma contract emit to regenerate it. A config that you assemble from the framework's own defineConfig, not a target package's, must set contract.typesModule and migrations.module, or commands fail with CONFIG.CONTRACT_TYPES_MODULE_MISSING and CONFIG.MIGRATION_MODULE_MISSING. Control API callers pass typesModule to emit and renderContractDts, and the projectDir option is gone. @prisma/orm-toolchain/publish-surface and its two sub-entries are removed. Extension authors: the emitter, migration renderer and MySQL config factory take the module names too. See contract-types-import-from-the-target-package, hand-assembled-config-names-generated-file-modules, control-api-takes-types-module and toolchain-publish-surface-entrypoints-removed in the app recipe, and target-package-names-generated-file-modules, extension-config-names-generated-file-modules, family-imports-are-import-requirements, migration-renderer-takes-the-migration-module, emitter-takes-the-types-module, mysql-config-components-carry-family-and-modules, control-api-takes-types-module, component-type-import-module-is-not-a-literal-type and toolchain-publish-surface-entrypoints-removed in the extension recipe. (#31078)

  • On PostgreSQL and SQLite, a changed stored name is planned as a rename. When a model, field or enum member keeps its name and only its @@map, @map or stored value changes, migration plan and db update now rename the table or column, or replace the stored value, without asking. A script that passed --delete for such a change now fails with CLI.CONSENT_UNUSED; remove the flag. To get an empty table under the new name, remove the model in one migration and add it back in the next. Swaps, chains and takeovers of table and column names are refused with MIGRATION.PLANNING_FAILED, and so are enum members that swap stored values or take the stored value of a removed member; make them in two migrations: the first moves every name involved to a name nothing uses, and the second moves them to the final names. Chains of enum stored values are planned. A table that still has the lowered name an earlier release gave a model with no @@map is renamed to the model name; add @@map to keep the old name. MySQL and MongoDB plan these changes as before. See sql-stored-name-change-is-a-rename, sql-stored-name-delete-is-unused, sql-stored-name-empty-table, sql-stored-name-swaps-refused and sql-lowered-table-names-renamed in the app recipe. Extension authors who call the SQL family's statement planning see schema-tables-same-name, plan-statements-plans-stored-name-renames, subjects-of-calls-storage-renames and stored-value-keep-data-edit-removed in the extension recipe. (#31088)

    Before:

    prisma migration plan --name move-users --delete User

    After:

    prisma migration plan --name move-users
  • sql.String(n) is now sql.Varchar(n), and PostgreSQL's jsonColumn is plainJsonColumn. sql.String(n) still works as a deprecated alias that warns with PSL_DEPRECATED_SCALAR_NAME, in PSL and as type.sql.String(n) in TypeScript. The PostgreSQL column helper jsonColumn is removed; import plainJsonColumn. No contract changes. See psl-renamed-sql-string, ts-renamed-sql-string and ts-renamed-postgres-json-column-helper in the app recipe, and ts-postgres-explicit-json-type in the extension recipe. (#31065)

    Before:

    model Label {
      id   Int            @id
      name sql.String(50)

... (truncated)

Commits
  • e023771 chore(release): bump to 8.0.0-rc.25 (#31180)
  • 4d29b04 feat(sql-orm-client): nested update and delete of one related row on one-to-m...
  • 4f16a9f fix(pg, mysql): leave the user and host unset when a DATABASE_URL leaves them...
  • 1418c26 TML-3831: prisma orm init --target takes the name of any target package, and ...
  • eb0f691 chore(deps)(deps): Bump the runtime-deps group across 1 directory with 36 upd...
  • 13e2858 feat(cli): init writes the project from the target package it installs, not f...
  • 705504c fix(orm-postgres): declare pg and @​types/pg as peer dependencies (#31060)
  • d08cc5a feat: generated files import from the module the target package names, so a t...
  • 82c3614 refactor(target-postgres, target-mongo): export the minimum server version fr...
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@prisma/orm-postgres](https://github.com/prisma/orm/tree/HEAD/packages/9-public/@prisma/orm-postgres) from 8.0.0-rc.24 to 8.0.0-rc.25.
- [Release notes](https://github.com/prisma/orm/releases)
- [Changelog](https://github.com/prisma/orm/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prisma/orm/commits/v8.0.0-rc.25/packages/9-public/@prisma/orm-postgres)

---
updated-dependencies:
- dependency-name: "@prisma/orm-postgres"
  dependency-version: 8.0.0-rc.25
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 27, 2026
@socket-security

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@​prisma/​orm-postgres@​8.0.0-rc.24 ⏵ 8.0.0-rc.259910090 +299100

View full report

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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants