* bump deps

* migrate

* fix

* downgrade jsdom/playwright

* fix a type error

* downgrade svelte

* prettier

* downgrade rollup

* downgrade other deps

* gah

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
ttf-fix
Rich Harris 11 months ago committed by GitHub
parent 83628c901d
commit 7c70c346f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -26,22 +26,22 @@
"changeset:publish": "changeset publish"
},
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@changesets/cli": "^2.27.1",
"@sveltejs/eslint-config": "^6.0.4",
"@types/node": "^18.18.8",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@vitest/coverage-v8": "^0.34.6",
"concurrently": "^8.2.0",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@types/node": "^20.11.5",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@vitest/coverage-v8": "^1.2.1",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"eslint": "^8.49.0",
"eslint-plugin-lube": "^0.1.7",
"eslint": "^8.56.0",
"eslint-plugin-lube": "^0.4.3",
"jsdom": "22.0.0",
"playwright": "^1.35.1",
"prettier": "^3.1.1",
"prettier": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
"typescript": "^5.3.3",
"vitest": "^1.2.1"
},
"pnpm": {
"overrides": {

@ -99,16 +99,16 @@
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@jridgewell/trace-mapping": "^0.3.19",
"@jridgewell/trace-mapping": "^0.3.22",
"@playwright/test": "^1.35.1",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-virtual": "^3.0.2",
"@types/aria-query": "^5.0.3",
"dts-buddy": "^0.4.3",
"esbuild": "^0.19.2",
"rollup": "^4.1.5",
"@types/aria-query": "^5.0.4",
"dts-buddy": "^0.4.4",
"esbuild": "^0.19.11",
"rollup": "^4.9.5",
"source-map": "^0.7.4",
"tiny-glob": "^0.2.9"
},
@ -116,15 +116,15 @@
"@ampproject/remapping": "^2.2.1",
"@jridgewell/sourcemap-codec": "^1.4.15",
"@types/estree": "^1.0.5",
"acorn": "^8.10.0",
"acorn": "^8.11.3",
"acorn-typescript": "^1.4.13",
"aria-query": "^5.3.0",
"axobject-query": "^4.0.0",
"esm-env": "^1.0.0",
"esrap": "^1.2.1",
"is-reference": "^3.0.1",
"is-reference": "^3.0.2",
"locate-character": "^3.0.0",
"magic-string": "^0.30.4",
"magic-string": "^0.30.5",
"zimmerframe": "^1.1.0"
}
}

@ -136,12 +136,8 @@ export class SvelteComponentTyped<
* <Component on:close={handleCloseEvent} />
* ```
*/
export type ComponentEvents<Comp extends SvelteComponent> = Comp extends SvelteComponent<
any,
infer Events
>
? Events
: never;
export type ComponentEvents<Comp extends SvelteComponent> =
Comp extends SvelteComponent<any, infer Events> ? Events : never;
/**
* Convenience type to get the props the given component expects. Example:
@ -154,9 +150,8 @@ export type ComponentEvents<Comp extends SvelteComponent> = Comp extends SvelteC
* </script>
* ```
*/
export type ComponentProps<Comp extends SvelteComponent> = Comp extends SvelteComponent<infer Props>
? Props
: never;
export type ComponentProps<Comp extends SvelteComponent> =
Comp extends SvelteComponent<infer Props> ? Props : never;
/**
* Convenience type to get the type of a Svelte component. Useful for example in combination with

@ -13,6 +13,5 @@ export type Stores =
| Array<Readable<any>>;
/** One or more values from `Readable` stores. */
export type StoresValues<T> = T extends Readable<infer U>
? U
: { [K in keyof T]: T[K] extends Readable<infer U> ? U : never };
export type StoresValues<T> =
T extends Readable<infer U> ? U : { [K in keyof T]: T[K] extends Readable<infer U> ? U : never };

@ -137,12 +137,8 @@ declare module 'svelte' {
* <Component on:close={handleCloseEvent} />
* ```
*/
export type ComponentEvents<Comp extends SvelteComponent> = Comp extends SvelteComponent<
any,
infer Events
>
? Events
: never;
export type ComponentEvents<Comp extends SvelteComponent> =
Comp extends SvelteComponent<any, infer Events> ? Events : never;
/**
* Convenience type to get the props the given component expects. Example:
@ -155,9 +151,8 @@ declare module 'svelte' {
* </script>
* ```
*/
export type ComponentProps<Comp extends SvelteComponent> = Comp extends SvelteComponent<infer Props>
? Props
: never;
export type ComponentProps<Comp extends SvelteComponent> =
Comp extends SvelteComponent<infer Props> ? Props : never;
/**
* Convenience type to get the type of a Svelte component. Useful for example in combination with
@ -1985,9 +1980,8 @@ declare module 'svelte/store' {
| Array<Readable<any>>;
/** One or more values from `Readable` stores. */
type StoresValues<T> = T extends Readable<infer U>
? U
: { [K in keyof T]: T[K] extends Readable<infer U> ? U : never };
type StoresValues<T> =
T extends Readable<infer U> ? U : { [K in keyof T]: T[K] extends Readable<infer U> ? U : never };
/**
* Creates a `Readable` store that allows reading by subscription.
*

@ -11,10 +11,10 @@
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^2.5.1",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"express": "^4.18.2",
"nodemon": "^3.0.1",
"nodemon": "^3.0.3",
"svelte": "workspace:*",
"vite": "^4.5.1"
"vite": "^5.0.12"
}
}

@ -5,7 +5,7 @@
"license": "MIT",
"version": "0.0.1",
"dependencies": {
"@types/minimist": "^1.2.2",
"@types/minimist": "^1.2.5",
"minimist": "^1.2.8",
"svelte": "workspace:^",
"tiny-glob": "^0.2.9"

File diff suppressed because it is too large Load Diff

@ -13,21 +13,22 @@
},
"devDependencies": {
"@fontsource/fira-mono": "^5.0.8",
"@sveltejs/adapter-static": "^2.0.3",
"@sveltejs/adapter-vercel": "^3.0.3",
"@sveltejs/kit": "^1.22.5",
"@sveltejs/site-kit": "6.0.0-next.51",
"@types/marked": "^5.0.1",
"@sveltejs/adapter-static": "^3.0.1",
"@sveltejs/adapter-vercel": "^4.0.0",
"@sveltejs/kit": "^2.4.1",
"@sveltejs/site-kit": "6.0.0-next.59",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/marked": "^6.0.0",
"esrap": "^1.2.1",
"marked": "^9.0.0",
"publint": "^0.2.0",
"shiki": "^0.14.4",
"publint": "^0.2.7",
"shiki": "^0.14.7",
"shiki-twoslash": "^3.1.2",
"svelte": "^4.2.0",
"svelte-check": "^3.5.0",
"tslib": "^2.6.1",
"typescript": "^5.2.2",
"vite": "^4.5.1"
"svelte-check": "^3.6.3",
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"vite": "^5.0.12"
},
"dependencies": {
"@codemirror/autocomplete": "^6.9.1",

@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export function load() {
throw redirect(307, '/docs/introduction');
redirect(307, '/docs/introduction');
}

@ -13,7 +13,7 @@ export async function load({ params }) {
const data = await get_docs_data();
const processed_page = await get_parsed_docs(data, params.slug);
if (!processed_page) throw error(404);
if (!processed_page) error(404);
return { page: processed_page };
}

@ -1,5 +1,5 @@
import { redirect } from '@sveltejs/kit';
export function load() {
throw redirect(308, '/docs/faq');
redirect(308, '/docs/faq');
}

@ -18,43 +18,43 @@
},
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.4.15",
"@supabase/supabase-js": "^2.33.2",
"@supabase/supabase-js": "^2.39.3",
"@sveltejs/repl": "0.6.0",
"cookie": "^0.5.0",
"cookie": "^0.6.0",
"devalue": "^4.3.2",
"do-not-zip": "^1.0.0",
"flexsearch": "^0.7.31",
"flexsearch": "^0.7.43",
"flru": "^1.0.2"
},
"devDependencies": {
"@resvg/resvg-js": "^2.4.1",
"@sveltejs/adapter-vercel": "^3.0.3",
"@sveltejs/kit": "^1.26.0",
"@sveltejs/site-kit": "6.0.0-next.50",
"@sveltejs/vite-plugin-svelte": "^2.4.6",
"@types/cookie": "^0.5.2",
"@types/node": "^20.5.9",
"browserslist": "^4.21.10",
"@resvg/resvg-js": "^2.6.0",
"@sveltejs/adapter-vercel": "^4.0.0",
"@sveltejs/kit": "^2.4.1",
"@sveltejs/site-kit": "6.0.0-next.59",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@types/cookie": "^0.6.0",
"@types/node": "^20.11.5",
"browserslist": "^4.22.2",
"degit": "^2.8.4",
"dotenv": "^16.3.1",
"dotenv": "^16.3.2",
"jimp": "^0.22.10",
"lightningcss": "^1.21.8",
"magic-string": "^0.30.3",
"marked": "^9.0.0",
"prettier": "^3.1.1",
"lightningcss": "^1.23.0",
"magic-string": "^0.30.5",
"marked": "^11.1.1",
"prettier": "^3.2.4",
"prettier-plugin-svelte": "^3.1.2",
"sass": "^1.67.0",
"satori": "^0.10.4",
"sass": "^1.70.0",
"satori": "^0.10.11",
"satori-html": "^0.3.2",
"shelljs": "^0.8.5",
"shiki": "^0.14.4",
"shiki": "^0.14.7",
"shiki-twoslash": "^3.1.2",
"svelte": "^4.2.0",
"svelte-check": "^3.5.1",
"svelte-preprocess": "^5.0.4",
"svelte-check": "^3.6.3",
"svelte-preprocess": "^5.1.3",
"tiny-glob": "^0.2.9",
"typescript": "^5.2.2",
"vite": "^4.5.1",
"vite-imagetools": "^5.0.8"
"typescript": "^5.3.3",
"vite": "^5.0.12",
"vite-imagetools": "^6.2.9"
}
}

@ -7,6 +7,6 @@ export const config = {
export async function load({ request }) {
return {
user: session.from_cookie(request.headers.get('cookie'))
user: await session.from_cookie(request.headers.get('cookie'))
};
}

@ -9,7 +9,7 @@ export function load({ url }) {
// redirect to v2 REPL if appropriate
if (version && /^[^>]?[12]/.test(version)) {
throw redirect(302, `https://v2.svelte.dev/repl?${query}`);
redirect(302, `https://v2.svelte.dev/repl?${query}`);
}
const id = gist || example || 'hello-world';
@ -17,5 +17,5 @@ export function load({ url }) {
const q = new URLSearchParams();
if (version) q.set('version', version);
if (vim) q.set('vim', vim);
throw redirect(301, `/repl/${id}?${q}`);
redirect(301, `/repl/${id}?${q}`);
}

@ -4,7 +4,7 @@ export async function load({ fetch, params, url }) {
const res = await fetch(`/repl/api/${params.id}.json`);
if (!res.ok) {
throw error(res.status);
error(/** @type {any} */ (res.status)); // TODO loosen the types so we can get rid of this
}
const gist = await res.json();

