-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Replace data-sveltekit-prefetch
/prefetch(...)
/prefetchRoutes(...)
#7776
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
Changes from 23 commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7aec177
rename prefetch -> preload and prefetchRoutes -> prepare, tweak prepa…
Rich-Harris ed76835
rename data-sveltekit-prefetch to data-sveltekit-preload
Rich-Harris 8ef3787
update migration guide
Rich-Harris b527f88
various
Rich-Harris cf31708
shuffle some things around
Rich-Harris bca2620
refactor a tiny bit
Rich-Harris 30df4fe
fix
Rich-Harris 2b940ff
implement data-sveltekit-prepare
Rich-Harris ff05f38
make it slightly more self-contained
Rich-Harris 5eac541
keyboard events
Rich-Harris 44a6f32
named constants
Rich-Harris c8c0332
handle malformed URLs
Rich-Harris 20068be
merge master
Rich-Harris 8d8bf76
rename
Rich-Harris 0a592bf
use data-sveltekit-preload-code and data-sveltekit-preload-data
Rich-Harris b2ae571
rename stuff
Rich-Harris b5cec95
fix
Rich-Harris 3920671
docs
Rich-Harris d0ab6b9
missed a spot
Rich-Harris 09028cb
changesets
Rich-Harris bb356d9
clarification
Rich-Harris cfe78b2
fix migration guide
Rich-Harris e3428a2
tidy up
Rich-Harris bd470a3
feat: Typing improvements to preload PR (#7841)
elliott-with-the-longest-name-on-github 3338a6d
Update documentation/docs/30-advanced/30-link-options.md
Rich-Harris d483848
move up explanation of mobile behaviour
Rich-Harris 5f3a7aa
clarify
Rich-Harris 8abb732
Merge branch 'gh-7289' of github.com:sveltejs/kit into gh-7289
Rich-Harris e69e30a
Update packages/kit/src/runtime/client/client.js
Rich-Harris 9fde16c
change "page" to "eager"
Rich-Harris eae754a
Merge branch 'gh-7289' of github.com:sveltejs/kit into gh-7289
Rich-Harris bb73d82
make side-effecty
Rich-Harris 6e32028
oops
Rich-Harris 2553a9d
fix docs
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,6 @@ | ||
--- | ||
'@sveltejs/kit': patch | ||
'create-svelte': patch | ||
--- | ||
|
||
[breaking] Replace `data-sveltekit-prefetch` with `-preload-code` and `-preload-data` |
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 | ||
--- | ||
|
||
[breaking] Rename `prefetch` to `preloadData` and `prefetchRoutes` to `preloadCode` |
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
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.