Blagues-API / blagues-api

๐Ÿ˜‚ API de Blagues franรงaise et Open Source
https://www.blagues-api.fr
MIT License
46 stars 17 forks source link

fix(deps): update prisma dependencies to ^4.15.0 #496

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@prisma/client (source) ^4.13.0 -> ^4.15.0 age adoption passing confidence
prisma (source) 4.13.0 -> 4.15.0 age adoption passing confidence

Release Notes

prisma/prisma ### [`v4.15.0`](https://togithub.com/prisma/prisma/releases/tag/4.15.0) [Compare Source](https://togithub.com/prisma/prisma/compare/4.14.1...4.15.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%20v4.15.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/4.15.0) about the release.** ๐ŸŒŸ ### Highlights For this release, we focused on fixing bugs and making smaller quality-of-life improvements. #### Support for custom arguments for `prisma db seed` This release adds support for defining and passing arbitrary arguments to `prisma db seed`. This creates the opportunity for you to define your own arguments in your seed file that you could pass to the `prisma db seed` command. A few example use-cases include, but are not limited to: - Seeding different data in different environments - Partially seeding data in some tables Here is an example `seed.ts` file that defines custom arguments for seeding different data in different environments: ```tsx // prisma/seed.ts import { parseArgs } from "node:util"; const options = { environment: { type: 'string', }, } async function main() { const { values: { environment } } = parseArgs({ options }) switch (environment) { case "development": /** do something for development */ break; case "test": /** do something for test environment */ break; default: break; } } main() ``` You can then provide the `environment` argument when executing the seed script as follows: ```bash npx prisma db seed -- --environment development ``` Let us know what you think, share example usage of this feature, and create a [bug report](https://togithub.com/prisma/prisma/issues/new?assignees=\&labels=kind/bug\&projects=\&template=bug_report.yml) if you run into any issues. #### Improved error messages when Query Engine file is not found This release improves the error messages returned by Prisma Client when the Query Engine file is not found. A few reasons the Query Engine file might be missing from your application bundle include when: - The downloaded Query Engine doesnโ€™t match the runtime/ target platform your application is running on. - The Query Engine is not copied to your final application bundle during the build step. We hope these error messages are helpful while debugging your application. #### Prisma VS Code extension improvements In this release, we made a few improvements to our [VS Code extension](https://marketplace.visualstudio.com/items?itemName=Prisma.prisma): 1. Updated the file system watcher that is responsible for restarting the TypeScript server when `prisma generate` is run to ensure the types are in sync > **Note**: > > - This new approach is currently only available on Windows and Linux. We plan on adding support for the new file system watcher on macOS soon. > - This requires both Prisma CLI & VS code extension version `4.15.0` or higher 2. Added [Quick Fixes action](https://code.visualstudio.com/docs/editor/refactoring#\_code-actions-quick-fixes-and-refactorings) for unique identifiers for MongoDB to add the `@map("_id")` attribute function when itโ€™s missing on an identifier field https://user-images.githubusercontent.com/29753584/239030357-2b6613bf-b6b5-48f2-a2df-b93df0692fda.mov 3. Support for [renaming symbols](https://code.visualstudio.com/docs/editor/refactoring#\_rename-symbol) for composite types and views https://user-images.githubusercontent.com/33921841/242042225-87dfee9b-0698-4e1d-b05e-5cb0b8ab1349.mov #### Fixes and improvements ##### Prisma Client - [Prisma generate - `Error: write EPIPE` on WSL <-> Windows](https://togithub.com/prisma/prisma/issues/3294) - [`prisma generate` is blocked by `query-engine-rhel-openssl-1.0.x` opening in Notepad on Windows](https://togithub.com/prisma/prisma/issues/4308) - [Generated client output path hardcoded to build environment](https://togithub.com/prisma/prisma/issues/7228) - [Issue with Yarn Workspace Monorepo: Query engine binary for current platform could not be found.](https://togithub.com/prisma/prisma/issues/7311) - [Cloning a project with checked in `node_modules` (from another platform) leads to platform engine not being present](https://togithub.com/prisma/prisma/issues/7848) - [SvelteKit, Vite and Prisma "module not defined"](https://togithub.com/prisma/prisma/issues/10404) - [Schema File Not Found in non monorepo with custom `output`](https://togithub.com/prisma/prisma/issues/10433) - [Deploying to Cloudflare Workers | "PrismaClient is unable to be run in the browser"](https://togithub.com/prisma/prisma/issues/12981) - [Inline/bundle the contents of the prisma schema on generate](https://togithub.com/prisma/prisma/issues/13052) - [Netlify: `Query engine library for current platform "rhel-openssl-1.0.x" could not be found. You incorrectly pinned it to rhel-openssl-1.0.x`](https://togithub.com/prisma/prisma/issues/13266) - [Query Engine Library Not Found](https://togithub.com/prisma/prisma/issues/13396) - [No client schema when using PrismaClient during cached (standard) Netlify build](https://togithub.com/prisma/prisma/issues/13475) - [Module "@​prisma/client" has no exported member "PrismaClient"](https://togithub.com/prisma/prisma/issues/13946) - [EPERM: operation not permitted](https://togithub.com/prisma/prisma/issues/14626) - [prisma/client crashes when used with older versions of react-refresh](https://togithub.com/prisma/prisma/issues/14953) - [Unable to run prisma cli in pnpm monorepo from workspace install](https://togithub.com/prisma/prisma/issues/15081) - [Misleading error message when the query engine is not found](https://togithub.com/prisma/prisma/issues/15292) - [When setting custom client output directory, generated package.json does not include "sideEffects: false"](https://togithub.com/prisma/prisma/issues/15301) - [ You already added the platform "debian-openssl-1.1.x" to the "generator" block in the "schema.prisma" file as described in https://pris.ly/d/client-generator, but something went wrong. ](https://togithub.com/prisma/prisma/issues/15631) - [Prisma seems to be looking in the wrong location for rhel-openssl-1.0.x](https://togithub.com/prisma/prisma/issues/15638) - [Can't find prisma engine](https://togithub.com/prisma/prisma/issues/16872) - [`Cannot find name '$PrismaModel'` due to feature `extendedWhereUnique` with preview feature `fieldReference`](https://togithub.com/prisma/prisma/issues/16997) - [Netlify build fails with PrismaClientInitializationError](https://togithub.com/prisma/prisma/issues/17167) - [i'm getting the error while requesting the api ](https://togithub.com/prisma/prisma/issues/17906) - [Query engine library for current platform could not be found.](https://togithub.com/prisma/prisma/issues/17996) - [Prisma unable to reconnect if initial connection fails](https://togithub.com/prisma/prisma/issues/18071) - [GraphQL protocol encoder incorrectly turns empty array into empty object.](https://togithub.com/prisma/prisma/issues/18846) - [GraphQL protocol: Invalid `Date` values silently turn into `nulls`](https://togithub.com/prisma/prisma/issues/18970) - [@​prisma/client/edge + Cloudflare Worker / wrangler = Could not resolve "os"](https://togithub.com/prisma/prisma/issues/19174) - [Client is bricked from connecting to DB if first attempt fails.](https://togithub.com/prisma/prisma/issues/19182) - [JSON protocol: incorrect recursive composites detection through multiple nesting levels](https://togithub.com/prisma/prisma/issues/19373) - [`fieldReference` is not working with enums](https://togithub.com/prisma/prisma/issues/19449) ##### Prisma Migrate - [Pass extra arguments to `prisma db seed` to the seed command](https://togithub.com/prisma/prisma/issues/9403) - [Typo in generating migration SQL to add enum.](https://togithub.com/prisma/prisma/issues/19352) ##### Language tools (e.g. VS Code) - [MongoDB: Quick fix for missing `@map("_id")` annotation](https://togithub.com/prisma/language-tools/issues/762) - [Rename composite types](https://togithub.com/prisma/language-tools/issues/1135) - [Views: Support for rename](https://togithub.com/prisma/language-tools/issues/1365) - [TextDocument deprecation](https://togithub.com/prisma/language-tools/issues/1421) - [Lib name change vsce -> @​vscode/vsce](https://togithub.com/prisma/language-tools/issues/1425) #### Credits Huge thanks to [@​RobertCraigie](https://togithub.com/RobertCraigie), [@​KhooHaoYit](https://togithub.com/KhooHaoYit), [@​art049](https://togithub.com/art049), [@​luxaritas](https://togithub.com/luxaritas), [@​mrazauskas](https://togithub.com/mrazauskas), [@​maxmartynov](https://togithub.com/maxmartynov), [@​haneenmahd](https://togithub.com/haneenmahd) 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/t7jsqf0DeNc) on **Thursday, June 1** at **5 pm Berlin | 8 am San Francisco**. ### [`v4.14.1`](https://togithub.com/prisma/prisma/releases/tag/4.14.1) [Compare Source](https://togithub.com/prisma/prisma/compare/4.14.0...4.14.1) Today, we are issuing the `4.14.1` patch release. ##### Fix in Prisma Client - [@​prisma/client/edge + Cloudflare Worker / wrangler = Could not resolve "os"](https://togithub.com/prisma/prisma/issues/19174) ### [`v4.14.0`](https://togithub.com/prisma/prisma/releases/tag/4.14.0) [Compare Source](https://togithub.com/prisma/prisma/compare/4.13.0...4.14.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%20v4.14.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/4.14.0) about the release.** ๐ŸŒŸ ##### Request for feedback for Preview features We would appreciate your feedback on a handful of [Preview features](https://www.prisma.io/docs/about/prisma/releases#preview) to help us move them to [General Availability](https://www.prisma.io/docs/about/prisma/releases#generally-available-ga) soon. The Preview features include: - [PostgreSQL extensions](https://togithub.com/prisma/prisma/issues/15835) - [Extended where unique](https://togithub.com/prisma/prisma/issues/15837) - [Field reference support](https://togithub.com/prisma/prisma/issues/15068) - [Order by Nulls](https://togithub.com/prisma/prisma/issues/14377) - [Count by filtered relation](https://togithub.com/prisma/prisma/issues/15069) You can test them by enabling the Preview feature in your Prisma schema and giving them a try already in your Prisma schema, e.g., PostgreSQL extensions, or regenerating Prisma Client and trying them in your queries. ##### Highlights ##### Improved Prisma Client startup performance For the last couple of months, we've been working hard to improve the performance of Prisma Client. We also published a blog post on how [How We Sped Up Serverless Cold Starts with Prisma by 9x](https://www.prisma.io/blog/prisma-and-serverless-73hbgKnZ6t), which we recommend you give it a read. This release continues with the same theme by making the size of the generated Prisma Client smaller. We have roughly halved the size of Prisma Client's dependencies. ##### More Introspection warnings for unsupported features In [4.13.0](https://togithub.com/prisma/prisma/releases/tag/4.13.0), we introduced the first 6 introspection warnings that surface the existence of these features in your database and link to our documentation on how to manually work around the Prisma Schema with unsupported database features. In this release, we added 3 more introspection warnings for the following features: - [Check Constraints](https://togithub.com/prisma/prisma/issues/3388) (MySQL + PostgreSQL) - [Exclusion Constraints](https://togithub.com/prisma/prisma/issues/17514) - [MongoDB $jsonSchema](https://togithub.com/prisma/prisma/issues/8135) On introspecting a database using any of these features, you will get a warning from the Prisma CLI and a comment in your Prisma schema where the feature is being used. The warning will also contain a link to instructions on how to manually use the feature. ##### Fixes and improvements ##### Prisma Client - [Generator output `client` leads to `Error: ENOENT: no such file or directory, open '.../node_modules/@​prisma/client/schema.prisma'`](https://togithub.com/prisma/prisma/issues/12295) - [DeprecationWarning: Implicit coercion to integer for exit code is deprecated](https://togithub.com/prisma/prisma/issues/17127) - [`thread 'tokio-runtime-worker' panicked at 'internal error: entered unreachable code: No unsupported field should reach that path', query-engine\connectors\sql-query-connector\src\model_extensions\scalar_field.rs:70:44`](https://togithub.com/prisma/prisma/issues/18517) - [jsonProtocol: `in` argument of filter types does not accept scalars](https://togithub.com/prisma/prisma/issues/18549) - [`jsonProtocol` should report errors as nicely as before](https://togithub.com/prisma/prisma/issues/18876) - [Generated client with custom path containing string `client`: `ENOENT: no such file or directory, open 'D:\\node_modules\.prisma\client\schema.prisma`](https://togithub.com/prisma/prisma/issues/12719) - [Can't find the schema when the project path contains the same name as the generated client folder](https://togithub.com/prisma/prisma/issues/11206) ##### Prisma Migrate - [Build all glibc Linux binaries with CentOS 7](https://togithub.com/prisma/prisma/issues/16772) - [Remove `Please create an issue ...` in `MigrateEngine.ts`](https://togithub.com/prisma/prisma/issues/17268) - [Do not introspect exclusion constraints as Gist indexes](https://togithub.com/prisma/prisma/issues/17515) - [Introspection warnings: move rendering from `DbPull.ts` to the engine ](https://togithub.com/prisma/prisma/issues/17582) - [views: don't create local `views` folder on introspection if no views are found](https://togithub.com/prisma/prisma/issues/18611) - [RelationMode autocomplete uses incorrect casing](https://togithub.com/prisma/prisma/issues/18983) ##### Language tools (e.g. VS Code) - [Support for VSCode Region Marker Folding](https://togithub.com/prisma/language-tools/issues/1382) ##### Credits Huge thanks to [@​RobertCraigie](https://togithub.com/RobertCraigie), [@​KhooHaoYit](https://togithub.com/KhooHaoYit), [@​art049](https://togithub.com/art049), [@​luxaritas](https://togithub.com/luxaritas), [@​mrazauskas](https://togithub.com/mrazauskas) 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/JvLTpSINZdA) on **Thursday, May 11** at **5 pm Berlin | 8 am San Francisco**.

Configuration

๐Ÿ“… Schedule: Branch creation - "before 3am on the first day of the month" (UTC), Automerge - At any time (no schedule defined).

๐Ÿšฆ Automerge: Enabled.

โ™ป 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.



This PR has been generated by Mend Renovate. View repository job log here.