astro 5.15.0 → 5.15.2
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/dist/assets/vite-plugin-assets.js +6 -4
- package/dist/cli/infra/build-time-astro-version-provider.js +1 -1
- package/dist/content/content-layer.js +3 -3
- package/dist/core/build/plugins/plugin-css.js +1 -3
- package/dist/core/constants.js +1 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/messages.js +2 -2
- package/package.json +4 -4
|
@@ -189,11 +189,13 @@ function assets({ fs, settings, sync, logger }) {
|
|
|
189
189
|
message: AstroErrorData.ImageNotFound.message(id)
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
|
-
if (id.endsWith(".svg")) {
|
|
193
|
-
const contents = await fs.promises.readFile(imageMetadata.fsPath, { encoding: "utf8" });
|
|
194
|
-
return { code: makeSvgComponent(imageMetadata, contents) };
|
|
195
|
-
}
|
|
196
192
|
if (options?.ssr) {
|
|
193
|
+
if (id.endsWith(".svg")) {
|
|
194
|
+
const contents = await fs.promises.readFile(imageMetadata.fsPath, {
|
|
195
|
+
encoding: "utf8"
|
|
196
|
+
});
|
|
197
|
+
return { code: makeSvgComponent(imageMetadata, contents) };
|
|
198
|
+
}
|
|
197
199
|
return {
|
|
198
200
|
code: `export default ${getProxyCode(
|
|
199
201
|
imageMetadata,
|
|
@@ -164,7 +164,7 @@ ${contentConfig.error.message}`);
|
|
|
164
164
|
logger.info("Content config changed");
|
|
165
165
|
shouldClear = true;
|
|
166
166
|
}
|
|
167
|
-
if (previousAstroVersion && previousAstroVersion !== "5.15.
|
|
167
|
+
if (previousAstroVersion && previousAstroVersion !== "5.15.2") {
|
|
168
168
|
logger.info("Astro version changed");
|
|
169
169
|
shouldClear = true;
|
|
170
170
|
}
|
|
@@ -172,8 +172,8 @@ ${contentConfig.error.message}`);
|
|
|
172
172
|
logger.info("Clearing content store");
|
|
173
173
|
this.#store.clearAll();
|
|
174
174
|
}
|
|
175
|
-
if ("5.15.
|
|
176
|
-
await this.#store.metaStore().set("astro-version", "5.15.
|
|
175
|
+
if ("5.15.2") {
|
|
176
|
+
await this.#store.metaStore().set("astro-version", "5.15.2");
|
|
177
177
|
}
|
|
178
178
|
if (currentConfigDigest) {
|
|
179
179
|
await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
|
|
@@ -151,9 +151,7 @@ function rollupPluginAstroBuildCSS(options) {
|
|
|
151
151
|
propagatedStyles.add(sheet);
|
|
152
152
|
sheetAddedToPage = true;
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
const isOrphaned = !sheetAddedToPage;
|
|
156
|
-
if (wasInlined || isOrphaned) {
|
|
154
|
+
if (toBeInlined && sheetAddedToPage) {
|
|
157
155
|
delete bundle[id];
|
|
158
156
|
for (const chunk of Object.values(bundle)) {
|
|
159
157
|
if (chunk.type === "chunk") {
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -22,7 +22,7 @@ async function dev(inlineConfig) {
|
|
|
22
22
|
await telemetry.record([]);
|
|
23
23
|
const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
|
|
24
24
|
const logger = restart.container.logger;
|
|
25
|
-
const currentVersion = "5.15.
|
|
25
|
+
const currentVersion = "5.15.2";
|
|
26
26
|
const isPrerelease = currentVersion.includes("-");
|
|
27
27
|
if (!isPrerelease) {
|
|
28
28
|
try {
|
package/dist/core/messages.js
CHANGED
|
@@ -38,7 +38,7 @@ function serverStart({
|
|
|
38
38
|
host,
|
|
39
39
|
base
|
|
40
40
|
}) {
|
|
41
|
-
const version = "5.15.
|
|
41
|
+
const version = "5.15.2";
|
|
42
42
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
43
43
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
44
44
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -275,7 +275,7 @@ function printHelp({
|
|
|
275
275
|
message.push(
|
|
276
276
|
linebreak(),
|
|
277
277
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
278
|
-
`v${"5.15.
|
|
278
|
+
`v${"5.15.2"}`
|
|
279
279
|
)} ${headline}`
|
|
280
280
|
);
|
|
281
281
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "5.15.
|
|
3
|
+
"version": "5.15.2",
|
|
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",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"unist-util-visit": "^5.0.0",
|
|
142
142
|
"unstorage": "^1.17.0",
|
|
143
143
|
"vfile": "^6.0.3",
|
|
144
|
-
"vite": "^6.
|
|
144
|
+
"vite": "^6.4.1",
|
|
145
145
|
"vitefu": "^1.1.1",
|
|
146
146
|
"xxhash-wasm": "^1.1.0",
|
|
147
147
|
"yargs-parser": "^21.1.1",
|
|
@@ -150,8 +150,8 @@
|
|
|
150
150
|
"zod-to-json-schema": "^3.24.6",
|
|
151
151
|
"zod-to-ts": "^1.2.0",
|
|
152
152
|
"@astrojs/internal-helpers": "0.7.4",
|
|
153
|
-
"@astrojs/
|
|
154
|
-
"@astrojs/
|
|
153
|
+
"@astrojs/markdown-remark": "6.3.8",
|
|
154
|
+
"@astrojs/telemetry": "3.3.0"
|
|
155
155
|
},
|
|
156
156
|
"optionalDependencies": {
|
|
157
157
|
"sharp": "^0.34.0"
|