- Correct the type path for the
hoofd/preactpackage Submitted by @barelyhuman (See #106)
- Correct variable scoping in the
useEffectofuseScript, this prevents scripts from being wrongly unmounted Submitted by @webdevian (See #103)
⚠️ Fix case where due to concurrent mode running effects twice ourcurrentIndexwould get wonky, we need to decrement the currentIndex when we remove the top of the stack during a process iteration Submitted by @JoviDeCroock (See #95)
- Make
useLinkconcurrent safe by only re-usinglinktags carryingdata-hoofd="1", these would come from hydration as hoofd will add these to the static export Submitted by @JoviDeCroock (See #79)
- Escape the
contentproperty in meta tags #76
- Guard against no meta tags being returned in React Concurrent Mode #76
- Add
dns-prefetchto rel type #62
- Add specialized types for
hoofd/preact#54
- Add support for
idandtextinuseScript#44
- fix Preact #40
- Adjust useScript to use context API #37
useTitleTemplatewill fallback to removing the%srather than inserting it when no title has been provided #33
- fix:
useTitlenow correctly detects thetemplateargument changing #27 - fix: Preact types are now picked up correctly
- Detect already injected links correctly and reuse them when possible.
- add
useHead
- Make types less strict
- Add
typetolinkOptions#11
BREAKING
- Renamed
toStringtotoStatic - Stopped returning a stringified
headand moved to{ title, lang, metas, links }Read more
- Add
useTitleTemplatehook
- Bundle size savings -100 bytes
- SSR Support
- Initial release