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

core(fix): Make crypto compatible with Node 18 #555

Merged
merged 4 commits into from
Nov 14, 2024
Merged

Conversation

vejja
Copy link
Collaborator

@vejja vejja commented Nov 14, 2024

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

This PR re-introduces Node 18 compatiblity.

In v2.1.0, we required a minimum version of Node 20 to be able to run native WebCrypto API functions.

However Nuxt 3 has a minimum requirement of Node 18. As a consequence, Nuxt users who are using Node 18 would not be able to use the Nuxt-Security module.

With this modification we are able to support Node 18, in line with Nuxt 3 minimum requirements.

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes (if not applicable, please state why)

Copy link

vercel bot commented Nov 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nuxt-security ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 14, 2024 3:33pm

@vejja vejja marked this pull request as ready for review November 14, 2024 15:06
@vejja vejja requested a review from Baroshem November 14, 2024 15:06
@vejja vejja self-assigned this Nov 14, 2024
@vejja vejja merged commit 642bfce into main Nov 14, 2024
5 checks passed
@Baroshem
Copy link
Collaborator

Thanks @vejja I can always count on you! 💚

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.

2 participants