Packages

@unhead/shared

3.4.3 · 13 Oct 2026MIT586.1k / weekRepositoryHomepagenpmAtom feed

Your version

1.1.28

26 Jun 2023Where it was published

1.11.21 is the newest release of 1.x.

In short

4 fixed

Release note

Notable Changes

Title / TitleTemplate Tag Priority (3807766), closes #165

For parity with how the tag priority works for other tags, you can now set a tag priority for title and title template.

useHead({
  title: {
    textContent: 'high-priority title',
    tagPriority: 'high',
  },
})
// ...
useHead({
  title: 'new title'
})
// ...
// title will be "high-priortiy title"

useSeoMeta themeColor

You can now provide themeColor as an object or an array of objects with the media key. This allows you to provide different themes depending on the device and user preferences.

useSeoMeta({
  themeColor: [
    { content: 'cyan', media: '(prefers-color-scheme: light)' },
    { content: 'black', media: '(prefers-color-scheme: dark)' },
  ],
})

:bug: Bug Fixes

  • addons: avoid transforming useSeoMeta with spread operator (3bca93d), closes #159

  • unhead: avoid deduping tags with higher priority

  • unhead: sorting tag alias offset relative

  • useHeadSafe: allow relative href (c6385c3), closes #162

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.