Skip to content

Releases: nuxt/scripts

v0.6.0

06 Jul 11:11
Compare
Choose a tag to compare

compare changes

This release includes several breaking changes. It will most likely be the last release with major breaking changes, leading to a stable release and public announcement. Please see the migration guide at the bottom of the release notes if you've started using Nuxt Scripts in public preview.

🚀 New Facade Components

This release includes Facade components for Crisp, Intercom and Lemon Squeezy. These should provide an improvement to your web vitals.

You can learn more about these work on the new Facade Components documentation.

v0.6.0

🚀 Enhancements

  • Detect await $script.load() (#117)
  • ⚠️ Convert module config globals to object (#127)
  • ScriptIntercom (fa5ab56)
  • useScriptCrisp and ScriptCrisp (#128)
  • ⚠️ ScriptLemonSqueezy (#130)

🩹 Fixes

  • tpc: Respect script location and action field (#105)
  • docs: Matomo-analytics website url (#118)
  • Generate globals plugin correctly (1594f67)
  • Use object syntax to define NuxtConfigScriptRegistry (#124)
  • Avoid adding plugin if module is disabled (2e4df43)
  • Devtool UI improvements (a8bf500)
  • Make scripts accessible at nuxtApp.$scripts (a41347c)
  • Hook up UI props (993c123)
  • ⚠️ ScriptCarbonAds prefer ready event (d32e0d8)
  • Consistent component error event emits (c9d2b3e)
  • ⚠️ Rename useElementScriptTrigger, useConsentScriptTrigger, useAnalyticsPageEvent (038d891)
  • Properly support array triggers with useScriptTriggerElement (ade64a4)

💅 Refactors

  • tpc: Move tests to AST instead of code snapshots (#99)
  • Refactor import { type foo } to import type { foo } (#108)
  • tpc: Remove augmentWindowTypes (#119)

📖 Documentation

  • readme: Fix links in Next Steps (#102)
  • Add basic contribution guide (#109)
  • Refactor script setup lang="ts" (#116)
  • Fix contributing guide (#122)

⚠️ Breaking Changes

  • ⚠️ Convert module config globals to object (#127)
  • ⚠️ ScriptLemonSqueezy (#130)
  • ⚠️ ScriptCarbonAds prefer ready event (d32e0d8)
  • ⚠️ Rename useElementScriptTrigger, useConsentScriptTrigger, useAnalyticsPageEvent (038d891)

❤️ Contributors

Migration Guide

Object Globals Config

The globals config now must be provided as an object. This allows us to create an easy to reference id for accessing the script instance. Please see the updated global scripts docs.

export default defineNuxtConfig({
  scripts: {
-   globals: [/* ... */]
+   globals: {/* ... */]
  }
})

Composable renames

All of the Nuxt Scripts composables have been renamed for improved scope clarity.

  • useElementScriptTrigger -> useScriptTriggerElement
  • useConsentScriptTrigger -> useScriptTriggerConsent
  • useAnalyticsPageEvent -> useScriptEventPage

v0.5.1

12 Jun 03:48
Compare
Choose a tag to compare

compare changes

🩹 Fixes

❤️ Contributors

v0.5.0

12 Jun 03:06
Compare
Choose a tag to compare

compare changes

🩹 Fixes

❤️ Contributors

v0.4.8

12 Jun 02:55
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • tpc: Build-time third-party-capital composables (#81)
  • Clarity (#91)

🩹 Fixes

  • vimeo: Support url prop (#82)
  • Correct scriptBundling return type (#85)

📖 Documentation

  • Update contributors placeholder to chrome aurora (#84)
  • Tweak wording of perf results (#89)
  • Add more detail to billing docs (#88)

❤️ Contributors

v0.4.7

04 Jun 06:27
Compare
Choose a tag to compare

compare changes

🚀 Enhancements

  • Carbon ads (#80)

❤️ Contributors

v0.4.6

04 Jun 06:26
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.4.5...v0.4.6

v0.4.5

03 Jun 14:20
Compare
Choose a tag to compare
chore: bump docs

v0.4.4

02 Jun 12:38
Compare
Choose a tag to compare

compare changes

🩹 Fixes

  • Force useRegistry return type (#73)

📖 Documentation

  • Fix homepage css (#68)
  • Fix homepage ButtonGroup mobile rounded border (#71)

❤️ Contributors

v0.4.3

18 May 01:18
Compare
Choose a tag to compare

compare changes

🏡 Chore

❤️ Contributors