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

Lazyly require BcryptDriver #141

Merged
merged 1 commit into from
Oct 14, 2023
Merged

Conversation

marcuspoehls
Copy link
Member

Requiring the BcryptDriver lazyly (inside the createBcryptDriver method) imports bcrypt-related dependencies only when needed.

This will support Bun (the new runtime) to run Supercharge projects because Bun doesn’t reference a bcrypt_napi bridge early on. The bcrypt_napi isn’t supported in Bun and would fail the project. This change should make it possible to use Bun seamlessly, with the premise of not using bcrypt.

@marcuspoehls marcuspoehls self-assigned this Oct 14, 2023
@marcuspoehls marcuspoehls merged commit 607a0eb into 3.x Oct 14, 2023
6 checks passed
@marcuspoehls marcuspoehls deleted the require-hash-driver-when-needed branch October 16, 2023 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant