Skip to content

Commit

Permalink
chore: pin vue versions because of withDefaults bug in compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Sep 10, 2024
1 parent 4d49e2b commit 00dd266
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 105 deletions.
11 changes: 3 additions & 8 deletions packages/docs/.vitepress/theme/components/HomeSponsorsGroup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,15 @@ import sponsors from './sponsors.json'
import { computed } from 'vue'
import { useData } from 'vitepress'
const props = withDefaults(
defineProps<{
const { name, size = 140 } = defineProps<{
name: 'Gold' | 'Platinum' | 'Silver' | 'Bronze'
size?: number | string
}>(),
{
size: 140,
}
)
}>()
const { isDark } = useData()
const list = computed(() =>
sponsors[props.name.toLowerCase()].map(sponsor => ({
sponsors[name.toLowerCase()].map(sponsor => ({
...sponsor,
imgSrc: isDark.value ? sponsor.imgSrcDark : sponsor.imgSrcLight,
}))
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/api/interfaces/RouteMeta.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare module 'vue-router' {
interface RouteMeta {
requiresAuth?: boolean
}
}
}
```

## Hierarchy
Expand Down
4 changes: 2 additions & 2 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
"preview": "vite preview --port 4173"
},
"dependencies": {
"vue": "^3.5.3"
"vue": "~3.4.3"
},
"devDependencies": {
"@types/node": "^20.16.5",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/compiler-sfc": "^3.5.3",
"@vue/compiler-sfc": "~3.4.3",
"@vue/tsconfig": "^0.5.1",
"typescript": "~5.3.3",
"vite": "^5.4.3",
Expand Down
6 changes: 3 additions & 3 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@
"@vitejs/plugin-vue": "^5.1.3",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@vue/compiler-sfc": "^3.5.3",
"@vue/server-renderer": "^3.5.3",
"@vue/compiler-sfc": "~3.4.3",
"@vue/server-renderer": "~3.4.3",
"@vue/test-utils": "^2.4.6",
"browserstack-local": "^1.5.5",
"chromedriver": "^128.0.1",
Expand All @@ -148,6 +148,6 @@
"typescript": "~5.3.3",
"vite": "^5.4.3",
"vitest": "^1.6.0",
"vue": "^3.5.3"
"vue": "~3.4.3"
}
}
121 changes: 30 additions & 91 deletions pnpm-lock.yaml

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

0 comments on commit 00dd266

Please sign in to comment.