Releases: nuxt/scripts
Releases · nuxt/scripts
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
v0.10.5
What's Changed
- perf(devtools): remove shiki by @ZTL-UwU in #399
- fix: ensure ad fallback content is visible when ads are blocked by @nexoscreator in #401
Full Changelog: v0.10.4...v0.10.5
v0.10.4
What's Changed
- fix(ScriptYouTubePlayer) : show iframe by @maximepvrt in #394
- feat(gtm): add onBeforeGtmStart by @huang-julien in #392
- perf(devtools): only bundle needed shiki langs and themes by @ZTL-UwU in #396
Full Changelog: v0.10.3...v0.10.4
v0.10.3
Full Changelog: v0.10.2...v0.10.3
v0.10.2
What's Changed
- doc: use absolute link for defaultScriptOptions by @riddla in #383
- docs(GoogleMaps): fix typo in package name by @MogliCodes in #382
- fix(googleTagManager): add missing dataLayer type by @huang-julien in #388
- docs: clarify async behavior and default script attributes by @nexoscreator in #390
- fix(googleAdsense): improve initialization & auto ads handling by @nexoscreator in #389
New Contributors
- @riddla made their first contribution in #383
- @MogliCodes made their first contribution in #382
Full Changelog: v0.10.1...v0.10.2
v0.10.0
🚀 Enhancements
- YouTubePlayer: Adjust thumbnail ratio to 640x360 (#310)
- google-adsense: Add Auto Ads support and improve script injection (#366)
- useScriptNpm: Support multiple providers with validation (#353)
- youtube:
thumbnailSize
prop with fallback support (#376) - Add umami analytics to registry (#348)
- Add Snapchat pixel to registry (#337)
🩹 Fixes
nuxtApp.$scripts
types (#303)- CarbonAds: Avoid duplicate emits (c93bd22)
- CarbonAds: Unnecessary script type (325cde1)
- CarbonAds: Missing
format
prop (#315) - Move
#nuxt-scripts
alias path (2a1ab47) - YoutubePlayer,VimeoPlayer:
⚠️ Auto width for responsive design on mobile devices (#341) ⚠️ Drop type dependencies (f545526)- Download scripts using
$fetch
with retries (39c931e) - Prefer explicit imports over
#imports
(a9af35a) - Drop
third-party-capital
(63e78d2) - youtube: Default host
youtube-nocookie.com
(d814c7e) - Prefer invisible screen reader loading indicator (ddc88a4)
- adsense: Use globally configured
client
in component (3f7e408)
💅 Refactors
- Remove TPC composable generation (#368)
📖 Documentation
- Fix typo for google analytics (#317)
- Fix inconsistent example env keys (#331)
- Improve incorrect example of using useScriptTriggerElement (#362)
🤖 CI
- Remove corepack (#372)
⚠️ Breaking Changes
- YoutubePlayer,VimeoPlayer:
⚠️ Auto width for responsive design on mobile devices (#341) ⚠️ Drop type dependencies (f545526)
❤️ Contributors
- Harlan (@harlan-zw)
- Mod08 [email protected]
- Mark1 (@0ahz)
- Harlan Wilton (@harlan-zw)
- Alfarish Fizikri [email protected]
- Nexos Creator (@nexoscreator)
- Julien Huang (@huang-julien)
- Jelmer (@jelmerdemaat)
- Michael Brevard [email protected]
- William Chong (@williamchong)
- Daniel Roe (@danielroe)
- Maxime Pauvert (@maximepvrt)
- Rahul Vashishtha (@rahul-vashishtha)
- Mounir Bouaiche (@b-mounir-dev)
v0.9.5
🚀 Enhancements
🩹 Fixes
- Avoid warming delayed script src (357d02a)
- stripe: Prefer
@stripe/stripe-js
over@types/stripe-v3
(#300) - Optional Valibot schema (#287)
📖 Documentation
- Fix typo/incomplete sentence (#285)
🏡 Chore
- Type issue (6490ce3)
- Type issue (0c5135c)
- Playground for multi datalayers (#173)
- Test scripts (1f7df13)
- Broken ci (c89380f)
- devtools: Fix deprecation (29864f1)
- Bump deps & lint (c54412f)
❤️ Contributors
- Harlan (@harlan-zw)
- Harlan Wilton (@harlan-zw)
- Julien Huang (@huang-julien)
- Morgan-retex (@morgan-retex)
- Stefano Bartoletti (@stefanobartoletti)
v0.9.4
🩹 Fixes
- matomo: Easier cloud config using
cloudId
(d7e18c4) - matomo: Support numeric
siteId
(299516c) - Avoid overriding
<link rek="preload"
with invalid src (25f1ade)
📖 Documentation
- Fix docs for disabling scripts in development (#281)
🏡 Chore
- Bump deps (931f4f6)
❤️ Contributors
- Harlan (@harlan-zw)
- Paul (@schnetzi)
v0.9.3
🩹 Fixes
- Use free path for virtual plugin template (8624923)
- 🐛 Fixed "height" css style property (#275)
- adsense: Push ad slot once only on dev (#276)
📖 Documentation
❤️ Contributors
- Harlan (@harlan-zw)
- Asoka Wotulo (@asokawotulo)
- Arb85 (@arb85)
- Bernhard Berger (@bernhardberger)