Skip to content

Future proof adapters#505

Merged
Rich-Harris merged 3 commits intomasterfrom
future-proof-adapters
Mar 12, 2021
Merged

Future proof adapters#505
Rich-Harris merged 3 commits intomasterfrom
future-proof-adapters

Conversation

@Rich-Harris
Copy link
Copy Markdown
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

Comment thread packages/adapter-begin/index.js Outdated
Comment thread packages/adapter-begin/index.js
Comment thread packages/adapter-begin/index.js Outdated
Comment thread packages/adapter-begin/index.js
Comment thread packages/adapter-node/index.js
Comment thread packages/adapter-vercel/index.js
Comment thread packages/adapter-netlify/index.js
@Rich-Harris
Copy link
Copy Markdown
Member Author

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

@benmccann
Copy link
Copy Markdown
Member

Probably need to update some of the examples and docs?

@Rich-Harris
Copy link
Copy Markdown
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