Skip to content

Conversation

@conarti
Copy link

@conarti conarti commented Dec 24, 2025

πŸ”— Linked issue

#1071

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Added peerDependenciesMeta to make next-auth an optional peer dependency.

This prevents automatic installation of next-auth (~50MB including Next.js) for users who only use the local provider.

Before: next-auth is always installed automatically (npm v7+ behavior)
After: next-auth is only installed when explicitly added by users who need the authjs provider

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

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