@nuxt/scripts 0.6.5 → 0.7.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 (65) hide show
  1. package/README.md +1 -1
  2. package/dist/client/200.html +9 -9
  3. package/dist/client/404.html +9 -9
  4. package/dist/client/_nuxt/{D3k5CjNA.js → BW5_3H_7.js} +1 -1
  5. package/dist/client/_nuxt/{D9Ze639F.js → CObySb1Z.js} +1 -1
  6. package/dist/client/_nuxt/Cdyv1BV6.js +31 -0
  7. package/dist/client/_nuxt/{D6UD5WyS.js → DPxoUSuY.js} +1 -1
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/b4af023e-aaec-4265-8ade-ce133bb4c4c3.json +1 -0
  10. package/dist/client/_nuxt/entry.FVeyw1Qn.css +1 -0
  11. package/dist/client/_nuxt/error-404.D8Cdd2Pl.css +1 -0
  12. package/dist/client/_nuxt/error-500.BENoupyF.css +1 -0
  13. package/dist/client/index.html +9 -9
  14. package/dist/module.d.mts +2 -10
  15. package/dist/module.d.ts +2 -10
  16. package/dist/module.json +2 -2
  17. package/dist/module.mjs +13 -4
  18. package/dist/runtime/components/ScriptCrisp.vue +10 -7
  19. package/dist/runtime/components/ScriptGoogleAdsense.vue +7 -7
  20. package/dist/runtime/components/ScriptGoogleMaps.vue +224 -66
  21. package/dist/runtime/components/ScriptIntercom.vue +10 -7
  22. package/dist/runtime/components/ScriptLemonSqueezy.vue +1 -1
  23. package/dist/runtime/components/ScriptStripePricingTable.vue +6 -6
  24. package/dist/runtime/components/ScriptVimeoPlayer.vue +62 -38
  25. package/dist/runtime/components/ScriptYouTubePlayer.vue +9 -9
  26. package/dist/runtime/composables/useScript.d.ts +6 -1
  27. package/dist/runtime/composables/useScript.js +8 -8
  28. package/dist/runtime/composables/useScriptEventPage.d.ts +2 -2
  29. package/dist/runtime/composables/useScriptEventPage.js +6 -5
  30. package/dist/runtime/registry/clarity.d.ts +1 -12
  31. package/dist/runtime/registry/cloudflare-web-analytics.d.ts +1 -3
  32. package/dist/runtime/registry/crisp.d.ts +1 -3
  33. package/dist/runtime/registry/fathom-analytics.d.ts +1 -3
  34. package/dist/runtime/registry/google-adsense.d.ts +1 -3
  35. package/dist/runtime/registry/google-analytics.d.ts +2 -10
  36. package/dist/runtime/registry/google-analytics.js +6 -3
  37. package/dist/runtime/registry/google-maps.d.ts +2 -4
  38. package/dist/runtime/registry/google-maps.js +1 -3
  39. package/dist/runtime/registry/google-tag-manager.d.ts +2 -10
  40. package/dist/runtime/registry/hotjar.d.ts +1 -3
  41. package/dist/runtime/registry/intercom.d.ts +1 -3
  42. package/dist/runtime/registry/lemon-squeezy.d.ts +1 -3
  43. package/dist/runtime/registry/matomo-analytics.d.ts +1 -3
  44. package/dist/runtime/registry/matomo-analytics.js +6 -2
  45. package/dist/runtime/registry/meta-pixel.d.ts +2 -3
  46. package/dist/runtime/registry/meta-pixel.js +5 -1
  47. package/dist/runtime/registry/npm.d.ts +1 -3
  48. package/dist/runtime/registry/plausible-analytics.d.ts +1 -3
  49. package/dist/runtime/registry/segment.d.ts +2 -5
  50. package/dist/runtime/registry/stripe.d.ts +1 -3
  51. package/dist/runtime/registry/vimeo-player.d.ts +1 -3
  52. package/dist/runtime/registry/vimeo-player.js +1 -1
  53. package/dist/runtime/registry/x-pixel.d.ts +1 -3
  54. package/dist/runtime/registry/x-pixel.js +6 -2
  55. package/dist/runtime/registry/youtube-player.d.ts +1 -3
  56. package/dist/runtime/registry/youtube-player.js +1 -1
  57. package/dist/runtime/types.d.ts +5 -5
  58. package/dist/runtime/types.js +1 -1
  59. package/dist/runtime/utils.d.ts +2 -4
  60. package/package.json +41 -37
  61. package/dist/client/_nuxt/BA8oXX6l.js +0 -31
  62. package/dist/client/_nuxt/builds/meta/a5c6ec68-62ae-43af-96d0-bdd9f64f38b1.json +0 -1
  63. package/dist/client/_nuxt/entry.Cts5wDvr.css +0 -1
  64. package/dist/client/_nuxt/error-404.-RjlvToe.css +0 -1
  65. package/dist/client/_nuxt/error-500.Bz7LXgZy.css +0 -1
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@nuxt/scripts",
3
3
  "type": "module",
4
- "version": "0.6.5",
5
- "packageManager": "pnpm@9.5.0",
4
+ "version": "0.7.0",
5
+ "packageManager": "pnpm@9.7.1",
6
6
  "description": "Load third-party scripts with better performance, privacy and DX in Nuxt Apps.",
