@scalar/starlight 0.2.7 → 0.2.9
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.
- package/package.json +6 -6
- package/src/integration.ts +4 -4
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"openapi",
|
|
19
19
|
"swagger"
|
|
20
20
|
],
|
|
21
|
-
"version": "0.2.
|
|
21
|
+
"version": "0.2.9",
|
|
22
22
|
"engines": {
|
|
23
23
|
"node": ">=22"
|
|
24
24
|
},
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"documentation": "https://scalar.com/products/api-references/integrations/starlight"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@scalar/astro": "0.4.
|
|
52
|
-
"@scalar/client-side-rendering": "0.4.
|
|
51
|
+
"@scalar/astro": "0.4.24",
|
|
52
|
+
"@scalar/client-side-rendering": "0.4.6"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@astrojs/starlight": "0.
|
|
56
|
-
"astro": "
|
|
55
|
+
"@astrojs/starlight": "0.42.2",
|
|
56
|
+
"astro": "7.2.10"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@astrojs/starlight": ">=0.32.0",
|
|
60
|
-
"astro": "^5.0.0 || ^6.0.0"
|
|
60
|
+
"astro": "^5.0.0 || ^6.0.0 || ^7.0.0"
|
|
61
61
|
},
|
|
62
62
|
"scripts": {
|
|
63
63
|
"dev": "cd playground && pnpm dev",
|
package/src/integration.ts
CHANGED
|
@@ -37,10 +37,10 @@ const references = new Map<string, ScalarReference>()
|
|
|
37
37
|
/**
|
|
38
38
|
* The subset of a Vite plugin this integration uses.
|
|
39
39
|
*
|
|
40
|
-
* Astro
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* without importing
|
|
40
|
+
* The supported Astro majors bundle different Vite versions. Astro 7 uses
|
|
41
|
+
* Vite 8 like the workspace, but Astro 5 and 6 use older versions whose `Plugin`
|
|
42
|
+
* types differ. Describing just these hooks keeps the plugin compatible with
|
|
43
|
+
* every supported Astro version without importing a version-specific type.
|
|
44
44
|
*/
|
|
45
45
|
type VirtualModulePlugin = {
|
|
46
46
|
name: string
|