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.

@Thomas-Philippot
Copy link
Contributor

I would love to see this merged as it also avoid nextjs vulnerabilities

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 22, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@sidebase/nuxt-auth@1073

commit: a52fbe5

@phoenix-ru phoenix-ru changed the base branch from main to chore/bump-dependencies-and-use-module-builder-v1 January 22, 2026 09:51
@phoenix-ru
Copy link
Collaborator

Thank you a lot for the good catch @conarti!
I've changed the base for this PR to a dep upgrade PR so that we can test both together. We'll try to merge and release it soon

@phoenix-ru phoenix-ru merged commit 419d775 into sidebase:chore/bump-dependencies-and-use-module-builder-v1 Jan 22, 2026
2 checks passed
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.

3 participants