@vueuse/head
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -11,2 +11,12 @@ import { HeadTag, MergeHead, MaybeComputedRef, ReactiveHead, VueHeadClient } from '@unhead/vue'; | ||
declare type HookEntriesResolved = ((entries: HeadEntry<any>[]) => Promise<void> | void); | ||
interface LegacyHeadOptions { | ||
/** | ||
* @deprecated | ||
*/ | ||
resolved?: boolean; | ||
/** | ||
* @deprecated | ||
*/ | ||
raw?: boolean; | ||
} | ||
interface HeadClient<T extends MergeHead = {}> { | ||
@@ -20,7 +30,7 @@ install: (app: App) => void; | ||
*/ | ||
addEntry: (entry: MaybeComputedRef<ReactiveHead<T>>, options?: HeadEntryOptions) => ActiveHeadEntry<MaybeComputedRef<ReactiveHead<T>>>; | ||
addEntry: (entry: MaybeComputedRef<ReactiveHead<T>>, options?: HeadEntryOptions & LegacyHeadOptions) => ActiveHeadEntry<MaybeComputedRef<ReactiveHead<T>>>; | ||
/** | ||
* @deprecated use `push` | ||
*/ | ||
addReactiveEntry: (objs: MaybeComputedRef<ReactiveHead<T>>, options?: HeadEntryOptions) => () => void; | ||
addReactiveEntry: (objs: MaybeComputedRef<ReactiveHead<T>>, options?: HeadEntryOptions & LegacyHeadOptions) => () => void; | ||
/** | ||
@@ -30,2 +40,6 @@ * @deprecated use `@unhead/dom` | ||
updateDOM: (document?: Document, force?: boolean) => void; | ||
internalHooks: Unhead['hooks']; | ||
/** | ||
* @deprecated | ||
*/ | ||
hooks: | ||
@@ -44,3 +58,3 @@ /** | ||
*/ | ||
Record<'resolved:tags', HookTagsResolved[]> | Unhead['hooks']; | ||
Record<'resolved:tags', HookTagsResolved[]>; | ||
/** | ||
@@ -63,2 +77,6 @@ * Backwards compatibility function to fetch the headTags. | ||
/** | ||
* @deprecated Does not do anything | ||
*/ | ||
removeHeadObjs: (entry: MaybeComputedRef<ReactiveHead<T>>) => void; | ||
/** | ||
* Access the underlying unhead instance. | ||
@@ -77,2 +95,2 @@ */ | ||
export { Head, HeadClient, HeadObject, HeadObjectPlain, HeadVuePlugin, HookBeforeDomUpdate, HookEntriesResolved, HookTagsResolved, createHead, renderHeadToString }; | ||
export { Head, HeadClient, HeadObject, HeadObjectPlain, HeadVuePlugin, HookBeforeDomUpdate, HookEntriesResolved, HookTagsResolved, LegacyHeadOptions, createHead, renderHeadToString }; |
{ | ||
"name": "@vueuse/head", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"packageManager": "pnpm@7.5.0", | ||
@@ -5,0 +5,0 @@ "description": "Document head manager for Vue 3. SSR ready.", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18424
356