Skip to content

feat(prisma7)!: add Prisma 7 support with driver adapter architecture#336

Open
Fuzen2478 wants to merge 1 commit intoeoin-obrien:mainfrom
Fuzen2478:feat/prisma-7-support
Open

feat(prisma7)!: add Prisma 7 support with driver adapter architecture#336
Fuzen2478 wants to merge 1 commit intoeoin-obrien:mainfrom
Fuzen2478:feat/prisma-7-support

Conversation

@Fuzen2478
Copy link

Summary

This PR adds support for Prisma 7's new driver adapter architecture.

Breaking Changes

  • Requires Prisma 7 or later - Prisma 5/6 users should stay on v3.x
  • PrismaClient must now be initialized with a driver adapter
  • Import path changes: @prisma/client./prisma/generated/prisma/client

Changes

  • Update all dependencies to Prisma 7 (@prisma/client@^7.0.0, prisma@^7.0.0, prisma-kysely@^3.0.0)
  • Add prisma.config.ts for CLI configuration
  • Update schema.prisma to use new prisma-client generator with output path
  • Update src/index.ts imports for Prisma 7 extension structure
  • Update all test files for driver adapter pattern
  • Update all 5 examples (basic, camel-case, esm, logging, read-replica)
  • Add comprehensive migration guide to README
  • Bump version to 4.0.0

Migration Guide

See the updated README for detailed migration instructions.

Testing

  • ✅ All 25 tests passing
  • ✅ Build succeeds
  • ✅ All examples updated and validated

BREAKING CHANGE: This version requires Prisma 7 or later.

- Update to Prisma 7 driver adapter pattern
- Add prisma.config.ts for CLI configuration
- Update schema.prisma to use prisma-client generator
- Update all examples for Prisma 7 compatibility
- Add migration guide to README
- Bump version to 4.0.0
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