@nuxt/scripts 0.10.5 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/README.md +71 -71
  2. package/dist/client/200.html +10 -10
  3. package/dist/client/404.html +10 -10
  4. package/dist/client/_nuxt/{BOGJUGGn.js → BFM-Ncmx.js} +1 -1
  5. package/dist/client/_nuxt/{Bso10INu.js → BSA2bgdb.js} +1 -1
  6. package/dist/client/_nuxt/CtQNcfGE.js +1 -0
  7. package/dist/client/_nuxt/DuCkB5R-.js +21 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/e03354ab-f2ce-4d6b-8542-7b38262b3671.json +1 -0
  10. package/dist/client/_nuxt/{entry.CJckMUzn.css → entry.ipQkUTQD.css} +1 -1
  11. package/dist/client/_nuxt/error-404.BdjopNsg.css +1 -0
  12. package/dist/client/_nuxt/error-500.Bd7Z7Q7I.css +1 -0
  13. package/dist/client/index.html +10 -10
  14. package/dist/module.json +2 -2
  15. package/dist/module.mjs +7 -13
  16. package/dist/runtime/components/ScriptAriaLoadingIndicator.vue +5 -5
  17. package/dist/runtime/components/ScriptCarbonAds.vue +83 -83
  18. package/dist/runtime/components/ScriptCrisp.vue +94 -94
  19. package/dist/runtime/components/ScriptGoogleAdsense.vue +93 -93
  20. package/dist/runtime/components/ScriptGoogleMaps.vue +469 -469
  21. package/dist/runtime/components/ScriptIntercom.vue +103 -103
  22. package/dist/runtime/components/ScriptLemonSqueezy.vue +52 -52
  23. package/dist/runtime/components/ScriptLoadingIndicator.vue +22 -22
  24. package/dist/runtime/components/ScriptStripePricingTable.vue +74 -74
  25. package/dist/runtime/components/ScriptVimeoPlayer.vue +289 -289
  26. package/dist/runtime/components/ScriptYouTubePlayer.vue +215 -215
  27. package/dist/runtime/composables/useScript.d.ts +8 -4
  28. package/dist/runtime/composables/useScript.js +10 -59
  29. package/dist/runtime/registry/google-analytics.js +0 -3
  30. package/dist/runtime/registry/google-maps.d.ts +4 -10
  31. package/dist/runtime/registry/google-tag-manager.js +0 -3
  32. package/dist/runtime/registry/matomo-analytics.js +0 -4
  33. package/dist/runtime/registry/segment.js +0 -18
  34. package/dist/runtime/types.d.ts +2 -2
  35. package/dist/runtime/utils.js +1 -1
  36. package/package.json +32 -35
  37. package/dist/client/_nuxt/BqRljlc8.js +0 -21
  38. package/dist/client/_nuxt/CgFBdOe6.js +0 -1
  39. package/dist/client/_nuxt/builds/meta/a79d2e11-f9af-444c-b10e-0675b6cf7f55.json +0 -1
  40. package/dist/client/_nuxt/error-404.DrjQUyCj.css +0 -1
  41. package/dist/client/_nuxt/error-500.CIXIBnf9.css +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "0.10.5",
4
+ "version": "0.11.0",
5
5
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
6
6
  "author": {
7
7
  "website": "https://harlanzw.com",
@@ -43,15 +43,18 @@
43
43
  "#build/modules/nuxt-scripts-ga",
44
44
  "@vimeo/player",
45
45
  "esbuild",
46
- "unimport"
46
+ "unimport",
47
+ "#nuxt-scripts/types",
48
+ "#nuxt-scripts-validator"
47
49
  ]
48
50
  },
49
51
  "peerDependencies": {
50
- "@stripe/stripe-js": "^5.6.0",
52
+ "@stripe/stripe-js": "^5.10.0",
51
53
  "@types/google.maps": "^3.58.1",
52
54
  "@types/vimeo__player": "^2.18.3",
53
55
  "@types/youtube": "^0.1.0",
54
- "@unhead/vue": "^1"
56
+ "@unhead/vue": "^2.0.0-rc.8",
57
+ "nuxt": "^3.16.0"
55
58
  },
