Packages

@prisma/client

7.10.1 · 15 Oct 2026Apache-2.024.6M / weekRepositoryHomepagenpmAtom feed

Upgrading @prisma/client From 2.25.0 to 2.26.0

1 release in betweenevery note read

Reading releases, release notes and advisories…

Other targets from 2.25.0Newest 2.x2.30.3Latest7.10.1
  1. 2.25.0yours
  2. 2.26.0target
0
changes to make
0
advisories fixed
34
new
0
fixes

Release by release

  1. 2.26.0

    29 Jun 202134 new
    • New

      It's possible to choose specific referential actions for the foreign keys in relations. Prisma Migrate, prisma db push, and introspection will set these in the database schema, e.g. @relation(... onDelete: SetNull) will set translate to ON DELETE SET NULL on the corresponding foreign key. See Syntax section below.

    • New

      Prisma Migrate, prisma db push, and introspection will rely on the syntax and default values above to keep the referential actions between Prisma schema and database schema in sync.

    • New

      Prisma Client no longer performs any checks before deleting records when invoking delete() or deleteAll() methods. Deleting referenced objects will succeed or not depending on the underlying foreign keys of relations, e.g. by default deletion will be prevented by the database because it's set to ON DELETE RESTRICT, but will succeed if set to ON DELETE CASCADE.

    • New

      Upgrade path: If developers don't specify custom onDelete or onUpdate attributes in the Prisma schema, the next time the database is updated with Prisma Migrate or prisma db push, the database schema will be updated to use the default values on all foreign keys, ON DELETE RESTRICT ON UPDATE CASCADE (ON DELETE NO ACTION ON UPDATE CASCADE on SQL Server). Please note that until then, if the database schema is managed using Prisma Migrate or prisma db push, the existing defaults are probably in place (ON DELETE CASCADE ON UPDATE CASCADE), and this could lead to deletion of records in conditions where a deletion was previously prevented by Prisma Client until the foreign key constraints are updated.

5 other lines we could not sort, mostly version bumps
  • ON DELETE RESTRICT (NO ACTION on SQL Server) for required relations

    2.26.0
  • ON DELETE SET NULL for optional relations

    2.26.0
  • ON UPDATE CASCADE for all relations regardless if optional or required.

    2.26.0
  • June 29th: Workshops

    2.26.0
  • June 30th: Talks

    2.26.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.