unjs/unhead (@unhead/vue)
### [`v1.9.4`](https://togithub.com/unjs/unhead/releases/tag/v1.9.4)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.3...v1.9.4)
##### 🐞 Bug Fixes
- **scripts**: Trigger load on client-side by default - by [@harlan-zw](https://togithub.com/harlan-zw) [(3a93b)](https://togithub.com/unjs/unhead/commit/3a93ba5)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.3...v1.9.4)
### [`v1.9.3`](https://togithub.com/unjs/unhead/releases/tag/v1.9.3)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.2...v1.9.3)
##### 🐞 Bug Fixes
- **scripts**:
- Avoid recursive promise objects - by [@harlan-zw](https://togithub.com/harlan-zw) [(c0e75)](https://togithub.com/unjs/unhead/commit/c0e7575)
- Silently fail broken `use` usage - by [@harlan-zw](https://togithub.com/harlan-zw) [(4a447)](https://togithub.com/unjs/unhead/commit/4a44752)
- Ensure Vue `status` gets reactive stub - by [@harlan-zw](https://togithub.com/harlan-zw) [(8d9b5)](https://togithub.com/unjs/unhead/commit/8d9b544)
- More open types for function callbacks - by [@harlan-zw](https://togithub.com/harlan-zw) [(17218)](https://togithub.com/unjs/unhead/commit/17218f5)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.2...v1.9.3)
### [`v1.9.2`](https://togithub.com/unjs/unhead/releases/tag/v1.9.2)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.1...v1.9.2)
##### 🐞 Bug Fixes
- **useScript**:
- Support `trigger: (fn: Function)` - by [@harlan-zw](https://togithub.com/harlan-zw) [(33fa8)](https://togithub.com/unjs/unhead/commit/33fa8e3)
- Vue status `loading` not syncing - by [@harlan-zw](https://togithub.com/harlan-zw) [(d0c6e)](https://togithub.com/unjs/unhead/commit/d0c6eca)
- Incorrect `onerror` triggering - by [@harlan-zw](https://togithub.com/harlan-zw) [(74db4)](https://togithub.com/unjs/unhead/commit/74db4ac)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.1...v1.9.2)
### [`v1.9.1`](https://togithub.com/unjs/unhead/releases/tag/v1.9.1)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.0...v1.9.1)
##### 🐞 Bug Fixes
- **scripts**: Avoid recursive event handling - by [@harlan-zw](https://togithub.com/harlan-zw) [(795d0)](https://togithub.com/unjs/unhead/commit/795d07b)
##### 🏎 Performance
- **scripts**: Skip `onloadstart` event - by [@harlan-zw](https://togithub.com/harlan-zw) [(d5a71)](https://togithub.com/unjs/unhead/commit/d5a7161)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.0...v1.9.1)
### [`v1.9.0`](https://togithub.com/unjs/unhead/releases/tag/v1.9.0)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.20...v1.9.0)
##### Release 1.9.0 - `useScript` Stable
`useScript` is built to provide better performance and DX when working with Third-Party Scripts. In this release we reduce the composable size has been reduced by 30% with some notable breaking changes:
##### Removed trigger `idle`
While this was handy in user-land, providing support for it meant providing a polyfill for `window.requestIdleCallback` due to limited browser support. Most integrations will already ship a polyfill for this so it added extra unnecessary weight.
If you'd like to re-implement this behaviour there's [a recipe](https://unhead.unjs.io/usage/composables/use-script#triggering-script-load) on the docs and you should provide your own polyfill (if needed).
##### Early connections removed
When using the composable it would try and guess how the script is being used and append a `dns-prefetch` or a `preconnect` `` depending on usage. To reduce the composable weight, this should now be implemented in user or integration land.
```html
```
##### Awaiting Script Changes
When you wanted to avoid using the Proxy API and use the script instance directly, you could use the `$script.waitForLoad()` function. To reduce the weight, the `$script` object itself is now a promise:
```ts
const { $script } = useScript('', { use: () => window.myScript })
$script
.then(instance => {
// script is loaded, instance is the same as window.myScript
})
.catch(() => {
// script failed to load
})
```
##### Changelog
##### 🚨 Breaking Changes
- **script**:
- Remove `script:transform` hook - by [@harlan-zw](https://togithub.com/harlan-zw) [(1b153)](https://togithub.com/unjs/unhead/commit/1b1532e)
- `$script` promisable, remove `waitForLoad` - by [@harlan-zw](https://togithub.com/harlan-zw) [(4646d)](https://togithub.com/unjs/unhead/commit/4646d57)
- Remove `$script.loaded` - by [@harlan-zw](https://togithub.com/harlan-zw) [(7cba5)](https://togithub.com/unjs/unhead/commit/7cba505)
- EventContext option, skip `onabort`, `onprogress` events - by [@harlan-zw](https://togithub.com/harlan-zw) [(335f4)](https://togithub.com/unjs/unhead/commit/335f419)
- Remove early connections - by [@harlan-zw](https://togithub.com/harlan-zw) [(0ebac)](https://togithub.com/unjs/unhead/commit/0ebacad)
##### 🐞 Bug Fixes
- **script**: Typed `data-*` keys - by [@harlan-zw](https://togithub.com/harlan-zw) [(e8ca7)](https://togithub.com/unjs/unhead/commit/e8ca72c)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.20...v1.9.0)
### [`v1.8.20`](https://togithub.com/unjs/unhead/releases/tag/v1.8.20)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.19...v1.8.20)
##### 🏎 Performance
- Always skip DOM render when not dirty - by [@harlan-zw](https://togithub.com/harlan-zw) [(2812f)](https://togithub.com/unjs/unhead/commit/2812f1b)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.19...v1.8.20)
### [`v1.8.19`](https://togithub.com/unjs/unhead/releases/tag/v1.8.19)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.18...v1.8.19)
##### 🐞 Bug Fixes
- **scripts**: Re-using script breaks proxy - by [@harlan-zw](https://togithub.com/harlan-zw) [(94309)](https://togithub.com/unjs/unhead/commit/94309ef)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.18...v1.8.19)
### [`v1.8.18`](https://togithub.com/unjs/unhead/releases/tag/v1.8.18)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.17...v1.8.18)
*No significant changes*
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.17...v1.8.18)
### [`v1.8.17`](https://togithub.com/unjs/unhead/releases/tag/v1.8.17)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.16...v1.8.17)
##### 🐞 Bug Fixes
- **scripts**:
- Ensure script is synced to deduper - by [@harlan-zw](https://togithub.com/harlan-zw) [(8c427)](https://togithub.com/unjs/unhead/commit/8c42722)
- Hook into proxy calls with `script:instance-fn` - by [@harlan-zw](https://togithub.com/harlan-zw) [(69a16)](https://togithub.com/unjs/unhead/commit/69a165c)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.16...v1.8.17)
### [`v1.8.16`](https://togithub.com/unjs/unhead/releases/tag/v1.8.16)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.15...v1.8.16)
##### 🐞 Bug Fixes
- **scripts**: Duplicate event registrations - by [@harlan-zw](https://togithub.com/harlan-zw) [(52023)](https://togithub.com/unjs/unhead/commit/52023da)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.15...v1.8.16)
### [`v1.8.15`](https://togithub.com/unjs/unhead/releases/tag/v1.8.15)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.14...v1.8.15)
##### 🐞 Bug Fixes
- **scripts**:
- Support string src - by [@harlan-zw](https://togithub.com/harlan-zw) [(371d8)](https://togithub.com/unjs/unhead/commit/371d8f6)
- Avoid using inline events for client only - by [@harlan-zw](https://togithub.com/harlan-zw) [(9dac9)](https://togithub.com/unjs/unhead/commit/9dac97d)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.14...v1.8.15)
### [`v1.8.14`](https://togithub.com/unjs/unhead/releases/tag/v1.8.14)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.13...v1.8.14)
##### 🐞 Bug Fixes
- **unhead**: Handle style `urls` - by [@harlan-zw](https://togithub.com/harlan-zw) [(78db9)](https://togithub.com/unjs/unhead/commit/78db9b4)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.13...v1.8.14)
### [`v1.8.13`](https://togithub.com/unjs/unhead/releases/tag/v1.8.13)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.12...v1.8.13)
##### 🐞 Bug Fixes
- **unhead**: Support normalising `style` - by [@harlan-zw](https://togithub.com/harlan-zw) [(8e07d)](https://togithub.com/unjs/unhead/commit/8e07d35)
##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.8.12...v1.8.13)
### [`v1.8.12`](https://togithub.com/unjs/unhead/releases/tag/v1.8.12)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.11...v1.8.12)
##### Bug Fixes
- empty `style` causing error ([78219cb](https://togithub.com/unjs/unhead/commit/78219cb)), closes [#324](https://togithub.com/unjs/unhead/issues/324)
### [`v1.8.11`](https://togithub.com/unjs/unhead/releases/tag/v1.8.11)
[Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.10...v1.8.11)
##### Bug Fixes
- **dom:** avoid overriding existing `styles` ([afcfb08](https://togithub.com/unjs/unhead/commit/afcfb08)), closes [#287](https://togithub.com/unjs/unhead/issues/287)
- **schema-org:** support Product merchant listing ([3cfded5](https://togithub.com/unjs/unhead/commit/3cfded5)), closes [#321](https://togithub.com/unjs/unhead/issues/321)
- **useScript:** polyfill requestIdleCallback ([96b9907](https://togithub.com/unjs/unhead/commit/96b9907)), closes [#320](https://togithub.com/unjs/unhead/issues/320)
- `useSeoMeta` no longer supports getter types ([#315](https://togithub.com/unjs/unhead/issues/315)) ([686800f](https://togithub.com/unjs/unhead/commit/686800f))
- gracefully handle disappearing head elements ([7b40442](https://togithub.com/unjs/unhead/commit/7b40442))
- handle hydrating dupeable tags ([e9e1fb1](https://togithub.com/unjs/unhead/commit/e9e1fb1))
Configuration
📅 Schedule: Branch creation - "on the 3rd day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
1.8.10
->1.9.4
Release Notes
unjs/unhead (@unhead/vue)
### [`v1.9.4`](https://togithub.com/unjs/unhead/releases/tag/v1.9.4) [Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.3...v1.9.4) ##### 🐞 Bug Fixes - **scripts**: Trigger load on client-side by default - by [@harlan-zw](https://togithub.com/harlan-zw) [(3a93b)](https://togithub.com/unjs/unhead/commit/3a93ba5) ##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.3...v1.9.4) ### [`v1.9.3`](https://togithub.com/unjs/unhead/releases/tag/v1.9.3) [Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.2...v1.9.3) ##### 🐞 Bug Fixes - **scripts**: - Avoid recursive promise objects - by [@harlan-zw](https://togithub.com/harlan-zw) [(c0e75)](https://togithub.com/unjs/unhead/commit/c0e7575) - Silently fail broken `use` usage - by [@harlan-zw](https://togithub.com/harlan-zw) [(4a447)](https://togithub.com/unjs/unhead/commit/4a44752) - Ensure Vue `status` gets reactive stub - by [@harlan-zw](https://togithub.com/harlan-zw) [(8d9b5)](https://togithub.com/unjs/unhead/commit/8d9b544) - More open types for function callbacks - by [@harlan-zw](https://togithub.com/harlan-zw) [(17218)](https://togithub.com/unjs/unhead/commit/17218f5) ##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.2...v1.9.3) ### [`v1.9.2`](https://togithub.com/unjs/unhead/releases/tag/v1.9.2) [Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.1...v1.9.2) ##### 🐞 Bug Fixes - **useScript**: - Support `trigger: (fn: Function)` - by [@harlan-zw](https://togithub.com/harlan-zw) [(33fa8)](https://togithub.com/unjs/unhead/commit/33fa8e3) - Vue status `loading` not syncing - by [@harlan-zw](https://togithub.com/harlan-zw) [(d0c6e)](https://togithub.com/unjs/unhead/commit/d0c6eca) - Incorrect `onerror` triggering - by [@harlan-zw](https://togithub.com/harlan-zw) [(74db4)](https://togithub.com/unjs/unhead/commit/74db4ac) ##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.1...v1.9.2) ### [`v1.9.1`](https://togithub.com/unjs/unhead/releases/tag/v1.9.1) [Compare Source](https://togithub.com/unjs/unhead/compare/v1.9.0...v1.9.1) ##### 🐞 Bug Fixes - **scripts**: Avoid recursive event handling - by [@harlan-zw](https://togithub.com/harlan-zw) [(795d0)](https://togithub.com/unjs/unhead/commit/795d07b) ##### 🏎 Performance - **scripts**: Skip `onloadstart` event - by [@harlan-zw](https://togithub.com/harlan-zw) [(d5a71)](https://togithub.com/unjs/unhead/commit/d5a7161) ##### [View changes on GitHub](https://togithub.com/unjs/unhead/compare/v1.9.0...v1.9.1) ### [`v1.9.0`](https://togithub.com/unjs/unhead/releases/tag/v1.9.0) [Compare Source](https://togithub.com/unjs/unhead/compare/v1.8.20...v1.9.0) ##### Release 1.9.0 - `useScript` Stable `useScript` is built to provide better performance and DX when working with Third-Party Scripts. In this release we reduce the composable size has been reduced by 30% with some notable breaking changes: ##### Removed trigger `idle` While this was handy in user-land, providing support for it meant providing a polyfill for `window.requestIdleCallback` due to limited browser support. Most integrations will already ship a polyfill for this so it added extra unnecessary weight. If you'd like to re-implement this behaviour there's [a recipe](https://unhead.unjs.io/usage/composables/use-script#triggering-script-load) on the docs and you should provide your own polyfill (if needed). ##### Early connections removed When using the composable it would try and guess how the script is being used and append a `dns-prefetch` or a `preconnect` `` depending on usage. To reduce the composable weight, this should now be implemented in user or integration land. ```html ``` ##### Awaiting Script Changes When you wanted to avoid using the Proxy API and use the script instance directly, you could use the `$script.waitForLoad()` function. To reduce the weight, the `$script` object itself is now a promise: ```ts const { $script } = useScript('Configuration
📅 Schedule: Branch creation - "on the 3rd day of the month" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.