-
-
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.
…#3384) * this should be an internal type * change app.render return type to Response * update adapters * lint * fix tests * app.render takes a Request as input * only read body once * update adapters, remove host/protocol options * lint * remove obsolete origin test * change endpoint signature * fix vercel adapter * add setResponse helper * allow returning Response or Headers from endpoints * fixes * lint * update docs * update adapter-node docs * docs * whoops * changesets * pointless commit to try and trick netlify into working * update template * changeset * work around zip-it-and-ship-it bug * Update .changeset/large-icons-complain.md * Update .changeset/mighty-pandas-search.md * Update .changeset/strong-schools-rule.md * Update documentation/docs/04-hooks.md Co-authored-by: Ben McCann <[email protected]> * Update packages/adapter-node/README.md Co-authored-by: Ben McCann <[email protected]> * reduce indentation * add more types to adapters, to reflect these changes * Update documentation/docs/10-adapters.md Co-authored-by: Ignatius Bagus <[email protected]> * better error messages * helpful errors for removed config options * fix tests Co-authored-by: Ben McCann <[email protected]> Co-authored-by: Ignatius Bagus <[email protected]>
- Loading branch information
1 parent
7fa43a4
commit ee906a3
Showing
79 changed files
with
809 additions
and
1,079 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/kit': patch | ||
--- | ||
|
||
Allow endpoints to return a Response, or an object with Headers |
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 | ||
--- | ||
|
||
Breaking: Expose standard Request object to endpoints and hooks |
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,10 @@ | ||
--- | ||
'@sveltejs/adapter-cloudflare': patch | ||
'@sveltejs/adapter-cloudflare-workers': patch | ||
'@sveltejs/adapter-netlify': patch | ||
'@sveltejs/adapter-node': patch | ||
'@sveltejs/adapter-vercel': patch | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Breaking: change app.render signature to (request: Request) => Promise<Response> |
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-node': patch | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Breaking: Remove protocol/host configuration options from Kit to adapter-node |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
declare module 'APP' { | ||
import { App } from '@sveltejs/kit'; | ||
export { App }; | ||
} | ||
|
||
declare module 'MANIFEST' { | ||
import { SSRManifest } from '@sveltejs/kit'; | ||
|
||
export const manifest: SSRManifest; | ||
export const prerendered: Set<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
Oops, something went wrong.