7
7
  "author": {
8
8
  "website": "https://harlanzw.com",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "scripts": {
38
- "build": "pnpm prepack",
38
+ "build": "pnpm dev:prepare && pnpm prepack",
39
39
  "client:build": "nuxi generate client",
40
40
  "client:dev": "nuxi dev client --port 3300",
41
41
  "prepack": "nuxt-module-build build && npm run client:build",
@@ -48,15 +48,13 @@
48
48
  "lint": "eslint .",
49
49
  "lint:fix": "eslint . --fix",
50
50
  "test": "vitest",
51
- "test:types": "npx nuxi typecheck",
51
+ "test:types": "echo 'broken due to type regeneration, use pnpm typecheck' && npx nuxi typecheck",
52
52
  "script:generate-tpc": "bun ./scripts/generateTpcScripts.ts && pnpm lint:fix"
53
53
  },
54
54
  "build": {
55
55
  "externals": [
56
56
  "@unhead/vue",
57
57
  "@unhead/schema",
58
- "#nuxt-scripts",
59
- "#nuxt-scripts-validator",
60
58
  "third-party-capital",
61
59
  "knitwork",
62
60
  "estree-walker",
@@ -69,61 +67,67 @@
69
67
  "dependencies": {
70
68
  "@nuxt/devtools-kit": "^1.3.9",
71
69
  "@nuxt/devtools-ui-kit": "^1.3.9",
72
- "@nuxt/kit": "^3.12.3",
73
- "@types/google.maps": "^3.55.11",
70
+ "@nuxt/kit": "^3.12.4",
71
+ "@types/google.maps": "^3.55.12",
74
72
  "@types/stripe-v3": "^3.1.33",
75
73
  "@types/vimeo__player": "^2.18.3",
76
74
  "@types/youtube": "^0.0.50",
77
- "@unhead/vue": "^1.9.16",
78
- "@vueuse/core": "^10.11.0",
75
+ "@unhead/vue": "^1.10.0",
76
+ "@vueuse/core": "^11.0.1",
79
77
  "consola": "^3.2.3",
80
78
  "defu": "^6.1.4",
81
79
  "h3": "^1.12.0",
82
- "magic-string": "^0.30.10",
80
+ "magic-string": "^0.30.11",
83
81
  "mlly": "^1.7.1",
84
82
  "ofetch": "^1.3.4",
85
83
  "ohash": "^1.1.3",
86
84
  "pathe": "^1.1.2",
87
85
  "pkg-types": "^1.1.3",
88
- "semver": "^7.6.2",
89
- "shiki": "^1.10.3",
86
+ "semver": "^7.6.3",
87
+ "shiki": "1.14.1",
90
88
  "sirv": "^2.0.4",
91
89
  "std-env": "^3.7.0",
92
- "third-party-capital": "^2.1.1",
93
- "ufo": "^1.5.3",
94
- "unimport": "^3.7.2",
95
- "unplugin": "^1.11.0",
90
+ "third-party-capital": "2.3.0",
91
+ "ufo": "^1.5.4",
92
+ "unimport": "^3.10.1",
93
+ "unplugin": "^1.12.2",
96
94
  "unstorage": "^1.10.2",
97
- "valibot": "^0.36.0"
95
+ "valibot": "^0.38.0"
98
96
  },
99
97
  "devDependencies": {
100
98
  "@nuxt/devtools-ui-kit": "^1.3.9",
101
- "@nuxt/eslint-config": "^0.3.13",
102
- "@nuxt/module-builder": "^0.8.1",
103
- "@nuxt/test-utils": "3.13.1",
99
+ "@nuxt/eslint-config": "^0.5.1",
100
+ "@nuxt/module-builder": "^0.8.3",
101
+ "@nuxt/test-utils": "3.14.1",
104
102
  "@types/semver": "^7.5.8",
105
- "@typescript-eslint/typescript-estree": "^7.16.0",
106
- "@unhead/schema": "^1.9.16",
103
+ "@typescript-eslint/typescript-estree": "^8.2.0",
104
+ "@unhead/schema": "^1.10.0",
107
105
  "acorn-loose": "^8.4.0",
108
- "bumpp": "^9.4.1",
106
+ "bumpp": "^9.5.1",
109
107
  "changelogen": "^0.5.5",
110
- "eslint": "9.7.0",
111
- "eslint-plugin-n": "^17.9.0",
108
+ "eslint": "9.9.0",
109
+ "eslint-plugin-n": "^17.10.2",
112
110
  "knitwork": "^1.1.0",
113
- "nuxt": "^3.12.3",
111
+ "nuxt": "^3.12.4",
114
112
  "nuxt-scripts-devtools": "workspace:*",
115
- "playwright-core": "^1.45.1",
116
- "typescript": "^5.5.3",
117
- "vitest": "^2.0.2",
118
- "vue": "^3.4.31",
119
- "vue-router": "^4.4.0"
113
+ "playwright-core": "^1.46.1",
114
+ "typescript": "^5.5.4",
115
+ "vitest": "^2.0.5",
116
+ "vue": "^3.4.38",
117
+ "vue-router": "^4.4.3"
120
118
  },
121
119
  "resolutions": {
122
120
  "@nuxt/scripts": "workspace:*",
123
- "nuxt": "^3.12.3",
121
+ "@unhead/dom": "1.10.0",
122
+ "@unhead/schema": "1.10.0",
123
+ "@unhead/shared": "1.10.0",
124
+ "@unhead/ssr": "1.10.0",
125
+ "@unhead/vue": "1.10.0",
126
+ "nuxt": "^3.12.4",
124
127
  "nuxt-scripts-devtools": "workspace:*",
125
- "vue": "^3.4.31",
126
- "vue-router": "^4.4.0",
127
- "shiki": "1.10.3"
128
+ "shiki": "1.10.3",
129
+ "unhead": "1.10.0",
130
+ "vue": "^3.4.38",
131
+ "vue-router": "^4.4.3"
128
132
  }
129
- }
133
+ }