[GH-ISSUE #674] Move from oslo to @oslojs/* packages #8371

Closed
opened 2026-04-13 03:26:40 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @adelrodriguez on GitHub (Nov 27, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/674

Oslo is getting deprecated at the end of this year, and the recommendation is to use the packages under the Oslo project which are (almost) a 1:1 export of the original Oslo.

This would also get rid of the Package oslo can't be external warnings that pops up on the console when using this package in Next.js.

I'm happy to tackle this if needed, I took a quick glance at the code and moving to the new packages should be pretty straightforward.

(Awesome work by the way! I'm really liking what you've done with this library)

Originally created by @adelrodriguez on GitHub (Nov 27, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/674 [Oslo](https://github.com/pilcrowonpaper/oslo) is getting deprecated at the end of this year, and the recommendation is to use the packages under the [Oslo project](https://oslojs.dev/) which are (almost) a 1:1 export of the original Oslo. This would also get rid of the `Package oslo can't be external` warnings that pops up on the console when using this package in Next.js. I'm happy to tackle this if needed, I took a quick glance at the code and moving to the new packages should be pretty straightforward. (Awesome work by the way! I'm really liking what you've done with this library)
GiteaMirror added the locked label 2026-04-13 03:26:40 -05:00
Author
Owner

@Bekacru commented on GitHub (Nov 27, 2024):

Hey, thanks! The plan is to not depend on Oslo packages altogether. Since we only use a small subset of utilities, we can move them internally. If you want to take a look, feel free to do so :)

<!-- gh-comment-id:2504096773 --> @Bekacru commented on GitHub (Nov 27, 2024): Hey, thanks! The plan is to not depend on Oslo packages altogether. Since we only use a small subset of utilities, we can move them internally. If you want to take a look, feel free to do so :)
Author
Owner

@adelrodriguez commented on GitHub (Nov 27, 2024):

Got it! Yeah, I noticed there's a lot of overlap with other utilities as well, so I can take a stab into moving them internally or replacing them with other packages that are more widely used in the codebase.

<!-- gh-comment-id:2504129999 --> @adelrodriguez commented on GitHub (Nov 27, 2024): Got it! Yeah, I noticed there's a lot of overlap with other utilities as well, so I can take a stab into moving them internally or replacing them with other packages that are more widely used in the codebase.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8371