From 3d22d96783b179c7254dd5a7cfd38d0c9c749dff Mon Sep 17 00:00:00 2001 From: harlan Date: Tue, 21 Jan 2025 17:54:39 +1100 Subject: [PATCH] chore: broken imports --- package.json | 12 ++-- packages/nuxt/package.json | 2 +- packages/nuxt/src/app/composables/payload.ts | 2 +- .../src/app/composables/route-announcer.ts | 2 +- packages/nuxt/src/head/runtime/exports.ts | 17 ----- packages/schema/package.json | 2 +- pnpm-lock.yaml | 62 +++++++++---------- 7 files changed, 41 insertions(+), 58 deletions(-) delete mode 100644 packages/nuxt/src/head/runtime/exports.ts diff --git a/package.json b/package.json index 12a162a299..8cfc68a1f7 100644 --- a/package.json +++ b/package.json @@ -44,9 +44,9 @@ "@nuxt/vite-builder": "workspace:*", "@nuxt/webpack-builder": "workspace:*", "@types/node": "22.10.7", - "@unhead/schema": "2.0.0-alpha.5", - "@unhead/vue": "2.0.0-alpha.5", - "@unhead/shared": "2.0.0-alpha.5", + "@unhead/schema": "2.0.0-alpha.6", + "@unhead/vue": "2.0.0-alpha.6", + "@unhead/shared": "2.0.0-alpha.6", "@vue/compiler-core": "3.5.13", "@vue/compiler-dom": "3.5.13", "@vue/shared": "3.5.13", @@ -63,7 +63,7 @@ "typescript": "5.7.3", "ufo": "1.5.4", "unbuild": "3.3.1", - "unhead": "2.0.0-alpha.5", + "unhead": "2.0.0-alpha.6", "unimport": "3.14.6", "vite": "6.0.9", "vue": "3.5.13" @@ -83,8 +83,8 @@ "@types/babel__helper-plugin-utils": "7.10.3", "@types/node": "22.10.7", "@types/semver": "7.5.8", - "@unhead/schema": "2.0.0-alpha.5", - "@unhead/vue": "2.0.0-alpha.5", + "@unhead/schema": "2.0.0-alpha.6", + "@unhead/vue": "2.0.0-alpha.6", "@vitest/coverage-v8": "3.0.2", "@vue/test-utils": "2.4.6", "acorn": "8.14.0", diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index 1ca5300b3d..3975598507 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -71,7 +71,7 @@ "@nuxt/schema": "workspace:*", "@nuxt/telemetry": "^2.6.4", "@nuxt/vite-builder": "workspace:*", - "@unhead/vue": "^2.0.0-alpha.5", + "@unhead/vue": "^2.0.0-alpha.6", "@vue/shared": "^3.5.13", "acorn": "8.14.0", "c12": "^2.0.1", diff --git a/packages/nuxt/src/app/composables/payload.ts b/packages/nuxt/src/app/composables/payload.ts index aba25a2053..4a09f9a844 100644 --- a/packages/nuxt/src/app/composables/payload.ts +++ b/packages/nuxt/src/app/composables/payload.ts @@ -1,9 +1,9 @@ import { hasProtocol, joinURL, withoutTrailingSlash } from 'ufo' import { parse } from 'devalue' -import { useHead } from '@unhead/vue' import { getCurrentInstance, onServerPrefetch, reactive } from 'vue' import { useNuxtApp, useRuntimeConfig } from '../nuxt' import type { NuxtPayload } from '../nuxt' +import { useHead } from './head' import { useRoute } from './router' import { getAppManifest, getRouteRules } from './manifest' diff --git a/packages/nuxt/src/app/composables/route-announcer.ts b/packages/nuxt/src/app/composables/route-announcer.ts index 9a6e27741f..2af2d88463 100644 --- a/packages/nuxt/src/app/composables/route-announcer.ts +++ b/packages/nuxt/src/app/composables/route-announcer.ts @@ -1,7 +1,7 @@ import type { Ref } from 'vue' import { getCurrentScope, onScopeDispose, ref } from 'vue' -import { injectHead } from '@unhead/vue' import { useNuxtApp } from '../nuxt' +import { injectHead } from './head' export type Politeness = 'assertive' | 'polite' | 'off' diff --git a/packages/nuxt/src/head/runtime/exports.ts b/packages/nuxt/src/head/runtime/exports.ts deleted file mode 100644 index b0a94cef9a..0000000000 --- a/packages/nuxt/src/head/runtime/exports.ts +++ /dev/null @@ -1,17 +0,0 @@ -export { - injectHead, - useHead, - useHeadSafe, - useSeoMeta, - useServerHead, - useServerHeadSafe, - useServerSeoMeta, -} from '#app/composables/head' - -export { - createHeadCore, - resolveUnrefHeadInput, - unheadVueComposablesImports, -} from '@unhead/vue' - -export * from '@unhead/vue/types' diff --git a/packages/schema/package.json b/packages/schema/package.json index 7c9cb7701b..2a07d488c2 100644 --- a/packages/schema/package.json +++ b/packages/schema/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@types/pug": "2.0.10", - "@unhead/schema": "2.0.0-alpha.5", + "@unhead/schema": "2.0.0-alpha.6", "@vitejs/plugin-vue": "5.2.1", "@vitejs/plugin-vue-jsx": "4.1.1", "@vue/compiler-core": "3.5.13", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c294321435..4fe19bf3f4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,9 +12,9 @@ overrides: '@nuxt/vite-builder': workspace:* '@nuxt/webpack-builder': workspace:* '@types/node': 22.10.7 - '@unhead/schema': 2.0.0-alpha.5 - '@unhead/vue': 2.0.0-alpha.5 - '@unhead/shared': 2.0.0-alpha.5 + '@unhead/schema': 2.0.0-alpha.6 + '@unhead/vue': 2.0.0-alpha.6 + '@unhead/shared': 2.0.0-alpha.6 '@vue/compiler-core': 3.5.13 '@vue/compiler-dom': 3.5.13 '@vue/shared': 3.5.13 @@ -31,7 +31,7 @@ overrides: typescript: 5.7.3 ufo: 1.5.4 unbuild: 3.3.1 - unhead: 2.0.0-alpha.5 + unhead: 2.0.0-alpha.6 unimport: 3.14.6 vite: 6.0.9 vue: 3.5.13 @@ -83,11 +83,11 @@ importers: specifier: 7.5.8 version: 7.5.8 '@unhead/schema': - specifier: 2.0.0-alpha.5 - version: 2.0.0-alpha.5 + specifier: 2.0.0-alpha.6 + version: 2.0.0-alpha.6 '@unhead/vue': - specifier: 2.0.0-alpha.5 - version: 2.0.0-alpha.5(vue@3.5.13(typescript@5.7.3)) + specifier: 2.0.0-alpha.6 + version: 2.0.0-alpha.6(vue@3.5.13(typescript@5.7.3)) '@vitest/coverage-v8': specifier: 3.0.2 version: 3.0.2(vitest@3.0.2(@types/node@22.10.7)(happy-dom@16.6.0)(jiti@2.4.2)(terser@5.32.0)(tsx@4.19.2)(yaml@2.6.1)) @@ -339,8 +339,8 @@ importers: specifier: 22.10.7 version: 22.10.7 '@unhead/vue': - specifier: 2.0.0-alpha.5 - version: 2.0.0-alpha.5(vue@3.5.13(typescript@5.7.3)) + specifier: 2.0.0-alpha.6 + version: 2.0.0-alpha.6(vue@3.5.13(typescript@5.7.3)) '@vue/shared': specifier: 3.5.13 version: 3.5.13 @@ -684,8 +684,8 @@ importers: specifier: 2.0.10 version: 2.0.10 '@unhead/schema': - specifier: 2.0.0-alpha.5 - version: 2.0.0-alpha.5 + specifier: 2.0.0-alpha.6 + version: 2.0.0-alpha.6 '@vitejs/plugin-vue': specifier: 5.2.1 version: 5.2.1(vite@6.0.9(@types/node@22.10.7)(jiti@2.4.2)(terser@5.32.0)(tsx@4.19.2)(yaml@2.6.1))(vue@3.5.13(typescript@5.7.3)) @@ -2842,14 +2842,14 @@ packages: '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} - '@unhead/schema@2.0.0-alpha.5': - resolution: {integrity: sha512-m7U5q4Lvpyvk9um/X+Bn9bWxaShCybXdv02My4A7iExj0/ZwW60AlTrgpIj4uZXEulIJbYAx0BdDDNELZQT0+g==} + '@unhead/schema@2.0.0-alpha.6': + resolution: {integrity: sha512-UjObgqdmWaKYwGk0KzK5snTdETikaU2A2Dqvz1ElS/zFNLsFmBIg4HwidvlA/oxF4/FvbZTlKsTutgiKWAHePA==} - '@unhead/shared@2.0.0-alpha.5': - resolution: {integrity: sha512-qPEMloMqZCpSDWkl5+GiIhdfcZiN1gcT1b3qyDZRcrmrz3toWCH1YtLzfSD2qBMssYnTcQKqMvjjA5avx3YUAg==} + '@unhead/shared@2.0.0-alpha.6': + resolution: {integrity: sha512-Uvp+Qzb/b8Me+VOqddjOK7aLFuBw/mk3Fx//ipB93FfjtXZ02WErDPTsOv+4aOK86JKG8CrxOkYosGcw8WceLw==} - '@unhead/vue@2.0.0-alpha.5': - resolution: {integrity: sha512-voZ2Ug3kU4oyDDKosVs1iiKZ9Dk4G4gxOc8eMrO89jlrq8fxTu+uG3J6/CkBuYhUzP4trm1yu/H3eO+pChU2fw==} + '@unhead/vue@2.0.0-alpha.6': + resolution: {integrity: sha512-VfSycV+tLTGpPKlihmQNdHo/cxvyvtUKnPRUFAB1KMHjf9xn5twq2fXetf2LYZtTQunKuqZ08kwlRt+pAvd3dg==} peerDependencies: vue: 3.5.13 @@ -7432,8 +7432,8 @@ packages: unenv@1.10.0: resolution: {integrity: sha512-wY5bskBQFL9n3Eca5XnhH6KbUo/tfvkwm9OpcdCvLaeA7piBNbavbOKJySEwQ1V0RH6HvNlSAFRTpvTqgKRQXQ==} - unhead@2.0.0-alpha.5: - resolution: {integrity: sha512-lFFpC56PQsEQ2m4IVDXKCOhGsqO8/2kqy3jr1yP5x4ld2JhZ9arG6nGKfJKRwm403qhM19TUh4zI4Ag8u0cvCA==} + unhead@2.0.0-alpha.6: + resolution: {integrity: sha512-kLQLu+wMbFgdULGyeq6uCXuAPXi6XFlNFPQCsur1dLfNGBxoJptY/uACrLiB1ttc8EFSxYVm0JWn17urm/t1iA==} unicode-emoji-modifier-base@1.0.0: resolution: {integrity: sha512-yLSH4py7oFH3oG/9K+XWrz1pSi3dfUrWEnInbxMfArOfc1+33BlGPQtLsOYwvdMy11AwUBetYuaRxSPqgkq+8g==} @@ -9110,7 +9110,7 @@ snapshots: '@types/google.maps': 3.58.1 '@types/vimeo__player': 2.18.3 '@types/youtube': 0.1.0 - '@unhead/vue': 2.0.0-alpha.5(vue@3.5.13(typescript@5.7.3)) + '@unhead/vue': 2.0.0-alpha.6(vue@3.5.13(typescript@5.7.3)) '@vueuse/core': 11.1.0(vue@3.5.13(typescript@5.7.3)) consola: 3.4.0 defu: 6.1.4 @@ -10066,22 +10066,22 @@ snapshots: '@ungap/structured-clone@1.2.0': {} - '@unhead/schema@2.0.0-alpha.5': + '@unhead/schema@2.0.0-alpha.6': dependencies: hookable: 5.5.3 zhead: 2.2.4 - '@unhead/shared@2.0.0-alpha.5': + '@unhead/shared@2.0.0-alpha.6': dependencies: - '@unhead/schema': 2.0.0-alpha.5 + '@unhead/schema': 2.0.0-alpha.6 packrup: 0.1.2 - '@unhead/vue@2.0.0-alpha.5(vue@3.5.13(typescript@5.7.3))': + '@unhead/vue@2.0.0-alpha.6(vue@3.5.13(typescript@5.7.3))': dependencies: - '@unhead/schema': 2.0.0-alpha.5 - '@unhead/shared': 2.0.0-alpha.5 + '@unhead/schema': 2.0.0-alpha.6 + '@unhead/shared': 2.0.0-alpha.6 hookable: 5.5.3 - unhead: 2.0.0-alpha.5 + unhead: 2.0.0-alpha.6 vue: 3.5.13(typescript@5.7.3) '@unocss/astro@0.62.4(rollup@4.31.0)(vite@6.0.9(@types/node@22.10.7)(jiti@2.4.2)(terser@5.32.0)(tsx@4.19.2)(yaml@2.6.1))': @@ -15630,10 +15630,10 @@ snapshots: node-fetch-native: 1.6.4 pathe: 1.1.2 - unhead@2.0.0-alpha.5: + unhead@2.0.0-alpha.6: dependencies: - '@unhead/schema': 2.0.0-alpha.5 - '@unhead/shared': 2.0.0-alpha.5 + '@unhead/schema': 2.0.0-alpha.6 + '@unhead/shared': 2.0.0-alpha.6 hookable: 5.5.3 unicode-emoji-modifier-base@1.0.0: {}