nestjs-prisma

Easy Prisma support for your NestJS application

MIT License

Downloads
103.5K
Stars
574
Committers
14

Bot releases are visible (Hide)

nestjs-prisma - 0.23.0 Latest Release

Published by marcjulian 9 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/notiz-dev/nestjs-prisma/compare/v0.22.0...v0.23.0

nestjs-prisma - 0.23.0-dev.0

Published by marcjulian 12 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/notiz-dev/nestjs-prisma/compare/v0.22.0...v0.23.0-dev.0

nestjs-prisma - 0.22.0

Published by marcjulian about 1 year ago

Added

Remove enableShutdownHooks from your main.ts

// main.ts
- const prismaService: PrismaService = app.get(PrismaService);
- await prismaService.enableShutdownHooks(app);
nestjs-prisma - 0.22.0-dev.0

Published by marcjulian over 1 year ago

Added

Remove enableShutdownHooks from your main.ts

// main.ts
- const prismaService: PrismaService = app.get(PrismaService);
- await prismaService.enableShutdownHooks(app);
nestjs-prisma - 0.21.0

Published by marcjulian over 1 year ago

Added

  • add providePrismaClientExceptionFilter, improve exception filter docs
  • support Nest 10 as peerDeps
  • support Prisma Client extension GA (4.16)

This removes enableShutdownHooks from CustomPrismaService as this is not available after PrismaClient $extends. If you want to use $on do it in this order

const prisma = new PrismaClient()
  .$on(/* ... */)
  .$extends({/* ... */})

Changed

  • remove deprecated Prisma.NotFoundError as it is replaced by Prisma.PrismaClientKnownRequestError
nestjs-prisma - 0.21.0-dev.3

Published by marcjulian over 1 year ago

Added

  • support Prisma Client extension GA (4.16)

This removes enableShutdownHooks from CustomPrismaService as this is not available after PrismaClient $extends. If you want to use $on do it in this order

const prisma = new PrismaClient()
  .$on(/* ... */)
  .$extends({/* ... */})
nestjs-prisma - 0.21.0-dev.2

Published by marcjulian over 1 year ago

Added

  • support Nest 10 as peerDeps
nestjs-prisma - 0.20.1

Published by marcjulian over 1 year ago

Fixed

  • return exception directly for graphql requests, #58 (#62)
nestjs-prisma - 0.21.0-dev.1

Published by marcjulian over 1 year ago

Changed

  • remove deprecated Prisma.NotFoundError as it is replaced by Prisma.PrismaClientKnownRequestError
nestjs-prisma - 0.21.0-dev.0

Published by marcjulian over 1 year ago

Added

  • add providePrismaClientExceptionFilter, improve exception filter docs
nestjs-prisma - 0.20.0

Published by marcjulian almost 2 years ago

Added

  • simplify error handling flow (#39)
  • support custom location/multiple Prisma Clients and extensions preview (#40)

Credits

Thanks to @Loskir for cleaning up the exception filter and changing the exception return type to application/json.

nestjs-prisma - 0.20.0-dev.0

Published by marcjulian almost 2 years ago

Added

  • clean up exception filter and change exception response type from text/html to application/json (#38, #39)

Credits

Thanks to @Loskir for cleaning up the exception filter and changing the exception return type to application/json.

nestjs-prisma - 0.19.0

Published by marcjulian about 2 years ago

Added

  • catch Prisma.NotFoundError of findFirstOrThrow and findUniqueOrThrow with PrismaClientExceptionFilter

Fixed

  • fix: shutdownHooks in microservice context (#32)

Credits

Thanks to @ali-master for adding microservice support in shutdownHook.

nestjs-prisma - 0.19.0-dev.1

Published by marcjulian about 2 years ago

Added

  • catch Prisma.NotFoundError of findFirstOrThrow and findUniqueOrThrow with PrismaClientExceptionFilter (#36)
nestjs-prisma - 0.19.0-dev.0

Published by marcjulian about 2 years ago

Fixed

  • fix: shutdownHooks in microservice context (#32)

Credits

Thanks to @ali-master for adding microservice support in shutdownHook.

nestjs-prisma - 0.18.0

Published by marcjulian about 2 years ago

Checkout the new docs site at nestjs-prisma.dev to get started with nestjs-prisma and find all configuration options. 🤩 If you find the docs are missing information, feel free to edit the README.md. 🙏

Added

  • add logging middleware
  • extending prisma client for proper logging options #30, closes #23

Changed

  • support GraphQL with the exception filter (#29)

Credits

Thanks to @suryatmodulus for adding GraphQL support to the exception filter.
Thanks to @le-ar updating prisma client types for logging options.

nestjs-prisma - 0.18.0-dev.1

Published by marcjulian about 2 years ago

Added

  • extending prisma client for proper logging options #30, closes #23

Credits

Thanks to @le-ar updating prisma client types for logging options.

nestjs-prisma - 0.18.0-dev.0

Published by marcjulian about 2 years ago

Added

  • add logging middleware

Changed

  • support GraphQL with the exception filter (#29)

Credits

Thanks to @suryatmodulus for adding GraphQL support to the exception filter.

nestjs-prisma - 0.17.0

Published by marcjulian about 2 years ago

Added

  • add support for prisma v4
  • add support for nest v9

Credits

Thanks to @donnguyen for adding support for prisma v4.

nestjs-prisma - 0.17.0-dev.1

Published by marcjulian over 2 years ago

Added

  • add support for nest v9