Packages

@prisma/adapter-d1

7.10.1 · 15 Oct 2026Apache-2.073.1k / weekRepositorynpmAtom feed

Your version

74 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.

  1. 7.x · latest line
  2. 7.10.1

    15 Oct 2026
    • If the old transaction had committed, the new one failed with P2028;

    • If the old transaction was still open, the new one silently ran as a savepoint inside another request's transaction.

  3. 7.10.0

    25 Aug 2026
    • security

      Binds explicitly to 127.0.0.1 instead of all network interfaces.

    • security

      Rejects browser requests from origins other than the active localhost or 127.0.0.1 Studio URL.

    • security

      No longer returns wildcard CORS headers.

  4. 7.9.1

    27 Jul 2026

    Today, we're issuing a patch release to resolve a security advisory in a transitive dependency of Prisma CLI (via @prisma/dev).

  5. 7.9.0

    20 Jul 2026
    • security

      Resolved the hono security advisories at their source: @prisma/dev was updated to a version that no longer depends on hono at all, so the CLI is no longer exposed to those advisories through that path. We also patched moderate-severity advisories in ajv and uuid across production dependencies (#29514).

    • security

      Hardened the Prisma Platform credentials file (~/.config/prisma-platform/auth.json) and its directory to 0o600 / 0o700 so OAuth tokens are no longer world-readable, bringing Prisma in line with the GitHub, AWS, and Google Cloud CLIs (#29568, from Jaeyoung Yun).

    • security

      Bumped the openssl crate in the schema engine binaries from 0.10.74 to 0.10.81 (prisma/prisma-engines#5815).

  6. 7.8.0

    22 Apr 2026
    • Added a queryPlanCacheMaxSize option to the PrismaClient constructor for fine-grained control over the query plan cache. Pass 0 to disable the cache entirely, or omit it to use the default cache size. A larger value can improve performance in applications that execute many unique queries, while a smaller one can reduce memory usage.

    • Fixed an equality filter panic and incorrect ::jsonb cast when filtering on PostgreSQL JSON list columns. Queries using where: { jsonListField: { equals: [...] } } no longer panic with a type mismatch or emit invalid SQL. (prisma/prisma-engines#5804)

    • Fixed case-insensitive JSON field filtering (mode: insensitive), allowing where: { jsonField: { equals: "...", mode: "insensitive" } } to work correctly. (prisma/prisma-engines#5806)

  7. 7.7.0

    7 Apr 2026
    • Init or scaffold — In an empty directory, offers a choice of 10 starter templates (Next.js, Express, Hono, Fastify, Nuxt, SvelteKit, Remix, React Router 7, Astro, NestJS) from prisma-examples. In an existing project without a schema, runs prisma init.

    • Link — Authenticates via the browser and connects to a Prisma Postgres database. Skips if already linked.

    • Install dependencies — Detects the package manager and offers to install missing @prisma/client, prisma, and dotenv.

  8. 7.6.0

    27 Mar 2026
    • Added a prisma postgres link command that connects a local project to a Prisma Postgres database. This is the first command in a new prisma postgres command group for managing Prisma Postgres databases directly from the CLI.

    • @prisma/adapter-pg: Added a statementNameGenerator option that accepts a custom prepared statement name generator to allow users to leverage pg statement caching

    • @prisma/adapter-pg: Added support for usage of connection strings directly in the constructor for improved ergonomics

  9. 7.5.0

    11 Mar 2026
    • Added support for nested transaction rollbacks via savepoints (#21678)

      Adds support for nested transaction rollback behavior for SQL databases: if an outer transaction fails, the inner nested transaction is rolled back as well. Implements this by tracking transaction ID + nesting depth so Prisma can reuse an existing open transaction in the underlying engine, and it also enables using $transaction from an interactive transaction client.

    • Made the adapter-mariadb use the binary MySQL protocol to fix an issue with lossy number conversions

    • Made @types/pg a direct dependency of adapter-pg for better TypeScript experience out-of-the-box

  10. 7.4.2

    27 Feb 2026
    • Fix a case-insensitive IN and NOT IN filter regression (#29243)

    • Fix a query plan mutation issue that resulted in broken cursor queries (#29262)

    • Fix an array parameter wrapping issue in push operations (#5784)

  11. 7.4.1

    19 Feb 2026
    • Fix cursor-based pagination regression with parameterised values (#29184)

    • Preserve Prisma.skip through query extension argument cloning (#29198)

    • Enable batching of multiple queries inside interactive transactions (#25571)

  12. 7.4.0

    11 Feb 2026
    • prisma/prisma-engines#5767: Fixed an issue with PostgreSQL migration scripts that prevented usage of CREATE INDEX CONCURRENTLY in migrations

    • prisma/prisma-engines#5752: Fixed BigInt precision loss in JSON aggregation for MySQL and CockroachDB by casting BigInt values to text (from community member polaz)

    • prisma/prisma-engines#5750: Fixed connection failures with non-ASCII database names by properly URL-decoding database names in connection strings

  13. 7.3.0

    21 Jan 2026
    • Fast and Small Query Compilers
      We've been working on various performance-related bugs since the initial ORM 7.0 release. With 7.3.0, we're introducing a new compilerBuild option for the client generator block in schema.prisma with two options: fast and small. This allows you to swap the underlying Query Compiler engine based on your selection, one built for speed (with an increase in size), and one built for size (with the trade off for speed). By default, the fast mode is used, but this can be set by the user:

    • Bypass the Query Compiler for Raw Queries
      Raw queries ($executeRaw, $queryRaw) can now skip going through the query compiler and query interpreter infrastructure. They can be sent directly to the driver adapter, removing additional overhead.

    • Pin better-sqlite3 version to avoid SQLite bug
      An underlying bug in SQLite 3.51.0 has affected the better-sqlite3 adapter. We’ve bumped the version that powers @prisma/better-sqlite3 and have pinned the version to prevent any unexpected issues. If you are using @prisma/better-sqlite3 , please upgrade to v7.3.0.

  14. 7.2.0

    17 Dec 2025
    • Add sqlcommenter-query-insights plugin

    • migrate: Add -url param for db pull, db push, migrate dev

    • config: Allow undefined URLs in e.g. prisma generate

  15. 7.1.0

    3 Dec 2025
    • 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.

    • 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:

    • 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.

  16. 7.0.1

    25 Nov 2025
    • Prisma Studio: Support Deno >= 1.4 <2.2 and Bun >= 1 (via #28583)

    • Prisma Studio: Fix collisions between user and internal Studio columns when querying (via #28677)

    • Prisma Studio: Warn when SQLite file doesn't exist (via #28711)

  17. 7.0.0

    19 Nov 2025
    • removed

      post-install hook would run prisma generate

    • removed

      prisma migrate would run prisma generate and prisma seed

    • removed

      prisma generate --data-proxy

  18. 6.x
  19. 6.19.3

    1 Apr 2026

    Today, we are issuing a 6.19.3 patch release in the Prisma 6 release line. It updates the effect dependency to resolve a security vulnerability.

  20. 6.19.2

    13 Jan 2026

    Today, we are issuing a 6.19.2 patch release in the Prisma 6 release line. It fixes an issue with Prisma Accelerate support in some edge runtime configurations when the @prisma/client/edge entrypoint is not being used.

  21. 6.19.1

    10 Dec 2025

    Today, we are issuing a patch release for Prisma 6 that includes a fix for a diffing bug introduced in Prisma 6.13.1, which led to incorrectly reported empty diffs.

  22. 6.19.0

    5 Nov 2025
    • When dropping a model from a schema, do not append the default schema to the migration.

    • Align naming conventions for fields and relation fields

    • Add biome ignore comments to generated client files. This was a community contribution from @lonelyevil, thank you!

  23. 6.18.0

    22 Oct 2025
    • prisma init now creates a prisma.config.ts automatically

    • Support for defining your datasource in prisma.config.ts

    • #28291 Support multiple Prisma instances with different providers

  24. 6.17.1

    10 Oct 2025

    Today, we are issuing a patch release to address a regression in v6.17.0 that affected diffing of unsupported types, leading to unnecessary or incorrect changes when creating new migrations or running db pull. This update is recommended for all users who have any fields marked as Unsupported in their schema files.

  25. 6.17.0

    7 Oct 2025
    • Added support for Entra ID (ActiveDirectory) authentication parameters for the MS SQL Server driver adapter. For example, you can use the config object to configure DefaultAzureCredential:

      import { PrismaMssql } from '@prisma/adapter-mssql'
      import { PrismaClient } from '@prisma/client'
      
      const config = {
        server: 'localhost',
        port: 1433,
        database: 'mydb',
        authentication: {
          type: 'azure-active-directory-default',
        },
        options: {
          encrypt: true,
        },
      }
      
      const adapter = new PrismaMssql(config)
      const prisma = new PrismaClient({ adapter })

      Learn more in this PR.

    • Relaxed the support package range for @opentelemetry/instrumentation to be compatible with ">=0.52.0 <1". Learn more in this PR.

    • Added Codex CLI detection, ensuring dangerous Prisma operations are not executed by Codex without explicit user consent. Learn more in this PR.

  26. 6.16.3

    30 Sep 2025
    • Prisma Client (prisma-client generator): fixed missing JSON null type definitions (JsonNull, DbNull, AnyNull) in the browser.ts entrypoint. (#28186)

    • Prisma Migrate: don't add the default schema (namespace) to the generated migrations unless it was specified explicitly in the schema file. This restores the pre-6.13.0 behaviour that was inadvertently changed with enabling multi-schema support by default. Users who rely on database schemas for multi-tenancy can now again use the same migration files for all of their schemas. (#5614)

    • Prisma Client: enabled negative take with findFirst again. _(#5616 — contributed

  27. 6.16.2

    16 Sep 2025
    • In Prisma ORM 6.16.0, we've enabled usage of the new engineType = client with Prisma Postgres, but our validation rules permitted invalid combinations of Prisma Postgres URLs and driver adapters. This now produces a clear error message indicating Prisma Postgres URLs and driver adapters are mutually exclusive.

    • In the previous minor release, we've included a change that calls unref() on NodeJS timers to prevent them from keeping the NodeJS event loop active. This change unintentionally affected non-NodeJS runtimes like workerd, where it has resulted in runtime errors. This behavior has been made conditional to prevent these runtime errors.

  28. 6.16.1

    11 Sep 2025
    • In Prisma ORM 6.16.0, the driverAdapters and queryCompiler features were stabilized, but leftover code in the prisma-client-ts generator required them to still be specified in edge runtimes. This has now been fixed, runtimes like workerd and vercel-edge no longer require these preview features.

  29. 6.16.0

    10 Sep 2025
    • Reduced bundle size by ~90%

    • Faster queries (check out our latest benchmarks)

    • Lower CPU footprint

  30. 6.15.0

    27 Aug 2025
    • removed

      node has been removed, use runtime = "nodejs" instead

    • removed

      deno-deploy has been removed, use runtime = "deno" instead

    • vercel has been replaced by the new runtime = "vercel-edge"

  31. 6.14.0

    12 Aug 2025
    • deprecated

      Deprecated metrics Preview feature (which will be removed in Prisma 7)

    • Relationships involving views

    • findUnique queries, cursor-based pagination & implicit ordering for views

  32. 6.13.0

    29 Jul 2025
    • The locations for various Prisma-related assets, such as your:

    • A seed command to populate your database based on some executable script

    • Externally managed tables (see below)

  33. 6.12.0

    15 Jul 2025
  34. 6.11.1

    3 Jul 2025
    • In Prisma ORM version 6.11.0, we shipped a bug fix for Prisma that allows using Prisma Postgres with direct TCP connections with Prisma Driver Adapters. This fix required refactoring the Prisma Client initialization logic, and while several test cases were added, an edge case was missing, causing #27569.
      Namely, using @prisma/client with @prisma/extension-accelerate on a prisma+postgres://... connection string, while generating the Prisma Client definitions via prisma generate, resulted in a PrismaClientInitializationError.

      This is now fixed, so we highly recommend upgrading to version 6.11.1.

      Reminder: when using Prisma Accelerate, we highly encourage you to generate your Prisma Client definitions via prisma generate --no-engine.

    • We've fixed an issue that would occur when using arrays as aggregation fields with the query compiler. These queries would fail with a confusing data mapping error. They should now work as expected.

  35. 6.11.0

    1 Jul 2025
    • prisma dev stop <globs>: Stops one or more local Prisma Postgres instances

    • prisma dev rm <globs>: Removes one or more local Prisma Postgres instances from your file system

  36. 6.10.1

    18 Jun 2025

    Today, we are issuing a 6.10.1 patch release.

  37. 6.10.0

    17 Jun 2025
    • We deprecated the pg-worker package. It's not needed any more, you can simply use pg when using Prisma ORM in Cloudflare Workers.

    • Entrypoint for new prisma-client generator changed. Learn how this affects imports in the docs.

    • Managing databases and connection strings

  38. 6.9.0

    3 Jun 2025
    • Persists your databases across prisma dev invocations.

    • Enables you to have multiple local Prisma Postgres instances running at the same time.

    • Running prisma init now uses local Prisma Postgres by default.

  39. 6.8.2

    16 May 2025

    Today, we are issuing the 6.8.2 patch release. It fully resolves an issue with the prisma init and prisma dev commands for some Windows users who were still facing problems after the previous incomplete fix in version 6.8.1.

  40. 6.8.1

    15 May 2025

    Today, we are issuing the 6.8.1 patch release. It fixes an issue with the prisma init and prisma dev commands on Windows.

  41. 6.8.0

    15 May 2025
    • Checking the status of your migrations (e.g. telling you if migrations haven't been applied)

    • Creating and running schema migrations for you

    • Authenticating you with the Prisma Console

  42. 6.7.0

    29 Apr 2025
  43. 6.6.0

    8 Apr 2025
    • breaking

      Pass the the --schema option to your Prisma CLI command (e.g. prisma migrate dev --schema ./prisma/schema)

    • breaking

      Set the prisma.schema field in package.json:

      // package.json
      {
        "prisma": {
          "schema": "./schema"
        }
      }
    • breaking

      Set the schema property in prisma.config.ts:

      import path from 'node:path'
      import type { PrismaConfig } from 'prisma'
      
      export default {
        earlyAccess: true,
        schema: path.join('prisma', 'schema'),
      } satisfies PrismaConfig<Env>
  44. 6.5.0

    11 Mar 2025
  45. 6.4.1

    20 Feb 2025

    Today, we are issuing the 6.4.1 patch release. It fixes a few issues with the NPS survey and makes it respect the --no-hints CLI flag.

  46. 6.4.0

    18 Feb 2025

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

  47. 6.3.1

    4 Feb 2025

    This patch releases introduces improvements to the prisma init output when invoked to with the --db option.

  48. 6.3.0

    28 Jan 2025
  49. 6.2.1

    8 Jan 2025

    Today we are releasing the 6.2.1 patch release to address an issue with some of the omitApi preview feature checks having been accidentally omitted when making the feature GA. Now it is fully functional without the preview feature flag.

  50. 6.2.0

    7 Jan 2025
  51. 6.1.0

    17 Dec 2024
  52. 6.0.1

    2 Dec 2024