Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Jun 19, 2025

This PR contains the following updates:

Package Change Age Confidence
@prisma/adapter-better-sqlite3 (source) 7.0.0 -> 7.2.0 age confidence
@prisma/adapter-better-sqlite3 (source) 6.19.0 -> 6.19.1 age confidence
@prisma/adapter-d1 (source) 7.0.0 -> 7.2.0 age confidence
@prisma/adapter-libsql (source) 7.0.0 -> 7.2.0 age confidence
@prisma/adapter-pg (source) 7.0.0 -> 7.2.0 age confidence
@prisma/adapter-pg (source) 6.20.0-integration-next.10 -> 6.20.0-integration-oidc-truster-publishers.2 age confidence
@prisma/client (source) 7.0.0 -> 7.2.0 age confidence
@prisma/client (source) 6.20.0-integration-next.10 -> 6.20.0-integration-oidc-truster-publishers.2 age confidence
@prisma/client (source) 6.19.0 -> 6.19.1 age confidence
@prisma/client (source) 6.9.0 -> 6.19.1 age confidence
@prisma/client (source) 6.15.0 -> 6.19.1 age confidence
prisma (source) 7.0.0 -> 7.2.0 age confidence
prisma (source) 6.19.0 -> 6.19.1 age confidence
prisma (source) 6.20.0-integration-next.10 -> 6.20.0-integration-oidc-truster-publishers.2 age confidence
prisma (source) 6.9.0 -> 6.19.1 age confidence
prisma (source) 6.15.0 -> 6.19.1 age confidence

Release Notes

prisma/prisma (@​prisma/adapter-better-sqlite3)

v7.2.0

Compare Source

Today, we are excited to share the 7.2.0 stable release 🎉

🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!

Highlights
ORM
  • #​28830: feat: add sqlcommenter-query-insights plugin
    • Adds a new SQL commenter plugin to support query insights metadata.
  • #​28860: feat(migrate): add -url param for db pull, db push, migrate dev
    • Adds a -url flag to key migrate commands to make connection configuration more flexible.
  • #​28895: feat(config): allow undefined URLs in e.g. prisma generate
    • Allows certain workflows (such as prisma generate) to proceed even when URLs are undefined.
  • #​28903: feat(cli): customize prisma init based on the JS runtime (Bun vs others)
    • Makes prisma init tailor generated setup depending on whether the runtime is Bun or another JavaScript runtime.
  • #​28846: fix(client-engine-runtime): make DataMapperError a UserFacingError
    • Ensures DataMapperError is surfaced as a user-facing error for clearer, more actionable error reporting.
  • #​28849: fix(adapter-{pg,neon,ppg}): handle 22P02 error in Postgres
    • Improves Postgres adapter error handling for invalid-text-representation errors (22P02).
  • #​28913: fix: fix byte upserts by removing legacy byte array representation
    • Fixes byte upsert behavior by removing a legacy byte-array representation path.
  • #​28535: fix(client,internals,migrate,generator-helper): handle multibyte UTF-8 characters split across chunk boundaries in byline
    • Prevents issues when multibyte UTF-8 characters are split across chunk boundaries during line processing.
  • #​28911: fix(cli): make prisma version --json emit JSON only to stdout
    • Ensures machine-readable JSON output is emitted cleanly to stdout without extra noise.
VS Code Extension
  • #​1950: fix: TML-1670 studio connections
    • Resolves issues related to Studio connections, improving reliability for VS Code or language-server integrations.
