Skip to content

Commit f545526

Browse files
committed
fix!: drop type dependencies
1 parent 0ba773b commit f545526

File tree

8 files changed

+3402
-3693
lines changed

8 files changed

+3402
-3693
lines changed

docs/content/scripts/content/google-maps.md

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ links:
1616

1717
Nuxt Scripts provides a `useScriptGoogleMaps` composable and a headless `ScriptGoogleMaps` component to interact with the Google Maps.
1818

19+
## Types
20+
21+
To use Google Maps with full TypeScript support, you will need
22+
to install the `@types/google.map` dependency.
23+
24+
```bash
25+
pnpm add -D @types/google.map
26+
```
27+
1928
## ScriptGoogleMaps
2029

2130
The `ScriptGoogleMaps` component is a wrapper around the `useScriptGoogleMaps` composable. It provides a simple way to embed Google Maps in your Nuxt app.

docs/content/scripts/content/vimeo-player.md

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ links:
1616

1717
Nuxt Scripts provides a `useScriptVimeoPlayer` composable and a headless `ScriptVimeoPlayer` a component to interact with the Vimeo Player.
1818

19+
## Types
20+
21+
To use Video Player with full TypeScript support, you will need
22+
to install the `@types/vimeo__player` dependency.
23+
24+
```bash
25+
pnpm add -D @types/vimeo__player
26+
```
27+
1928
## ScriptVimeoPlayer
2029

2130
The `ScriptVimeoPlayer` component is a wrapper around the `useScriptVimeoPlayer` composable. It provides a simple way to embed Vimeo videos in your Nuxt app.

docs/content/scripts/content/youtube-player.md

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ links:
1616

1717
Nuxt Scripts provides a `useScriptYouTubePlayer` composable and a headless `ScriptYouTubePlayer` component to interact with the YouTube Player.
1818

19+
## Types
20+
21+
To use YouTube with full TypeScript support, you will need
22+
to install the `@types/youtube` dependency.
23+
24+
```bash
25+
pnpm add -D @types/youtube
26+
```
27+
1928
## ScriptYouTubePlayer
2029

2130
The `ScriptYouTubePlayer` component is a wrapper around the `useScriptYouTubePlayer` composable. It provides a simple way to embed YouTube videos in your Nuxt app.