56
59
  "peerDependenciesMeta": {
57
60
  "@stripe/stripe-js": {
@@ -68,60 +71,54 @@
68
71
  }
69
72
  },
70
73
  "dependencies": {
71
- "@nuxt/kit": "^3.15.4",
72
- "@vueuse/core": "^12.7.0",
74
+ "@nuxt/kit": "^3.16.0",
75
+ "@vueuse/core": "^12.8.2",
73
76
  "consola": "^3.4.0",
74
77
  "defu": "^6.1.4",
75
- "h3": "^1.15.0",
78
+ "h3": "^1.15.1",
76
79
  "magic-string": "^0.30.17",
77
80
  "ofetch": "^1.4.1",
78
- "ohash": "^1.1.4",
81
+ "ohash": "^2.0.11",
79
82
  "pathe": "^2.0.3",
80
- "pkg-types": "^1.3.1",
81
- "semver": "^7.7.1",
83
+ "pkg-types": "^2.1.0",
82
84
  "sirv": "^3.0.1",
83
- "std-env": "^3.8.0",
85
+ "std-env": "^3.8.1",
84
86
  "ufo": "^1.5.4",
85
87
  "unplugin": "^2.2.0",
86
- "unstorage": "^1.14.4",
87
- "valibot": "^1.0.0-rc.1"
88
+ "unstorage": "^1.15.0",
89
+ "valibot": "^1.0.0-rc.3"
88
90
  },
89
91
  "devDependencies": {
90
- "@nuxt/devtools-kit": "^2.1.0",
91
- "@nuxt/devtools-ui-kit": "^2.1.0",
92
+ "@nuxt/devtools-kit": "^2.2.1",
93
+ "@nuxt/devtools-ui-kit": "^2.2.1",
92
94
  "@nuxt/eslint-config": "^1.1.0",
93
95
  "@nuxt/module-builder": "^0.8.4",
94
- "@nuxt/test-utils": "3.15.4",
96
+ "@nuxt/test-utils": "3.17.1",
95
97
  "@types/semver": "^7.5.8",
96
- "@typescript-eslint/typescript-estree": "^8.24.1",
97
- "@unhead/schema": "^1.11.19",
98
+ "@typescript-eslint/typescript-estree": "^8.26.0",
98
99
  "acorn-loose": "^8.4.0",
99
100
  "bumpp": "^10.0.3",
100
- "changelogen": "^0.5.7",
101
- "eslint": "9.19.0",
102
- "eslint-plugin-n": "^17.15.1",
103
- "happy-dom": "^17.1.1",
101
+ "changelogen": "^0.6.1",
102
+ "eslint": "9.21.0",
103
+ "eslint-plugin-n": "^17.16.2",
104
+ "happy-dom": "^17.4.0",
104
105
  "knitwork": "^1.2.0",
105
- "nuxt": "^3.15.4",
106
- "playwright-core": "^1.50.1",
107
- "shiki": "2.3.2",
108
- "typescript": "5.7.3",
109
- "vitest": "^3.0.6",
106
+ "nuxt": "^3.16.0",
107
+ "playwright-core": "^1.51.0",
108
+ "shiki": "2.5.0",
109
+ "typescript": "5.8.2",
110
+ "vitest": "^3.0.8",
110
111
  "vue": "^3.5.13",
111
112
  "vue-router": "^4.5.0",
112
- "vue-tsc": "^2.2.2"
113
+ "vue-tsc": "^2.2.8",
114
+ "@nuxt/scripts": "0.11.0"
113
115
  },
114
116
  "resolutions": {
115
117
  "@nuxt/schema": "catalog:",
116
118
  "@nuxt/scripts": "workspace:*",
117
- "@unhead/dom": "1.11.18",
118
- "@unhead/schema": "1.11.18",
119
- "@unhead/shared": "1.11.18",
120
- "@unhead/ssr": "1.11.18",
121
- "@unhead/vue": "1.11.18",
119
+ "@unhead/vue": "2.0.0-rc.8",
122
120
  "nuxt": "catalog:",
123
- "typescript": "5.6.3",
124
- "unhead": "1.11.18",
121
+ "typescript": "5.8.2",
125
122
  "vue": "^3.5.13",
126
123
  "vue-router": "^4.5.0"
127
124
  },