-
-
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.
Allow passing platform context from adapters (#3429)
* Can pass locals at app.render * Updated cloudflare workers to pass in env to locals * Fixed other adapters for new API * Fixed naming in app types to be more consistent * Updated to use meta in stead of polluting locals * updated adapter cloudflare to use meta * Added changesets * Formated and linted * Updated types to include Meta consistently * Updated documentation to include information about the meta object * Fixed type issue in hooks * Updated naming to platform * Added a way to get the original request from the node adapter * Made platform Readonly in RequestEvent * Fixed typo in docs * Update documentation/docs/01-routing.md Co-authored-by: Ben McCann <[email protected]> * Fixed bad spaces * Fixed merge issues * rerun flakey tests * rerun flakey tests 2 * Update documentation/docs/10-adapters.md grammer Co-authored-by: Andrew McGrath <[email protected]> * rerun flakey tests 3 * rerun flakey tests 4 * Changed node handler to pass in `req` Added documentation to Node adaptor * Updated cloudflare readme * Renamed to request * Use Record<string, any> * rerun flakey tests 5 * change API to app.render(request, opts) * update adapters * use platform.req instead of platform.request — more idiomatic * remove changesets for unaffected adapters * tweak changesets * remove platform stuff from routing section * tweak adapter docs * Fix documentation/docs/04-hooks.md spaces Co-authored-by: Conduitry <[email protected]> * remove changes to adapter-node * create-svelte is unchanged * simplify docs Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Ignatius Bagus <[email protected]> Co-authored-by: Andrew McGrath <[email protected]> Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Conduitry <[email protected]>
- Loading branch information
1 parent
b7ca4cf
commit 667bc81
Showing
13 changed files
with
87 additions
and
29 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,5 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare': patch | ||
--- | ||
|
||
Pass `env` object to SvelteKit via `platform` |
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,5 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Allow adapters to pass in `platform` object |
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
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
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
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
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
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