Prisma 8.0.0-rc.9: Strengere Schemavalidierung und neue Filter-Typen
Prisma 8.0.0-rc.9 verschärft die Schemavalidierung, ergänzt wiederverwendbare Query-Filter-Typen, behebt Fehler bei Language-Server-Diagnosen und PostgreSQL-Migrationsprüfung und ändert u. a. die Sortierung textbasierter Enums sowie die Argumente von MongoDB-Indizes.
v8.0.0-rc.9
This RC tightens schema validation, adds reusable query-filter types, and fixes language-server diagnostics and PostgreSQL migration verification.
Breaking changes
Text-backed enum ordering follows stored values. PostgreSQL
ORDER BYandDISTINCT ONno longer impose enum declaration order. If semantic ranking matters, use an explicit ranking expression or numeric enum values; native PostgreSQL enums retain their database ordering. Changing existing storage to numeric values requires a data-preserving migration, including defaults and constraints—not rewriting applied migration history. See the app upgrade recipe. (#30223)MongoDB index arguments use native schema values. Replace encoded wildcard-index
include/excludestrings with string lists and encoded text-indexweightsstrings with records. Weights must be integers from 1 to 99,999; malformed and unsupported arguments now fail validation. Thefilterargument remains quoted JSON. See the app upgrade recipe. (#29833)Before:
@@index([wildcard()], include: "[metadata, nested.path]") @@textIndex([title, body], weights: "{\"title\": 10, \"body\": 5}")…