Prisma 推出 Prisma Next,是一個完全用 TypeScript 重寫的新基礎架構
Prisma 推出 Prisma Next,是一個完全用 TypeScript 重寫的新基礎架構,旨在解決現有程式庫面臨的擴展性瓶頸。由於修復和新功能開發速度緩慢,團隊重新設計 ORM 以適應現代開發需求。
核心改進 Prisma Next 保留開發者熟悉的核心功能,包括聲明式架構、Model 優先的查詢方式和強型別安全,但引入了更靈活的設計:
- 新增型別安全的 SQL 查詢產生器,允許開發者在需要完整控制時降級到原生 SQL,同時保持型別安全
- 採用模組化設計,資料庫功能和擴展可直接插入系統,使 Prisma 能更快地演進和支援新資料庫功能
AI Agent 優化 Prisma Next 針對 AI Agent 工作流進行優化:
- 提供編譯時防護、機器可讀的錯誤訊息和結構化輸出,讓 Agent 能更安全地迭代資料庫查詢
- 新增 Middleware 機制作為資料庫的規則檢查層,支援查詢檢驗和預算限制
遷移系統 遷移系統採用圖形結構而非線性檔案,提供更清晰的遷移狀態追蹤和處理並行開發場景。
版本規劃 現行的 Prisma 7 仍保持穩定支援,Prisma Next 日後將成為 Prisma 8。團隊已開源 Prisma Next,邀請社群參與設計共塑未來方向。
Over time we kept running into the same problem with Prisma ORM.
— Prisma Postgres (@prisma) March 10, 2026
The architecture that got us here started slowing us down. Fixes took longer. Adding new capabilities got harder.
So we asked: what would Prisma look like if we rebuilt it today? pic.twitter.com/Fcl9GUwvyj
That question led to Prisma Next.
— Prisma Postgres (@prisma) March 10, 2026
A new foundation for Prisma ORM written fully in TypeScript.
The goal is not to change the developer experience people like.
The goal is to remove the constraints in the current codebase so Prisma can evolve faster.
The guiding idea behind Prisma Next is simple.
— Prisma Postgres (@prisma) March 10, 2026
Keep the core experience developers rely on:
- declarative schema
- model-first queries
- strong type safety
But make the system composable and extensible by default.
Prisma Next also introduces a built-in type-safe SQL query builder.
— Prisma Postgres (@prisma) March 10, 2026
When you need more control, you can drop down to SQL while still keeping full type safety from your schema. pic.twitter.com/4pBruqVLJs
It also changes how Prisma ORM can evolve.
— Prisma Postgres (@prisma) March 10, 2026
Instead of one fixed bundle, Prisma Next is modular. Database features and extensions can plug directly into the system.
That means Prisma ORM can grow alongside modern databases and new capabilities. pic.twitter.com/LMWWVqcXj0
A lot of thoughtful work is going into Prisma Next.
— Prisma Postgres (@prisma) March 10, 2026
Huge appreciation to the our engineers putting in the time & care to push it forward. Special shoutout to @william_ma14406 for the effort & leadership behind the scenes.
Read the full blog to learn about our vision 👇…
