-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[regression] Schema engine error
in Prisma 5.19.0
#25101
Comments
I'm also trying to deal with a bug moving up to 5.19 the db push seems to work, as does the initial part of the seed script until it gets to a particular function then it throws:
the code causing this is:
it almost looks like 5.19.0 is getting confused around the nested where clause an expecting fieldName on modelName instead? to reiterate: the code is identical to what has been running for weeks. Only prisma version change causes the error |
Yes, I was trying to run hello world of prisma as I am learning prisma now. |
Schema engine error
in Prisma 5.19.0
Hi @callumJPritchard, please open a new issue for that. You're describing a possible bug in Prisma Client, not on |
Hey @satadhi, can you please run the following command, and report back the output? Thanks.
This gives us much more information than just "5.19.0", and may help us assessing this further. Thanks! |
@jkomyno I have used the basic setup of nestjs. Below is the error when i used
|
@satadhi this is unexpected but is there a reason you have OpenSSL 1.1 installed on your system? Did you install it with We should investigate what looks like a sudden bump in the requirements from OpenSSL 1.1.0 to OpenSSL 1.1.1 regardless. Maybe it comes from prisma/prisma-engines#4965. |
Hi @jkomyno satadhi.halder: ~/Documents/nestjs - practise / prisma - prac$ npx prisma--version
Environment variables loaded from.env
Error: Unable to require(`/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`).
The Prisma engines do not seem to be compatible with your system.Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: /lib/x86_64 - linux - gnu / libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
at pne (/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/prisma/build/index.js:284:116)
at lWe (/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/prisma/build/index.js:284:269)
Error: Command failed with exit code 1: /home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version
/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)
at eke(/home/satadhi.halder / Documents / nestjs - practise / prisma - prac / node_modules / prisma / build / index.js: 5: 57)
at / home / satadhi.halder/Documents/nestjs - practise / prisma - prac / node_modules / prisma / build / index.js: 5: 10625
at process.processTicksAndRejections(node: internal / process / task_queues: 95: 5)
at async lWe(/home/satadhi.halder / Documents / nestjs - practise / prisma - prac / node_modules / prisma / build / index.js: 284: 343) {
shortMessage: 'Command failed with exit code 1: /home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version',
command: '/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version',
escapedCommand: '"/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x" --version',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "/home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /home/satadhi.halder/Documents/nestjs-practise/prisma-prac/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
prisma: 5.19.0
@prisma/client : 5.19.0
Computed binaryTarget: debian - openssl - 1.1.x
Operating System: linux
Architecture: x64
Node.js : v20.14.0
Query Engine(Node - API) : E_CANNOT_RESOLVE_VERSION(at node_modules / @prisma / engines / libquery_engine - debian - openssl - 1.1.x.so.node)
Schema Engine: E_CANNOT_RESOLVE_VERSION(at node_modules / @prisma / engines / schema - engine - debian - openssl - 1.1.x)
Schema Wasm: @prisma/prisma-schema-wasm 5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f
Default Engines Hash: 5fe21811a6ba0b952a3bc71400666511fe3b902f
Studio: 0.502.0
satadhi.halder: ~/Documents/nestjs - practise / prisma - prac$
|
@aqrln yes when i got error i tried to manually install OpenSSL using command |
@satadhi so the OpenSSL error is a separate issue and unrelated to the original problem you were facing, right? It's better to uninstall it, yes, there's no reason to use OpenSSL 1.1 which has been officially EOL upstream for a year already (even if distros may still support it). |
Could you please also post your |
removed, satadhi.halder:~/Documents/nestjs-practise/prisma-prac$ dpkg -l | grep libssl
ii libssl3:amd64 3.0.2-0ubuntu1.17 amd64 Secure Sockets Layer toolkit - shared libraries Output of
|
I'm also getting the same error just after upgrading prisma from After I run Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "genesis", schema "public" at "127.0.0.1:5432"
Error: Schema engine error:
Running Environment variables loaded from .env
Error: Unable to require(`/my-app/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /my-app/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
at pne (/my-app/node_modules/prisma/build/index.js:284:116)
at lWe (/my-app/node_modules/prisma/build/index.js:284:269)
Error: Command failed with exit code 1: /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version
/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)
at eke (/my-app/node_modules/prisma/build/index.js:5:57)
at /my-app/node_modules/prisma/build/index.js:5:10625
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async lWe (/my-app/node_modules/prisma/build/index.js:284:343) {
shortMessage: 'Command failed with exit code 1: /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version',
command: '/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version',
escapedCommand: '"/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x" --version',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
prisma : 5.19.0
@prisma/client : 5.19.0
Computed binaryTarget : debian-openssl-1.1.x
Operating System : linux
Architecture : x64
Node.js : v18.18.2
Query Engine (Node-API) : E_CANNOT_RESOLVE_VERSION (at ../node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
Schema Engine : E_CANNOT_RESOLVE_VERSION (at ../node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)
Schema Wasm : @prisma/prisma-schema-wasm 5.19.0-31.5fe21811a6ba0b952a3bc71400666511fe3b902f
Default Engines Hash : 5fe21811a6ba0b952a3bc71400666511fe3b902f
Studio : 0.502.0
Preview Features : omitApi |
prisma/prisma-engines#4965 was released in the dev Prisma version @satadhi and @mathiasayivor, could you please try installing Also, can you run the command above with |
@jkomyno I've installed both CMD: yarn prisma db pushprisma@5.19.0-dev.7:Works as expected prisma@5.19.0-dev.8:Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "genesis", schema "public" at "127.0.0.1:5432"
Error: Schema engine error:
CMD: DEBUG="prisma:get-platform" prisma --versionprisma@5.19.0-dev.7:prisma:get-platform Found distro info:
{
"targetDistro": "debian",
"familyDistro": "debian",
"originalDistro": "ubuntu"
} +1252ms
prisma:get-platform Trying platform-specific paths for "debian" (and "ubuntu") +10ms
prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.1.1 +22ms
prisma:get-platform The parsed libssl version is: 1.1.x +1ms
Environment variables loaded from .env
prisma:get-platform Found distro info:
{
"targetDistro": "debian",
"familyDistro": "debian",
"originalDistro": "ubuntu"
} +2303ms
prisma:get-platform Trying platform-specific paths for "debian" (and "ubuntu") +1ms
prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.1.1 +12ms
prisma:get-platform The parsed libssl version is: 1.1.x +1ms
prisma : 5.19.0-dev.7
@prisma/client : 5.18.0
Computed binaryTarget : debian-openssl-1.1.x
Operating System : linux
Architecture : x64
Node.js : v18.18.2
Query Engine (Node-API) : libquery-engine 44f753d2ce0008a24ce36e34aff65a5afe266839 (at ../node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
Schema Engine : schema-engine-cli 44f753d2ce0008a24ce36e34aff65a5afe266839 (at ../node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)
Schema Wasm : @prisma/prisma-schema-wasm 5.19.0-8.44f753d2ce0008a24ce36e34aff65a5afe266839
Default Engines Hash : 44f753d2ce0008a24ce36e34aff65a5afe266839
Studio : 0.502.0
Preview Features : omitApi prisma@5.19.0-dev.8:prisma:get-platform Found distro info:
{
"targetDistro": "debian",
"familyDistro": "debian",
"originalDistro": "ubuntu"
} +1238ms
prisma:get-platform Trying platform-specific paths for "debian" (and "ubuntu") +5ms
prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.1.1 +12ms
prisma:get-platform The parsed libssl version is: 1.1.x +1ms
Environment variables loaded from .env
prisma:get-platform Found distro info:
{
"targetDistro": "debian",
"familyDistro": "debian",
"originalDistro": "ubuntu"
} +2199ms
prisma:get-platform Trying platform-specific paths for "debian" (and "ubuntu") +2ms
prisma:get-platform Found libssl.so file using platform-specific paths: libssl.so.1.1 +12ms
prisma:get-platform The parsed libssl version is: 1.1.x +1ms
Error: Unable to require(`/my-app/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node`).
The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements
Details: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /my-app/node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
at one (/my-app/node_modules/prisma/build/index.js:284:116)
at iWe (/my-app/node_modules/prisma/build/index.js:284:269)
Error: Command failed with exit code 1: /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version
/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)
at YIe (/my-app/node_modules/prisma/build/index.js:5:57)
at /my-app/node_modules/prisma/build/index.js:5:10625
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async iWe (/my-app/node_modules/prisma/build/index.js:284:343) {
shortMessage: 'Command failed with exit code 1: /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version',
command: '/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x --version',
escapedCommand: '"/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x" --version',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "/my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x: /lib/x86_64-linux-gnu/libssl.so.1.1: version `OPENSSL_1_1_1' not found (required by /my-app/node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
prisma : 5.19.0-dev.8
@prisma/client : 5.18.0
Computed binaryTarget : debian-openssl-1.1.x
Operating System : linux
Architecture : x64
Node.js : v18.18.2
Query Engine (Node-API) : E_CANNOT_RESOLVE_VERSION (at ../node_modules/@prisma/engines/libquery_engine-debian-openssl-1.1.x.so.node)
Schema Engine : E_CANNOT_RESOLVE_VERSION (at ../node_modules/@prisma/engines/schema-engine-debian-openssl-1.1.x)
Schema Wasm : @prisma/prisma-schema-wasm 5.19.0-12.ae18f9165678fc6c7b7b107340ca0435be434765
Default Engines Hash : ae18f9165678fc6c7b7b107340ca0435be434765
Studio : 0.502.0
Preview Features : omitApi |
Just upgraded to
|
Hi @mathiasayivor, thanks for confirming that In https://github.com/prisma/ecosystem-tests/tree/dev/docker/ubuntu-22.04-amd64-openssl-3.0.x, we test that on Ubuntu 22.04 on x64, the default engine target for Prisma is As no official
Now the question is: how can we reproduce your and @satadhi's setup in a Dockerfile? We kindly need your help here to avoid similar regressions in the future. Thanks! |
@jkomyno I believe the way to reproduce would be to install the |
This should be fixed in the 5.19.1 version, closing this now. |
This is actually still sad for me
|
@briangottfried did you re-generate the client after updating Prisma? |
also this looks a different error than what people in this issue have been facing |
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@prisma/client](https://www.prisma.io) ([source](https://redirect.github.com/prisma/prisma/tree/HEAD/packages/client)) | [`5.19.0` -> `5.19.1`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.19.0/5.19.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.19.0/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.19.0/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [prisma](https://www.prisma.io) ([source](https://redirect.github.com/prisma/prisma/tree/HEAD/packages/cli)) | [`5.19.0` -> `5.19.1`](https://renovatebot.com/diffs/npm/prisma/5.19.0/5.19.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.19.0/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.19.0/5.19.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>prisma/prisma (@​prisma/client)</summary> ### [`v5.19.1`](https://redirect.github.com/prisma/prisma/releases/tag/5.19.1) [Compare Source](https://redirect.github.com/prisma/prisma/compare/5.19.0...5.19.1) Today, we are issuing the `5.19.1` patch release. #### What's Changed We've fixed the following issues: - [https://github.com/prisma/prisma/issues/25103](https://redirect.github.com/prisma/prisma/issues/25103) - [https://github.com/prisma/prisma/issues/25137](https://redirect.github.com/prisma/prisma/issues/25137) - [https://github.com/prisma/prisma/issues/25104](https://redirect.github.com/prisma/prisma/issues/25104) - [https://github.com/prisma/prisma/issues/25101](https://redirect.github.com/prisma/prisma/issues/25101) **Full Changelog**: prisma/prisma@5.19.0...5.19.x, prisma/prisma-engines@5.19.0...5.19.x </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/huv1k/website). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC41OS4yIiwidXBkYXRlZEluVmVyIjoiMzguNTkuMiIsInRhcmdldEJyYW5jaCI6Im1hc3RlciIsImxhYmVscyI6W119--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@cerbos/grpc](https://redirect.github.com/cerbos/cerbos-sdk-javascript/tree/main/packages/grpc#readme) ([source](https://redirect.github.com/cerbos/cerbos-sdk-javascript/tree/HEAD/packages/grpc)) | [`0.18.1` -> `0.18.3`](https://renovatebot.com/diffs/npm/@cerbos%2fgrpc/0.18.1/0.18.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@cerbos%2fgrpc/0.18.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@cerbos%2fgrpc/0.18.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@cerbos%2fgrpc/0.18.1/0.18.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@cerbos%2fgrpc/0.18.1/0.18.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@prisma/client](https://www.prisma.io) ([source](https://redirect.github.com/prisma/prisma/tree/HEAD/packages/client)) | [`5.17.0` -> `5.20.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/5.17.0/5.20.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@prisma%2fclient/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@prisma%2fclient/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@prisma%2fclient/5.17.0/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@prisma%2fclient/5.17.0/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/jest](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest)) | [`29.5.12` -> `29.5.13`](https://renovatebot.com/diffs/npm/@types%2fjest/29.5.12/29.5.13) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fjest/29.5.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fjest/29.5.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fjest/29.5.12/29.5.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fjest/29.5.12/29.5.13?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node) ([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node)) | [`20.14.14` -> `20.16.7`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.14/20.16.7) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.14.14/20.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.14.14/20.16.7?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [mongoose](https://mongoosejs.com) ([source](https://redirect.github.com/Automattic/mongoose)) | [`8.5.2` -> `8.6.3`](https://renovatebot.com/diffs/npm/mongoose/8.5.2/8.6.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/mongoose/8.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/mongoose/8.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/mongoose/8.5.2/8.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mongoose/8.5.2/8.6.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [prisma](https://www.prisma.io) ([source](https://redirect.github.com/prisma/prisma/tree/HEAD/packages/cli)) | [`5.17.0` -> `5.20.0`](https://renovatebot.com/diffs/npm/prisma/5.17.0/5.20.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/prisma/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/prisma/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/prisma/5.17.0/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/prisma/5.17.0/5.20.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [ts-jest](https://kulshekhar.github.io/ts-jest) ([source](https://redirect.github.com/kulshekhar/ts-jest)) | [`29.2.4` -> `29.2.5`](https://renovatebot.com/diffs/npm/ts-jest/29.2.4/29.2.5) | [![age](https://developer.mend.io/api/mc/badges/age/npm/ts-jest/29.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/ts-jest/29.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/ts-jest/29.2.4/29.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/ts-jest/29.2.4/29.2.5?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [typescript](https://www.typescriptlang.org/) ([source](https://redirect.github.com/microsoft/TypeScript)) | [`5.5.4` -> `5.6.2`](https://renovatebot.com/diffs/npm/typescript/5.5.4/5.6.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/typescript/5.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/typescript/5.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/typescript/5.5.4/5.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/typescript/5.5.4/5.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>cerbos/cerbos-sdk-javascript (@​cerbos/grpc)</summary> ### [`v0.18.3`](https://redirect.github.com/cerbos/cerbos-sdk-javascript/blob/HEAD/packages/grpc/CHANGELOG.md#0183---2024-09-23) [Compare Source](https://redirect.github.com/cerbos/cerbos-sdk-javascript/compare/@cerbos/grpc@0.18.2...@cerbos/grpc@0.18.3) ##### Changed - Bump dependency on \[[@​bufbuild/protobuf](https://redirect.github.com/bufbuild/protobuf)] to 2.1.0 ([#​1012](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/1012)) - Bump dependency on \[[@​grpc/grpc-js](https://redirect.github.com/grpc/grpc-js)] to 1.11.3 ([#​1000](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/1000), [#​1011](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/1011)) ### [`v0.18.2`](https://redirect.github.com/cerbos/cerbos-sdk-javascript/blob/HEAD/packages/grpc/CHANGELOG.md#0182---2024-08-19) [Compare Source](https://redirect.github.com/cerbos/cerbos-sdk-javascript/compare/@cerbos/grpc@0.18.1...@cerbos/grpc@0.18.2) ##### Changed - Replace dependency on \[protobufjs] with \[[@​bufbuild/protobuf](https://redirect.github.com/bufbuild/protobuf)] ([#​990](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/990)) - Bump dependency on \[[@​grpc/grpc-js](https://redirect.github.com/grpc/grpc-js)] to 1.11.1 ([#​974](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/974), [#​979](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/979), [#​981](https://redirect.github.com/cerbos/cerbos-sdk-javascript/pull/981)) </details> <details> <summary>prisma/prisma (@​prisma/client)</summary> ### [`v5.20.0`](https://redirect.github.com/prisma/prisma/releases/tag/5.20.0) [Compare Source](https://redirect.github.com/prisma/prisma/compare/5.19.1...5.20.0) 🌟 **Help us spread the word about Prisma by starring the repo or [posting on X](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@​prisma%20release%20v5.20.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.20.0) about the release.** 🌟 #### Highlights ##### `strictUndefinedChecks` in Preview With Prisma ORM 5.20.0, the Preview feature `strictUndefinedChecks` will disallow any value that is explicitly `undefined` and will be a runtime error. This change is direct feedback from [this GitHub issue](https://redirect.github.com/prisma/prisma/issues/20169) and follows [our latest proposal](https://redirect.github.com/prisma/prisma/issues/20169#issuecomment-2338360300) on the same issue. To demonstrate the change, take the following code snippet: ```tsx prisma.table.deleteMany({ where: { // If `nullableThing` is nullish, this query will remove all data. email: nullableThing?.property, } }) ``` In Prisma ORM 5.19.0 and below, this could result in unintended behavior. In Prisma ORM 5.20.0, if the `strictUndefinedChecks` Preview feature is enabled, you will get a runtime error instead: ```tsx Invalid \`prisma.user.findMany()\` invocation in /client/tests/functional/strictUndefinedChecks/test.ts:0:0 XX }) XX XX test('throws on undefined input field', async () => { → XX const result = prisma.user.deleteMany({ where: { email: undefined ~~~~~~~~~ } }) Invalid value for argument \`where\`: explicitly \`undefined\` values are not allowed." ``` We have also introduced the `Prisma.skip` symbol, which will allow you to get the previous behavior if desired. ```tsx prisma.table.findMany({ where: { // Use Prisma.skip to skip parts of the query email: nullableEmail ?? Prisma.skip } }) ``` From Prisma ORM 5.20.0 onward, we recommend enabling `strictUndefinedChecks`, along with the TypeScript compiler option `exactOptionalPropertyTypes`, which will help catch cases of undefined values at compile time. Together, these two changes will help protect your Prisma queries from potentially destructive behavior. `strictUndefinedChecks` will be a valid Preview feature for the remainder of Prisma ORM 5. With our next major version, this behavior will become the default and the Preview feature will be “graduated” to Generally Available. If you have any questions or feedback about `strictUndefinedChecks`, please ask/comment in our dedicated [Preview feature GitHub discussion](https://redirect.github.com/prisma/prisma/discussions/25271). ##### `typedSql` bug fix Thank you to everyone who has tried out our [`typedSql` Preview feature](https://www.prisma.io/blog/announcing-typedsql-make-your-raw-sql-queries-type-safe-with-prisma-orm) and [provided feedback](https://redirect.github.com/prisma/prisma/discussions/25106)! This release has a quick fix for typescript files generated when Prisma Schema enums had hyphens. #### Fixes and improvements ##### Prisma - [Prisma incorrectly parses CRDB's FK constraint error as `not available`.](https://redirect.github.com/prisma/prisma/issues/24072) - [Invalid TypeScript files created by `generate` when typedSql is enabled and enum contains hyphens.](https://redirect.github.com/prisma/prisma/issues/25163) - [`@prisma/internals` didn't list `ts-toolbelt` in dependencies.](https://redirect.github.com/prisma/prisma/issues/17952) - [using `$extends` prevents model comments from being passed to TypeScript](https://redirect.github.com/prisma/prisma/issues/24648) ##### Prisma Engines - [Planetscale engine tests: interactive_tx](https://redirect.github.com/prisma/prisma-engines/issues/4469) - [Fix broken engine size publishing workflow](https://redirect.github.com/prisma/prisma-engines/issues/4991) #### Credits Huge thanks to [@​mcuelenaere](https://redirect.github.com/mcuelenaere), [@​pagewang0](https://redirect.github.com/pagewang0), [@​key-moon](https://redirect.github.com/key-moon), [@​pranayat](https://redirect.github.com/pranayat), [@​yubrot](https://redirect.github.com/yubrot), [@​thijmenjk](https://redirect.github.com/thijmenjk), [@​mydea](https://redirect.github.com/mydea), [@​HRM](https://redirect.github.com/HRM), [@​haaawk](https://redirect.github.com/haaawk), [@​baileywickham](https://redirect.github.com/baileywickham), [@​brian-dlee](https://redirect.github.com/brian-dlee), [@​nickcarnival](https://redirect.github.com/nickcarnival), [@​eruditmorina](https://redirect.github.com/eruditmorina), [@​nzakas](https://redirect.github.com/nzakas), and [@​gutyerrez](https://redirect.github.com/gutyerrez) for helping! ### [`v5.19.1`](https://redirect.github.com/prisma/prisma/releases/tag/5.19.1) [Compare Source](https://redirect.github.com/prisma/prisma/compare/5.19.0...5.19.1) Today, we are issuing the `5.19.1` patch release. #### What's Changed We've fixed the following issues: - [https://github.com/prisma/prisma/issues/25103](https://redirect.github.com/prisma/prisma/issues/25103) - [https://github.com/prisma/prisma/issues/25137](https://redirect.github.com/prisma/prisma/issues/25137) - [https://github.com/prisma/prisma/issues/25104](https://redirect.github.com/prisma/prisma/issues/25104) - [https://github.com/prisma/prisma/issues/25101](https://redirect.github.com/prisma/prisma/issues/25101) **Full Changelog**: prisma/prisma@5.19.0...5.19.x, prisma/prisma-engines@5.19.0...5.19.x ### [`v5.19.0`](https://redirect.github.com/prisma/prisma/releases/tag/5.19.0) [Compare Source](https://redirect.github.com/prisma/prisma/compare/5.18.0...5.19.0) Today, we are excited to share the `5.19.0` stable release 🎉 🌟 **Help us spread the word about Prisma by starring the repo or [posting on X](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@​prisma%20release%20v5.19.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.19.0) about the release.** 🌟 #### Highlights ##### Introducing TypedSQL TypedSQL is a brand new way to interact with your database from Prisma Client. After enabling the `typedSql` Preview feature, you’re able to write SQL queries in a new `sql` subdirectory of your `prisma` directory. These queries are then checked by Prisma during using the new `--sql` flag of `prisma generate` and added to your client for use in your code. To get started with TypedSQL: 1. Make sure that you have the latest version of `prisma` and `@prisma/client` installed: npm install -D prisma@latest npm install @​prisma/client@latest 2. Enable the `typedSql` Preview feature in your Prisma Schema. generator client { provider = "prisma-client-js" previewFeatures = ["typedSql"] } 3. Create a `sql` subdirectory of your `prisma` directory. mkdir -p prisma/sql 4. You can now add `.sql` files to the `sql` directory! Each file can contain one sql query and the name must be a valid JS identifier. For this example, say you had the file `getUsersWithPosts.sql` with the following contents: ```sql SELECT u.id, u.name, COUNT(p.id) as "postCount" FROM "User" u LEFT JOIN "Post" p ON u.id = p."authorId" GROUP BY u.id, u.name ``` 5. Import your SQL query into your code with the `@prisma/client/sql` import: ```tsx import { PrismaClient } from '@​prisma/client' import { getUsersWithPosts } from '@​prisma/client/sql' const prisma = new PrismaClient() const usersWithPostCounts = await prisma.$queryRawTyped(getUsersWithPosts) console.log(usersWithPostCounts) ``` There’s a lot more to talk about with TypedSQL. We think that the combination of the high-level Prisma Client API and the low-level TypedSQL will make for a great developer experience for all of our users. To learn more about behind the “why” of TypedSQL [be sure to check out our announcement blog post](https://pris.ly/typedsql-blog). For docs, check out our new [TypedSQL section](https://pris.ly/d/typedsql). #### Bug fixes ##### Driver adapters and D1 A few issues with our `driverAdapters` Preview feature and Cloudflare D1 support were resolved via [https://github.com/prisma/prisma-engines/pull/4970](https://redirect.github.com/prisma/prisma-engines/pull/4970) and [https://github.com/prisma/prisma/pull/24922](https://redirect.github.com/prisma/prisma/pull/24922) - Mathematic operations such as `max`, `min`, `eq`, etc in queries when using Cloudflare D1. - Resolved issues when comparing `BigInt` IDs when `relationMode="prisma"` was enabled and Cloudflare D1 was being used. ##### Joins - [https://github.com/prisma/prisma/issues/23742](https://redirect.github.com/prisma/prisma/issues/23742) fixes Prisma Client not supporting deeply nested `some` clauses when the `relationJoins` Preview feature was enabled. #### Join us Looking to make an impact on Prisma in a big way? We're now hiring engineers for the ORM team! - [Senior Engineer (TypeScript)](https://boards.greenhouse.io/prisma/jobs/5350820002): This person will be primarily working on the TypeScript side and evolving our Prisma client. Rust knowledge (or desire to learn Rust) is a plus. - [Senior Engineer (Rust)](https://boards.greenhouse.io/prisma/jobs/6940273002): This person will be focused on the `prisma-engines` Rust codebase. TypeScript knowledge (or, again, a desire to learn) is a plus. #### Credits Huge thanks to [@​mcuelenaere](https://redirect.github.com/mcuelenaere), [@​pagewang0](https://redirect.github.com/pagewang0), [@​Druue](https://redirect.github.com/Druue), [@​key-moon](https://redirect.github.com/key-moon), [@​Jolg42](https://redirect.github.com/Jolg42), [@​pranayat](https://redirect.github.com/pranayat), [@​ospfranco](https://redirect.github.com/ospfranco), [@​yubrot](https://redirect.github.com/yubrot), [@​skyzh](https://redirect.github.com/skyzh) for helping! ### [`v5.18.0`](https://redirect.github.com/prisma/prisma/releases/tag/5.18.0) [Compare Source](https://redirect.github.com/prisma/prisma/compare/5.17.0...5.18.0) 🌟 **Help us spread the word about Prisma by starring the repo or [tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@​prisma%20release%20v5.18.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.18.0) about the release.** 🌟 ##### Highlights ##### Native support for UUIDv7 Previous to this release, the Prisma Schema function `uuid()` did not accept any arguments and created a UUIDv4 ID. While sufficient in many cases, UUIDv4 has a few drawbacks, namely that it is not temporally sortable. UUIDv7 attempts to resolve this issue, making it easy to temporally sort your database rows by ID! To support this, we’ve updated the `uuid()` function in Prisma Schema to accept an optional, integer argument. Right now, the only valid values are `4` and `7`, with `4` being the default. ```tsx model User { id String @​id @​default(uuid()) // defaults to 4 name String } model User { id String @​id @​default(uuid(4)) // same as above, but explicit name String } model User { id String @​id @​default(uuid(7)) // will use UUIDv7 instead of UUIDv4 name String } ``` ##### Bug squashing We’ve squashed a number of bugs this release, special thanks to everyone who helped us! A few select highlights are: - [SQLite db will now be created and read from the correct location when using `prismaSchemaFolder`](https://redirect.github.com/prisma/prisma/issues/24779). - [Empty `Json[]` fields will now return `[]` instead of `null` when accessed through a join using the `relationJoins` Preview feature.](https://redirect.github.com/prisma/prisma/issues/22923) ##### Fixes and improvements ##### Prisma - [Support UUID v7](https://redirect.github.com/prisma/prisma/issues/24079) ##### Language tools (e.g. VS Code) - [Support fetching references for a model](https://redirect.github.com/prisma/language-tools/issues/982) ##### Credits Huge thanks to [@​mcuelenaere](https://redirect.github.com/mcuelenaere), [@​pagewang0](https://redirect.github.com/pagewang0), [@​Druue](https://redirect.github.com/Druue), [@​key-moon](https://redirect.github.com/key-moon), [@​Jolg42](https://redirect.github.com/Jolg42), [@​pranayat](https://redirect.github.com/pranayat), [@​ospfranco](https://redirect.github.com/ospfranco), [@​yubrot](https://redirect.github.com/yubrot), [@​skyzh](https://redirect.github.com/skyzh), [@​haaawk](https://redirect.github.com/haaawk) for helping! </details> <details> <summary>Automattic/mongoose (mongoose)</summary> ### [`v8.6.3`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#863--2024-09-17) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.2...8.6.3) \================== - fix: make getters convert uuid to string when calling toObject() and toJSON() [#​14890](https://redirect.github.com/Automattic/mongoose/issues/14890) [#​14869](https://redirect.github.com/Automattic/mongoose/issues/14869) - fix: fix missing Aggregate re-exports for ESM [#​14886](https://redirect.github.com/Automattic/mongoose/issues/14886) [wongsean](https://redirect.github.com/wongsean) - types(document): add generic param to depopulate() to allow updating properties [#​14891](https://redirect.github.com/Automattic/mongoose/issues/14891) [#​14876](https://redirect.github.com/Automattic/mongoose/issues/14876) ### [`v8.6.2`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#862--2024-09-11) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.1...8.6.2) \================== - fix: make set merge deeply nested objects [#​14870](https://redirect.github.com/Automattic/mongoose/issues/14870) [#​14861](https://redirect.github.com/Automattic/mongoose/issues/14861) [ianHeydoc](https://redirect.github.com/ianHeydoc) - types: allow arbitrary keys in query filters again (revert [#​14764](https://redirect.github.com/Automattic/mongoose/issues/14764)) [#​14874](https://redirect.github.com/Automattic/mongoose/issues/14874) [#​14863](https://redirect.github.com/Automattic/mongoose/issues/14863) [#​14862](https://redirect.github.com/Automattic/mongoose/issues/14862) [#​14842](https://redirect.github.com/Automattic/mongoose/issues/14842) - types: make SchemaType static setters property accessible in TypeScript [#​14881](https://redirect.github.com/Automattic/mongoose/issues/14881) [#​14879](https://redirect.github.com/Automattic/mongoose/issues/14879) - type(inferrawdoctype): infer Date types as JS dates rather than Mongoose SchemaType Date [#​14882](https://redirect.github.com/Automattic/mongoose/issues/14882) [#​14839](https://redirect.github.com/Automattic/mongoose/issues/14839) ### [`v8.6.1`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#861--2024-09-03) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.6.0...8.6.1) \================== - fix(document): avoid unnecessary clone() in applyGetters() that was preventing getters from running on 3-level deep subdocuments [#​14844](https://redirect.github.com/Automattic/mongoose/issues/14844) [#​14840](https://redirect.github.com/Automattic/mongoose/issues/14840) [#​14835](https://redirect.github.com/Automattic/mongoose/issues/14835) - fix(model): throw error if bulkSave() did not insert or update any documents [#​14837](https://redirect.github.com/Automattic/mongoose/issues/14837) [#​14763](https://redirect.github.com/Automattic/mongoose/issues/14763) - fix(cursor): throw error in ChangeStream constructor if changeStreamThunk() throws a sync error [#​14846](https://redirect.github.com/Automattic/mongoose/issues/14846) - types(query): add $expr to RootQuerySelector [#​14845](https://redirect.github.com/Automattic/mongoose/issues/14845) - docs: update populate.md to fix missing match: { } [#​14847](https://redirect.github.com/Automattic/mongoose/issues/14847) [makhoulshbeeb](https://redirect.github.com/makhoulshbeeb) ### [`v8.6.0`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#860--2024-08-28) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.5...8.6.0) \================== - feat: upgrade mongodb -> 6.8.0, handle throwing error on closed cursor in Mongoose with `MongooseError` instead of `MongoCursorExhaustedError` [#​14813](https://redirect.github.com/Automattic/mongoose/issues/14813) - feat(model+query): support options parameter for distinct() [#​14772](https://redirect.github.com/Automattic/mongoose/issues/14772) [#​8006](https://redirect.github.com/Automattic/mongoose/issues/8006) - feat(QueryCursor): add getDriverCursor() function that returns the raw driver cursor [#​14745](https://redirect.github.com/Automattic/mongoose/issues/14745) - types: change query selector to disallow unknown top-level keys by default [#​14764](https://redirect.github.com/Automattic/mongoose/issues/14764) [alex-statsig](https://redirect.github.com/alex-statsig) - types: make toObject() and toJSON() not generic by default to avoid type widening [#​14819](https://redirect.github.com/Automattic/mongoose/issues/14819) [#​12883](https://redirect.github.com/Automattic/mongoose/issues/12883) - types: avoid automatically inferring lean result type when assigning to explicitly typed variable [#​14734](https://redirect.github.com/Automattic/mongoose/issues/14734) ### [`v8.5.5`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#855--2024-08-28) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.4...8.5.5) \================== - fix(populate): fix a couple of other places where Mongoose gets the document's \_id with getters [#​14833](https://redirect.github.com/Automattic/mongoose/issues/14833) [#​14827](https://redirect.github.com/Automattic/mongoose/issues/14827) [#​14759](https://redirect.github.com/Automattic/mongoose/issues/14759) - fix(discriminator): shallow clone Schema.prototype.obj before merging schemas to avoid modifying original obj [#​14821](https://redirect.github.com/Automattic/mongoose/issues/14821) - types: fix schema type based on timestamps schema options value [#​14829](https://redirect.github.com/Automattic/mongoose/issues/14829) [#​14825](https://redirect.github.com/Automattic/mongoose/issues/14825) [ark23CIS](https://redirect.github.com/ark23CIS) ### [`v8.5.4`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#854--2024-08-23) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.3...8.5.4) \================== - fix: add empty string check for collection name passed [#​14806](https://redirect.github.com/Automattic/mongoose/issues/14806) [Shubham2552](https://redirect.github.com/Shubham2552) - docs(model): add 'throw' as valid strict value for bulkWrite() and add some more clarification on throwOnValidationError [#​14809](https://redirect.github.com/Automattic/mongoose/issues/14809) ### [`v8.5.3`](https://redirect.github.com/Automattic/mongoose/blob/HEAD/CHANGELOG.md#853--2024-08-13) [Compare Source](https://redirect.github.com/Automattic/mongoose/compare/8.5.2...8.5.3) \================== - fix(document): call required functions on subdocuments underneath nested paths with correct context [#​14801](https://redirect.github.com/Automattic/mongoose/issues/14801) [#​14788](https://redirect.github.com/Automattic/mongoose/issues/14788) - fix(populate): avoid throwing error when no result and `lean()` set [#​14799](https://redirect.github.com/Automattic/mongoose/issues/14799) [#​14794](https://redirect.github.com/Automattic/mongoose/issues/14794) [#​14759](https://redirect.github.com/Automattic/mongoose/issues/14759) [MohOraby](https://redirect.github.com/MohOraby) - fix(document): apply virtuals to subdocuments if parent schema has virtuals: true for backwards compatibility [#​14774](https://redirect.github.com/Automattic/mongoose/issues/14774) [#​14771](https://redirect.github.com/Automattic/mongoose/issues/14771) [#​14623](https://redirect.github.com/Automattic/mongoose/issues/14623) [#​14394](https://redirect.github.com/Automattic/mongoose/issues/14394) - types: make HydratedSingleSubdocument and HydratedArraySubdocument merge types instead of using & [#​14800](https://redirect.github.com/Automattic/mongoose/issues/14800) [#​14793](https://redirect.github.com/Automattic/mongoose/issues/14793) - types: support schema type inference based on schema options timestamps as well [#​14773](https://redirect.github.com/Automattic/mongoose/issues/14773) [#​13215](https://redirect.github.com/Automattic/mongoose/issues/13215) [ark23CIS](https://redirect.github.com/ark23CIS) - types(cursor): indicate that cursor.next() can return null [#​14798](https://redirect.github.com/Automattic/mongoose/issues/14798) [#​14787](https://redirect.github.com/Automattic/mongoose/issues/14787) - types: allow mongoose.connection.db to be undefined [#​14797](https://redirect.github.com/Automattic/mongoose/issues/14797) [#​14789](https://redirect.github.com/Automattic/mongoose/issues/14789) - docs: add schema type widening advice [#​14790](https://redirect.github.com/Automattic/mongoose/issues/14790) [JstnMcBrd](https://redirect.github.com/JstnMcBrd) </details> <details> <summary>kulshekhar/ts-jest (ts-jest)</summary> ### [`v29.2.5`](https://redirect.github.com/kulshekhar/ts-jest/blob/HEAD/CHANGELOG.md#2925-2024-08-23) [Compare Source](https://redirect.github.com/kulshekhar/ts-jest/compare/v29.2.4...v29.2.5) </details> <details> <summary>microsoft/TypeScript (typescript)</summary> ### [`v5.6.2`](https://redirect.github.com/microsoft/TypeScript/compare/v5.5.4...a7e3374f13327483fbe94e32806d65785b0b6cda) [Compare Source](https://redirect.github.com/microsoft/TypeScript/compare/v5.5.4...v5.6.2) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - "after 9am and before 5pm Monday" (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://redirect.github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/cerbos/query-plan-adapters). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yMC4xIiwidXBkYXRlZEluVmVyIjoiMzguODAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==--> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Bug description
Version 5.19.0 appears broken to me.
npx prisma migrate dev --name init
simply gives errorHow to reproduce
Followed steps in nestjs docs
The env file looks like this.
I use docker-compose.yaml to run sql
Expected behavior
It should just run normally. I tried using version
5.18.0
everything works expectedPrisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: