astro 7.2.5 → 7.2.6

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.
@@ -1,6 +1,6 @@
1
1
  class BuildTimeAstroVersionProvider {
2
2
  // Injected during the build through esbuild define
3
- version = "7.2.5";
3
+ version = "7.2.6";
4
4
  }
5
5
  export {
6
6
  BuildTimeAstroVersionProvider
@@ -196,7 +196,7 @@ ${contentConfig.error.message}`
196
196
  logger.info("Content config changed");
197
197
  shouldClear = true;
198
198
  }
199
- if (previousAstroVersion && previousAstroVersion !== "7.2.5") {
199
+ if (previousAstroVersion && previousAstroVersion !== "7.2.6") {
200
200
  logger.info("Astro version changed");
201
201
  shouldClear = true;
202
202
  }
@@ -204,8 +204,8 @@ ${contentConfig.error.message}`
204
204
  logger.info("Clearing content store");
205
205
  this.#store.clearAll();
206
206
  }
207
- if ("7.2.5") {
208
- this.#store.metaStore().set("astro-version", "7.2.5");
207
+ if ("7.2.6") {
208
+ this.#store.metaStore().set("astro-version", "7.2.6");
209
209
  }
210
210
  if (currentConfigDigest) {
211
211
  this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "7.2.5";
1
+ const ASTRO_VERSION = "7.2.6";
2
2
  const ASTRO_GENERATOR = `Astro v${ASTRO_VERSION}`;
3
3
  const ASTRO_ERROR_HEADER = "X-Astro-Error";
4
4
  const DEFAULT_404_COMPONENT = "astro-default-404.astro";
@@ -26,7 +26,7 @@ async function dev(inlineConfig) {
26
26
  await telemetry.record([]);
27
27
  const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
28
28
  const logger = restart.container.logger;
29
- const currentVersion = "7.2.5";
29
+ const currentVersion = "7.2.6";
30
30
  const isPrerelease = currentVersion.includes("-");
31
31
  if (!isPrerelease) {
32
32
  try {
@@ -270,7 +270,7 @@ function printHelp({
270
270
  message.push(
271
271
  linebreak(),
272
272
  ` ${bgGreen(black(` ${commandName} `))} ${green(
273
- `v${"7.2.5"}`
273
+ `v${"7.2.6"}`
274
274
  )} ${headline}`
275
275
  );
276
276
  }
@@ -56,6 +56,19 @@ function serializedManifestPlugin({
56
56
  return {
57
57
  name: SERIALIZED_MANIFEST_ID,
58
58
  enforce: "pre",
59
+ // Dependency optimization runs as a nested Rolldown build that cannot load Vite virtual
60
+ // modules. Keep this import external so the server module graph resolves it below.
61
+ configEnvironment(environmentName) {
62
+ if (command === "dev" && (environmentName === ASTRO_VITE_ENVIRONMENT_NAMES.astro || environmentName === ASTRO_VITE_ENVIRONMENT_NAMES.ssr || environmentName === ASTRO_VITE_ENVIRONMENT_NAMES.prerender)) {
63
+ return {
64
+ optimizeDeps: {
65
+ rolldownOptions: {
66
+ external: [AMBIENT_MANIFEST_SPECIFIER]
67
+ }
68
+ }
69
+ };
70
+ }
71
+ },
59
72
  configureServer(server) {
60
73
  server.watcher.on("add", (path) => reloadManifest(path, server));
61
74
  server.watcher.on("unlink", (path) => reloadManifest(path, server));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "7.2.5",
3
+ "version": "7.2.6",
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",
@@ -193,8 +193,8 @@
193
193
  "typescript": "^6.0.3",
194
194
  "undici": "^7.22.0",
195
195
  "vitest": "^4.1.0",
196
- "@astrojs/check": "0.9.10",
197
196
  "@astrojs/markdown-remark": "7.2.4",
197
+ "@astrojs/check": "0.9.10",
198
198
  "astro-scripts": "0.0.14"
199
199
  },
200
200
  "engines": {