Open roles at Prisma

Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our [Careers page](https://www.prisma.io/careers#current) and find the role that’s right for you.

Enterprise support

Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.

With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.

v7.1.0

Compare Source

Today, we are excited to share the 7.1.0 stable release 🎉

🌟 Star this repo for notifications about new releases, bug fixes & features — or follow us on X!

This release brings quality of life improvements and fixes various bugs.

Prisma ORM

  • #​28735: pnpm monorepo issues with prisma client runtime utils
    Resolves issues in pnpm monorepos where users would report TypeScript issues related to @prisma/client-runtime-utils.

  • #​28769:  implement sql commenter plugins for Prisma Client
    This PR implements support for SQL commenter plugins to Prisma Client. The feature will allow users to add metadata to SQL queries as comments following the sqlcommenter format.

    Here’s two related PRs that were also merged:

    • #​28796: implement query tags for SQL commenter plugin
    • #​28802: add traceContext SQL commenter plugin
  • #​28737: added error message when constructing client without configs
    This commit adds an additional error message when trying to create a new PrismaClient instance without any arguments.
    Thanks to @​xio84 for this community contribution!

  • #​28820: mark @opentelemetry/api as external in instrumentation
    Ensures @opentelemetry/api is treated as an external dependency rather than bundled.
    Since it is a peer dependency, this prevents applications from ending up with duplicate copies of the package.

  • #​28694: allow env() helper to accept interface-based generics
    Updates the env() helper’s type definition so it works with interfaces as well as type aliases.
    This removes the previous constraint requiring an index signature and resolves TS2344 errors when using interface-based env types. Runtime behavior is unchanged.
    Thanks to @​SaubhagyaAnubhav for this community contribution!

Read Replicas extension

  • #​53: Add support for Prisma 7
    Users of the read-replicas extension can now use the extension in Prisma v7. You can update by installing:

    npm install @​prisma/extension-read-replicas@latest

    For folks still on Prisma v6, install version 0.4.1:

    npm install @​prisma/extension-read-replicas@0.4.1

For more information, visit the repo

SQL comments

We're excited to announce SQL Comments support in Prisma 7.1.0! This new feature allows you to append metadata to your SQL queries as comments, making it easier to correlate queries with application context for improved observability, debugging, and tracing.

SQL comments follow the sqlcommenter format developed by Google, which is widely supported by database monitoring tools. With this feature, your SQL queries can include rich metadata:

SELECT "id", "name" FROM "User" /*application='my-app',traceparent='00-abc123...-01'*/
Basic usage

Pass an array of SQL commenter plugins to the new comments option when creating a PrismaClient instance:

import { PrismaClient } from './generated/prisma/client';
import { PrismaPg } from '@​prisma/adapter-pg';
import { queryTags } from '@​prisma/sqlcommenter-query-tags';
import { traceContext } from '@​prisma/sqlcommenter-trace-context';

const adapter = new PrismaPg({
  connectionString: `${process.env.DATABASE_URL}`,
});

const prisma = new PrismaClient({
  adapter,
  comments: [queryTags(), traceContext()],
});
Query tags

The @prisma/sqlcommenter-query-tags package lets you add arbitrary tags to queries within an async context:

import { queryTags, withQueryTags } from '@​prisma/sqlcommenter-query-tags';

const prisma = new PrismaClient({
  adapter,
  comments: [queryTags()],
});

// Wrap your queries to add tags
const users = await withQueryTags(
  { route: '/api/users', requestId: 'abc-123' },
  () => prisma.user.findMany(),
);

Resulting SQL:

SELECT ... FROM "User" /*requestId='abc-123',route='/api/users'*/

Use withMergedQueryTags to merge tags with outer scopes:

import {
  withQueryTags,
  withMergedQueryTags,
} from '@​prisma/sqlcommenter-query-tags';

await withQueryTags({ requestId: 'req-123', source: 'api' }, async () => {
  await withMergedQueryTags(
    { userId: 'user-456', source: 'handler' },
    async () => {
      // Queries here have: requestId='req-123', userId='user-456', source='handler'
      await prisma.user.findMany();
    },
  );
});
Trace context

The @prisma/sqlcommenter-trace-context package adds W3C Trace Context (traceparent) headers for distributed tracing correlation:

import { traceContext } from '@​prisma/sqlcommenter-trace-context';

const prisma = new PrismaClient({
  adapter,
  comments: [traceContext()],
});

When tracing is enabled and the span is sampled:

SELECT * FROM "User" /*traceparent='00-0af7651916cd43dd8448eb211c80319c-b9c7c989f97918e1-01'*/

Note: Requires @​prisma/instrumentation to be configured. The traceparent is only added when tracing is active and the span is sampled.

Custom plugins

Create your own plugins to add custom metadata:

import type { SqlCommenterPlugin } from '@​prisma/sqlcommenter';

const applicationTags: SqlCommenterPlugin = (context) => ({
  application: 'my-service',
  environment: process.env.NODE_ENV ?? 'development',
  operation: context.query.action,
  model: context.query.modelName,
});

const prisma = new PrismaClient({
  adapter,
  comments: [applicationTags],
});
Framework integration

SQL comments work seamlessly with popular frameworks, e.g., Hono:

import { createMiddleware } from 'hono/factory';
import { withQueryTags } from '@​prisma/sqlcommenter-query-tags';

app.use(
  createMiddleware(async (c, next) => {
    await withQueryTags(
      {
        route: c.req.path,
        method: c.req.method,
        requestId: c.req.header('x-request-id') ?? crypto.randomUUID(),
      },
      () => next(),
    );
  }),
);

Additional framework examples for Express, Koa, Fastify, and NestJS are available in the documentation.

For complete documentation, see SQL Comments. We'd love to hear your feedback on this feature! Please open an issue on GitHub or join the discussion in our Discord community.

Open roles at Prisma

Interested in joining Prisma? We’re growing and have several exciting opportunities across the company for developers who are passionate about building with Prisma. Explore our open positions on our Careers page and find the role that’s right for you.

Enterprise support

Thousands of teams use Prisma and many of them already tap into our Enterprise & Agency Support Program for hands-on help with everything from schema integrations and performance tuning to security and compliance.

With this program you also get priority issue triage and bug fixes, expert scalability advice, and custom training so that your Prisma-powered apps stay rock-solid at any scale. Learn more or join: https://prisma.io/enterprise.

v7.0.1

Compare Source

Today, we are issuing a 7.0.1 patch release focused on quality of life improvements, and bug fixes.

🛠 Fixes


Configuration

📅 Schedule: Branch creation - "before 8am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 5 times, most recently from faa0d42 to 5faaba4 Compare June 24, 2025 14:16
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 5 times, most recently from d382f58 to 4ad5a7f Compare July 1, 2025 11:46
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.10.1 fix(deps): update prisma monorepo Jul 1, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 2 times, most recently from ded9f14 to fc56c6e Compare July 1, 2025 12:03
@renovate renovate bot changed the title fix(deps): update prisma monorepo fix(deps): update prisma monorepo to v6.11.0 Jul 1, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 5 times, most recently from fb09a2a to ddb1731 Compare July 4, 2025 12:11
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.11.0 fix(deps): update prisma monorepo to v6.11.1 Jul 4, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 4 times, most recently from a3327c8 to 534a3d5 Compare July 14, 2025 07:28
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.11.1 fix(deps): update prisma monorepo Jul 14, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 2 times, most recently from 8b58eea to 8223d17 Compare July 14, 2025 09:52
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from 8223d17 to 43d7535 Compare July 30, 2025 01:02
@renovate renovate bot changed the title fix(deps): update prisma monorepo fix(deps): update prisma monorepo to v6.13.0 Jul 30, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from 43d7535 to 72ac6e2 Compare August 2, 2025 23:51
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from 1975b44 to 4a30bdc Compare October 12, 2025 10:33
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.17.0 fix(deps): update prisma monorepo to v6.17.1 Oct 12, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 2 times, most recently from 2d998e2 to d2ae640 Compare October 22, 2025 12:03
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.17.1 fix(deps): update prisma monorepo to v6.18.0 Oct 22, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 9 times, most recently from 4140b90 to d8efe85 Compare November 3, 2025 10:47
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from d8efe85 to ab1f335 Compare November 6, 2025 08:37
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.18.0 fix(deps): update prisma monorepo to v6.19.0 Nov 6, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 3 times, most recently from 6d14435 to 5c24038 Compare November 11, 2025 12:19
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from 5c24038 to 71ba3b5 Compare November 20, 2025 00:01
@renovate renovate bot changed the title fix(deps): update prisma monorepo to v6.19.0 fix(deps): update prisma monorepo Nov 20, 2025
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from 71ba3b5 to ce2886b Compare November 25, 2025 17:56
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 2 times, most recently from ad6c475 to f3f372b Compare December 8, 2025 11:11
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch 4 times, most recently from ee5dda1 to a2b8914 Compare December 15, 2025 15:54
@renovate renovate bot force-pushed the renovate/prisma-monorepo branch from a2b8914 to 5e1fa08 Compare December 17, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant