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

Bump prisma from 4.11.0 to 4.13.0 in /website #2884

Merged
merged 1 commit into from Apr 25, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 24, 2023

Bumps prisma from 4.11.0 to 4.13.0.

Release notes

Sourced from prisma's releases.

4.13.0

🌟 Help us spread the word about Prisma by starring the repo or tweeting about the release. 🌟

Highlights

Introspection stopgaps

The Prisma Schema Language (PSL) currently doesn't support all database features and functionality of our target databases. The PSL is an abstraction over SQL and will keep evolving to address gaps in our database feature matrix.

Before this release, prisma db pull did not pick up the unsupported features in a database. It was easy to lose them when running prisma migrate dev based on an existing Prisma schema if not included in a migration file using custom migrations.

To avoid this, we added Introspection Stopgaps 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 (”Stopgaps” as we will remove them as soon as we implement full support for these features).

In this release, we added stopgaps for the following features:

Prisma CLI will output warnings on introspection (prisma db pull) and add comments to your Prisma schema. In the coming releases, we will expand this to many more features labeled with topic: database-functionality on GitHub.

Improved support for Netlify and Vercel build process

Netlify and Vercel cache project dependencies during the build process and reuse that cache until dependencies change. While this helps speed up the build process, any postinstall scripts of these dependencies will not be executed.

Prisma uses a postinstall script in its package to automatically trigger the customized generation of Prisma Client for your Prisma Schema. When a dependency cache is used, that generation process is not triggered, and an outdated Prisma Client may be used in your application.

When you update your Prisma Schema but not your dependencies, Prisma Client will not be generated for the new schema. For example, columns you added recently to one of your models will not be present in the Prisma Client API - causing errors.

This problem can be avoided by:

  1. Adding a custom postinstall script in your package.json file
  2. Manually adding a prisma generate step to the “Build” scripts of Vercel and Netlify.

We now added detection of this scenario and will prevent a build without an additional prisma generate. This will ensure you're aware of the problem early and get guidance on how to fix this problem. You can read more on how to do this in our docs — Vercel caching troubleshooting, Netlify caching troubleshooting.

Better support for pnpm as a package manager

Before this release, Prisma only used npm scripts which would lead to undesirable behavior for a project using a different package manager such as pnpm and yarn. This release improves the detection of the package managers in your project by using ni. If you're still running into this problem, let us know by creating a GitHub issue.

Segmentation fault and TLS connection error fix

In this release, we've fixed a TLS connection error segmentation fault. This mostly affected users running on Node.js 17 or later with OpenSSL 1.1 when using TLS to connect to their database.

JSON protocol Preview feature feedback

We have fixed multiple bugs for the jsonProtocol Preview feature and are close to making it Generally Available. We are still looking for feedback about its usage to ensure it is ready and works as expected for everyone.

... (truncated)

