astro 5.13.0 → 5.13.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.
@@ -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.13.0") {
167
+ if (previousAstroVersion && previousAstroVersion !== "5.13.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.13.0") {
176
- await this.#store.metaStore().set("astro-version", "5.13.0");
175
+ if ("5.13.2") {
176
+ await this.#store.metaStore().set("astro-version", "5.13.2");
177
177
  }
178
178
  if (currentConfigDigest) {
179
179
  await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "5.13.0";
1
+ const ASTRO_VERSION = "5.13.2";
2
2
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
3
3
  const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
4
4
  const REWRITE_DIRECTIVE_HEADER_VALUE = "yes";
@@ -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.13.0";
25
+ const currentVersion = "5.13.2";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -37,7 +37,7 @@ function serverStart({
37
37
  host,
38
38
  base
39
39
  }) {
40
- const version = "5.13.0";
40
+ const version = "5.13.2";
41
41
  const localPrefix = `${dim("\u2503")} Local `;
42
42
  const networkPrefix = `${dim("\u2503")} Network `;
43
43
  const emptyPrefix = " ".repeat(11);
@@ -274,7 +274,7 @@ function printHelp({
274
274
  message.push(
275
275
  linebreak(),
276
276
  ` ${bgGreen(black(` ${commandName} `))} ${green(
277
- `v${"5.13.0"}`
277
+ `v${"5.13.2"}`
278
278
  )} ${headline}`
279
279
  );
280
280
  }
@@ -116,6 +116,7 @@ function createVitePluginAstroServer({
116
116
  response.end();
117
117
  return;
118
118
  }
119
+ const pluginVersion = "1.1";
119
120
  const cacheDir = settings.config.cacheDir;
120
121
  const configPath = new URL("./chrome-workspace.json", cacheDir);
121
122
  if (!existsSync(cacheDir)) {
@@ -124,11 +125,14 @@ function createVitePluginAstroServer({
124
125
  let config;
125
126
  try {
126
127
  config = JSON.parse(await readFile(configPath, "utf-8"));
128
+ if (config.version !== pluginVersion) throw new Error("Cached config is outdated.");
127
129
  } catch {
128
130
  config = {
129
- version: "1.0",
130
- projectId: randomUUID(),
131
- workspaceRoot: fileURLToPath(settings.config.root)
131
+ workspace: {
132
+ version: pluginVersion,
133
+ uuid: randomUUID(),
134
+ root: fileURLToPath(settings.config.root)
135
+ }
132
136
  };
133
137
  await writeFile(configPath, JSON.stringify(config));
134
138
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.13.0",
3
+ "version": "5.13.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",
@@ -158,8 +158,8 @@
158
158
  "zod": "^3.24.4",
159
159
  "zod-to-json-schema": "^3.24.5",
160
160
  "zod-to-ts": "^1.2.0",
161
- "@astrojs/internal-helpers": "0.7.1",
162
- "@astrojs/markdown-remark": "6.3.5",
161
+ "@astrojs/internal-helpers": "0.7.2",
162
+ "@astrojs/markdown-remark": "6.3.6",
163
163
  "@astrojs/telemetry": "3.3.0"
164
164
  },
165
165
  "optionalDependencies": {