Skip to content

Commit

Permalink
fix(deps): update prisma monorepo to v5 (major) (#8891)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@prisma/client](https://www.prisma.io)
([source](https://togithub.com/prisma/prisma)) | [`4.16.2` ->
`5.0.0`](https://renovatebot.com/diffs/npm/@prisma%2fclient/4.16.2/5.0.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@prisma%2fclient/5.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@prisma%2fclient/5.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@prisma%2fclient/5.0.0/compatibility-slim/4.16.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@prisma%2fclient/5.0.0/confidence-slim/4.16.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [@prisma/internals](https://www.prisma.io)
([source](https://togithub.com/prisma/prisma)) | [`4.16.2` ->
`5.0.0`](https://renovatebot.com/diffs/npm/@prisma%2finternals/4.16.2/5.0.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@prisma%2finternals/5.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@prisma%2finternals/5.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@prisma%2finternals/5.0.0/compatibility-slim/4.16.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@prisma%2finternals/5.0.0/confidence-slim/4.16.2)](https://docs.renovatebot.com/merge-confidence/)
|
| [prisma](https://www.prisma.io)
([source](https://togithub.com/prisma/prisma)) | [`4.16.2` ->
`5.0.0`](https://renovatebot.com/diffs/npm/prisma/4.16.2/5.0.0) |
[![age](https://badges.renovateapi.com/packages/npm/prisma/5.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/prisma/5.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/prisma/5.0.0/compatibility-slim/4.16.2)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/prisma/5.0.0/confidence-slim/4.16.2)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>prisma/prisma (@&#8203;prisma/client)</summary>

### [`v5.0.0`](https://togithub.com/prisma/prisma/releases/tag/5.0.0)

[Compare
Source](https://togithub.com/prisma/prisma/compare/4.16.2...5.0.0)

We’re excited to share the `5.0.0` release today 🎉

Prisma `5.0.0` contains a lot of changes that improve Prisma’s
performance, especially in serverless environments.

As this is a major release, it includes a few breaking changes that
might affect a small group of our users. Before upgrading, we recommend
that you check out our [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5)
to understand the impact on your application.

🌟 **Help us spread the word about Prisma by starring the repo or
[tweeting](https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@&#8203;prisma%20release%20v5.0.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/5.0.0)
about the release.** 🌟

##### Highlights

Here’s a summary of the changes:

-   Preview features moved to General Availability
- `jsonProtocol`: improves communication between Prisma Client and the
query engine, makes Prisma faster by default.
- `fieldReference`: adds support for comparing columns of the same
table.
- `extendedWhereUnique`: adds support for non-unique columns inside
`where` clauses for queries that operate on unique records.
-   General improvements and breaking changes
    -   Dependency version changes
        -   Minimum Node.js version change to 16.13.0
        -   Minimum TypeScript version change to 4.7
        -   Minimum PostgreSQL version change to 9.6
        -   Prisma Client embedded SQLite version upgrade to 3.41.2
    -   Main Changes
        -   Removal of `rejectOnNotFound` property
        -   Removal of some array shortcuts
- `cockroachdb` provider is now required when connecting to a
CockroachDB database
        -   Removed `runtime/index.js` from the generated Prisma Client
    -   Other Changes
        -   Removal of deprecated flags in the Prisma CLI
        -   Removal of the `beforeExit` hook from the library engine
        -   Removal of deprecated `prisma2` executable
- Removal of deprecated `experimentalFeatures` generator property in the
Prisma schema
        -   Renamed `migration-engine` to `schema-engine`

##### A JSON-based protocol that improves Prisma’s performance

We’re thrilled to announce that the `jsonProtocol` Preview feature is
now Generally Available. You can now remove the Preview feature flag
from your schema after upgrading. We made the JSON-based wire protocol
the **default protocol** used for communication between Prisma Client
and the query engine.

We introduced this feature in version
[4.11.0](https://togithub.com/prisma/prisma/releases/tag/4.11.0) to
improve Prisma’s performance. Previously, Prisma used a GraphQL-like
protocol to communicate between Prisma Client and the query engine.
Applications with larger schemas had higher CPU and memory consumption
compared to smaller schemas which created a performance bottleneck.

The JSON-based wire protocol improves efficiency when Prisma Client is
communicating with the query engine.

##### Removal of array shortcuts

We took the opportunity to remove some array shortcuts to make our
typings more consistent and logical. These shortcuts were a way to add a
single element as a value to an array-based operator instead of wrapping
a single element in an array. We will now require array values for the
following:

-   `OR` operator shortcuts
-   `in` and `notIn` operator shortcuts
-   PostgreSQL JSON `path` field shortcut
-   Scalar list shortcuts
-   MongoDB Composite types list shortcuts

Here’s an example query using the `OR` operator shortcut for a single
element;

```diff
await prisma.user.findMany({
  where: {
-    OR: { email: 'alice@prisma.io' }
+    OR: [{ email: 'alice@prisma.io' }]
  }
})
```

We recommend taking a look at the [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#removal-of-array-shortcuts#removal-of-array-shortcuts)
to learn how you can update your queries to work in Prisma 5.

##### Support for comparing multiple columns

We’re excited to announce that the `fieldReference` Preview feature is
now stable and Generally Available. This means you can use this feature
without the Preview feature flag in your Prisma schema.

We first introduced this feature in
[4.5.0](https://togithub.com/prisma/prisma/releases/tag/4.5.0) to add
the ability to compare columns on the same table. For example, the
following query returns records where the `quantity` value is less than
the `warnQuantity` of a product:

```tsx
await prisma.product.findMany({
  where: { 
		quantity: { lte: prisma.product.fields.warnQuantity } 
	},
})
```

To learn more about this feature, refer to our
[documentation](https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#compare-columns-in-the-same-table).

##### Support for filtering non-unique columns in queries for a unique
record

We’re excited to announce the `extendedWhereUnique` Preview feature is
now Generally Available. This means you can use the feature without the
Preview feature flag in the Prisma schema.

We first introduced this feature in version 4.5.0 to add support for
non-unique columns inside `where` clauses for queries that operate on
unique records, such as `findUnique`, `update`, and `delete`, which was
previously not possible.

For example, consider the following model:

```groovy
model Article {
  id      Int    @&#8203;id @&#8203;default(autoincrement())
  content String
  version Int
}
```

You can filter on non-unique columns such as the `version` field as
follows:

```tsx
await prisma.article.findUnique({
  where: { 
    id: 5, 
    version: 1 // filter on the `version` field was not available before Prisma 4.5.0
  },
});
```

To learn more about this feature, refer to our
[documentation](https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#filter-on-non-unique-fields-with-userwhereuniqueinput).

##### Minimum Node.js version change to 16.13.0

The minimum version of Node.js Prisma supports is `16.13.0`. If you're
using an earlier version of Node.js, you will need to upgrade your
Node.js version.

Refer to our [system
requirements](https://www.prisma.io/docs/reference/system-requirements) for
the minimum versions Prisma requires.

##### Minimum TypeScript version change to 4.7

The minimum version of TypeScript Prisma supports is 4.7. If your
project is using an earlier version of TypeScript, you will need to
upgrade your TypeScript version.

Refer to our [system
requirements](https://www.prisma.io/docs/reference/system-requirements) for
the minimum versions Prisma requires.

##### Minimum PostgreSQL version change to 9.6

The minimum version of PostgreSQL Prisma supports is version 9.6. If
you’re either using 9.4 or 9.5, you will need to update your PostgreSQL
version to at least 9.6.

Refer to our [system
requirements](https://www.prisma.io/docs/reference/database-reference/supported-databases)
for the minimum database versions Prisma requires.

##### Prisma Client embedded SQLite version upgrade

We upgraded the embedded version of SQLite from 3.35.4 to 3.41.2. We do
not anticipate any breaking changes or changes needed in projects using
SQLite. However, if you’re using SQLite, especially with raw queries
that might go beyond Prisma's functionality, make sure to check [the
SQLite changelog](https://www.sqlite.org/changes.html).

##### Removal of `rejectOnNotFound` property

In version 5.0.0, we removed the `rejectOnNotFound` parameter from
Prisma Client that was deprecated in version 4.0.0. We removed this
feature to provide better type-safety using the `findUniqueOrThrow` and
`findFirstOrThrow` methods as well have a consistent API.

If you are using the `rejectOnNotFound` parameter we recommend either:

- Replacing your queries with the `findFirstOrThrow` or
`findUniqueOrThrow` methods if enabled at a *query-level*
- Using a [Prisma Client
extension](https://www.prisma.io/docs/concepts/components/prisma-client/client-extensions)
to overload the `findFirstOrThrow` and `findUniqueOrThrow` model methods
with your custom error handling if enabled at the *client-level*

We recommend taking a look at the [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#removal-of-array-shortcuts#removal-of-rejectonnotfound-parameter)
for more information on how to adapt your application if you’re using
`rejectOnNotFound`.

##### `cockroachdb` provider is now required when connecting to a
CockroachDB database

Prior to adding explicit support for CockroachDB with the `cockroachdb`
provider in
[3.9.0](https://togithub.com/prisma/prisma/releases/tag/3.9.0), it was
possible to use the PostgreSQL provider when working with CockroachDB
databases.

We’re now making it mandatory to use the CockroachDB connector when
working with CockroachDB databases. CockroachDB and PostgreSQL have a
few differences such as the available native types which impact the
generated migrations.

If you were using the PostgreSQL connector to work with CockroachDB,
take a look at the [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#cockroachdb-provider-is-now-required-when-connecting-to-a-cockroachdb-database)
to learn how you can update your connector.

##### Removal of the generated `runtime/index.js` file from Prisma
Client

With Prisma 5, we removed the `runtime/index.js` file from Prisma
Client. If you were using APIs from `runtime/index.js`, such as
`Decimal` , `PrismaClientKnownRequestError`,  `NotFoundError`,
 `PrismaClientUnknownRequestError`, we recommend updating your imports:

```diff
- import { Decimal } from '@&#8203;prisma/client/runtime'
+ import { Prisma } from '@&#8203;prisma/client'

// Usage update of Prisma Client's utilities
- Decimal
+ Prisma.Decimal
```

We recommend taking a look at the [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#removal-of-array-shortcuts#removal-of-runtimeindexjs-from-generated-client)
to learn how you can migrate to Prisma 5

##### Removal of the `beforeExit` hook from the `library` query engine

We removed the `beforeExit` hook from the default `library` Query
Engine. We recommend using the built-in Node.js exit events.

```diff
-prisma.$on('beforeExit', () => { /* your code */ })

// Replacements
process.on('beforeExit', () => { /* your code */ })
process.on('exit', exitHandler)
process.on('SIGINT', exitHandler)
process.on('SIGTERM', exitHandler)
process.on('SIGUSR2', exitHandler)
```

We recommend taking a look at the [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#removal-of-the-beforeexit-hook-from-the-library-engine)
to learn how you can migrate to Prisma 5.

##### Removal of deprecated `prisma2` executable

When we released Prisma 2, the `prisma2` executable was used to
differentiate it from Prisma 1. In a later release, the `prisma2` CLI
took over the `prisma` executable name.

The `prisma2` executable has been deprecated for a while and will now be
removed. If you’re using `prisma2` in your scripts, replace it with
`prisma`.

##### Removal of deprecated flags in the Prisma CLI

We removed the following deprecated flags in the Prisma CLI:

- **`--preview-feature`**: used in the `prisma db execute`, `prisma db
seed`, and `prisma migrate diff` commands
- **`--experimental`** and **`--early-access-feature`**: used in the
`prisma migrate` commands such as `prisma migrate dev`
- **`--force`**: for `prisma db push`. The `--force` flag was replaced
by `--accept-data-loss` in version 2.17.0
- **`--experimental-reintrospection`** and **`--clean`**: for `prisma db
pull`

In the event you’re using one of these flags, we recommend removing the
flags.

##### Removal of deprecated `experimentalFeatures` generator property

In this release, we removed the `experimentalFeatures` property that
used to be in the generator property in the Prisma schema but has been
renamed to `previewFeatures` for a long time now. If you’re still using
this property, you can either manually rename it to `previewFeatures` or
use the VS Code action to rename it if you’re using the latest version
of the Prisma VS Code extension.

##### Renamed `migration-engine` to `schema-engine`

In this release, we renamed the `migration-engine`, responsible for
running introspection and migration commands, to `schema-engine` . For
the majority of our users, no changes will be required. However, if you
explicitly include or exclude the engine files you will need to update
your code references. Refer to the [upgrade
guide](https://www.prisma.io/docs/guides/upgrade-guides/upgrading-versions/upgrading-to-prisma-5#migration-engine-renamed-to-schema-engine)
for more information.

##### Fixes and improvements

##### Prisma Client

- [Getting a string '(array)' in the generator config instead of the
expected value when array is
used](https://togithub.com/prisma/prisma/issues/9511)
- [Misleading error message from `create`
call](https://togithub.com/prisma/prisma/issues/11425)
- [Client extensions incorrect typings when defined both specific model
and all models methods](https://togithub.com/prisma/prisma/issues/17458)
- [UncheckedUpdateManyInput types lead to conflicting
names](https://togithub.com/prisma/prisma/issues/18534)
- [`<Model>RelationFilterInput` does not take nullability into
account](https://togithub.com/prisma/prisma/issues/18585)
- [Full text search query with `OR` broke after opting in to
`jsonProtocol`
feature.](https://togithub.com/prisma/prisma/issues/18885)
- [Prisma Client: remove list shorthands (for
`jsonProtocol`)](https://togithub.com/prisma/prisma/issues/19303)
- [Remove outdated preview feature aliases (transactionApi,
aggregateApi)](https://togithub.com/prisma/prisma/issues/19305)
- [Prisma Client generator: remove creation of a
package.json](https://togithub.com/prisma/prisma/issues/19306)
- [Prisma Client: make `jsonProtocol` GA
](https://togithub.com/prisma/prisma/issues/19310)
- [Only upload engines files to
`binaries.prisma.sh/all_commits/`](https://togithub.com/prisma/prisma/issues/19311)
- [Prisma Client: remove "beforeExit" hook from
LibraryEngine/DataProxyEngine](https://togithub.com/prisma/prisma/issues/19312)
- [Prisma Client: remove
`rejectOnNotFound`](https://togithub.com/prisma/prisma/issues/19315)
- [Prisma Client: remove `runtime/index.js` bundle from
client](https://togithub.com/prisma/prisma/issues/19316)
- [Prisma CLI: remove non-existing `prisma dev`
command](https://togithub.com/prisma/prisma/issues/19318)
- [Prisma Client: remove legacy `photonResolver` and `provider=photonjs`
handling](https://togithub.com/prisma/prisma/issues/19319)
- [Prisma Client: make `fieldReference`
GA](https://togithub.com/prisma/prisma/issues/19379)
- [Prisma Client: make `extendedWhereUnique`
GA](https://togithub.com/prisma/prisma/issues/19380)
- [Remove backward compatibility for Prisma Client < 2.20 and Prisma CLI
>= 2.20](https://togithub.com/prisma/prisma/issues/19417)
- [Prisma CLI: remove `prisma2`
"executable"](https://togithub.com/prisma/prisma/issues/19438)
- [Query in findMany in prisma extends returns a wrong
type](https://togithub.com/prisma/prisma/issues/19854)
- [Can't specify $queryRawUnsafe return type after extending prisma
client](https://togithub.com/prisma/prisma/issues/19862)
- [FindMany returns wrong type after extending prisma
client](https://togithub.com/prisma/prisma/issues/19864)
- [4.16.x cannot wrap `$extend` in factory function when
`compilerOptions.composite` is
`true`](https://togithub.com/prisma/prisma/issues/19866)
- [4.16: (MongoDB) Generated types for list composites are
incorrect](https://togithub.com/prisma/prisma/issues/19880)
- [Prisma Client Extensions: $allModels: { $allOperations } sets `query`
type to `never`](https://togithub.com/prisma/prisma/issues/19888)
- [Prisma Schema Type inside a Type not generating a right
Payload](https://togithub.com/prisma/prisma/issues/19890)
- [Field references are not available on extended
clients](https://togithub.com/prisma/prisma/issues/19892)
- [Prisma Client fluent API does not work with extends anymore on
4.16.1](https://togithub.com/prisma/prisma/issues/19921)
- [Prisma not generating correct payload for types in models for MongoDB
for 4.16.1 ](https://togithub.com/prisma/prisma/issues/19933)
- [Prisma requires to install bun when generating client library
](https://togithub.com/prisma/prisma/issues/19945)
- [Getting wrong types with prisma client
extensions](https://togithub.com/prisma/prisma/issues/19958)
- [Prisma Client: updating to 4.16.0 or 4.16.1 breaks Cloudflare worker,
it errors with `The package "path" wasn't found on the file system but
is built into node`](https://togithub.com/prisma/prisma/issues/19972)
- [Result types are incorrectly inferred when `undefined` explicitly
passed to
`select`/`include`](https://togithub.com/prisma/prisma/issues/19997)
- [Migrating to release: 4.16.2 throws typescript error: "TS1005: '?'
expected".](https://togithub.com/prisma/prisma/issues/20024)

##### Prisma Migrate

- [Make connecting to a cockroachdb database with `provider =
"postgresql"` an error](https://togithub.com/prisma/prisma/issues/13222)
- [Remove the deprecated `experimentalFeatures` generator
property](https://togithub.com/prisma/prisma/issues/16294)
- [Remove support for PostgreSQL 9.4 and
9.5](https://togithub.com/prisma/prisma/issues/19300)
- [Upgrade embedded SQLite
version](https://togithub.com/prisma/prisma/issues/19301)
- [Drop support for Node.js
v14](https://togithub.com/prisma/prisma/issues/19304)
- [`db pull`: Remove the version checker from
introspection](https://togithub.com/prisma/prisma/issues/19314)
- [Prisma CLI: remove undocumented `doctor`
command](https://togithub.com/prisma/prisma/issues/19317)
- [Rename migration-engine to
schema-engine](https://togithub.com/prisma/prisma/issues/19321)
- [Prisma CLI: remove deprecated flags, arguments and "old migrate"
logic](https://togithub.com/prisma/prisma/issues/19448)
- [Remove obsolete `experimentalFeatures` generator
property](https://togithub.com/prisma/prisma/issues/19540)
- [Remove usage / mention of
`experimentalFeatures`](https://togithub.com/prisma/prisma/issues/19541)

##### Language tools (e.g. VS Code)

- [Mark `experimentalFeatures` as
obsolete](https://togithub.com/prisma/language-tools/issues/1435)

##### Credits

Huge thanks to
[@&#8203;michaelpoellath](https://togithub.com/michaelpoellath),
[@&#8203;RobertCraigie](https://togithub.com/RobertCraigie),
[@&#8203;Coder246](https://togithub.com/Coder246),
[@&#8203;RDIL](https://togithub.com/RDIL),
[@&#8203;oohwooh](https://togithub.com/oohwooh),
[@&#8203;rqres](https://togithub.com/rqres),
[@&#8203;zhiyan114](https://togithub.com/zhiyan114),
[@&#8203;spudly](https://togithub.com/spudly),
[@&#8203;hayes](https://togithub.com/hayes),
[@&#8203;boennemann](https://togithub.com/boennemann),
[@&#8203;DongGunYoon](https://togithub.com/DongGunYoon) for helping!

##### 📺 Join us for another "What's new in Prisma" live stream

Learn about the latest release and other news from the Prisma community
by joining us for another ["What's new in
Prisma"](https://youtube.com/playlist?list=PLn2e1F9Rfr6l1B9RP0A9NdX7i7QIWfBa7)
live stream.

The stream takes place [on YouTube](https://youtu.be/6rlKp_eBdZA) on
**Thursday, July 13** at **5 pm Berlin | 8 am San Francisco**.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, 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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/redwoodjs/redwood).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi41LjMiLCJ1cGRhdGVkSW5WZXIiOiIzNi41LjMiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Dominic Saadi <dominiceliassaadi@gmail.com>
  • Loading branch information
renovate[bot] and jtoar committed Jul 17, 2023
1 parent c4577c0 commit 1312cd1
Show file tree
Hide file tree
Showing 6 changed files with 85 additions and 68 deletions.
2 changes: 1 addition & 1 deletion packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"dependencies": {
"@babel/runtime-corejs3": "7.22.6",
"@prisma/client": "4.16.2",
"@prisma/client": "5.0.0",
"@whatwg-node/fetch": "0.9.7",
"core-js": "3.31.1",
"humanize-string": "2.1.0",
Expand Down
6 changes: 5 additions & 1 deletion packages/cli/__mocks__/fs.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ fs.__getMockFiles = () => {
fs.readFileSync = (path) => {
// In prisma v4.3.0, prisma format uses a Wasm module. See https://github.com/prisma/prisma/releases/tag/4.3.0.
// We shouldn't mock this, so we'll use the real fs.readFileSync.
if (path.includes('prisma_fmt_build_bg.wasm')) {
// Prisma v5.0.0 seems to have added the schema_build Wasm module.
if (
path.includes('prisma_fmt_build_bg.wasm') ||
path.includes('prisma_schema_build_bg.wasm')
) {
return jest.requireActual('fs').readFileSync(path)
}

Expand Down
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@opentelemetry/resources": "1.14.0",
"@opentelemetry/sdk-trace-node": "1.14.0",
"@opentelemetry/semantic-conventions": "1.14.0",
"@prisma/internals": "4.16.2",
"@prisma/internals": "5.0.0",
"@redwoodjs/api-server": "5.0.0",
"@redwoodjs/cli-helpers": "5.0.0",
"@redwoodjs/fastify": "5.0.0",
Expand Down Expand Up @@ -70,7 +70,7 @@
"pluralize": "8.0.0",
"portfinder": "1.0.32",
"prettier": "2.8.8",
"prisma": "4.16.2",
"prisma": "5.0.0",
"prompts": "2.4.2",
"rimraf": "5.0.1",
"secure-random-password": "0.2.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/record/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
},
"dependencies": {
"@babel/runtime-corejs3": "7.22.6",
"@prisma/client": "4.16.2",
"@prisma/client": "5.0.0",
"@redwoodjs/project-config": "5.0.0",
"core-js": "3.31.1"
},
"devDependencies": {
"@babel/cli": "7.22.9",
"@babel/core": "7.22.9",
"@prisma/internals": "4.16.2",
"@prisma/internals": "5.0.0",
"esbuild": "0.18.11",
"jest": "29.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/structure/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@babel/runtime-corejs3": "7.22.6",
"@iarna/toml": "2.2.5",
"@prisma/internals": "4.16.2",
"@prisma/internals": "5.0.0",
"@redwoodjs/project-config": "5.0.0",
"@types/line-column": "1.0.0",
"camelcase": "6.3.0",
Expand Down
135 changes: 74 additions & 61 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6532,87 +6532,87 @@ __metadata:
languageName: node
linkType: hard

"@prisma/client@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/client@npm:4.16.2"
"@prisma/client@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/client@npm:5.0.0"
dependencies:
"@prisma/engines-version": 4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81
"@prisma/engines-version": 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584
peerDependencies:
prisma: "*"
peerDependenciesMeta:
prisma:
optional: true
checksum: c8d9518150ff6e55a9b8e7ec84874a2d32cc88fb7b84396457046aac79a6ac21a58cf873bff1df7354e9ff4b61f108199979cce29dd29d314a9f895b3910e55a
checksum: 3a7398c329964de9935c5e35aea8539d29147d78c70511691f8f0e6203d446118381372536d1a3c7851d17347596b8b9fcf673e7456c865e27fd9f832574c61e
languageName: node
linkType: hard

"@prisma/debug@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/debug@npm:4.16.2"
"@prisma/debug@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/debug@npm:5.0.0"
dependencies:
"@types/debug": 4.1.8
debug: 4.3.4
strip-ansi: 6.0.1
checksum: 27b60989109f226fd4ea02656cb8f4b69642ad27304e0d6b2787f1fae8327bc55d46b62176f0d9ce35a0827a938a914b9b0c46fbc757ee65ece026373bb53a11
checksum: 311aade51d9950c4751b39562e2e1ec88740b7c729da6a86e28dc662c8641fcc0002028a90f14790287dfaf24b318ee6a60cbf57bc01a135d3f8691c4ddaf615
languageName: node
linkType: hard

"@prisma/engines-version@npm:4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81":
version: 4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81
resolution: "@prisma/engines-version@npm:4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81"
checksum: abbc2a14be5ca49d86306fd4087d89c65e2190c99012d54f797b48ff0c4e13ab27dd69aecdd2bf94c2c93f7b09b47dce301ec57ad32123344243118015b60d76
"@prisma/engines-version@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584":
version: 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584
resolution: "@prisma/engines-version@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584"
checksum: 21ad9877ecd1d5a6763a33a354aeec9b41a0d7972679bd881fde7c2a3bf99269a4f6b41705c262fd2041d35045639150004d71eb4b4d95e864390e185c0b3756
languageName: node
linkType: hard

"@prisma/engines@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/engines@npm:4.16.2"
checksum: 4f854a0b989b4bbbae0067311d126b20451be35df3569171e0d309b7a87962e5bf98480ded2065720a9246696df0bcf5f146a20ace9d0d7a62d0b35cddf6ad18
"@prisma/engines@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/engines@npm:5.0.0"
checksum: 97d21ddca460910e9405f8a7de12354b0576c974abe5cf422774d960c92a30e076614aaad91fd3026db728be28edadb321f9b8e530e6010b5d849405c47e083d
languageName: node
linkType: hard

"@prisma/fetch-engine@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/fetch-engine@npm:4.16.2"
"@prisma/fetch-engine@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/fetch-engine@npm:5.0.0"
dependencies:
"@prisma/debug": 4.16.2
"@prisma/get-platform": 4.16.2
"@prisma/debug": 5.0.0
"@prisma/get-platform": 5.0.0
execa: 5.1.1
find-cache-dir: 3.3.2
fs-extra: 11.1.1
hasha: 5.2.2
http-proxy-agent: 7.0.0
https-proxy-agent: 7.0.0
kleur: 4.1.5
node-fetch: 2.6.11
node-fetch: 2.6.12
p-filter: 2.1.0
p-map: 4.0.0
p-retry: 4.6.2
progress: 2.0.3
rimraf: 3.0.2
temp-dir: 2.0.0
tempy: 1.0.1
checksum: a1b4694df8b5ded6045fd03d6395f89277313b53b928c326e561a8d8ca8f1d1098f1c7e505a6268f7220356f7c6cb213bf46e349bf8a9a5031dc0afcfe7207ba
checksum: 1e405a1d71d2ce014c8247a4dcd60ad4cfc705033eff2a7cd11846ad7f1b667a65f2d0d4e9f89782fd3408c77374f5c822b8ee5b616567aec85dad6be08db1bc
languageName: node
linkType: hard

"@prisma/generator-helper@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/generator-helper@npm:4.16.2"
"@prisma/generator-helper@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/generator-helper@npm:5.0.0"
dependencies:
"@prisma/debug": 4.16.2
"@prisma/debug": 5.0.0
"@types/cross-spawn": 6.0.2
cross-spawn: 7.0.3
kleur: 4.1.5
checksum: f9d67dcdf0c52d1987c753ccc9a3a3eb8c586d0733e27345b8d7dbcda23257a4df644d52b6520da1ce17c8a21879481508366805192c594b13414abe4ea98249
checksum: 6283443d434ce7a323e6350459ec97d1749fb80a599c09a2127e464187a57f8eafc05ee2fb0dacb548e462abdb240fb4627a532762576ae49cc6ed8e4568b3c0
languageName: node
linkType: hard

"@prisma/get-platform@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/get-platform@npm:4.16.2"
"@prisma/get-platform@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/get-platform@npm:5.0.0"
dependencies:
"@prisma/debug": 4.16.2
"@prisma/debug": 5.0.0
escape-string-regexp: 4.0.0
execa: 5.1.1
fs-jetpack: 5.1.0
Expand All @@ -6622,22 +6622,22 @@ __metadata:
tempy: 1.0.1
terminal-link: 2.1.1
ts-pattern: 4.3.0
checksum: c89a6160b7ac9ca659833c96511ce959c6f471cd1b26d8e2179dd6d9a32f92f486e3c981553cc10a2fe3a3a40478d2f285a411d70e40c214ef360cecfe8d5e25
checksum: ec3b0edb5b3c29c18ef57ddc7b1d2126f00192a2e0bea3435fd0ae7e2936a381787f9d1ae9d9c1cb1b3bc92078987a2998ad244a6202ef87889604af12ab2f03
languageName: node
linkType: hard

"@prisma/internals@npm:4.16.2":
version: 4.16.2
resolution: "@prisma/internals@npm:4.16.2"
"@prisma/internals@npm:5.0.0":
version: 5.0.0
resolution: "@prisma/internals@npm:5.0.0"
dependencies:
"@antfu/ni": 0.21.4
"@opentelemetry/api": 1.4.1
"@prisma/debug": 4.16.2
"@prisma/engines": 4.16.2
"@prisma/fetch-engine": 4.16.2
"@prisma/generator-helper": 4.16.2
"@prisma/get-platform": 4.16.2
"@prisma/prisma-fmt-wasm": 4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81
"@prisma/debug": 5.0.0
"@prisma/engines": 5.0.0
"@prisma/fetch-engine": 5.0.0
"@prisma/generator-helper": 5.0.0
"@prisma/get-platform": 5.0.0
"@prisma/prisma-schema-wasm": 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584
archiver: 5.3.1
arg: 5.0.2
checkpoint-client: 1.1.24
Expand All @@ -6656,7 +6656,7 @@ __metadata:
is-wsl: 2.2.0
kleur: 4.1.5
new-github-issue-url: 0.2.1
node-fetch: 2.6.11
node-fetch: 2.6.12
npm-packlist: 5.1.3
open: 7.4.2
p-map: 4.0.0
Expand All @@ -6673,14 +6673,14 @@ __metadata:
terminal-link: 2.1.1
tmp: 0.2.1
ts-pattern: 4.3.0
checksum: f808d08aa8740ea9d8a9e31a5df8e8da3fd4a1c6fb78dd8470bd16237d8f971404f566a972453a18eff991db88b8a0959f2637f7c95c233367b55cf0ed0d8329
checksum: 6046553337c4dac017c5935211eea2f66342a8187f37ba77e32f321d85b90e10e873851d997bf2167d2e50052a33e3bbc8ff3632ad8c6a7f29ee31992d34d6b3
languageName: node
linkType: hard

"@prisma/prisma-fmt-wasm@npm:4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81":
version: 4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81
resolution: "@prisma/prisma-fmt-wasm@npm:4.16.1-1.4bc8b6e1b66cb932731fb1bdbbc550d1e010de81"
checksum: e603949032bc44341371a9a99799e0a91e41285c39588cbb0d445a0a0f1155199dcb74af5a94ae7c724d58d0097621cd9f77ea265cd1c562ab923677cf22415c
"@prisma/prisma-schema-wasm@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584":
version: 4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584
resolution: "@prisma/prisma-schema-wasm@npm:4.17.0-26.6b0aef69b7cdfc787f822ecd7cdc76d5f1991584"
checksum: 42792448e9b0ed687a828e9dc76d614aa67f6ccf62a822033f5e8fb206656f49b8e9a1a709cda27ecb597a2dfead58eaf779e175e059eb95a64dd0ab4a31d53d
languageName: node
linkType: hard

Expand Down Expand Up @@ -6882,7 +6882,7 @@ __metadata:
"@babel/cli": 7.22.9
"@babel/core": 7.22.9
"@babel/runtime-corejs3": 7.22.6
"@prisma/client": 4.16.2
"@prisma/client": 5.0.0
"@types/aws-lambda": 8.10.119
"@types/jsonwebtoken": 9.0.2
"@types/memjs": 1
Expand Down Expand Up @@ -7432,7 +7432,7 @@ __metadata:
"@opentelemetry/resources": 1.14.0
"@opentelemetry/sdk-trace-node": 1.14.0
"@opentelemetry/semantic-conventions": 1.14.0
"@prisma/internals": 4.16.2
"@prisma/internals": 5.0.0
"@redwoodjs/api-server": 5.0.0
"@redwoodjs/cli-helpers": 5.0.0
"@redwoodjs/fastify": 5.0.0
Expand Down Expand Up @@ -7469,7 +7469,7 @@ __metadata:
pluralize: 8.0.0
portfinder: 1.0.32
prettier: 2.8.8
prisma: 4.16.2
prisma: 5.0.0
prompts: 2.4.2
rimraf: 5.0.1
secure-random-password: 0.2.3
Expand Down Expand Up @@ -7848,8 +7848,8 @@ __metadata:
"@babel/cli": 7.22.9
"@babel/core": 7.22.9
"@babel/runtime-corejs3": 7.22.6
"@prisma/client": 4.16.2
"@prisma/internals": 4.16.2
"@prisma/client": 5.0.0
"@prisma/internals": 5.0.0
"@redwoodjs/project-config": 5.0.0
core-js: 3.31.1
esbuild: 0.18.11
Expand Down Expand Up @@ -7887,7 +7887,7 @@ __metadata:
"@babel/core": 7.22.9
"@babel/runtime-corejs3": 7.22.6
"@iarna/toml": 2.2.5
"@prisma/internals": 4.16.2
"@prisma/internals": 5.0.0
"@redwoodjs/project-config": 5.0.0
"@types/fs-extra": 11.0.1
"@types/line-column": 1.0.0
Expand Down Expand Up @@ -23795,6 +23795,20 @@ __metadata:
languageName: node
linkType: hard

"node-fetch@npm:2.6.12, node-fetch@npm:^2.0.0, node-fetch@npm:^2.6.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.12, node-fetch@npm:^2.6.7, node-fetch@npm:^2.6.9":
version: 2.6.12
resolution: "node-fetch@npm:2.6.12"
dependencies:
whatwg-url: ^5.0.0
peerDependencies:
encoding: ^0.1.0
peerDependenciesMeta:
encoding:
optional: true
checksum: 10372e4b5ee07acadc15e6b2bc6fd8940582eea7b9b2a331f4e3665fdcd968498c1656f79f2fa572080ebb37ea80e1474a6478b3b36057ef901b63f4be8fd899
languageName: node
linkType: hard

"node-fetch@npm:2.6.7":
version: 2.6.7
resolution: "node-fetch@npm:2.6.7"
Expand Down Expand Up @@ -25961,15 +25975,14 @@ __metadata:
languageName: node
linkType: hard

"prisma@npm:4.16.2":
version: 4.16.2
resolution: "prisma@npm:4.16.2"
"prisma@npm:5.0.0":
version: 5.0.0
resolution: "prisma@npm:5.0.0"
dependencies:
"@prisma/engines": 4.16.2
"@prisma/engines": 5.0.0
bin:
prisma: build/index.js
prisma2: build/index.js
checksum: 7568a9e6006eeba35e3a909bec3613fc70c2e1d2b7f40596eff36980532e8d4dec882feaa9d26e4a5746c4860dbe6592d5c82c32c189456acd3967265cfa2bf2
checksum: b3abfba634c86ac1d6be8b9d2ecce193d7e7224d94140902364e46cc5cc2309da225e5be21c17077c189f2a1fe7fb30aca461a164f18c9b43d7c5eba4f5c49c7
languageName: node
linkType: hard

Expand Down

0 comments on commit 1312cd1

Please sign in to comment.