Skip to content
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

[pull] main from prisma:main #81

Open
wants to merge 233 commits into
base: main
Choose a base branch
from
Open

[pull] main from prisma:main #81

wants to merge 233 commits into from

Conversation

pull[bot]
Copy link

@pull pull bot commented Jun 13, 2024

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

renovate bot added 8 commits June 12, 2024 04:18
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
#24509)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…945 (#24501)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
@pull pull bot added the ⤵️ pull label Jun 13, 2024
renovate bot and others added 21 commits June 13, 2024 09:58
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…24481)

* feat(client): added provider compatibility check for Driver Adapters

* chore(client): removed mock adapterName stub

* chore(client): adapted mock adapterName stub

* chore(client): remove console.logs

* test(client): fix failures in Node.js 16?

* test(client): get rid of libsql, which is not compatible with Node.js 16

* test(client): revert "breaking" change, due to panics happening in Rust. Added comments with TODo

* chore: fix tests?

* chore: fix tests??

* chore: fix tests, add D1

* chore: fix type tests

* chore: fix type tests?

* chore: fix type tests + module resolution issues with mock-adapter

* chore: fix e2e tests???

* chore: fix e2e tests??????

* test(client): split e2e "prisma-client-imports" in different test suite for each Driver Adapter provider

* chore: update pnpm-lock

* chore: removed unused undici import
…14.0 (#24542)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…9fc221e9de94 (#24560)

* test(client): SQLite "Timed out during query execution." for concurrent queries

Reproductions for #11789

* test(client); add more tests

* chore(deps): update engines to 5.16.0-1.fix-sqlite-concurrent-writes-74a48e9f33b0a8b403045af35430ce444541be88

* test(client): update tests for D1

* test(client): fix D1 test

* test(client): prove that #22947 is solved as well

* add DROP before create

* chore(client): rename test suite

* chore(client): fix mongodb issue?

* use `db.dropDb()`

* test(client): clean up functional tests, remove non-deterministic IDs

* test(client): run only on SQLite

* chore(deps): update engines to 5.16.0-16.4c3db41c3ad6086fa0f844bafe039fc221e9de94

* chore(client): fix UTF8 issues with Postgres

---------

Co-authored-by: Joël Galeran <[email protected]>
Co-authored-by: jkomyno <[email protected]>
Co-authored-by: Alberto Schiabel <[email protected]>
Should fix the failures for e2e tests.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* feat: display the socket path during migration
* affects: PostgreSQL, CockroachDB, and MySQL
* feat(client): Implement global `omit` configuration

Allows to set `omit` option in `PrismaClient` constructor:

```ts
const prisma = new PrismaClient({
  omit: {
    user: {
      password: true
    }
  }
})
```

If developer does so, specified field will be omitted from all model
results by default as if local `omit` option was specified for every
query. It is still possible to include field explicitly either by using
`omit: { field: false }` or `select: { field: true }` on a query.

Also, just like in case of local omit, if result extension needs omitted
field, we will still query it from DB, but drop before returning the
final result.

Feature implemented under the same `omitApi` preview flag as local `omit`.

Implementation-wise, done by forwarding `ClientOptions` generic all the
way from `PrismaClient` to individual query results. Both local and
global `omit` are now applied at the moment of `DefaultSelection`
creation. Previously, local omit was applied after `select` and `include`,
but that does not work if we want to be able to undo global omit in
individual queries.

Close prisma/team-orm#1109
Ref #5042

* fix extensions tests

* Fix composites selection tests

* Address review feedback

* Render `omit` as required for empty selection
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate bot and others added 30 commits December 4, 2024 04:32
…5787)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
The devDependency was updated in
#25515 but the version in the
bundled drivers for engine tests wasn't, causing problems because both
were imported from different packages and `instanceof` check failed.

Fixes: prisma/team-orm#1443
* fix(ci): update codspeed action to v3

v2 now fails on the latest ubuntu runner version

* update expected openssl version
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
…25849)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
This should've been done in Prisma 6.0 release but we missed it.
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Re-export `registerInstrumentations` from
`@opentelemetry/instrumentation` in `@prisma/instrumentation`. This way
users won't need to explicitly install the
`@opentelemetry/instrumentation` package if they don't need it for
anything else, and will be guaranteed to use a compatible version.
…0969c9317d (#25887)

* chore(deps): update engines to 6.2.0-2.acc7a891c419e76523175dc1cde0150969c9317d

* chore: update snapshots

---------

Co-authored-by: Jacek Malec <[email protected]>
When we have nested `select` or `include`, TypeScript at some point
gives up remembering what keys `A` has exactly and discards the `omit`
for whatever reason. Re-adding the `omit` key at the point it happens
using the `A & { omit: A['omit'] }` hack makes TypeScript a little bit
less forgetful.

Closes: prisma/team-orm#1442
Fixes: #24835

Co-authored-by: Jacek Malec <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.