-
-
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.
Replace
data-sveltekit-prefetch
/prefetch(...)
/`prefetchRoutes(...…
…)` (#7776) * rename prefetch -> preload and prefetchRoutes -> prepare, tweak prepare API * rename data-sveltekit-prefetch to data-sveltekit-preload * update migration guide * various * shuffle some things around * refactor a tiny bit * fix * implement data-sveltekit-prepare * make it slightly more self-contained * keyboard events * named constants * handle malformed URLs * rename * use data-sveltekit-preload-code and data-sveltekit-preload-data * rename stuff * fix * docs * missed a spot * changesets * clarification * fix migration guide * tidy up * feat: Typing improvements to preload PR (#7841) * feat: Improve typings on data-sveltekit attributes * feat: improved constants * Update packages/kit/src/runtime/client/utils.js Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> * remove dev guard from validateAttributeValue * snake_case * dot notation * shorter name so prettier doesnt butcher the code * shorter name * get typechecking working * neaten * oops * tweak Co-authored-by: Rich Harris <richard.a.harris@gmail.com> Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Co-authored-by: Rich Harris <hello@rich-harris.dev> * Update documentation/docs/30-advanced/30-link-options.md * move up explanation of mobile behaviour * clarify * Update packages/kit/src/runtime/client/client.js Co-authored-by: S. Elliott Johnson <sejohnson@torchcloudconsulting.com> * change "page" to "eager" * make side-effecty * oops * fix docs Co-authored-by: S. Elliott Johnson <sejohnson@torchcloudconsulting.com> Co-authored-by: gtmnayan <50981692+gtm-nayan@users.noreply.github.com>
- Loading branch information
1 parent
191583c
commit 02ba6a6
Showing
38 changed files
with
384 additions
and
209 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/kit': patch | ||
'create-svelte': patch | ||
--- | ||
|
||
[breaking] Replace `data-sveltekit-prefetch` with `-preload-code` and `-preload-data` |
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] Rename `prefetch` to `preloadData` and `prefetchRoutes` to `preloadCode` |
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
Oops, something went wrong.