Commits
  • d29c126 docs(cli): add --generator option to the help hint (#18592)
  • e50b0e2 chore(deps): update studio to v0.484.0 (#18636)
  • 047fda8 chore(deps): update engines to 4.13.0-15.f8f78f335fd86dea323d7fbc581fdf500d74...
  • 906d265 chore: Remove unused variables and enable no-unused-vars rule (#18584)
  • 5acfc52 fix(client): throw error on caching platforms (#18437)
  • efab78e fix(cli): Exclude source maps from bundled client (#18571)
  • 12af01f refactor: remove unused imports from Generate.ts (#18486)
  • fb51d43 refactor: rename variants of BinaryType enum (#18455)
  • 92d87a6 chore(deps): update jest to v29.4.3 (#17802)
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [prisma](https://github.com/prisma/prisma/tree/HEAD/packages/cli) from 4.11.0 to 4.13.0.
- [Release notes](https://github.com/prisma/prisma/releases)
- [Commits](https://github.com/prisma/prisma/commits/4.13.0/packages/cli)

---
updated-dependencies:
- dependency-name: prisma
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 24, 2023
@notmd notmd merged commit c9d4b91 into main Apr 25, 2023
4 checks passed
@notmd notmd deleted the dependabot/npm_and_yarn/website/prisma-4.13.0 branch April 25, 2023 06:48
grgau pushed a commit to grgau/Open-Assistant that referenced this pull request May 8, 2023
Bumps [prisma](https://github.com/prisma/prisma/tree/HEAD/packages/cli)
from 4.11.0 to 4.13.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/prisma/prisma/releases">prisma's
releases</a>.</em></p>
<blockquote>
<h2>4.13.0</h2>
<p>🌟 <strong>Help us spread the word about Prisma by starring the repo
or <a
href="https://twitter.com/intent/tweet?text=Check%20out%20the%20latest%20@prisma%20release%20v4.13.0%20%F0%9F%9A%80%0D%0A%0D%0Ahttps://github.com/prisma/prisma/releases/tag/4.13.0">tweeting</a>
about the release.</strong> 🌟</p>
<h2>Highlights</h2>
<h3>Introspection stopgaps</h3>
<p>The Prisma Schema Language (PSL) currently doesn't support all
database features and functionality of <a
href="https://www.prisma.io/docs/reference/database-reference/supported-databases">our
target databases</a>. The PSL is an abstraction over SQL and will keep
evolving to address gaps in our <a
href="https://www.prisma.io/docs/reference/database-reference/database-features">database
feature matrix</a>.</p>
<p>Before this release, <code>prisma db pull</code> did not pick up the
unsupported features in a database. It was easy to lose them when
running <code>prisma migrate dev</code> based on an existing Prisma
schema if not included in a migration file using custom migrations.</p>
<p>To avoid this, we added <em>Introspection Stopgaps</em> 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 (”Stopgaps” as we will remove them as soon
as we implement full support for these features).</p>
<p>In this release, we added stopgaps for the following features:</p>
<ul>
<li><a
href="https://redirect.github.com/prisma/prisma/issues/1708">Partitioned
tables</a></li>
<li><a
href="https://redirect.github.com/prisma/prisma/issues/12735">PostgreSQL
Row Level Security</a></li>
<li><a
href="https://redirect.github.com/prisma/prisma/issues/15466">Index sort
order, <code>NULLS FIRST</code> / <code>NULLS LAST</code></a></li>
<li><a
href="https://redirect.github.com/prisma/prisma/issues/13982">CockroachDB
row-level TTL</a></li>
<li><a
href="https://redirect.github.com/prisma/prisma/issues/8703">Comments</a></li>
<li><a
href="https://redirect.github.com/prisma/prisma/issues/8807">PostgreSQL
deferred constraints</a></li>
</ul>
<p>Prisma CLI will output warnings on introspection (<code>prisma db
pull</code>) and add comments to your Prisma schema. In the coming
releases, we will expand this to many more <a
href="https://github.com/prisma/prisma/issues?q=is%3Aopen+label%3A%22topic%3A+database-functionality%22+label%3Ateam%2Fschema+sort%3Aupdated-desc+">features
labeled with <code>topic: database-functionality</code> on
GitHub</a>.</p>
<h3>Improved support for Netlify and Vercel build process</h3>
<p>Netlify and Vercel cache project dependencies during the build
process and reuse that cache until dependencies change. While this helps
speed up the build process, any <code>postinstall</code> scripts of
these dependencies will not be executed.</p>
<p>Prisma uses a <code>postinstall</code> script in its package to
automatically trigger the customized generation of Prisma Client for
your Prisma Schema. When a dependency cache is used, that generation
process is not triggered, and an outdated Prisma Client may be used in
your application.</p>
<p>When you update your Prisma Schema but not your dependencies, Prisma
Client will not be generated for the new schema. For example, columns
you added recently to one of your models will not be present in the
Prisma Client API - causing errors.</p>
<p>This problem can be avoided by:</p>
<ol>
<li>Adding a custom <code>postinstall</code> script in your
<code>package.json</code> file</li>
<li>Manually adding a <code>prisma generate</code> step to the “Build”
scripts of Vercel and Netlify.</li>
</ol>
<p>We now added detection of this scenario and will prevent a build
without an additional <code>prisma generate</code>. This will ensure
you're aware of the problem early and get guidance on how to fix this
problem. You can read more on how to do this in our docs — <a
href="https://prisma.io/docs/guides/other/troubleshooting-orm/help-articles/vercel-caching-issue">Vercel
caching troubleshooting</a>, <a
href="https://prisma.io/docs/guides/other/troubleshooting-orm/help-articles/netlify-caching-issue">Netlify
caching troubleshooting</a>.</p>
<h3>Better support for pnpm as a package manager</h3>
<p>Before this release, Prisma only used npm scripts which would lead to
undesirable behavior for a project using a different package manager
such as pnpm and yarn. This release improves the detection of the
package managers in your project by using <a
href="https://github.com/antfu/ni"><code>ni</code></a>. If you're still
running into this problem, let us know by creating a <a
href="https://github.com/prisma/prisma/issues/new?assignees=&amp;labels=kind/bug&amp;template=bug_report.yml">GitHub
issue</a>.</p>
<h3>Segmentation fault and TLS connection error fix</h3>
<p>In this release, we've fixed a TLS connection error segmentation
fault. This mostly affected users running on Node.js 17 or later with
OpenSSL 1.1 when using TLS to connect to their database.</p>
<h3>JSON protocol Preview feature feedback</h3>
<p>We have fixed multiple bugs for the <code>jsonProtocol</code> Preview
feature and are close to making it Generally Available. We are still
looking for feedback about its usage to ensure it is ready and works as
expected for everyone.</p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/prisma/prisma/commit/d29c126eb04ca44f14a93087cee85f85c4ea95b2"><code>d29c126</code></a>
docs(cli): add --generator option to the help hint (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18592">#18592</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/e50b0e260a9ed2ab0c5d55a2f609eba575303da7"><code>e50b0e2</code></a>
chore(deps): update studio to v0.484.0 (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18636">#18636</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/047fda88f3a6ec39ccf66b480b86addcbc1aad5e"><code>047fda8</code></a>
chore(deps): update engines to
4.13.0-15.f8f78f335fd86dea323d7fbc581fdf500d74...</li>
<li><a
href="https://github.com/prisma/prisma/commit/906d265aacae8f08e177d8c807e91513f074f1f2"><code>906d265</code></a>
chore: Remove unused variables and enable no-unused-vars rule (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18584">#18584</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/5acfc5240a257657f3a4973bdbed6497406cb486"><code>5acfc52</code></a>
fix(client): throw error on caching platforms (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18437">#18437</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/efab78e7b2c85b8615f3b0858b21dd653cc7b490"><code>efab78e</code></a>
fix(cli): Exclude source maps from bundled client (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18571">#18571</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/12af01fbfd411841f20d9481cd46b81c5e2f9172"><code>12af01f</code></a>
refactor: remove unused imports from Generate.ts (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18486">#18486</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/fb51d432cd20f376355ca426cae9bdf34a251597"><code>fb51d43</code></a>
refactor: rename variants of BinaryType enum (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/18455">#18455</a>)</li>
<li><a
href="https://github.com/prisma/prisma/commit/92d87a6ab40b99c5a2f9990fe47c4eba7eb02233"><code>92d87a6</code></a>
chore(deps): update jest to v29.4.3 (<a
href="https://github.com/prisma/prisma/tree/HEAD/packages/cli/issues/17802">#17802</a>)</li>
<li>See full diff in <a
href="https://github.com/prisma/prisma/commits/4.13.0/packages/cli">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=prisma&package-manager=npm_and_yarn&previous-version=4.11.0&new-version=4.13.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant