Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(build): modernize how we bundle next-auth (nextauthjs#1682)
* feat(build): optionally include TypeORM If the user doesn't use databases, it shouldn't be necessary to iclude it in the bundle. This can more than half the package size! * feat(build): clean up in dependencies Remove unused dependencies, move optional ones to be optional * feat(build): add exports field * fix: use peerDependenciesMeta instead of non-standard peerOptionalDependecns field * fix: ts-standard string quotes * fix: ts-standard string quotes * refactor: use asnyc/await for sendVerificationRequest * chore(deps): upgrade mongodb, remove require_optional Co-authored-by: ndom91 <yo@ndo.dev> BREAKING CHANGE: `typeorm`, and `nodemailer` are no longer dependencies added by default. If you need any of them, you will have to install them yourself in your project directory. TypeOrm is the default adapter, so if you only provide an `adapter` configuration or a `database`, you will need `typeorm`. You could also check out `@next-auth/typeorm-adapter`. In case you are using the Email provider, you will have to install `nodemailer` (or you can use the choice of your library in the `sendVerificationRequest` callback to send out the e-mail.)
- Loading branch information