remove patched @vueuse/head

This commit is contained in:
wobsoriano
2022-11-12 18:17:10 -08:00
parent 7999039088
commit ba15d15d67
4 changed files with 34 additions and 41 deletions

View File

@@ -8,6 +8,7 @@
"preview": "nuxi preview"
},
"dependencies": {
"@vueuse/head": "^1.0.3",
"nuxt": "^3.0.0-rc.13",
"@nuxtjs/tailwindcss": "^6.1.3"
},

View File

@@ -57,11 +57,6 @@
"tsup": "6.4.0",
"typescript": "^4.7.4"
},
"pnpm": {
"patchedDependencies": {
"nuxt@3.0.0-rc.13": "patches/nuxt@3.0.0-rc.13.patch"
}
},
"eslintConfig": {
"extends": [
"@nuxtjs/eslint-config-typescript"

View File

@@ -1,22 +0,0 @@
diff --git a/dist/head/runtime/lib/vueuse-head.plugin.mjs b/dist/head/runtime/lib/vueuse-head.plugin.mjs
index a3278e56986d8e8efb099c502c82d9661a36d846..148a8879ba433072cecd15995cfd5b1b69941124 100644
--- a/dist/head/runtime/lib/vueuse-head.plugin.mjs
+++ b/dist/head/runtime/lib/vueuse-head.plugin.mjs
@@ -4,7 +4,7 @@ import { defineNuxtPlugin, useRouter } from "#app";
import { appHead } from "#build/nuxt.config.mjs";
export default defineNuxtPlugin((nuxtApp) => {
const head = createHead();
- head.addEntry(appHead, { resolved: true });
+ head.addHeadObjs(appHead, { resolved: true });
nuxtApp.vueApp.use(head);
if (process.client) {
let pauseDOMUpdates = true;
@@ -25,7 +25,7 @@ export default defineNuxtPlugin((nuxtApp) => {
}
nuxtApp._useHead = (_meta, options) => {
if (process.server) {
- head.addEntry(_meta, options);
+ head.addHeadObjs(_meta, options);
return;
}
const cleanUp = head.addReactiveEntry(_meta, options);

47
pnpm-lock.yaml generated
View File

@@ -1,10 +1,5 @@
lockfileVersion: 5.4
patchedDependencies:
nuxt@3.0.0-rc.13:
hash: lfucpimd3sd5ppglk4zvewtojq
path: patches/nuxt@3.0.0-rc.13.patch
importers:
.:
@@ -26,7 +21,7 @@ importers:
dependencies:
h3: 0.8.6
nanoid: 4.0.0
nuxt: 3.0.0-rc.13_lfucpimd3sd5ppglk4zvewtojq_rmayb2veg2btbq6mbmnyivgasy
nuxt: 3.0.0-rc.13_rmayb2veg2btbq6mbmnyivgasy
ohash: 0.1.5
ufo: 0.8.6
devDependencies:
@@ -45,9 +40,11 @@ importers:
'@nuxt-themes/docus': npm:@nuxt-themes/docus-edge@latest
'@nuxtjs/tailwindcss': ^6.1.3
'@nuxtlabs/github-module': npm:@nuxtlabs/github-module-edge@latest
'@vueuse/head': ^1.0.3
nuxt: ^3.0.0-rc.13
dependencies:
'@nuxtjs/tailwindcss': 6.1.3
'@vueuse/head': 1.0.3
nuxt: 3.0.0-rc.13
devDependencies:
'@nuxt-themes/docus': /@nuxt-themes/docus-edge/0.1.0-2a7c428_nuxt@3.0.0-rc.13
@@ -1823,6 +1820,19 @@ packages:
dependencies:
'@unhead/schema': 0.5.1
/@unhead/vue/0.5.1:
resolution: {integrity: sha512-s4y4uj3NMqaUs0K+WQXbWGj/2+Glk/DEJ9yeJOcJIiro/+IhUMByD71jyCM43Xn8YBPy14VY/ZYb9ZFU2WCZgw==}
peerDependencies:
vue: '>=2.7 || >=3'
dependencies:
'@unhead/dom': 0.5.1
'@unhead/schema': 0.5.1
'@vueuse/shared': 9.5.0
unhead: 0.5.1
transitivePeerDependencies:
- '@vue/composition-api'
dev: false
/@unhead/vue/0.5.1_vue@3.2.45:
resolution: {integrity: sha512-s4y4uj3NMqaUs0K+WQXbWGj/2+Glk/DEJ9yeJOcJIiro/+IhUMByD71jyCM43Xn8YBPy14VY/ZYb9ZFU2WCZgw==}
peerDependencies:
@@ -2018,8 +2028,20 @@ packages:
- vue
dev: true
/@vueuse/head/1.0.0_vue@3.2.45:
resolution: {integrity: sha512-wighjD6iLxEitpg6EDeS5dGDB9tcOSMhpblrAOKR6qBP93U3cjG72n0LhlBUD9miu41lNxXFVGHgSc6BVJ9BMg==}
/@vueuse/head/1.0.3:
resolution: {integrity: sha512-RV8jeydEKzIwGZUpRJoYAyf7L6HpNA8ZfBgKSq/fxQkg8lpSe8PxRPhvd9PAFhjSeDEeZ//eIA04wPaQyeZ77Q==}
peerDependencies:
vue: '>=2.7 || >=3'
dependencies:
'@unhead/schema': 0.5.1
'@unhead/ssr': 0.5.1
'@unhead/vue': 0.5.1
transitivePeerDependencies:
- '@vue/composition-api'
dev: false
/@vueuse/head/1.0.3_vue@3.2.45:
resolution: {integrity: sha512-RV8jeydEKzIwGZUpRJoYAyf7L6HpNA8ZfBgKSq/fxQkg8lpSe8PxRPhvd9PAFhjSeDEeZ//eIA04wPaQyeZ77Q==}
peerDependencies:
vue: '>=2.7 || >=3'
dependencies:
@@ -2059,7 +2081,6 @@ packages:
transitivePeerDependencies:
- '@vue/composition-api'
- vue
dev: true
/@vueuse/shared/9.5.0_vue@3.2.45:
resolution: {integrity: sha512-HnnCWU1Vg9CVWRCcI8ohDKDRB2Sc4bTgT1XAIaoLSfVHHn+TKbrox6pd3klCSw4UDxkhDfOk8cAdcK+Z5KleCA==}
@@ -6227,7 +6248,7 @@ packages:
'@nuxt/vite-builder': 3.0.0-rc.13_vue@3.2.45
'@vue/reactivity': 3.2.45
'@vue/shared': 3.2.45
'@vueuse/head': 1.0.0_vue@3.2.45
'@vueuse/head': 1.0.3_vue@3.2.45
chokidar: 3.5.3
cookie-es: 0.5.0
defu: 6.1.0
@@ -6280,7 +6301,7 @@ packages:
- vls
- vti
/nuxt/3.0.0-rc.13_lfucpimd3sd5ppglk4zvewtojq_rmayb2veg2btbq6mbmnyivgasy:
/nuxt/3.0.0-rc.13_rmayb2veg2btbq6mbmnyivgasy:
resolution: {integrity: sha512-iqAwrYzFuKK5HuJRa1XQ/K2WUYdOI7JjxYLWAJyAejzvUO/+Pj87fhqozzymlJxrdKM53UqBfur+KN+DE0nRzw==}
engines: {node: ^14.16.0 || ^16.10.0 || ^17.0.0 || ^18.0.0 || ^19.0.0}
hasBin: true
@@ -6293,7 +6314,7 @@ packages:
'@nuxt/vite-builder': 3.0.0-rc.13_rgiu7gbsivji2gk3ajcqz5t5x4
'@vue/reactivity': 3.2.45
'@vue/shared': 3.2.45
'@vueuse/head': 1.0.0_vue@3.2.45
'@vueuse/head': 1.0.3_vue@3.2.45
chokidar: 3.5.3
cookie-es: 0.5.0
defu: 6.1.0
@@ -6346,7 +6367,6 @@ packages:
- vls
- vti
dev: false
patched: true
/object-assign/4.1.1:
resolution: {integrity: sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==}
@@ -8838,7 +8858,6 @@ packages:
peerDependenciesMeta:
'@vue/composition-api':
optional: true
dev: true
/vue-demi/0.13.11_vue@3.2.45:
resolution: {integrity: sha512-IR8HoEEGM65YY3ZJYAjMlKygDQn25D5ajNFNoKh9RSDMQtlzCxtfQjdQgv9jjK+m3377SsJXY8ysq8kLCZL25A==}