Conversation
✅ Deploy Preview for cedarjs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
| Command | Status | Duration | Result |
|---|---|---|---|
nx run-many -t build:pack --exclude create-ceda... |
✅ Succeeded | 2s | View ↗ |
nx run-many -t test --minWorkers=1 --maxWorkers=4 |
✅ Succeeded | 3m 35s | View ↗ |
nx run-many -t build |
✅ Succeeded | 3s | View ↗ |
nx run-many -t test:types |
✅ Succeeded | 10s | View ↗ |
☁️ Nx Cloud last updated this comment at 2026-03-17 18:58:59 UTC
Greptile SummaryThis PR upgrades CedarJS from Prisma v6 to Prisma v7, migrating to the new TypeScript query engine, driver adapter pattern, and Key changes include:
Issues found:
Confidence Score: 2/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["resolveGeneratedPrismaClient()"] --> B["getSchemaPath(prismaConfigPath)"]
B --> C["getPrismaSchemasAtPath(schemaPath)"]
C --> D["getConfig({ datamodel: schemas })"]
D --> E{"generator output found?"}
E -- yes --> F["generatorOutputPath = resolved output"]
E -- no --> G["catch: getGeneratorOutputPathFromSchema(schemaPath)\n(regex fallback)"]
F --> H["candidateEntries list\n1. generatorOutputPath/client.ext\n2. schemaDir/generated/client/client.ext\n3. schemaDir/generated/prisma/client.ext\n4. node_modules/.prisma/client/index.js"]
G --> H
H --> I{"find first entry\nthat exists on disk"}
I -- found --> J["return entry"]
I -- not found + mustExist --> K["throw Error (lists all checked paths)"]
I -- not found --> L["return candidateEntries[0] (best guess)"]
subgraph "Template db.ts (SQLite only)"
M["process.env.DATABASE_URL"] --> N["resolveSqliteUrl()"]
N --> O["new PrismaBetterSqlite3({ url })"]
O --> P["new PrismaClient({ adapter })"]
end
Last reviewed commit: e8b91ae |
|
The changes in this PR are now available on npm. Try them out by running |

Upgrading to Prisma v7 for their TypeScript query engine.
If you're using Cedar's experimental Storage support, you need to update your code to look something like this:
Pay attention to how
directUrlisn't supported anymore, and what you should do instead: https://www.prisma.io/docs/guides/upgrade-prisma-orm/v7#schema-changes and prisma/prisma#28700Some "directUrl"-related PRs on the RW repo:
Note that we no longer support
TEST_DIRECT_URL(that was never documented). Instead we expect users to handle switching the db url themselves, for example by looking atprocess.env.NODE_ENV, now that this is all configured in a JavaScript-file where having logic for this is much easierTODO:
"url"inschema.prismadirectUrlbecomesprisma.config.cjsurlallowImportingTsExtensionsin all threetsconfig.jsonfilesyarn cedar devyarn cedar test