Skip to content

refactor(devframe)!: split auth and rename internal under devframe/node#332

Merged
antfu merged 2 commits intomainfrom
antfu/devframe-node-auth-export
May 11, 2026
Merged

refactor(devframe)!: split auth and rename internal under devframe/node#332
antfu merged 2 commits intomainfrom
antfu/devframe-node-auth-export

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented May 11, 2026

Description

Carve auth helpers and the internal-context subpath out of the top-level devframe/node surface so each has its own focused entry. New devframe/node/auth holds the token issuance/validation/revocation helpers; devframe/internal is renamed to devframe/node/internal (where it has always been node-side anyway) and now hosts the relocated context-internal.ts. Clean break — no back-compat shims — with all first-party consumers in packages/core and packages/kit updated and tsnapi snapshots regenerated.

Linked Issues

Additional context

Breaking for anyone importing auth symbols (getTempAuthToken, consumeTempAuthToken, revokeAuthToken, etc.) from devframe/node or anything from devframe/internal — switch to devframe/node/auth / devframe/node/internal.

…rame/internal` to `devframe/node/internal`

BREAKING CHANGE: auth helpers (`getTempAuthToken`, `refreshTempAuthToken`,
`consumeTempAuthToken`, `getPendingAuth`, `setPendingAuth`, `abortPendingAuth`,
`PendingAuthRequest`, `revokeAuthToken`, `revokeActiveConnectionsForToken`)
no longer re-export from `devframe/node` — import from `devframe/node/auth`.

The `devframe/internal` sub-export is renamed to `devframe/node/internal`,
which also now hosts the relocated `context-internal.ts`. End users were
never meant to depend on this subpath; first-party adapters update accordingly.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for devfra ready!

Name Link
🔨 Latest commit 41a4cf3
🔍 Latest deploy log https://app.netlify.com/projects/devfra/deploys/6a01643e67b3f90008ceffa1
😎 Deploy Preview https://deploy-preview-332--devfra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

…uth-export

# Conflicts:
#	alias.ts
#	devframe/packages/devframe/tsdown.config.ts
#	packages/core/src/node/rpc/anonymous/auth.ts
#	packages/core/src/node/ws.ts
#	tsconfig.base.json
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 11, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@vitejs/devtools@332
npm i https://pkg.pr.new/@vitejs/devtools-kit@332
npm i https://pkg.pr.new/@vitejs/devtools-rolldown@332
npm i https://pkg.pr.new/@vitejs/devtools-self-inspect@332

commit: 41a4cf3

@antfu antfu merged commit f2068d8 into main May 11, 2026
13 checks passed
@antfu antfu deleted the antfu/devframe-node-auth-export branch May 11, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant