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-clientgenerator, 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/clientroot export. - Cascade and relation filters require explicit
dmmfmetadata 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
- Upgrade to
@nestarc/[email protected]. - If upgrading Prisma, complete the shared Prisma 7 setup.
- If cascade or relation filters are enabled, pin
@prisma/internalsto the Prisma version and pass explicitdmmfto the extension and module. - 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.