Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
We had to change the eventDispatcher for events that shouldn't have a
second parameter to `null` instead of `never`.

See: sveltejs/svelte#8872

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
  • Loading branch information
sebastinez committed Jul 7, 2023
1 parent e0e659f commit f9a8baf
Show file tree
Hide file tree
Showing 9 changed files with 375 additions and 390 deletions.
723 changes: 354 additions & 369 deletions package-lock.json

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -32,40 +32,40 @@
"@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",
"lodash": "^4.17.21",
"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"
}
Expand Down
2 changes: 1 addition & 1 deletion src/App/Header/Search.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import TextInput from "@app/components/TextInput.svelte";
const dispatch = createEventDispatcher<{
finished: never;
finished: null;
}>();
export let input = "";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Clipboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/components/Comment.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
export let caption = "commented";
export let rawPath: string;
const dispatch = createEventDispatcher<{ toggleReply: never }>();
const dispatch = createEventDispatcher<{ toggleReply: null }>();
</script>

<style>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let title: string | undefined = undefined;
const dispatch = createEventDispatcher<{
afterNavigate: never;
afterNavigate: null;
}>();
function navigateToRoute(event: MouseEvent): void {
Expand Down
2 changes: 1 addition & 1 deletion src/components/ProjectLink.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
const dispatch = createEventDispatcher<{
blur: FocusEvent;
focus: FocusEvent;
submit: never;
submit: null;
}>();
let rightContainerWidth: number;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Textarea.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
const dispatch = createEventDispatcher<{
submit: never;
submit: null;
}>();
function handleKeydown(event: KeyboardEvent) {
Expand Down

0 comments on commit f9a8baf

Please sign in to comment.