Skip to content

Upgrade to 0.6

@nestarc/soft-delete 0.6.0 adds Prisma 7 to the published peer range and makes it the primary generated-client and PostgreSQL E2E target. Prisma 5 and 6 remain supported.

What Changed

  • Prisma 7 setup now uses Prisma Config, the prisma-client generator, explicit generated output, and a database driver adapter.
  • Shared extension creation imports from @prisma/client/extension, so the package no longer depends on a generated @prisma/client root export.
  • Cascade and relation filters require explicit dmmf metadata instead of reading generated-client runtime metadata.
  • The minimum Node.js engine range follows the Prisma 7 toolchain: ^20.19, ^22.12, or >=24.

Upgrade Checklist

  1. Upgrade to @nestarc/[email protected].
  2. If upgrading Prisma, complete the shared Prisma 7 setup.
  3. If cascade or relation filters are enabled, pin @prisma/internals to the Prisma version and pass explicit dmmf to the extension and module.
  4. Regenerate Prisma Client and run tests that cover delete, nested relation reads, cascade, restore, and purge.

No package-owned database migration is required. Your application still owns deletedAt, deletedBy, and active-row unique indexes.

See Installation for the complete setup and the v0.6.0 GitHub release for authoritative release notes.

Released under the MIT License.