Skip to content

Releases: vueuse/head

v0.9.6

05 Oct 03:44
Compare
Choose a tag to compare
  • fix(xss) drop non-raw on handles and innerHTML (#124)
  • fix: warn script children usage (#123)

v0.9.5

05 Oct 01:33
Compare
Choose a tag to compare
  • chore: bump zhead
  • fix: simpler logic for removing added head objs (#122)

v0.9.4

04 Oct 15:23
Compare
Choose a tag to compare
  • chore: make optional id
  • fix: safer removal of objects using hash
  • fix: dedupe title

v0.9.3

04 Oct 14:23
Compare
Choose a tag to compare
  • fix: remove head objects at right index

v0.9.2

04 Oct 13:48
Compare
Choose a tag to compare
  • chore: bump zhead schema

v0.9.1

04 Oct 11:08
Compare
Choose a tag to compare
  • chore(doc): fix typo
  • Merge branch 'main' of github.com:vueuse/head into main
  • feat: debounce dom update (#120)

v0.9.0

04 Oct 11:03
Compare
Choose a tag to compare
  • fix: return remove fn from addHeadObj, fixes #48
  • feat: useHeadRaw to bypass XSS protections (#118)
  • fix(ssr): encode children, href and url more appropriately (#119)

⚠️ Breaking Changes

Event attributes no longer allowed

Warning, you must use useHeadRaw to set event listeners.

Providing on event attributes with useHead is no longer allowed and will throw a warning, this is to avoid unexpected XSS. You will need to use useHeadRaw

New Syntax:

useHeadRaw({
  htmlAttrs: {
    onfocus: 'console.log(\'focused\')
  }
})

script tags with children will no longer work with useHead

Warning, you must use useHeadRaw with innerHTML for script content.

Previously you could render scripts server-side correctly without encoding. This was an XSS issue, you should now use the following syntax:

useHeadRaw({
  script: [
    {
      innerHTML: 'console.log(\'my script!\')
    }
  ]
})

v0.8.2

03 Oct 04:07
Compare
Choose a tag to compare
v0.8.2

v0.8.1

03 Oct 03:43
Compare
Choose a tag to compare
  • chore: bump dependencies (#116)
  • feat: hook into resolved tags hookTagsResolved (#115)
  • refactor: improve HeadAugmentation types and add export

v0.8.0

01 Oct 09:13
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.7.13...v0.8.0