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

Future proof adapters #505

Merged
merged 3 commits into from
Mar 12, 2021
Merged

Future proof adapters #505

merged 3 commits into from
Mar 12, 2021

Conversation

Rich-Harris
Copy link
Member

This future-proofs the adapter API in such a way that we can add new stuff (like platform-specific deployment logic, or metadata that instructs Vite to output CJS per #503) in a non-breaking way. It also makes #439 possible, if we can figure out what we want to do about the ESM headaches

packages/adapter-begin/index.js Outdated Show resolved Hide resolved
packages/adapter-begin/index.js Show resolved Hide resolved
packages/adapter-node/index.js Show resolved Hide resolved
packages/adapter-vercel/index.js Show resolved Hide resolved
@Rich-Harris
Copy link
Member Author

I made the last remaining function adapter anonymous. One less yak to shave

@benmccann
Copy link
Member

Probably need to update some of the examples and docs?

@Rich-Harris
Copy link
Member Author

Will be doing a sweep of the docs soon anyway (tonight, if possible). The examples were already updated, I think the tests just failed because they fail sometimes

@Rich-Harris Rich-Harris merged commit f35a5cd into master Mar 12, 2021
@Rich-Harris Rich-Harris deleted the future-proof-adapters branch March 12, 2021 22:02
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.

4 participants