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

rename adapter.ts -> adapters.ts in @auth/sveltekit #12503

Merged
merged 2 commits into from
Feb 2, 2025

Conversation

emme1444
Copy link
Contributor

The package.json exports ./adapters, consistent with other packages. This meant it was not accessible for consumption when the source file and exported files didn't match.

☕️ Reasoning

I could not import * from "@auth/sveltekit/adapters", and noticed that the source file was called adapter.ts (singular) but the package.json expected a types export file called adapters.d.ts (plural).

As stated above, this PR simply renames the adapter.ts file to adapters.ts. I chose to rename the file in order to be consistent with the rest of the project.

If I have greatly misunderstood something simple here, please let me know.

Also let me know if there are other changes needed as a result of these changes. (I couldn't think of any)

🧢 Checklist

  • Documentation
  • Tests
  • Ready to be merged

🎫 Affected issues

I couldn't find any issues on this and I didn't create one since I though it was a small enough problem not worth an issue. If you would like me to open an issue I could do that ASAP.

📌 Resources

The package.json exports ./adapters, consistent with other
packages. This meant it was not accessible for consumption
when the source file and exported files didn't match.
@emme1444 emme1444 requested a review from ThangHuuVu as a code owner January 14, 2025 22:53
Copy link

vercel bot commented Jan 14, 2025

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

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jan 14, 2025

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 Feb 2, 2025 10:59am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview Feb 2, 2025 10:59am

Copy link
Contributor

@halvaradop halvaradop left a comment

Choose a reason for hiding this comment

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

Good catch

Copy link
Member

@ThangHuuVu ThangHuuVu left a comment

Choose a reason for hiding this comment

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

nice catch, thanks!

Copy link

codecov bot commented Feb 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 39.42%. Comparing base (1369cd5) to head (de8ea2a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #12503   +/-   ##
=======================================
  Coverage   39.42%   39.42%           
=======================================
  Files         198      198           
  Lines       31285    31285           
  Branches     1370     1376    +6     
=======================================
  Hits        12334    12334           
  Misses      18951    18951           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ThangHuuVu ThangHuuVu merged commit 31ead6d into nextauthjs:main Feb 2, 2025
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants