Skip to content

Commit

Permalink
Migrate to svelte 5
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Oct 24, 2024
1 parent 03a580d commit 01dcd18
Show file tree
Hide file tree
Showing 12 changed files with 270 additions and 224 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/pnpapi": "^0.0.5",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"svelte": "^4.2.19",
"svelte": "^5.1.0",
"typescript": "^5.6.3"
}
}
150 changes: 62 additions & 88 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"publint": "workspace:*"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.2",
"@sveltejs/vite-plugin-svelte": "^4.0.0",
"@unocss/core": "^0.63.6",
"@unocss/extractor-svelte": "^0.63.6",
"@unocss/preset-uno": "^0.63.6",
Expand All @@ -29,7 +29,7 @@
"remark-parse": "^11.0.0",
"remark-rehype": "^11.1.1",
"shiki": "^1.22.0",
"svelte": "^4.2.19",
"svelte": "^5.1.0",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"vite": "^5.4.10"
Expand Down
13 changes: 9 additions & 4 deletions site/src/components/Analysis.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@
import severityWarning from '../assets/severity-warning.svg'
import severityError from '../assets/severity-error.svg'
/** @type {Record<string, number>} */
export let results
/**
* @typedef {Object} Props
* @property {Record<string, number>} results
*/
/** @type {Props} */
let { results } = $props()
let open = false
let open = $state(false)
/**
* @param {number} num
Expand Down Expand Up @@ -106,7 +111,7 @@
>
<button
class="action-button pointer-events-initial"
on:click={() => (open = true)}
onclick={() => (open = true)}
>
View all {Object.keys(results).length} packages
</button>
Expand Down
Loading

0 comments on commit 01dcd18

Please sign in to comment.