docs/content/scripts/payments/stripe.md

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ Nuxt Scripts provides two Stripe features:
1818
- `useScriptStripe` composable which loads the script `https://js.stripe.com/v3/`.
1919
- `ScriptStripePricingTable` component that allows you to embed a [Stripe Pricing Table](https://docs.stripe.com/payments/checkout/pricing-table) on your site using `https://js.stripe.com/v3/pricing-table.js`.
2020

21+
## Types
22+
23+
To use the Stripe with full TypeScript support, you will need
24+
to install the `@stripe/stripe-js` dependency.
25+
26+
```bash
27+
pnpm add -D @stripe/stripe-js
28+
```
29+
2130
## Loading Globally
2231

2332
Stripe recommends loading their script globally on your app to improve fraud detection.

package.json

+52-38
Original file line numberDiff line numberDiff line change
@@ -62,75 +62,89 @@
6262
"#build/modules/nuxt-scripts-gtm",
6363
"#build/modules/nuxt-scripts-ga",
6464
"@vimeo/player",
65-
"esbuild"
65+
"esbuild",
66+
"unimport"
6667
]
6768
},
68-
"dependencies": {
69-
"@nuxt/devtools-kit": "^1.7.0",
70-
"@nuxt/devtools-ui-kit": "^1.7.0",
71-
"@nuxt/kit": "^3.15.0",
72-
"@stripe/stripe-js": "^5.4.0",
69+
"peerDependencies": {
70+
"@stripe/stripe-js": "^5.6.0",
7371
"@types/google.maps": "^3.58.1",
7472
"@types/vimeo__player": "^2.18.3",
7573
"@types/youtube": "^0.1.0",
76-
"@unhead/vue": "1.11.14",
77-
"@vueuse/core": "^12.2.0",
78-
"consola": "^3.3.3",
74+
"@unhead/vue": "^1"
75+
},
76+
"peerDependenciesMeta": {
77+
"@stripe/stripe-js": {
78+
"optional": true
79+
},
80+
"@types/google.maps": {
81+
"optional": true
82+
},
83+
"@types/vimeo__player": {
84+
"optional": true
85+
},
86+
"@types/youtube": {
87+
"optional": true
88+
}
89+
},
90+
"dependencies": {
91+
"@nuxt/kit": "catalog:",
92+
"@vueuse/core": "^12.5.0",
93+
"consola": "^3.4.0",
7994
"defu": "^6.1.4",
80-
"h3": "^1.13.0",
95+
"h3": "^1.15.0",
8196
"magic-string": "^0.30.17",
82-
"mlly": "^1.7.3",
8397
"ofetch": "^1.4.1",
8498
"ohash": "^1.1.4",
85-
"pathe": "^1.1.2",
86-
"pkg-types": "^1.3.0",
87-
"semver": "^7.6.3",
88-
"shiki": "1.24.4",
99+
"pathe": "^2.0.2",
100+
"pkg-types": "^1.3.1",
101+
"semver": "^7.7.1",
89102
"sirv": "^3.0.0",
90103
"std-env": "^3.8.0",
91-
"third-party-capital": "2.3.0",
104+
"third-party-capital": "3.0.0",
92105
"ufo": "^1.5.4",
93-
"unimport": "^3.14.5",
94106
"unplugin": "^2.1.2",
95107
"unstorage": "^1.14.4",
96-
"valibot": "1.0.0-beta.9"
108+
"valibot": "^1.0.0-beta.15"
97109
},
98110
"devDependencies": {
99-
"@nuxt/devtools-ui-kit": "^1.7.0",
100-
"@nuxt/eslint-config": "^0.7.4",
111+
"shiki": "2.3.2",
112+
"@nuxt/devtools-kit": "^2.0.0",
113+
"@nuxt/devtools-ui-kit": "^2.0.0",
114+
"@nuxt/eslint-config": "^1.0.0",
101115
"@nuxt/module-builder": "^0.8.4",
102-
"@nuxt/test-utils": "3.15.1",
116+
"@nuxt/test-utils": "3.15.4",
103117
"@types/semver": "^7.5.8",
104-
"@typescript-eslint/typescript-estree": "^8.19.0",
105-
"@unhead/schema": "1.11.14",
118+
"@typescript-eslint/typescript-estree": "^8.23.0",
119+
"@unhead/schema": "^1.11.18",
106120
"acorn-loose": "^8.4.0",
107-
"bumpp": "^9.9.2",
121+
"bumpp": "^10.0.2",
108122
"changelogen": "^0.5.7",
109-
"eslint": "9.17.0",
123+
"eslint": "9.19.0",
110124
"eslint-plugin-n": "^17.15.1",
111-
"happy-dom": "^16.3.0",
125+
"happy-dom": "^17.0.0",
112126
"knitwork": "^1.2.0",
113-
"nuxt": "^3.15.0",
127+
"nuxt": "catalog:",
114128
"nuxt-scripts-devtools": "workspace:*",
115-
"playwright-core": "^1.49.1",
116-
"typescript": "5.7.2",
117-
"vitest": "^2.1.8",
129+
"playwright-core": "^1.50.1",
130+
"typescript": "5.7.3",
131+
"vitest": "^3.0.5",
118132
"vue": "^3.5.13",
119133
"vue-router": "^4.5.0",
120134
"vue-tsc": "^2.2.0"
121135
},
122136
"resolutions": {
123-
"@nuxt/schema": "3.15.0",
137+
"@nuxt/schema": "catalog:",
124138
"@nuxt/scripts": "workspace:*",
125-
"@unhead/dom": "1.11.11",
126-
"@unhead/schema": "1.11.11",
127-
"@unhead/shared": "1.11.11",
128-
"@unhead/ssr": "1.11.11",
129-
"@unhead/vue": "1.11.11",
130-
"nuxt": "^3.15.0",
139+
"@unhead/dom": "1.11.18",
140+
"@unhead/schema": "1.11.18",
141+
"@unhead/shared": "1.11.18",
142+
"@unhead/ssr": "1.11.18",
143+
"@unhead/vue": "1.11.18",
144+
"nuxt": "catalog:",
131145
"nuxt-scripts-devtools": "workspace:*",
132146
"typescript": "5.6.3",
133-
"unhead": "1.11.11",
147+
"unhead": "1.11.18",
134148
"vue": "^3.5.13",
135149
"vue-router": "^4.5.0",
136150
"consola": "^3.3.3"

0 commit comments

Comments
 (0)