-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Shadow endpoints #3679
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
Merged
Merged
Shadow endpoints #3679
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
86f35e9
failing test for shadowed pages
Rich-Harris e00e254
find shadowed pages
Rich-Harris c8d4dd3
store endpoint filename
Rich-Harris 01e56bb
update unit tests
Rich-Harris f8a323c
load shadow data
Rich-Harris 1455d1b
Merge branch 'master' into shadow-endpoints
Rich-Harris b6f740a
add shadow request handler type
Rich-Harris 37cb09b
Merge branch 'master' into shadow-endpoints
Rich-Harris 87a3904
fix types
Rich-Harris 674bfd1
basic shadow endpoint working with SSR
Rich-Harris 87437aa
implement __data.json
Rich-Harris 98e76a5
serialize shadow props
Rich-Harris 7632326
load shadow props in hydration and client-side navigation
Rich-Harris 94363e5
lint
Rich-Harris 2eb28c2
lint
Rich-Harris 47195a5
unfocus test
Rich-Harris b8b4220
handle redirects
Rich-Harris 5b63a08
more tests
Rich-Harris 754c75a
generate __data.json files when prerendering
Rich-Harris ccf071d
prevent prerendering of pages shadowed by non-GET methods
Rich-Harris 6510f43
lint
Rich-Harris 62b5164
changeset
Rich-Harris e912ad5
remove old shadowing test
Rich-Harris af21b10
start simplifying todos page in default template
Rich-Harris 5c6a958
content negotiation
Rich-Harris 1b59a8a
mark shadow endpoint as dependency of page
Rich-Harris fe4f704
lint
Rich-Harris cb5c3da
revert changes for CI
Rich-Harris 0326a10
tweak enhance signature
Rich-Harris dfaa24b
update docs
Rich-Harris 96a14d5
more docs
Rich-Harris 108db32
merge master
Rich-Harris 6cb75db
mention accept: application/json
Rich-Harris 3f86c1e
undo template change that was for local testing
Rich-Harris dc4cc20
Update documentation/docs/03-loading.md
Rich-Harris 05bd60a
Update packages/create-svelte/templates/default/svelte.config.js
Rich-Harris 74584ea
safer DATA_SUFFIX
Rich-Harris 17ed223
remove comment, we decided on a 405
Rich-Harris 238d1b0
Merge branch 'master' into shadow-endpoints
Rich-Harris File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 | ||
| --- | ||
|
|
||
| Implement shadow endpoints |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.