@unhead/dom
Advanced tools
Comparing version 1.11.15 to 2.0.0-alpha.0
@@ -1,31 +0,1 @@ | ||
import * as _unhead_schema from '@unhead/schema'; | ||
import { Unhead } from '@unhead/schema'; | ||
interface RenderDomHeadOptions { | ||
/** | ||
* Document to use for rendering. Allows stubbing for testing. | ||
*/ | ||
document?: Document; | ||
} | ||
/** | ||
* Render the head tags to the DOM. | ||
*/ | ||
declare function renderDOMHead<T extends Unhead<any>>(head: T, options?: RenderDomHeadOptions): Promise<void>; | ||
interface DebouncedRenderDomHeadOptions extends RenderDomHeadOptions { | ||
/** | ||
* Specify a custom delay function for delaying the render. | ||
*/ | ||
delayFn?: (fn: () => void) => void; | ||
} | ||
/** | ||
* Queue a debounced update of the DOM head. | ||
*/ | ||
declare function debouncedRenderDOMHead<T extends Unhead<any>>(head: T, options?: DebouncedRenderDomHeadOptions): Promise<void>; | ||
interface DomPluginOptions extends RenderDomHeadOptions { | ||
delayFn?: (fn: () => void) => void; | ||
} | ||
declare function DomPlugin(options?: DomPluginOptions): _unhead_schema.HeadPluginInput; | ||
export { type DebouncedRenderDomHeadOptions, DomPlugin, type DomPluginOptions, type RenderDomHeadOptions, debouncedRenderDOMHead, renderDOMHead }; | ||
export * from 'unhead/client'; |
{ | ||
"name": "@unhead/dom", | ||
"type": "module", | ||
"version": "1.11.15", | ||
"version": "2.0.0-alpha.0", | ||
"author": "Harlan Wilton <harlan@harlanzw.com>", | ||
@@ -31,11 +31,9 @@ "license": "MIT", | ||
], | ||
"dependencies": { | ||
"@unhead/schema": "1.11.15", | ||
"@unhead/shared": "1.11.15" | ||
"peerDependencies": { | ||
"unhead": "2.0.0-alpha.0" | ||
}, | ||
"scripts": { | ||
"build": "unbuild .", | ||
"stub": "unbuild . --stub", | ||
"export:sizes": "npx export-size . -r" | ||
"build": "unbuild ", | ||
"stub": "unbuild --stub" | ||
} | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
1
2500
7
13
1
1
0
1
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@types/estree@1.0.6(transitive)
+ Added@unhead/schema@2.0.0-alpha.0(transitive)
+ Added@unhead/shared@2.0.0-alpha.0(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedestree-walker@3.0.3(transitive)
+ Addedmagic-string@0.30.17(transitive)
+ Addedunctx@2.4.1(transitive)
+ Addedunhead@2.0.0-alpha.0(transitive)
+ Addedunplugin@2.1.2(transitive)
+ Addedwebpack-virtual-modules@0.6.2(transitive)
- Removed@unhead/schema@1.11.15
- Removed@unhead/shared@1.11.15
- Removed@unhead/schema@1.11.15(transitive)
- Removed@unhead/shared@1.11.15(transitive)