fix(runtime): export public composables subpath#315
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
commit: |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
better-auth | 288ff6d | Apr 29 2026, 08:35 AM |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds a stable
@onmax/nuxt-better-auth/composablesexport for published packages and removes module-owneduseUserSessionimports from#importsinside the published runtime. App-level auto-imports stay the same, but reusable downstream packages now have a supported subpath instead of relying on Nuxt virtual imports from published code.The underlying coupling came from
2c955070(fix: use #imports for useUserSession in plugin). That made sense for module-owned runtime wiring, but it also left no stable public import path for package consumers. This PR keeps the internal runtime on relative imports for its own composables, adds a small docs note about when to use the new subpath, and adds regressions for the new export surface plus the built output.I checked #307 and #308 first because they touch adjacent fixture and type-stub surfaces. This branch does not stack on either PR, but it does carry the minimal plugin-inference fixture stub adjustment needed for the current suite on top of
main.Ran
pnpm test test/exports.test.ts test/composables-subpath-exports.test.ts test/infer-plugins-types.test.ts test/nuxthub-prerender-db-import.test.ts test/preserve-redirect-disabled.test.tsandpnpm typecheck. A fullpnpm testrun also completed aside from one transient Nuxt test-server port timeout, and the timed-out suite passed immediately when rerun in isolation.