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

feat: introduce @auth/typeorm-adapter #7706

Merged
merged 8 commits into from
Jun 1, 2023
Merged

Conversation

balazsorban44
Copy link
Member

@balazsorban44 balazsorban44 commented Jun 1, 2023

Follow-up of #7703

Database adapters are not dependent on Next.js features, so it makes sense to republish them under the @auth/* scope.

This PR is part of a series to convert adapters, using @auth/core for types.

BREAKING CHANGE:
If you are coming from the previous adapter, change your package.json:

-  "@next-auth/typeorm-legacy-adapter": "0.0.0",
+  "@auth/typeorm-adapter": "0.0.0",

And run npm install, yarn install or pnpm install respectively.

Note: This packages is published as ESM-only

@vercel
Copy link

vercel bot commented Jun 1, 2023

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

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 1, 2023 4:43pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
auth-docs-nextra ⬜️ Ignored (Inspect) Jun 1, 2023 4:43pm
next-auth-docs ⬜️ Ignored (Inspect) Jun 1, 2023 4:43pm

@github-actions github-actions bot added adapters Changes related to the core code concerning database adapters typeorm-legacy labels Jun 1, 2023
@socket-security
Copy link

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

🚮 Removed packages: @next-auth/typeorm-legacy-adapter@2.0.2

Conflicts:
	pnpm-lock.yaml
@github-actions github-actions bot added the prisma @auth/prisma-adapter label Jun 1, 2023
"pg": "^8.7.3",
"sqlite3": "^5.0.8",
"typeorm": "0.3.7",
"typeorm": "0.3.15",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Locked in on 0.3.15 as something is likely broken in 0.3.16

I think typeorm/typeorm#10041 would solve the issue.

@balazsorban44 balazsorban44 marked this pull request as ready for review June 1, 2023 16:51
@balazsorban44 balazsorban44 merged commit 0cb7fd2 into main Jun 1, 2023
3 of 4 checks passed
@balazsorban44 balazsorban44 deleted the feat/authjs-typeorm branch June 1, 2023 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adapters Changes related to the core code concerning database adapters typeorm-legacy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant