fix(client): remove and fix remains of QE runtime bundles
- Fix incorrect references to `library`/`binary` runtime bundles in
various places and replace them with the correct QC bundles.
- Remove dead code related to QE runtime bundles in generators.
- Fix potentially missing adapter option for edge builds in
`prisma-client-js` generator. It happened to work in practice because
at the moment we only generate the types for the default client
runtime and write stubs that re-export types from it for other
targets, but it could be easily changed and break when refactoring
code. This code was wrong locally even if the offending code path
wasn't used.
- Fix broken `wasm-compiler-edge.d.ts` file in the `@prisma/client`
package (it re-exported everything from `./library`).
Closes: https://github.com/prisma/prisma/pull/28531
fix(generator-js): fix potentially missing `adapter` option for edge builds
The edge build of the old JS client could be missing the `adapter`
option in the client constructor. It actually wasn't because at the
moment we only generate the types for the default `client` runtime and
write stubs that re-export types from it for other targets, but it could
be easily changed and break when refactoring code. This code was wrong
locally even if the offending code path wasn't used in practice.
feat!: remove `datasources` from PrismaClient options
Remove the datasources option used to override the datasource used by
the query engine. The logic that uses it had been previously removed,
but the user-facing option (which currently does nothing) wasn't.
Closes: https://linear.app/prisma-company/issue/TML-1589/remove-datasources-prismaclient-constructor-option