@praxisjs/head
Changelog for @praxisjs/head — reactive document title, meta, og:*, twitter:*, preload, and prefetch management via the @Head decorator.
@praxisjs/head
0.2.0
Added preload and prefetch link support to HeadConfig.
preload?: LinkPreload[]— emits<link rel="preload" href="..." as="...">tags. Supports optionaltypeandcrossOriginattributes (required for fonts with cross-origin isolation).prefetch?: LinkPrefetch[]— emits<link rel="prefetch" href="...">tags with an optionalashint.
Both fields are reactive: passing them inside a getter re-applies the correct link tags whenever their signal dependencies change. All managed tags are cleaned up on unmount.
New exported types: LinkPreload, LinkPrefetch.
0.1.0
Initial release.
@Head — class decorator that reactively manages the document <head> for a component. Accepts a static HeadConfig object or a reactive getter (self) => HeadConfig. Any signal read inside the getter triggers an automatic update.
Supported fields: title, description, canonical, meta[], og.*, twitter.*.
Stack-based: each component instance owns one entry. The last mounted entry wins; removing an entry restores the previous one. All managed tags are cleaned up automatically on unmount.