astro 3.6.2 → 4.0.0-beta.1
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/client.d.ts +19 -20
- package/components/Code.astro +0 -20
- package/components/ViewTransitions.astro +2 -2
- package/dist/@types/astro.d.ts +19 -81
- package/dist/assets/build/generate.js +2 -2
- package/dist/assets/internal.js +1 -1
- package/dist/assets/services/vendor/squoosh/avif/avif_node_dec.js +3 -3
- package/dist/assets/services/vendor/squoosh/avif/avif_node_enc.js +3 -3
- package/dist/assets/services/vendor/squoosh/mozjpeg/mozjpeg_node_dec.js +3 -3
- package/dist/assets/services/vendor/squoosh/mozjpeg/mozjpeg_node_enc.js +3 -3
- package/dist/assets/services/vendor/squoosh/webp/webp_node_dec.js +3 -3
- package/dist/assets/services/vendor/squoosh/webp/webp_node_enc.js +3 -3
- package/dist/cli/add/babel.d.ts +1 -1
- package/dist/cli/build/index.js +0 -1
- package/dist/cli/flags.js +0 -3
- package/dist/cli/info/index.d.ts +5 -0
- package/dist/cli/info/index.js +16 -7
- package/dist/cli/install-package.js +1 -1
- package/dist/cli/telemetry/index.js +6 -6
- package/dist/content/server-listeners.js +7 -7
- package/dist/content/types-generator.d.ts +1 -4
- package/dist/content/types-generator.js +31 -51
- package/dist/core/app/index.js +2 -4
- package/dist/core/build/buildPipeline.js +3 -3
- package/dist/core/build/generate.js +18 -39
- package/dist/core/build/index.js +10 -32
- package/dist/core/build/internal.js +3 -3
- package/dist/core/build/plugin.d.ts +2 -2
- package/dist/core/build/plugins/plugin-manifest.js +1 -4
- package/dist/core/build/plugins/plugin-pages.js +0 -3
- package/dist/core/build/plugins/plugin-renderers.d.ts +1 -1
- package/dist/core/build/plugins/plugin-ssr.js +5 -6
- package/dist/core/build/static-build.js +4 -7
- package/dist/core/build/types.d.ts +1 -1
- package/dist/core/build/util.js +1 -1
- package/dist/core/config/config.js +1 -2
- package/dist/core/config/schema.d.ts +209 -277
- package/dist/core/config/schema.js +5 -38
- package/dist/core/constants.js +1 -1
- package/dist/core/create-vite.d.ts +2 -2
- package/dist/core/create-vite.js +12 -1
- package/dist/core/dev/dev.js +6 -4
- package/dist/core/dev/restart.js +7 -7
- package/dist/core/endpoint/index.d.ts +2 -7
- package/dist/core/endpoint/index.js +3 -87
- package/dist/core/errors/dev/vite.js +0 -1
- package/dist/core/logger/console.d.ts +2 -4
- package/dist/core/logger/console.js +4 -28
- package/dist/core/logger/core.d.ts +17 -5
- package/dist/core/logger/core.js +27 -2
- package/dist/core/logger/node.d.ts +2 -32
- package/dist/core/logger/node.js +8 -69
- package/dist/core/messages.d.ts +4 -11
- package/dist/core/messages.js +43 -59
- package/dist/core/middleware/callMiddleware.d.ts +1 -2
- package/dist/core/middleware/callMiddleware.js +1 -12
- package/dist/core/middleware/index.d.ts +2 -2
- package/dist/core/middleware/sequence.d.ts +2 -2
- package/dist/core/pipeline.d.ts +2 -2
- package/dist/core/pipeline.js +8 -13
- package/dist/core/preview/static-preview-server.js +2 -4
- package/dist/core/preview/vite-plugin-astro-preview.js +31 -21
- package/dist/core/render/core.js +0 -6
- package/dist/core/render/index.d.ts +1 -1
- package/dist/core/render/result.js +1 -1
- package/dist/core/render/route-cache.js +2 -5
- package/dist/core/request.js +3 -3
- package/dist/core/routing/manifest/create.js +14 -12
- package/dist/core/routing/validation.js +4 -4
- package/dist/core/sync/index.js +2 -2
- package/dist/i18n/middleware.d.ts +2 -2
- package/dist/i18n/vite-plugin-i18n.js +1 -1
- package/dist/integrations/astroFeaturesValidation.d.ts +1 -1
- package/dist/integrations/astroFeaturesValidation.js +12 -18
- package/dist/integrations/index.js +28 -6
- package/dist/prefetch/vite-plugin-prefetch.js +3 -3
- package/dist/runtime/client/dev-overlay/entrypoint.js +14 -10
- package/dist/runtime/client/dev-overlay/overlay.js +1 -1
- package/dist/runtime/client/dev-overlay/plugins/astro.d.ts +14 -1
- package/dist/runtime/client/dev-overlay/plugins/astro.js +326 -15
- package/dist/runtime/client/dev-overlay/plugins/settings.js +26 -2
- package/dist/runtime/client/dev-overlay/plugins/utils/icons.d.ts +3 -0
- package/dist/runtime/client/dev-overlay/plugins/utils/icons.js +37 -0
- package/dist/runtime/client/dev-overlay/plugins/utils/window.d.ts +1 -2
- package/dist/runtime/client/dev-overlay/plugins/utils/window.js +25 -29
- package/dist/runtime/client/dev-overlay/ui-library/badge.d.ts +9 -0
- package/dist/runtime/client/dev-overlay/ui-library/badge.js +67 -0
- package/dist/runtime/client/dev-overlay/ui-library/button.d.ts +9 -0
- package/dist/runtime/client/dev-overlay/ui-library/button.js +83 -0
- package/dist/runtime/client/dev-overlay/ui-library/card.d.ts +1 -3
- package/dist/runtime/client/dev-overlay/ui-library/card.js +17 -25
- package/dist/runtime/client/dev-overlay/ui-library/highlight.js +1 -0
- package/dist/runtime/client/dev-overlay/ui-library/icon.d.ts +10 -0
- package/dist/runtime/client/dev-overlay/ui-library/icon.js +36 -0
- package/dist/runtime/client/dev-overlay/ui-library/icons.d.ts +21 -6
- package/dist/runtime/client/dev-overlay/ui-library/icons.js +22 -7
- package/dist/runtime/client/dev-overlay/ui-library/index.d.ts +8 -0
- package/dist/runtime/client/dev-overlay/ui-library/index.js +18 -0
- package/dist/runtime/client/dev-overlay/ui-library/window.d.ts +0 -4
- package/dist/runtime/client/dev-overlay/ui-library/window.js +0 -33
- package/dist/runtime/server/endpoint.d.ts +1 -1
- package/dist/runtime/server/endpoint.js +11 -22
- package/dist/transitions/vite-plugin-transitions.js +4 -4
- package/dist/virtual-modules/i18n.d.ts +1 -0
- package/dist/virtual-modules/i18n.js +1 -0
- package/dist/virtual-modules/middleware.d.ts +1 -0
- package/dist/virtual-modules/middleware.js +5 -0
- package/dist/virtual-modules/prefetch.d.ts +1 -0
- package/dist/virtual-modules/prefetch.js +1 -0
- package/dist/virtual-modules/transitions-events.d.ts +1 -0
- package/dist/virtual-modules/transitions-events.js +1 -0
- package/dist/virtual-modules/transitions-router.d.ts +1 -0
- package/dist/virtual-modules/transitions-router.js +1 -0
- package/dist/virtual-modules/transitions-types.d.ts +1 -0
- package/dist/virtual-modules/transitions-types.js +1 -0
- package/dist/virtual-modules/transitions.d.ts +1 -0
- package/dist/virtual-modules/transitions.js +1 -0
- package/dist/vite-plugin-astro/hmr.js +8 -14
- package/dist/vite-plugin-astro/index.js +28 -6
- package/dist/vite-plugin-astro-server/base.js +5 -5
- package/dist/vite-plugin-astro-server/response.js +1 -1
- package/dist/vite-plugin-astro-server/route.js +30 -6
- package/dist/vite-plugin-inject-env-ts/index.js +3 -3
- package/dist/vite-plugin-integrations-container/index.js +1 -1
- package/dist/vite-plugin-load-fallback/index.js +1 -3
- package/dist/vite-plugin-scanner/index.js +3 -6
- package/dist/vite-plugin-scripts/index.js +1 -1
- package/dist/vite-plugin-utils/index.d.ts +1 -0
- package/dist/vite-plugin-utils/index.js +5 -0
- package/package.json +56 -68
- package/dist/core/middleware/namespace.d.ts +0 -1
- package/dist/core/middleware/namespace.js +0 -5
- package/dist/vite-plugin-astro-server/common.d.ts +0 -2
- package/dist/vite-plugin-astro-server/common.js +0 -7
- package/import-meta.d.ts +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.1",
|
|
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",
|
|
@@ -22,10 +22,7 @@
|
|
|
22
22
|
"./dist/core/app/*"
|
|
23
23
|
],
|
|
24
24
|
"middleware": [
|
|
25
|
-
"./dist/
|
|
26
|
-
],
|
|
27
|
-
"middleware/namespace": [
|
|
28
|
-
"./dist/core/middleware/namespace.d.ts"
|
|
25
|
+
"./dist/virtual-modules/middleware.d.ts"
|
|
29
26
|
]
|
|
30
27
|
}
|
|
31
28
|
},
|
|
@@ -73,16 +70,7 @@
|
|
|
73
70
|
"types": "./dist/core/middleware/index.d.ts",
|
|
74
71
|
"default": "./dist/core/middleware/index.js"
|
|
75
72
|
},
|
|
76
|
-
"./
|
|
77
|
-
"types": "./dist/core/middleware/namespace.d.ts",
|
|
78
|
-
"default": "./dist/core/middleware/namespace.js"
|
|
79
|
-
},
|
|
80
|
-
"./transitions": "./dist/transitions/index.js",
|
|
81
|
-
"./transitions/events": "./dist/transitions/events.js",
|
|
82
|
-
"./transitions/router": "./dist/transitions/router.js",
|
|
83
|
-
"./transitions/types": "./dist/transitions/types.js",
|
|
84
|
-
"./prefetch": "./dist/prefetch/index.js",
|
|
85
|
-
"./i18n": "./dist/i18n/index.js"
|
|
73
|
+
"./virtual-modules/*": "./dist/virtual-modules/*"
|
|
86
74
|
},
|
|
87
75
|
"imports": {
|
|
88
76
|
"#astro/*": "./dist/*.js"
|
|
@@ -111,30 +99,30 @@
|
|
|
111
99
|
"vendor"
|
|
112
100
|
],
|
|
113
101
|
"dependencies": {
|
|
114
|
-
"@astrojs/compiler": "^2.3.
|
|
115
|
-
"@babel/core": "^7.
|
|
116
|
-
"@babel/generator": "^7.
|
|
117
|
-
"@babel/parser": "^7.
|
|
102
|
+
"@astrojs/compiler": "^2.3.2",
|
|
103
|
+
"@babel/core": "^7.23.3",
|
|
104
|
+
"@babel/generator": "^7.23.3",
|
|
105
|
+
"@babel/parser": "^7.23.3",
|
|
118
106
|
"@babel/plugin-transform-react-jsx": "^7.22.5",
|
|
119
|
-
"@babel/traverse": "^7.
|
|
120
|
-
"@babel/types": "^7.
|
|
121
|
-
"@types/babel__core": "^7.20.
|
|
122
|
-
"acorn": "^8.
|
|
107
|
+
"@babel/traverse": "^7.23.3",
|
|
108
|
+
"@babel/types": "^7.23.3",
|
|
109
|
+
"@types/babel__core": "^7.20.4",
|
|
110
|
+
"acorn": "^8.11.2",
|
|
123
111
|
"boxen": "^7.1.1",
|
|
124
112
|
"chokidar": "^3.5.3",
|
|
125
|
-
"ci-info": "^
|
|
113
|
+
"ci-info": "^4.0.0",
|
|
126
114
|
"clsx": "^2.0.0",
|
|
127
115
|
"common-ancestor-path": "^1.0.1",
|
|
128
|
-
"cookie": "^0.
|
|
116
|
+
"cookie": "^0.6.0",
|
|
129
117
|
"debug": "^4.3.4",
|
|
130
|
-
"deterministic-object-hash": "^
|
|
118
|
+
"deterministic-object-hash": "^2.0.1",
|
|
131
119
|
"devalue": "^4.3.2",
|
|
132
120
|
"diff": "^5.1.0",
|
|
133
|
-
"es-module-lexer": "^1.
|
|
134
|
-
"esbuild": "^0.19.
|
|
121
|
+
"es-module-lexer": "^1.4.1",
|
|
122
|
+
"esbuild": "^0.19.6",
|
|
135
123
|
"estree-walker": "^3.0.3",
|
|
136
124
|
"execa": "^8.0.1",
|
|
137
|
-
"fast-glob": "^3.3.
|
|
125
|
+
"fast-glob": "^3.3.2",
|
|
138
126
|
"github-slugger": "^2.0.0",
|
|
139
127
|
"gray-matter": "^4.0.3",
|
|
140
128
|
"html-escaper": "^3.0.3",
|
|
@@ -142,63 +130,63 @@
|
|
|
142
130
|
"js-yaml": "^4.1.0",
|
|
143
131
|
"kleur": "^4.1.4",
|
|
144
132
|
"magic-string": "^0.30.3",
|
|
145
|
-
"mdast-util-to-hast": "
|
|
133
|
+
"mdast-util-to-hast": "13.0.2",
|
|
146
134
|
"mime": "^3.0.0",
|
|
147
135
|
"ora": "^7.0.1",
|
|
148
|
-
"p-limit": "^
|
|
136
|
+
"p-limit": "^5.0.0",
|
|
149
137
|
"p-queue": "^7.4.1",
|
|
150
138
|
"path-to-regexp": "^6.2.1",
|
|
151
139
|
"preferred-pm": "^3.1.2",
|
|
152
140
|
"probe-image-size": "^7.2.3",
|
|
153
141
|
"prompts": "^2.4.2",
|
|
154
|
-
"rehype": "^
|
|
142
|
+
"rehype": "^13.0.1",
|
|
155
143
|
"resolve": "^1.22.4",
|
|
156
144
|
"semver": "^7.5.4",
|
|
157
145
|
"server-destroy": "^1.0.1",
|
|
158
|
-
"shikiji": "^0.6.
|
|
159
|
-
"string-width": "^
|
|
146
|
+
"shikiji": "^0.6.13",
|
|
147
|
+
"string-width": "^7.0.0",
|
|
160
148
|
"strip-ansi": "^7.1.0",
|
|
161
149
|
"tsconfck": "^3.0.0",
|
|
162
|
-
"unist-util-visit": "^
|
|
163
|
-
"vfile": "^
|
|
164
|
-
"vite": "^
|
|
150
|
+
"unist-util-visit": "^5.0.0",
|
|
151
|
+
"vfile": "^6.0.1",
|
|
152
|
+
"vite": "^5.0.0",
|
|
165
153
|
"vitefu": "^0.2.4",
|
|
166
154
|
"which-pm": "^2.1.1",
|
|
167
155
|
"yargs-parser": "^21.1.1",
|
|
168
156
|
"zod": "^3.22.4",
|
|
169
157
|
"@astrojs/internal-helpers": "0.2.1",
|
|
170
|
-
"@astrojs/markdown-remark": "
|
|
158
|
+
"@astrojs/markdown-remark": "4.0.0-beta.0",
|
|
171
159
|
"@astrojs/telemetry": "3.0.4"
|
|
172
160
|
},
|
|
173
161
|
"optionalDependencies": {
|
|
174
162
|
"sharp": "^0.32.5"
|
|
175
163
|
},
|
|
176
164
|
"devDependencies": {
|
|
177
|
-
"@astrojs/check": "^0.1
|
|
178
|
-
"@playwright/test": "1.40.0
|
|
179
|
-
"@types/babel__generator": "^7.6.
|
|
180
|
-
"@types/babel__traverse": "^7.20.
|
|
181
|
-
"@types/chai": "^4.3.
|
|
182
|
-
"@types/common-ancestor-path": "^1.0.
|
|
183
|
-
"@types/connect": "^3.4.
|
|
184
|
-
"@types/cookie": "^0.5.
|
|
185
|
-
"@types/debug": "^4.1.
|
|
186
|
-
"@types/diff": "^5.0.
|
|
187
|
-
"@types/dom-view-transitions": "^1.0.
|
|
188
|
-
"@types/estree": "^1.0.
|
|
189
|
-
"@types/hast": "^
|
|
190
|
-
"@types/html-escaper": "^3.0.
|
|
191
|
-
"@types/http-cache-semantics": "^4.0.
|
|
192
|
-
"@types/js-yaml": "^4.0.
|
|
193
|
-
"@types/mime": "^3.0.
|
|
194
|
-
"@types/mocha": "^10.0.
|
|
195
|
-
"@types/probe-image-size": "^7.2.
|
|
196
|
-
"@types/prompts": "^2.4.
|
|
197
|
-
"@types/resolve": "^1.20.
|
|
198
|
-
"@types/send": "^0.17.
|
|
199
|
-
"@types/server-destroy": "^1.0.
|
|
200
|
-
"@types/unist": "^
|
|
201
|
-
"@types/yargs-parser": "^21.0.
|
|
165
|
+
"@astrojs/check": "^0.3.1",
|
|
166
|
+
"@playwright/test": "1.40.0",
|
|
167
|
+
"@types/babel__generator": "^7.6.7",
|
|
168
|
+
"@types/babel__traverse": "^7.20.4",
|
|
169
|
+
"@types/chai": "^4.3.10",
|
|
170
|
+
"@types/common-ancestor-path": "^1.0.2",
|
|
171
|
+
"@types/connect": "^3.4.38",
|
|
172
|
+
"@types/cookie": "^0.5.4",
|
|
173
|
+
"@types/debug": "^4.1.12",
|
|
174
|
+
"@types/diff": "^5.0.8",
|
|
175
|
+
"@types/dom-view-transitions": "^1.0.4",
|
|
176
|
+
"@types/estree": "^1.0.5",
|
|
177
|
+
"@types/hast": "^3.0.3",
|
|
178
|
+
"@types/html-escaper": "^3.0.2",
|
|
179
|
+
"@types/http-cache-semantics": "^4.0.4",
|
|
180
|
+
"@types/js-yaml": "^4.0.9",
|
|
181
|
+
"@types/mime": "^3.0.4",
|
|
182
|
+
"@types/mocha": "^10.0.4",
|
|
183
|
+
"@types/probe-image-size": "^7.2.3",
|
|
184
|
+
"@types/prompts": "^2.4.8",
|
|
185
|
+
"@types/resolve": "^1.20.5",
|
|
186
|
+
"@types/send": "^0.17.4",
|
|
187
|
+
"@types/server-destroy": "^1.0.3",
|
|
188
|
+
"@types/unist": "^3.0.2",
|
|
189
|
+
"@types/yargs-parser": "^21.0.3",
|
|
202
190
|
"chai": "^4.3.7",
|
|
203
191
|
"cheerio": "1.0.0-rc.12",
|
|
204
192
|
"eol": "^0.9.1",
|
|
@@ -206,14 +194,14 @@
|
|
|
206
194
|
"mocha": "^10.2.0",
|
|
207
195
|
"node-mocks-http": "^1.13.0",
|
|
208
196
|
"parse-srcset": "^1.0.2",
|
|
209
|
-
"rehype-autolink-headings": "^
|
|
210
|
-
"rehype-slug": "^
|
|
197
|
+
"rehype-autolink-headings": "^7.1.0",
|
|
198
|
+
"rehype-slug": "^6.0.0",
|
|
211
199
|
"rehype-toc": "^3.0.2",
|
|
212
200
|
"remark-code-titles": "^0.1.2",
|
|
213
|
-
"rollup": "^
|
|
214
|
-
"sass": "^1.
|
|
201
|
+
"rollup": "^4.5.0",
|
|
202
|
+
"sass": "^1.69.5",
|
|
215
203
|
"srcset-parse": "^1.1.0",
|
|
216
|
-
"unified": "^
|
|
204
|
+
"unified": "^11.0.4",
|
|
217
205
|
"astro-scripts": "0.0.14"
|
|
218
206
|
},
|
|
219
207
|
"engines": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { defineMiddleware, sequence } from './index.js';
|
package/import-meta.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// File vendored from Vite itself, as a workaround to https://github.com/vitejs/vite/issues/13309 until Vite 5 comes out
|
|
2
|
-
|
|
3
|
-
// This file is an augmentation to the built-in ImportMeta interface
|
|
4
|
-
// Thus cannot contain any top-level imports
|
|
5
|
-
// <https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation>
|
|
6
|
-
|
|
7
|
-
/* eslint-disable @typescript-eslint/consistent-type-imports */
|
|
8
|
-
|
|
9
|
-
interface ImportMeta {
|
|
10
|
-
url: string;
|
|
11
|
-
|
|
12
|
-
readonly hot?: import('vite/types/hot').ViteHotContext;
|
|
13
|
-
|
|
14
|
-
readonly env: ImportMetaEnv;
|
|
15
|
-
|
|
16
|
-
glob: import('vite/types/importGlob').ImportGlobFunction;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `import.meta.glob('*', { eager: true })` instead
|
|
19
|
-
*/
|
|
20
|
-
globEager: import('vite/types/importGlob').ImportGlobEagerFunction;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ImportMetaEnv {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
BASE_URL: string;
|
|
26
|
-
MODE: string;
|
|
27
|
-
DEV: boolean;
|
|
28
|
-
PROD: boolean;
|
|
29
|
-
SSR: boolean;
|
|
30
|
-
}
|