-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark
node:
as external for Node.js compatibility (#10544)
* make `cloudflare:email` as external * make cloudflare:email as external * add changeset * format * fix changeset * add for adapter-cloudflare-worker, too * add changeset for adapter-cloudflare-worker * Update .changeset/eighty-fans-rescue.md Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com> * Update .changeset/friendly-dragons-hide.md Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com> * Update .changeset/eighty-fans-rescue.md * Update .changeset/friendly-dragons-hide.md * Update packages/adapter-cloudflare/index.js Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> * Update index.js * Update .changeset/friendly-dragons-hide.md * Update .changeset/eighty-fans-rescue.md * mark `node:` as external * remove old changesets * options.nodeCompat * add docs * Update documentation/docs/25-build-and-deploy/70-adapter-cloudflare-workers.md * switch it to just the list of APIs that Cloudflare supports with their node compatibility * read `nodejs_compat` flag from the wrangler.toml to avoid making the user specify it twice * changeset * remove `nodeCompat` option, always assume compatibility * Apply suggestions from code review * Update .changeset/pretty-geese-drum.md --------- Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com> Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com> Co-authored-by: Rich Harris <hello@rich-harris.dev>
- Loading branch information
1 parent
da1f2d1
commit 040f826
Showing
5 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare-workers': minor | ||
'@sveltejs/adapter-cloudflare': minor | ||
--- | ||
|
||
feat: Add Node.js compatibility |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
import { Adapter } from '@sveltejs/kit'; | ||
import './ambient.js'; | ||
|
||
export default function plugin(options?: { config?: string }): Adapter; | ||
export default function plugin(options?: AdapterOptions): Adapter; | ||
|
||
export interface AdapterOptions { | ||
config?: string; | ||
} |
This file contains 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
This file contains 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