-
-
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.
Remove
sveltekit:start
event (#6484)
* Remove sveltekit:start event Closes #6448 * setup * rename docs files * Update .changeset/perfect-cycles-smell.md * comments Co-authored-by: Gaurav Singh <allstargaurav@gmail.com>
- Loading branch information
1 parent
cade00d
commit 70bc001
Showing
19 changed files
with
57 additions
and
56 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 | ||
--- | ||
|
||
[breaking] Remove sveltekit:start event |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,7 @@ | ||
<script> | ||
import { setup } from '../../../../setup.js'; | ||
setup(); | ||
</script> | ||
|
||
<slot /> |
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,7 @@ | ||
<script> | ||
import { setup } from '../../../../setup.js'; | ||
setup(); | ||
</script> | ||
|
||
<slot /> |
20 changes: 2 additions & 18 deletions
20
packages/kit/test/apps/options/source/pages/+layout.svelte
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 |
---|---|---|
@@ -1,23 +1,7 @@ | ||
<script> | ||
import { | ||
goto, | ||
invalidate, | ||
prefetch, | ||
prefetchRoutes, | ||
beforeNavigate, | ||
afterNavigate | ||
} from '$app/navigation'; | ||
import { setup } from '../../../../setup.js'; | ||
if (typeof window !== 'undefined') { | ||
Object.assign(window, { | ||
goto, | ||
invalidate, | ||
prefetch, | ||
prefetchRoutes, | ||
beforeNavigate, | ||
afterNavigate | ||
}); | ||
} | ||
setup(); | ||
</script> | ||
|
||
<slot /> |
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,7 @@ | ||
<script> | ||
import { setup } from '../../../../setup.js'; | ||
setup(); | ||
</script> | ||
|
||
<slot /> |
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,26 @@ | ||
import { | ||
goto, | ||
invalidate, | ||
prefetch, | ||
prefetchRoutes, | ||
beforeNavigate, | ||
afterNavigate | ||
} from '$app/navigation'; | ||
import { onMount } from 'svelte'; | ||
|
||
export function setup() { | ||
onMount(() => { | ||
// give tests programmatic control over the app | ||
Object.assign(window, { | ||
goto, | ||
invalidate, | ||
prefetch, | ||
prefetchRoutes, | ||
beforeNavigate, | ||
afterNavigate | ||
}); | ||
|
||
// communicate that the app is ready | ||
document.body.classList.add('started'); | ||
}); | ||
} |
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