-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With this update, Yates now requires prisma v5. Under the hood not much has changed, except we now load data models from the private property `_runtimeDataModel`. I've imported the typings used for this internal data structure and reference the prisma test case that looks for it to try and prevent any problems that arise from using this private property. The only major change I see is that previously, updates to a row protected by RLS would silently fail (the default PG behaviour), but now Prisma will throw a "Record to update not found" error. This is actually desirable, as it avoids some difficult to debug errors in ability logic. BREAKING CHANGE: Yates now requires Prisma @ v5 Signed-off-by: Lucian Buzzo <[email protected]>
- Loading branch information
1 parent
cffafeb
commit e7dc385
Showing
8 changed files
with
91 additions
and
81 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,14 @@ | |
"author": "Cerebrum <[email protected]> (https://cerebrum.com)", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@prisma/client": "^4.0.0", | ||
"@prisma/client": "^5.0.0", | ||
"@types/cls-hooked": "^4.3.3", | ||
"@types/jest": "^29.2.6", | ||
"@types/lodash": "^4.14.191", | ||
"@types/uuid": "^9.0.0", | ||
"cls-hooked": "^4.2.2", | ||
"jest": "^29.3.1", | ||
"prisma": "^4.9.0", | ||
"prisma": "^5.0.0", | ||
"rome": "^11.0.0", | ||
"ts-jest": "^29.0.5", | ||
"typescript": "^4.9.4", | ||
|
@@ -33,7 +33,7 @@ | |
"lodash": "^4.17.21" | ||
}, | ||
"peerDependencies": { | ||
"@prisma/client": "^4.0.0", | ||
"prisma": "^4.9.0" | ||
"@prisma/client": "^5.0.0", | ||
"prisma": "^5.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters