Update dependencies

We had to change the eventDispatcher for events that shouldn't have a
second parameter to `null` instead of `never`.

See: https://github.com/sveltejs/svelte/pull/8872

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
Sebastian Martinez
2023-07-09 14:02:58 +02:00
committed by Rūdolfs Ošiņš
parent 999a3a4c30
commit bde2d97c9b
9 changed files with 375 additions and 390 deletions
+354 -369
View File
File diff suppressed because it is too large Load Diff
+14 -14
View File
@@ -21,7 +21,7 @@
"devDependencies": {
"@playwright/test": "^1.35.1",
"@sinonjs/fake-timers": "^11.0.0",
"@sveltejs/vite-plugin-svelte": "^2.4.1",
"@sveltejs/vite-plugin-svelte": "^2.4.2",
"@tsconfig/svelte": "^5.0.0",
"@types/dompurify": "^3.0.2",
"@types/katex": "^0.16.0",
@@ -32,31 +32,31 @@
"@types/sinon": "^10.0.15",
"@types/sinonjs__fake-timers": "^8.1.2",
"@types/wait-on": "^5.3.1",
"@typescript-eslint/eslint-plugin": "^5.60.1",
"chalk": "^5.2.0",
"eslint": "^8.43.0",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"chalk": "^5.3.0",
"eslint": "^8.44.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"eslint-plugin-svelte": "^2.31.1",
"eslint-plugin-svelte": "^2.32.2",
"execa": "^7.1.1",
"exit-hook": "^3.2.0",
"get-port": "^7.0.0",
"happy-dom": "^9.20.3",
"happy-dom": "^10.0.3",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"svelte-check": "^3.4.3",
"typescript": "^5.1.5",
"vite": "^4.3.9",
"vitest": "^0.32.2",
"svelte-check": "^3.4.5",
"typescript": "^5.1.6",
"vite": "^4.4.2",
"vitest": "^0.33.0",
"wait-on": "^7.0.1"
},
"dependencies": {
"@radicle/gray-matter": "4.1.0",
"@wooorm/starry-night": "^2.0.0",
"@wooorm/starry-night": "^2.1.1",
"async-mutex": "^0.4.0",
"baconjs": "^3.0.17",
"bs58": "^5.0.0",
"buffer": "^6.0.3",
"dompurify": "^3.0.3",
"dompurify": "^3.0.4",
"hast-util-to-dom": "^3.1.1",
"hast-util-to-html": "^8.0.4",
"katex": "^0.16.8",
@@ -64,8 +64,8 @@
"marked": "^5.1.0",
"md5": "^2.3.0",
"plausible-tracker": "^0.3.8",
"sinon": "^15.1.2",
"svelte": "^4.0.0",
"sinon": "^15.2.0",
"svelte": "^4.0.5",
"twemoji": "^14.0.2",
"zod": "^3.21.4"
}
+1 -1
View File
@@ -13,7 +13,7 @@
import TextInput from "@app/components/TextInput.svelte";
const dispatch = createEventDispatcher<{
finished: never;
finished: null;
}>();
export let input = "";
+1 -1
View File
@@ -10,7 +10,7 @@
export let small = false;
export let tooltip: string | undefined = undefined;
const dispatch = createEventDispatcher<{ copied: never }>();
const dispatch = createEventDispatcher<{ copied: null }>();
let icon: "clipboard-small" | "checkmark-small" | "clipboard" | "checkmark" =
small ? "clipboard-small" : "clipboard";
+1 -1
View File
@@ -19,7 +19,7 @@
export let caption = "commented";
export let rawPath: string;
const dispatch = createEventDispatcher<{ toggleReply: never }>();
const dispatch = createEventDispatcher<{ toggleReply: null }>();
</script>
<style>
+1 -1
View File
@@ -8,7 +8,7 @@
export let title: string | undefined = undefined;
const dispatch = createEventDispatcher<{
afterNavigate: never;
afterNavigate: null;
}>();
function navigateToRoute(event: MouseEvent): void {
+1 -1
View File
@@ -13,7 +13,7 @@
>;
export let title: string | undefined = undefined;
const dispatch = createEventDispatcher<{ click: never }>();
const dispatch = createEventDispatcher<{ click: null }>();
function navigateToRoute(event: MouseEvent): void {
if (useDefaultNavigation(event)) {
+1 -1
View File
@@ -22,7 +22,7 @@
const dispatch = createEventDispatcher<{
blur: FocusEvent;
focus: FocusEvent;
submit: never;
submit: null;
}>();
let rightContainerWidth: number;
+1 -1
View File
@@ -28,7 +28,7 @@
}
const dispatch = createEventDispatcher<{
submit: never;
submit: null;
}>();
function handleKeydown(event: KeyboardEvent) {