fix: downgrade the driver of sqlite and mariadb to 6.18.0#32
fix: downgrade the driver of sqlite and mariadb to 6.18.0#32jiashengguo merged 2 commits intodevfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughBumps package version to 0.4.1 and updates Prisma adapter ranges to ^6.18.0. Refactors SQLite adapter loading to require the module object and select constructor via multiple export fallbacks; changes MariaDB adapter constructor name used during instantiation. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR updates the proxy’s Prisma driver adapter dependencies (SQLite + MariaDB) to the 6.x line and adjusts the SQLite adapter loading logic in createAdapter to be compatible with adapter export name differences across Prisma/adapter versions.
Changes:
- Downgrade
@prisma/adapter-better-sqlite3and@prisma/adapter-mariadbdependency ranges to^6.18.0(lockfile resolves to 6.19.2). - Update SQLite adapter require/constructor resolution to support multiple export names.
- Bump package version from
0.4.0to0.4.1.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/server.ts |
Makes SQLite adapter loading resilient to export name changes by resolving multiple possible exports. |
package.json |
Updates dependency ranges for Prisma adapters and bumps package version. |
pnpm-lock.yaml |
Updates resolved Prisma adapter and transitive dependency versions consistent with the new ranges. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 33: The code destructures the wrong export name (PrismaMariaDB) from the
MariaDB adapter causing a runtime error; update the destructured import in
src/server.ts to the correct export name PrismaMariaDb (replace any occurrences
of PrismaMariaDB with PrismaMariaDb where you require or import from
'@prisma/adapter-mariadb') so the adapter resolves correctly at runtime.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 620b04c3-8e34-4ffc-8f55-9caa84130c36
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
package.jsonsrc/server.ts
fix: downgrade the driver of sqlite and mariadb to 6.18.0 (#32)
Summary by CodeRabbit
Chores
Improvements