Comparing version 1.9.16 to 1.10.0-beta.1
import * as _unhead_schema from '@unhead/schema'; | ||
import { Head, CreateHeadOptions, Unhead, MergeHead, HeadEntryOptions, ActiveHeadEntry, HeadSafe, UseSeoMetaInput, UseScriptInput, UseScriptOptions, ScriptInstance } from '@unhead/schema'; | ||
import { Head, CreateHeadOptions, Unhead, MergeHead, HeadEntryOptions, ActiveHeadEntry, HeadSafe, UseSeoMetaInput, ScriptInstance, AsAsyncFunctionValues, UseScriptResolvedInput, UseScriptInput, UseScriptOptions } from '@unhead/schema'; | ||
export { composableNames } from '@unhead/shared'; | ||
@@ -44,12 +44,16 @@ | ||
type UseScriptContext<T extends Record<symbol | string, any>> = (Promise<T> & ScriptInstance<T>) & AsAsyncFunctionValues<T> & { | ||
/** | ||
* @deprecated Use top-level functions instead. | ||
*/ | ||
$script: Promise<T> & ScriptInstance<T>; | ||
}; | ||
declare function resolveScriptKey(input: UseScriptResolvedInput): any; | ||
/** | ||
* Load third-party scripts with SSR support and a proxied API. | ||
* | ||
* @experimental | ||
* @see https://unhead.unjs.io/usage/composables/use-script | ||
*/ | ||
declare function useScript<T extends Record<symbol | string, any>>(_input: UseScriptInput, _options?: UseScriptOptions<T>): T & { | ||
$script: Promise<T> & ScriptInstance<T>; | ||
}; | ||
declare function useScript<T extends Record<symbol | string, any>>(_input: UseScriptInput, _options?: UseScriptOptions<T>): UseScriptContext<T>; | ||
export { CapoPlugin, HashHydrationPlugin, type UseHeadInput, createHead, createHeadCore, createServerHead, getActiveHead, unheadComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta }; | ||
export { CapoPlugin, HashHydrationPlugin, type UseHeadInput, type UseScriptContext, createHead, createHeadCore, createServerHead, getActiveHead, resolveScriptKey, unheadComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta }; |
{ | ||
"name": "unhead", | ||
"type": "module", | ||
"version": "1.9.16", | ||
"version": "1.10.0-beta.1", | ||
"author": { | ||
@@ -37,5 +37,5 @@ "name": "Harlan Wilton", | ||
"hookable": "^5.5.3", | ||
"@unhead/dom": "1.9.16", | ||
"@unhead/shared": "1.9.16", | ||
"@unhead/schema": "1.9.16" | ||
"@unhead/shared": "1.10.0-beta.1", | ||
"@unhead/schema": "1.10.0-beta.1", | ||
"@unhead/dom": "1.10.0-beta.1" | ||
}, | ||
@@ -42,0 +42,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
53093
1346
1
+ Added@unhead/dom@1.10.0-beta.1(transitive)
+ Added@unhead/schema@1.10.0-beta.1(transitive)
+ Added@unhead/shared@1.10.0-beta.1(transitive)
- Removed@unhead/dom@1.9.16(transitive)
- Removed@unhead/schema@1.9.16(transitive)
- Removed@unhead/shared@1.9.16(transitive)
Updated@unhead/dom@1.10.0-beta.1
Updated@unhead/schema@1.10.0-beta.1
Updated@unhead/shared@1.10.0-beta.1