astro 4.6.3 → 4.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.
- package/components/ViewTransitions.astro +9 -2
- package/dist/@types/astro.d.ts +48 -6
- package/dist/assets/endpoint/generic.js +2 -2
- package/dist/assets/endpoint/node.js +2 -2
- package/dist/assets/utils/emitAsset.d.ts +6 -1
- package/dist/assets/utils/emitAsset.js +15 -9
- package/dist/assets/vite-plugin-assets.js +6 -1
- package/dist/cli/add/index.js +1 -41
- package/dist/cli/install-package.d.ts +9 -0
- package/dist/cli/install-package.js +64 -1
- package/dist/config/index.js +2 -2
- package/dist/content/runtime-assets.d.ts +1 -1
- package/dist/content/runtime-assets.js +2 -2
- package/dist/content/runtime.d.ts +1 -1
- package/dist/content/utils.d.ts +1 -1
- package/dist/content/utils.js +2 -2
- package/dist/content/vite-plugin-content-imports.js +10 -2
- package/dist/core/app/createOutgoingHttpHeaders.d.ts +1 -0
- package/dist/core/build/static-build.js +4 -0
- package/dist/core/config/schema.d.ts +332 -289
- package/dist/core/config/settings.js +3 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/create-vite.js +1 -1
- package/dist/core/dev/dev.js +34 -2
- package/dist/core/dev/restart.js +5 -1
- package/dist/core/dev/update-check.d.ts +4 -0
- package/dist/core/dev/update-check.js +36 -0
- package/dist/core/logger/core.d.ts +1 -1
- package/dist/core/messages.d.ts +3 -0
- package/dist/core/messages.js +11 -2
- package/dist/integrations/index.d.ts +28 -0
- package/dist/integrations/index.js +40 -1
- package/dist/preferences/defaults.d.ts +9 -0
- package/dist/preferences/defaults.js +9 -0
- package/dist/preferences/index.d.ts +12 -4
- package/dist/preferences/index.js +11 -4
- package/dist/runtime/client/dev-toolbar/apps/astro.d.ts +1 -1
- package/dist/runtime/client/dev-toolbar/apps/astro.js +3 -0
- package/dist/runtime/client/dev-toolbar/apps/audit/index.d.ts +1 -1
- package/dist/runtime/client/dev-toolbar/apps/settings.d.ts +1 -1
- package/dist/runtime/client/dev-toolbar/apps/xray.d.ts +1 -1
- package/dist/runtime/client/dev-toolbar/entrypoint.js +3 -2
- package/dist/runtime/client/dev-toolbar/helpers.d.ts +61 -0
- package/dist/runtime/client/dev-toolbar/helpers.js +87 -0
- package/dist/runtime/client/dev-toolbar/toolbar.d.ts +3 -2
- package/dist/runtime/client/dev-toolbar/toolbar.js +2 -1
- package/dist/runtime/server/astro-island.js +132 -137
- package/dist/runtime/server/astro-island.prebuilt-dev.d.ts +1 -1
- package/dist/runtime/server/astro-island.prebuilt-dev.js +1 -1
- package/dist/runtime/server/astro-island.prebuilt.d.ts +1 -1
- package/dist/runtime/server/astro-island.prebuilt.js +1 -1
- package/dist/toolbar/index.d.ts +2 -0
- package/dist/toolbar/index.js +6 -0
- package/dist/{vite-plugin-dev-toolbar → toolbar}/vite-plugin-dev-toolbar.js +33 -12
- package/dist/transitions/router.js +0 -1
- package/dist/vite-plugin-astro-server/pipeline.js +1 -0
- package/dist/vite-plugin-markdown/images.d.ts +0 -1
- package/dist/vite-plugin-markdown/images.js +1 -4
- package/dist/vite-plugin-markdown/index.js +8 -2
- package/package.json +48 -50
- package/tsconfigs/strictest.json +1 -3
- /package/dist/{vite-plugin-dev-toolbar → toolbar}/vite-plugin-dev-toolbar.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.7.0",
|
|
4
4
|
"description": "Astro is a modern site builder with web best practices, performance, and DX front-of-mind.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "withastro",
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
"./client/*": "./dist/runtime/client/*",
|
|
54
54
|
"./components": "./components/index.ts",
|
|
55
55
|
"./components/*": "./components/*",
|
|
56
|
+
"./toolbar": "./dist/toolbar/index.js",
|
|
56
57
|
"./assets": "./dist/assets/index.js",
|
|
57
58
|
"./assets/utils": "./dist/assets/utils/index.js",
|
|
58
59
|
"./assets/endpoint/*": "./dist/assets/endpoint/*.js",
|
|
@@ -103,110 +104,107 @@
|
|
|
103
104
|
],
|
|
104
105
|
"dependencies": {
|
|
105
106
|
"@astrojs/compiler": "^2.7.1",
|
|
106
|
-
"@babel/core": "^7.24.
|
|
107
|
-
"@babel/generator": "^7.
|
|
108
|
-
"@babel/parser": "^7.
|
|
109
|
-
"@babel/plugin-transform-react-jsx": "^7.
|
|
110
|
-
"@babel/traverse": "^7.
|
|
111
|
-
"@babel/types": "^7.
|
|
112
|
-
"@types/babel__core": "^7.20.
|
|
113
|
-
"@types/cookie": "^0.
|
|
114
|
-
"acorn": "^8.11.
|
|
107
|
+
"@babel/core": "^7.24.4",
|
|
108
|
+
"@babel/generator": "^7.24.4",
|
|
109
|
+
"@babel/parser": "^7.24.4",
|
|
110
|
+
"@babel/plugin-transform-react-jsx": "^7.23.4",
|
|
111
|
+
"@babel/traverse": "^7.24.1",
|
|
112
|
+
"@babel/types": "^7.24.0",
|
|
113
|
+
"@types/babel__core": "^7.20.5",
|
|
114
|
+
"@types/cookie": "^0.6.0",
|
|
115
|
+
"acorn": "^8.11.3",
|
|
115
116
|
"aria-query": "^5.3.0",
|
|
116
117
|
"axobject-query": "^4.0.0",
|
|
117
118
|
"boxen": "^7.1.1",
|
|
118
|
-
"chokidar": "^3.
|
|
119
|
+
"chokidar": "^3.6.0",
|
|
119
120
|
"ci-info": "^4.0.0",
|
|
120
|
-
"clsx": "^2.
|
|
121
|
+
"clsx": "^2.1.0",
|
|
121
122
|
"common-ancestor-path": "^1.0.1",
|
|
122
123
|
"cookie": "^0.6.0",
|
|
123
124
|
"cssesc": "^3.0.0",
|
|
124
125
|
"debug": "^4.3.4",
|
|
125
|
-
"deterministic-object-hash": "^2.0.
|
|
126
|
-
"devalue": "^
|
|
127
|
-
"diff": "^5.
|
|
126
|
+
"deterministic-object-hash": "^2.0.2",
|
|
127
|
+
"devalue": "^5.0.0",
|
|
128
|
+
"diff": "^5.2.0",
|
|
128
129
|
"dlv": "^1.1.3",
|
|
129
130
|
"dset": "^3.1.3",
|
|
130
|
-
"es-module-lexer": "^1.
|
|
131
|
-
"esbuild": "^0.
|
|
131
|
+
"es-module-lexer": "^1.5.0",
|
|
132
|
+
"esbuild": "^0.20.2",
|
|
132
133
|
"estree-walker": "^3.0.3",
|
|
133
134
|
"execa": "^8.0.1",
|
|
134
135
|
"fast-glob": "^3.3.2",
|
|
135
|
-
"flattie": "^1.1.
|
|
136
|
+
"flattie": "^1.1.1",
|
|
136
137
|
"github-slugger": "^2.0.0",
|
|
137
138
|
"gray-matter": "^4.0.3",
|
|
138
139
|
"html-escaper": "^3.0.3",
|
|
139
140
|
"http-cache-semantics": "^4.1.1",
|
|
140
141
|
"js-yaml": "^4.1.0",
|
|
141
|
-
"kleur": "^4.1.
|
|
142
|
-
"magic-string": "^0.30.
|
|
143
|
-
"
|
|
144
|
-
"ora": "^
|
|
142
|
+
"kleur": "^4.1.5",
|
|
143
|
+
"magic-string": "^0.30.10",
|
|
144
|
+
"mrmime": "^2.0.0",
|
|
145
|
+
"ora": "^8.0.1",
|
|
145
146
|
"p-limit": "^5.0.0",
|
|
146
147
|
"p-queue": "^8.0.1",
|
|
147
|
-
"path-to-regexp": "^6.2.
|
|
148
|
-
"preferred-pm": "^3.1.
|
|
148
|
+
"path-to-regexp": "^6.2.2",
|
|
149
|
+
"preferred-pm": "^3.1.3",
|
|
149
150
|
"prompts": "^2.4.2",
|
|
150
151
|
"rehype": "^13.0.1",
|
|
151
|
-
"resolve": "^1.22.
|
|
152
|
-
"semver": "^7.
|
|
153
|
-
"shiki": "^1.
|
|
154
|
-
"string-width": "^7.
|
|
152
|
+
"resolve": "^1.22.8",
|
|
153
|
+
"semver": "^7.6.0",
|
|
154
|
+
"shiki": "^1.3.0",
|
|
155
|
+
"string-width": "^7.1.0",
|
|
155
156
|
"strip-ansi": "^7.1.0",
|
|
156
|
-
"tsconfck": "^3.0.
|
|
157
|
+
"tsconfck": "^3.0.3",
|
|
157
158
|
"unist-util-visit": "^5.0.0",
|
|
158
159
|
"vfile": "^6.0.1",
|
|
159
|
-
"vite": "^5.
|
|
160
|
+
"vite": "^5.2.10",
|
|
160
161
|
"vitefu": "^0.2.5",
|
|
161
162
|
"which-pm": "^2.1.1",
|
|
162
163
|
"yargs-parser": "^21.1.1",
|
|
163
|
-
"zod": "^3.
|
|
164
|
-
"zod-to-json-schema": "^3.22.
|
|
164
|
+
"zod": "^3.23.0",
|
|
165
|
+
"zod-to-json-schema": "^3.22.5",
|
|
165
166
|
"@astrojs/internal-helpers": "0.4.0",
|
|
166
167
|
"@astrojs/markdown-remark": "5.1.0",
|
|
167
168
|
"@astrojs/telemetry": "3.1.0"
|
|
168
169
|
},
|
|
169
170
|
"optionalDependencies": {
|
|
170
|
-
"sharp": "^0.
|
|
171
|
+
"sharp": "^0.33.3"
|
|
171
172
|
},
|
|
172
173
|
"devDependencies": {
|
|
173
|
-
"@astrojs/check": "^0.5.
|
|
174
|
-
"@playwright/test": "1.
|
|
174
|
+
"@astrojs/check": "^0.5.10",
|
|
175
|
+
"@playwright/test": "^1.43.1",
|
|
175
176
|
"@types/aria-query": "^5.0.4",
|
|
176
|
-
"@types/babel__generator": "^7.6.
|
|
177
|
-
"@types/babel__traverse": "^7.20.
|
|
178
|
-
"@types/chai": "^4.3.10",
|
|
177
|
+
"@types/babel__generator": "^7.6.8",
|
|
178
|
+
"@types/babel__traverse": "^7.20.5",
|
|
179
179
|
"@types/common-ancestor-path": "^1.0.2",
|
|
180
180
|
"@types/connect": "^3.4.38",
|
|
181
181
|
"@types/cssesc": "^3.0.2",
|
|
182
182
|
"@types/debug": "^4.1.12",
|
|
183
|
-
"@types/diff": "^5.0
|
|
183
|
+
"@types/diff": "^5.2.0",
|
|
184
184
|
"@types/dlv": "^1.1.4",
|
|
185
185
|
"@types/dom-view-transitions": "^1.0.4",
|
|
186
|
-
"@types/hast": "^3.0.
|
|
186
|
+
"@types/hast": "^3.0.4",
|
|
187
187
|
"@types/html-escaper": "^3.0.2",
|
|
188
188
|
"@types/http-cache-semantics": "^4.0.4",
|
|
189
189
|
"@types/js-yaml": "^4.0.9",
|
|
190
|
-
"@types/
|
|
191
|
-
"@types/
|
|
192
|
-
"@types/
|
|
193
|
-
"@types/
|
|
194
|
-
"@types/resolve": "^1.20.5",
|
|
195
|
-
"@types/semver": "^7.5.2",
|
|
190
|
+
"@types/probe-image-size": "^7.2.4",
|
|
191
|
+
"@types/prompts": "^2.4.9",
|
|
192
|
+
"@types/resolve": "^1.20.6",
|
|
193
|
+
"@types/semver": "^7.5.8",
|
|
196
194
|
"@types/send": "^0.17.4",
|
|
197
195
|
"@types/unist": "^3.0.2",
|
|
198
196
|
"@types/yargs-parser": "^21.0.3",
|
|
199
197
|
"cheerio": "1.0.0-rc.12",
|
|
200
198
|
"eol": "^0.9.1",
|
|
201
|
-
"memfs": "^4.
|
|
202
|
-
"node-mocks-http": "^1.
|
|
199
|
+
"memfs": "^4.8.2",
|
|
200
|
+
"node-mocks-http": "^1.14.1",
|
|
203
201
|
"parse-srcset": "^1.0.2",
|
|
204
202
|
"rehype-autolink-headings": "^7.1.0",
|
|
205
203
|
"rehype-slug": "^6.0.0",
|
|
206
204
|
"rehype-toc": "^3.0.2",
|
|
207
205
|
"remark-code-titles": "^0.1.2",
|
|
208
|
-
"rollup": "^4.
|
|
209
|
-
"sass": "^1.
|
|
206
|
+
"rollup": "^4.16.1",
|
|
207
|
+
"sass": "^1.75.0",
|
|
210
208
|
"srcset-parse": "^1.1.0",
|
|
211
209
|
"unified": "^11.0.4",
|
|
212
210
|
"astro-scripts": "0.0.14"
|
package/tsconfigs/strictest.json
CHANGED
|
@@ -19,8 +19,6 @@
|
|
|
19
19
|
// Report an error for unreachable code instead of just a warning.
|
|
20
20
|
"allowUnreachableCode": false,
|
|
21
21
|
// Report an error for unused labels instead of just a warning.
|
|
22
|
-
"allowUnusedLabels": false
|
|
23
|
-
// Disallow JavaScript files from being imported
|
|
24
|
-
"allowJs": false
|
|
22
|
+
"allowUnusedLabels": false
|
|
25
23
|
}
|
|
26
24
|
}
|
|
File without changes
|