-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] application versioning and update detection support (#3412)
* Version Packages (next) * Remove optional function and add "reload" option to router's onError configuration * Add app version and only reload if navigation fails and version changed * Remove unused code * Update packages/kit/src/core/build/build_client.js * Update packages/kit/src/core/build/build_client.js * Make version and check interval configurable * Restore original router configuration without error option * Fix instantiation of "updated" store * Fix pnpm-lock.yaml * Update packages/kit/src/core/build/build_client.js Co-authored-by: Rich Harris <richard.a.harris@gmail.com> * Update packages/kit/src/runtime/app/env.js Co-authored-by: Rich Harris <richard.a.harris@gmail.com> * Update packages/kit/src/core/config/options.js Co-authored-by: Rich Harris <richard.a.harris@gmail.com> * Patch tests to work with version timestamp * Update packages/kit/src/core/adapt/prerender/fixtures/large-page/input.html * Update packages/kit/src/core/adapt/prerender/fixtures/large-page/output.json * Update packages/kit/src/core/adapt/prerender/fixtures/large-page/input.html * Remove version from $app/env * Apply suggestions from code review Co-authored-by: Rich Harris <richard.a.harris@gmail.com> * Use default version poll interval to 0 (don't poll) * Only poll if interval is a positive number * Better documentation of "updated" store * Apply suggestions from code review Co-authored-by: Rich Harris <richard.a.harris@gmail.com> * Update documentation/docs/14-configuration.md Co-authored-by: Rich Harris <richard.a.harris@gmail.com> * reuse updated store * return false * always set poll interval * lint * make updated store stop polling once change is detected * use VITE_SVELTEKIT_ namespace * Update documentation/docs/14-configuration.md * Update documentation/docs/14-configuration.md * oops * changeset Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Philipp Zerelles <philipp@zerelles.com> Co-authored-by: Rich Harris <hello@rich-harris.dev> Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
- Loading branch information
1 parent
0915768
commit c7fdb89
Showing
12 changed files
with
149 additions
and
9 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 | ||
--- | ||
|
||
Add version config and expose updated store |
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