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(adapters/surrealdb): update surrealdb.js to enable http connection strategy #8823

Merged

Conversation

martinschaer
Copy link
Contributor

☕️ Reasoning

A bug was fixed on surrealdb.js 0.9.1 which enables the HTTP strategy: surrealdb/surrealdb.js#171

This PR includes unit tests for both strategies (RPC and HTTP) and docs.

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

No open issues. Continuation of #6251

@vercel
Copy link

vercel bot commented Oct 9, 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 Oct 26, 2023 3:18am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Oct 26, 2023 3:18am

@vercel
Copy link

vercel bot commented Oct 9, 2023

@martinschaer is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added adapters Changes related to the core code concerning database adapters surrealdb labels Oct 9, 2023
@ThangHuuVu
Copy link
Member

seems like fetch is missing for some reason - but it should be available in Node since v18 🤔 strange, will check more when I have time

@martinschaer
Copy link
Contributor Author

seems like fetch is missing for some reason - but it should be available in Node since v18 🤔 strange, will check more when I have time

@ThangHuuVu turned out fetch is missing just on the global scope of jest. 88e2ab3 adds fetch to jest's globals

@ThangHuuVu
Copy link
Member

thanks! merging, some other tests are failing but we will take another look later.

@ThangHuuVu ThangHuuVu merged commit c555356 into nextauthjs:main Oct 26, 2023
9 of 11 checks passed
@martinschaer martinschaer deleted the feature/adapter-surrealdb-update branch October 26, 2023 10:22
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 surrealdb
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants