Skip to content

Latest commit

 

History

History
97 lines (55 loc) · 4.01 KB

File metadata and controls

97 lines (55 loc) · 4.01 KB

Changelog

v1.1.0 - 2025-05-27

  • Add bemiTRPCMiddleware for setting up Bemi context in tRPC apps

v1.0.0 - 2025-05-26

  • Breaking change: Use new PrismaPg() & withBemiExtension() explicitly instead of withPgAdapter()
  • Breaking change: Use bemiMiddleware() instead of setContext() for setting context as a middleware
  • Breaking change: Use setBemiContext() instead of bemiContext() for setting context inline
  • Breaking change: Make SQL query injection into context optional and disabled by default (see injectSqlInContext option)
  • Add mergeBemiContext() to merge context with the existing one
  • Add currentBemiContext() to get the current context
  • Fix migration generation to work with PostgreSQL tables containing dashes in their names

v0.9.0 - 2025-05-12

  • Make the package compatible with Prisma v6.7+

v0.8.1 - 2024-11-13

  • Fix using Prisma client database URL specified in datasources.db #5

v0.8.0 - 2024-11-08

  • Allow using Prisma client database URL specified in datasources.db #4

v0.7.0 - 2024-10-24

  • Enable passing application context in non-public schemas.

v0.6.0 - 2024-10-14

  • Fix compatibility with Prisma v5.20+

v0.5.0 - 2024-08-08

  • Allow context passing only for specific models with includeModels
  • Enable SQL comment affix customization

v0.4.1 - 2024-08-02

  • Fix compatibility with Prisma v5.15+

v0.4.0 - 2024-04-16

  • Fix Next.js actions by removing @prisma/internals as a dependency
  • Validate context size to make sure it is under 1MB

v0.3.0 - 2024-04-11

  • Automatically include an original SQL query in application context
  • Pass application context only if it's an object
  • Sync the pg adapter against the latest Prisma pg adapter version
  • Drop support for PostgreSQL version 13 and older

v0.2.8 - 2024-03-05

  • Don't crash in the migration when executing it with Supabase

v0.2.7 - 2024-02-29

  • Add bemiContext function for inline context setting
  • Delete express from peer dependencies

v0.2.6 - 2024-02-21

  • Reuse the Prisma client type when wrapping it by using withPgAdapter

v0.2.5 - 2024-02-19

  • Add BemiApolloServerPlugin

v0.2.4 - 2024-02-19

  • Make it compatible with the latest Prisma v5.9.1

v0.2.3 - 2024-02-19

  • Allow attaching application context to raw execute queries

v0.2.2 - 2024-01-16

  • Fix migration generation to work with PostgreSQL versions less than 14

v0.2.1 - 2024-01-04

  • Fix migration generation to work with table names containing double quotes

v0.2.0 - 2024-01-02

  • Update license from MIT to LGPL-3.0 #LoveOpenSource

v0.1.0 - 2023-12-15

  • Create package