Skip to content

Commit 5439714

Browse files
committed
REPL default to v4
1 parent 0596c47 commit 5439714

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

sites/svelte.dev/src/routes/(authed)/repl/[id]/+page.server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ export async function load({ fetch, params, url }) {
1111

1212
return {
1313
gist,
14-
version: url.searchParams.get('version') || '4.0.0-next.2'
14+
version: url.searchParams.get('version') || '4'
1515
};
1616
}

sites/svelte.dev/src/routes/(authed)/repl/[id]/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
3333
onMount(() => {
3434
if (data.version !== 'local') {
35-
fetch(`https://unpkg.com/svelte@${data.version || '4.0.0-next.2'}/package.json`)
35+
fetch(`https://unpkg.com/svelte@${data.version || '4'}/package.json`)
3636
.then((r) => r.json())
3737
.then((pkg) => {
3838
version = pkg.version;

sites/svelte.dev/src/routes/(authed)/repl/create.json/+server.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
import { json } from '@sveltejs/kit';
2-
import * as session from '$lib/db/session';
31
import * as gist from '$lib/db/gist';
4-
import { error } from '@sveltejs/kit';
2+
import * as session from '$lib/db/session';
3+
import { error, json } from '@sveltejs/kit';
54

65
export async function POST({ request }) {
76
const user = await session.from_cookie(request.headers.get('cookie'));

0 commit comments

Comments
 (0)