@ -73,13 +73,13 @@ export async function GET({ params }) {
}
if (!UUID_REGEX.test(params.id)) {
throw error(404);
error(404);
}
const app = await gist.read(params.id);
if (!app) {
throw error(404, 'not found');
error(404, 'not found');
}
return json({

@ -4,7 +4,7 @@ import { error, json } from '@sveltejs/kit';
export async function POST({ request }) {
const user = await session.from_cookie(request.headers.get('cookie'));
if (!user) throw error(401);
if (!user) error(401);
const body = await request.json();
const result = await gist.create(user, body);

@ -5,7 +5,7 @@ import { error } from '@sveltejs/kit';
// TODO reimplement as an action
export async function PUT({ params, request }) {
const user = await session.from_cookie(request.headers.get('cookie'));
if (!user) throw error(401, 'Unauthorized');
if (!user) error(401, 'Unauthorized');
const body = await request.json();
await gist.update(user, params.id, body);

@ -11,7 +11,7 @@ export const GET = client_id
redirect_uri: `${url.origin}/auth/callback`
}).toString();
throw redirect(302, Location);
redirect(302, Location);
}
: () =>
new Response(

@ -6,7 +6,7 @@ export const prerender = true;
export async function load({ params }) {
const post = await get_processed_blog_post(await get_blog_data(), params.slug);
if (!post) throw error(404);
if (!post) error(404);
// forgive me — terrible hack necessary to get diffs looking sensible
// on the `runes` blog post

@ -14,7 +14,7 @@ export const prerender = true;
export async function GET({ params }) {
const post = await get_processed_blog_post(await get_blog_data(), params.slug);
if (!post) throw error(404);
if (!post) error(404);
// @ts-ignore
const result = Card.render({ post });

@ -2,5 +2,5 @@ import { redirect } from '@sveltejs/kit';
import { dev } from '$app/environment';
export function load() {
throw redirect(dev ? 307 : 308, '/docs');
redirect(dev ? 307 : 308, '/docs');
}

@ -6,7 +6,7 @@ export const prerender = true;
export async function load({ params }) {
const processed_page = await get_parsed_docs(await get_docs_data(), params.slug);
if (!processed_page) throw error(404);
if (!processed_page) error(404);
return { page: processed_page };
}

@ -3,5 +3,5 @@ import { redirect } from '@sveltejs/kit';
export const prerender = true;
export function load() {
throw redirect(301, 'examples/hello-world');
redirect(301, 'examples/hello-world');
}

@ -12,7 +12,7 @@ export const GET = ({ params }) => {
.map((example) => example.slug)
);
if (!examples.has(params.slug)) throw error(404, 'Example not found');
if (!examples.has(params.slug)) error(404, 'Example not found');
return json(get_example(examples_data, params.slug));
};

@ -3,5 +3,5 @@ import { redirect } from '@sveltejs/kit';
export const prerender = true;
export function GET() {
throw redirect(308, '/docs/faq');
redirect(308, '/docs/faq');
}

@ -1,8 +1,5 @@
import { redirect } from '@sveltejs/kit';
export function load() {
throw redirect(
307,
'https://docs.google.com/document/d/1IA9Z5rcIm_KRxvh_L42d2NDdYRHZ72MfszhyJrsmf5A'
);
redirect(307, 'https://docs.google.com/document/d/1IA9Z5rcIm_KRxvh_L42d2NDdYRHZ72MfszhyJrsmf5A');
}

@ -3,5 +3,5 @@ import { redirect } from '@sveltejs/kit';
export const prerender = true;
export function load() {
throw redirect(301, '/tutorial/basics');
redirect(301, '/tutorial/basics');
}

@ -8,14 +8,14 @@ import { error, redirect } from '@sveltejs/kit';
export const prerender = true;
export async function load({ params }) {
if (params.slug === 'local-transitions') throw redirect(307, '/tutorial/global-transitions');
if (params.slug === 'local-transitions') redirect(307, '/tutorial/global-transitions');
const tutorial_data = await get_tutorial_data();
const tutorials_list = get_tutorial_list(tutorial_data);
const tutorial = await get_parsed_tutorial(tutorial_data, params.slug);
if (!tutorial) throw error(404);
if (!tutorial) error(404);
return {
tutorials_list,

Loading…
Cancel
Save