Skip to content

Releases: nuxt/scripts

v0.11.4

25 Mar 20:18
Compare
Choose a tag to compare

   🐞 Bug Fixes

    View changes on GitHub

v0.11.3

25 Mar 19:58
Compare
Choose a tag to compare

⚠️ If you're using Google Analytics or Google Tag Manager please verify data is still being collected.

ℹ️ 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

    View changes on GitHub

v0.11.2

25 Mar 19:55
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.11.1...v0.11.2

v0.11.1

09 Mar 06:17
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.11.0...v0.11.1

v0.11.0

08 Mar 03:51
Compare
Choose a tag to compare

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

⚠️ Breaking Changes:

  • Script instance is no longer augmented as a proxy and promise
  • script.proxy is rewritten for simpler, more stable behavior
  • stub() and runtime hook script: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

Full Changelog: v0.10.5...v0.11.0

v0.10.5

26 Feb 12:10
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.10.4...v0.10.5

v0.10.4

26 Feb 12:09
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.10.3...v0.10.4

v0.10.3

26 Feb 12:09
Compare
Choose a tag to compare

Full Changelog: v0.10.2...v0.10.3

v0.10.2

14 Feb 03:28
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.10.1...v0.10.2

v0.10.0

07 Feb 12:30
Compare
Choose a tag to compare

compare changes

🚀 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