Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency @nuxt/content to v3 #1754

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
"@iconify-json/ph": "^1.2.2",
"@iconify-json/simple-icons": "^1.2.26",
"@iconify-json/uil": "^1.2.3",
"@nuxt/content": "^2.13.4",
"@nuxt/content": "^3.2.2",
"@nuxt/fonts": "^0.10.3",
"@nuxt/image": "^1.9.0",
"@nuxt/scripts": "^0.10.5",
933 changes: 633 additions & 300 deletions pnpm-lock.yaml

Large diffs are not rendered by default.


Unchanged files with check annotations Beta

<script setup lang="ts">
import { debounce } from 'perfect-debounce'
import type { ParsedContent } from '@nuxt/content'

Check failure on line 3 in app/app.vue

GitHub Actions / typecheck

'"@nuxt/content"' has no exported member named 'ParsedContent'. Did you mean 'ParsedContentv2'?
import './styles/twoslash.css'
const search = ref(null)
const { headerLinks, searchGroups, searchLinks } = useNavigation()
const color = computed(() => colorMode.value === 'dark' ? '#020420' : 'white')
const { data: navigation } = await useLazyAsyncData('navigation', () => fetchContentNavigation(), { default: () => [] })

Check failure on line 11 in app/app.vue

GitHub Actions / typecheck

Cannot find name 'fetchContentNavigation'. Did you mean 'mapContentNavigation'?
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false
<script setup lang="ts">
import type { NavItem } from '@nuxt/content'

Check failure on line 2 in app/components/AppHeader.vue

GitHub Actions / typecheck

Module '"@nuxt/content"' has no exported member 'NavItem'. Did you mean to use 'import NavItem from "@nuxt/content"' instead?
import type { Link } from '#ui-pro/types'
const logo = ref(null)
}
try {
const data = await queryContent<BlogArticle>('/blog')

Check failure on line 15 in app/composables/useBlog.ts

GitHub Actions / typecheck

Cannot find name 'queryContent'.
.where({ _extension: 'md' })
.without(['body', 'excerpt'])
.sort({ date: -1 })
.find()
articles.value = (data as BlogArticle[]).filter(article => article._path !== '/blog')

Check failure on line 21 in app/composables/useBlog.ts

GitHub Actions / typecheck

Property '_path' does not exist on type 'BlogArticle'.
// featuredArticle.value = articles.value?.shift() || {}
}
catch (e) {
}
try {
const data = await queryContent('/enterprise/agencies').where({ _extension: 'md' }).find()

Check failure on line 16 in app/composables/useEnterpriseAgencies.ts

GitHub Actions / typecheck

Cannot find name 'queryContent'.
agencies.value = data.map(agency => ({
...agency,
}
try {
const data = await queryContent<Hosting>('/deploy')

Check failure on line 12 in app/composables/useHostingProviders.ts

GitHub Actions / typecheck

Cannot find name 'queryContent'.
.where({ _extension: 'md' })
.without(['body', 'excerpt'])
.sort({ date: -1 })
.find()
providers.value = (data as Hosting[]).filter(article => article._path !== '/deploy')

Check failure on line 18 in app/composables/useHostingProviders.ts

GitHub Actions / typecheck

Property '_path' does not exist on type 'Hosting'.
}
catch (e) {
providers.value = []
return providers.value
.filter(hosting => ['title'].map(field => hosting[field]).filter(Boolean).some(value => value.search(searchTextRegExp(q)) !== -1))
.map(hosting => ({
id: `hosting-${hosting._path}`,

Check failure on line 276 in app/composables/useNavigation.ts

GitHub Actions / typecheck

Property '_path' does not exist on type 'Hosting'.
label: hosting.title,
suffix: hosting.description,
icon: hosting.logoIcon,

Check failure on line 279 in app/composables/useNavigation.ts

GitHub Actions / typecheck

Property 'logoIcon' does not exist on type 'Hosting'.
avatar: hosting.logoSrc
? {
src: hosting.logoSrc