Skip to content

Commit

Permalink
chore: bump deps and lint
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Oct 16, 2024
1 parent 3424f29 commit 6ea6b05
Show file tree
Hide file tree
Showing 11 changed files with 2,134 additions and 1,256 deletions.
4 changes: 2 additions & 2 deletions client/composables/rpc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { onDevtoolsClientConnected } from '@nuxt/devtools-kit/iframe-client'
import { ref } from 'vue'
import type { NuxtDevtoolsClient } from '@nuxt/devtools-kit/dist/types'
import type { $Fetch } from 'nitropack'
import { onDevtoolsClientConnected } from '@nuxt/devtools-kit/iframe-client'
import { ref } from 'vue'
import { schemaOrgGraph } from '../util/logic'

export const devtools = ref<NuxtDevtoolsClient>()
Expand Down
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
},
"devDependencies": {
"@iconify-json/carbon": "^1.2.1",
"@nuxt/devtools-kit": "^1.4.1",
"@nuxt/devtools-kit": "^1.6.0",
"@nuxt/devtools-ui-kit": "latest",
"@nuxt/kit": "^3.13.1",
"@nuxt/kit": "^3.13.2",
"floating-vue": "5.2.2",
"nuxt": "latest",
"shiki": "^1.16.3"
Expand Down
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "nuxt-schema-org",
"type": "module",
"version": "3.4.0",
"packageManager": "pnpm@9.10.0",
"packageManager": "pnpm@9.12.1",
"description": "The quickest and easiest way to build Schema.org graphs for Nuxt.",
"author": "Harlan Wilton <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -47,28 +47,28 @@
"test": "vitest"
},
"dependencies": {
"@nuxt/devtools-kit": "^1.4.1",
"@nuxt/kit": "^3.13.1",
"@unhead/schema-org": "^1.11.2",
"nuxt-site-config": "^2.2.16",
"nuxt-site-config-kit": "^2.2.16",
"@nuxt/devtools-kit": "^1.6.0",
"@nuxt/kit": "^3.13.2",
"@unhead/schema-org": "^1.11.10",
"nuxt-site-config": "^2.2.18",
"nuxt-site-config-kit": "^2.2.18",
"pathe": "^1.1.2",
"sirv": "^2.0.4"
"sirv": "^3.0.0"
},
"devDependencies": {
"@antfu/eslint-config": "^3.5.0",
"@nuxt/module-builder": "^0.8.3",
"@nuxt/schema": "^3.13.1",
"@nuxt/test-utils": "^3.14.1",
"@nuxt/ui": "^2.18.4",
"@nuxtjs/i18n": "^8.5.2",
"@nuxtjs/robots": "^4.1.6",
"bumpp": "^9.5.2",
"@antfu/eslint-config": "^3.7.3",
"@nuxt/module-builder": "^0.8.4",
"@nuxt/schema": "^3.13.2",
"@nuxt/test-utils": "^3.14.3",
"@nuxt/ui": "^2.18.7",
"@nuxtjs/i18n": "^8.5.5",
"@nuxtjs/robots": "^4.1.8",
"bumpp": "^9.7.1",
"cheerio": "1.0.0",
"eslint": "^9.10.0",
"nuxt": "^3.13.1",
"typescript": "5.5.4",
"vitest": "^2.0.5"
"eslint": "^9.12.0",
"nuxt": "^3.13.2",
"typescript": "5.6.3",
"vitest": "^2.1.3"
},
"build": {
"externals": [
Expand Down
3 changes: 1 addition & 2 deletions playground/layouts/blog.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<script lang="ts" setup>
import { computed, useRoute } from '#imports'
import type { BreadcrumbItem } from '@unhead/schema-org/vue'
const route = useRoute()
const breadcrumbItems = computed(() => {
const nav: BreadcrumbItem[] = [{ name: 'Home', item: '/' }, { name: 'Articles', item: '/blog' }]
const nav = [{ name: 'Home', item: '/' }, { name: 'Articles', item: '/blog' }]
if (route.path.startsWith('/blog/') && route.meta.title)
nav.push({ name: route.meta.title })
return nav
Expand Down
1 change: 0 additions & 1 deletion playground/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export default defineNuxtConfig({
},
)
subprocess.getProcess().stdout?.on('data', (data) => {
// eslint-disable-next-line no-console
console.log(` sub: ${data.toString()}`)
})

Expand Down
3,320 changes: 2,100 additions & 1,220 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/devtools.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { existsSync } from 'node:fs'
import { useNuxt } from '@nuxt/kit'
import type { Resolver } from '@nuxt/kit'
import type { Nuxt } from 'nuxt/schema'
import type { ModuleOptions } from './module'
import { existsSync } from 'node:fs'
import { useNuxt } from '@nuxt/kit'

const DEVTOOLS_UI_ROUTE = '/__nuxt-schema-org'
const DEVTOOLS_UI_LOCAL_PORT = 3030
Expand Down
8 changes: 4 additions & 4 deletions src/module.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import type { NuxtModule } from '@nuxt/schema'
import type { DataKeys, ScriptBase, TagUserProperties } from '@unhead/schema'
import type { OrganizationSimple, PersonSimple } from '@unhead/schema-org'
import type { ModuleRuntimeConfig } from './runtime/types'
import {
addComponent,
addImports,
Expand All @@ -10,13 +14,9 @@ import {
} from '@nuxt/kit'
import { schemaOrgAutoImports, schemaOrgComponents } from '@unhead/schema-org/vue'
import { installNuxtSiteConfig } from 'nuxt-site-config-kit'
import type { NuxtModule } from '@nuxt/schema'
import type { DataKeys, ScriptBase, TagUserProperties } from '@unhead/schema'
import type { OrganizationSimple, PersonSimple } from '@unhead/schema-org'
import { version } from '../package.json'
import { setupDevToolsUI } from './devtools'
import { extendTypes } from './kit'
import type { ModuleRuntimeConfig } from './runtime/types'

export interface ModuleOptions {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/nitro/routes/__schema-org__/debug.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { ModuleRuntimeConfig } from '../../../types'
import { useNitroOrigin, useRuntimeConfig } from '#imports'
import { defineEventHandler } from 'h3'
import type { ModuleRuntimeConfig } from '../../../types'

export default defineEventHandler(async (e) => {
const _config = useRuntimeConfig()
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/nuxt/imports/useSchemaOrg.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useHead, useRequestEvent, useRuntimeConfig, useServerHead } from '#imports'
import type { ActiveHeadEntry, DataKeys, ScriptBase, TagUserProperties } from '@unhead/schema'
import type { useSchemaOrg as _useSchemaOrg } from '@unhead/schema-org/vue'
import type { ModuleRuntimeConfig, UnheadAugmentation } from '../../types'
import { useHead, useRequestEvent, useRuntimeConfig, useServerHead } from '#imports'

type Input = Parameters<typeof _useSchemaOrg>[0]
export function useSchemaOrg<T extends Input>(input: T): ActiveHeadEntry<UnheadAugmentation<T>> | void {
Expand Down
4 changes: 2 additions & 2 deletions src/runtime/nuxt/util/shared.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import type { NuxtApp } from '#app/nuxt'
import type { MetaInput as _MetaInput, MetaInput, Organization, Person } from '@unhead/schema-org'
import {
createSitePathResolver,
defineOrganization,
Expand All @@ -12,8 +14,6 @@ import { SchemaOrgUnheadPlugin } from '@unhead/schema-org'
import { defu } from 'defu'
import { withoutTrailingSlash } from 'ufo'
import { computed } from 'vue'
import type { NuxtApp } from '#app/nuxt'
import type { MetaInput as _MetaInput, MetaInput, Organization, Person } from '@unhead/schema-org'

export function initPlugin(nuxtApp: NuxtApp) {
const head = injectHead()
Expand Down

0 comments on commit 6ea6b05

Please sign in to comment.