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

feat: throw error if Prisma client is already extended with Kysely #155

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

eoin-obrien
Copy link
Owner

Added a check to throw an error if the Prisma client is already extended with Kysely. This change
prevents undefined behavior and ensures that the client is not extended multiple times. Introduced a
new test case to validate this behavior.

BREAKING CHANGE: This change introduces an error where previously there was none, which may affect
existing code that accidentally extended the Prisma client multiple times.

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (357f3ec) to head (f826055).
Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #155   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           54        60    +6     
  Branches         8         9    +1     
=========================================
+ Hits            54        60    +6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eoin-obrien eoin-obrien force-pushed the duplicate-extension-error branch from 5dc1d80 to a7f47c8 Compare October 23, 2024 02:01
Added a check to throw an error if the Prisma client is already extended with Kysely. This change
prevents undefined behavior and ensures that the client is not extended multiple times. Introduced a
new test case to validate this behavior.

BREAKING CHANGE: This change introduces an error where previously there was none, which may affect
existing code that accidentally extended the Prisma client multiple times.
@eoin-obrien eoin-obrien force-pushed the duplicate-extension-error branch from a7f47c8 to f826055 Compare October 23, 2024 02:06
@eoin-obrien eoin-obrien merged commit e05b789 into main Oct 23, 2024
7 checks passed
@eoin-obrien eoin-obrien deleted the duplicate-extension-error branch November 2, 2024 02:14
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