Releases: nuxt/scripts
v0.11.9
🚀 Features
🐞 Bug Fixes
- Support cdnURL for bundled scripts - by @harlan-zw in #472 (6f957)
- meta-pixel: Refine fbq type definitions - by @tsukiyama-3 in #464 (3ba8a)
View changes on GitHub
v0.11.8
🐞 Bug Fixes
- GoogleMaps:
- UmamiAnalytics:
- V2.18 compatibility - by @harlan-zw (7671c)
- VimeoPlayer:
- Switch to new oembed API for thumbnails - by @harlan-zw (09fa6)
- rybbit:
- Support number
siteId
- by @harlan-zw (ab89f) - Prefer top level functions - by @harlan-zw (88533)
- Support number
View changes on GitHub
v0.11.7
v0.11.6
🐞 Bug Fixes
- bundling: Avoid bundling scripts that are missing options - by @harlan-zw (e4b40)
- clarity: Proxying broken once clarity loads - by @harlan-zw (8469d)
- snapchatPixel: Broken option merging when mocked - by @harlan-zw (49f7d)
View changes on GitHub
v0.11.5
v0.11.4
🐞 Bug Fixes
- Register core composables with higher priority - by @harlan-zw (c2599)
View changes on GitHub
v0.11.3
ℹ️ If you're having type issues with these still, do a nuxi upgrade --force
. Unhead 2.0.1 includes a fix for proxy.gtag
.
🐞 Bug Fixes
- Resolve Unhead context from Nuxt instance - by @harlan-zw (2e55b)
- Avoid registering the registry composables twice - by @harlan-zw (8c754)
- GoogleAnalytics: Improved type safety - by @harlan-zw (06139)
- GoogleMaps: Dedupe markers based on position - by @harlan-zw (45fd2)
- GoogleTagManager: Add all query params - by @harlan-zw (6f54f)
- googleMaps: Region, language and version be own props - by @ptdev in #433 (458d7)
View changes on GitHub
v0.11.2
What's Changed
- fix: typecheck error by @tsukiyama-3 in #429
- fix(googleMaps): configurable google map options by @ptdev in #424
New Contributors
- @tsukiyama-3 made their first contribution in #429
Full Changelog: v0.11.1...v0.11.2
v0.11.1
What's Changed
- fix(deps): add unenv by @huang-julien in #413
- fix: use simple inlined noop instead of
unenv
by @danielroe in #420 - chore: add ohash v1 to docs deploy by @danielroe in #418
- fix: resolve @unhead/vue from module and catch if fails by @huang-julien in #417
Full Changelog: v0.11.0...v0.11.1
v0.11.0
Breaking Changes
New Nuxt Version Requirement
The latest Nuxt Scripts now requires Nuxt v3.16. Please upgrade using nuxi upgrade --force
.
Updated useScript()
🚦 Impact Level: High
- Script instance is no longer augmented as a proxy and promise
script.proxy
is rewritten for simpler, more stable behaviorstub()
and runtime hookscript:instance-fn
are removed
Replacing promise usage
If you're using the script as a promise you should instead opt to use the onLoaded()
functions.
const script = useScript()
-script.then(() => console.log('loaded')
+script.onLoaded(() => console.log('loaded'))
Replacing proxy usage
If you're accessing the underlying API directly from the script instance, you will now need to only access it from the .proxy
.
const script = useScript('..', {
use() { return { foo: [] } }
})
-script.foo.push('bar')
+script.proxy.foo.push('bar')
Replacing stub()
If you were using stub for anything you should replace this with either custom use()
behavior.
const script = useScript('...', {
- stub() { return { foo: import.meta.server ? [] : undefined } }
})
+script.proxy = {} // your own implementation
What's Changed
- fix(googleMaps): fix window type augmentation by @huang-julien in #409
- build: add missing externals by @huang-julien in #415
Full Changelog: v0.10.5...v0.11.0