Skip to content

Commit a3f4663

Browse files
authored
Small clean-ups and dependency updates (#131)
* Correctly group fallback values Fixes warning: > The "??" operator here will always return the left operand * Remove unused 'sitemap' dep * Move all deps to devDependencies * Bump pnpm to 8.15.0 * Update links * Update all deps * Define model type to fix warn * Add missing deps * Update GitHub actions
1 parent a6d9fbd commit a3f4663

File tree

6 files changed

+1462
-736
lines changed

6 files changed

+1462
-736
lines changed

.github/actions/prepare/action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
node-version: 20
1515
registry-url: ${{ inputs.registry }}
1616

17-
- uses: pnpm/action-setup@v2
17+
- uses: pnpm/action-setup@v3
1818
name: Install pnpm
1919
id: pnpm-install
2020
with:
@@ -26,7 +26,7 @@ runs:
2626
run: |
2727
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
2828
29-
- uses: actions/cache@v3
29+
- uses: actions/cache@v4
3030
name: Setup pnpm cache
3131
with:
3232
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}

components/Base/SlideIndicator.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defineProps<{
33
length: number;
44
}>();
55
6-
const modelValue = defineModel();
6+
const modelValue = defineModel<number>();
77
</script>
88

99
<template>

components/Block/CardGroupDynamic.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const filter = computed(() => {
4545
});
4646
4747
const { data: cards, pending } = await useAsyncData(
48-
'cards-' + props.uuid + unref(block)?.collection ?? '' + unref(block)?.filter ?? '',
48+
'cards-' + props.uuid + (unref(block)?.collection ?? '') + (unref(block)?.filter ?? ''),
4949
async () => {
5050
const context = unref(block);
5151
@@ -138,7 +138,7 @@ const { data: cards, pending } = await useAsyncData(
138138
);
139139
140140
const { data: count } = await useAsyncData(
141-
'count-' + props.uuid + unref(block)?.collection ?? '' + unref(block)?.filter ?? '',
141+
'count-' + props.uuid + (unref(block)?.collection ?? '') + (unref(block)?.filter ?? ''),
142142
() => {
143143
const context = unref(block);
144144

nuxt.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default defineNuxtConfig({
5151
modules: [
5252
'@vueuse/nuxt',
5353
'@nuxt/image',
54-
'@nuxtjs/sitemap', // https://nuxtseo.com/sitemap/getting-started/how-it-works
54+
'@nuxtjs/sitemap', // https://sitemap.nuxtjs.org/usage/sitemap
5555
'nuxt-og-image',
5656
'floating-vue/nuxt',
5757
'@zadigetvoltaire/nuxt-gtm',
@@ -69,7 +69,7 @@ export default defineNuxtConfig({
6969
fonts: ['Inter:400', 'Inter:700', 'Poppins:400', 'Poppins:600', 'Poppins:700'],
7070
},
7171

72-
// Nuxt Image Configuration - https://image.nuxtjs.org/getting-started/installation
72+
// Nuxt Image Configuration - https://image.nuxt.com/get-started/installation
7373
image: {
7474
provider: 'directus',
7575
directus: {

package.json

+23-24
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,42 @@
1313
"devDependencies": {
1414
"@directus/sdk": "12.0.1",
1515
"@nuxt/devtools": "1.0.8",
16+
"@nuxt/image": "1.3.0",
17+
"@nuxt/kit": "3.10.2",
1618
"@nuxtjs/eslint-module": "4.1.0",
1719
"@nuxtjs/fontaine": "0.4.1",
1820
"@nuxtjs/sitemap": "^5.1.0",
19-
"@types/node": "20.9.0",
20-
"@typescript-eslint/eslint-plugin": "6.10.0",
21-
"@typescript-eslint/parser": "6.10.0",
21+
"@types/node": "20.11.19",
22+
"@typescript-eslint/eslint-plugin": "7.0.1",
23+
"@typescript-eslint/parser": "7.0.1",
2224
"@vueuse/core": "10.7.2",
2325
"@vueuse/nuxt": "10.7.2",
2426
"@zadigetvoltaire/nuxt-gtm": "0.0.13",
25-
"eslint": "8.53.0",
26-
"eslint-config-prettier": "9.0.0",
27-
"eslint-plugin-prettier": "5.0.1",
28-
"eslint-plugin-vue": "9.18.1",
27+
"eslint": "8.56.0",
28+
"eslint-config-prettier": "9.1.0",
29+
"eslint-plugin-prettier": "5.1.3",
30+
"eslint-plugin-vue": "9.21.1",
2931
"feed": "4.2.2",
32+
"floating-vue": "5.2.2",
33+
"iconify-icon": "2.0.0",
3034
"micromark": "4.0.0",
3135
"micromark-extension-gfm": "3.0.0",
36+
"nuxt": "3.10.2",
3237
"nuxt-og-image": "3.0.0-rc.38",
3338
"nuxt-schema-org": "3.3.4",
34-
"prettier": "3.0.3",
35-
"sass": "1.64.1",
36-
"shiki": "1.1.2",
37-
"sitemap": "7.1.1",
38-
"typescript": "5.2.2",
39-
"vue-tsc": "1.8.22"
39+
"p-queue": "8.0.1",
40+
"prettier": "3.1.0",
41+
"sass": "1.71.0",
42+
"shiki": "1.1.3",
43+
"typescript": "5.3.3",
44+
"ufo": "1.4.0",
45+
"vue": "3.4.19",
46+
"vue-router": "4.2.5",
47+
"vue-tsc": "1.8.27"
4048
},
41-
"packageManager": "pnpm@8.10.2",
49+
"packageManager": "pnpm@8.15.3",
4250
"engines": {
4351
"node": ">=18.0.0",
44-
"pnpm": ">=8.6.0"
45-
},
46-
"dependencies": {
47-
"@nuxt/image": "1.3.0",
48-
"floating-vue": "2.0.0-beta.24",
49-
"iconify-icon": "2.0.0",
50-
"nuxt": "3.10.1",
51-
"p-queue": "7.4.1",
52-
"vue": "3.4.19",
53-
"vue-router": "4.2.5"
52+
"pnpm": ">=8.15.0"
5453
}
5554
}

0 commit comments

Comments
 (0)