astro 6.3.2 → 6.3.3

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 = "6.3.2";
3
+ version = "6.3.3";
4
4
  }
5
5
  export {
6
6
  BuildTimeAstroVersionProvider
@@ -191,7 +191,7 @@ ${contentConfig.error.message}`
191
191
  logger.info("Content config changed");
192
192
  shouldClear = true;
193
193
  }
194
- if (previousAstroVersion && previousAstroVersion !== "6.3.2") {
194
+ if (previousAstroVersion && previousAstroVersion !== "6.3.3") {
195
195
  logger.info("Astro version changed");
196
196
  shouldClear = true;
197
197
  }
@@ -199,8 +199,8 @@ ${contentConfig.error.message}`
199
199
  logger.info("Clearing content store");
200
200
  this.#store.clearAll();
201
201
  }
202
- if ("6.3.2") {
203
- this.#store.metaStore().set("astro-version", "6.3.2");
202
+ if ("6.3.3") {
203
+ this.#store.metaStore().set("astro-version", "6.3.3");
204
204
  }
205
205
  if (currentConfigDigest) {
206
206
  this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "6.3.2";
1
+ const ASTRO_VERSION = "6.3.3";
2
2
  const ASTRO_GENERATOR = `Astro v${ASTRO_VERSION}`;
3
3
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
4
4
  const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
@@ -37,7 +37,7 @@ async function dev(inlineConfig) {
37
37
  await telemetry.record([]);
38
38
  const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
39
39
  const logger = restart.container.logger;
40
- const currentVersion = "6.3.2";
40
+ const currentVersion = "6.3.3";
41
41
  const isPrerelease = currentVersion.includes("-");
42
42
  if (!isPrerelease) {
43
43
  try {
@@ -276,7 +276,7 @@ function printHelp({
276
276
  message.push(
277
277
  linebreak(),
278
278
  ` ${bgGreen(black(` ${commandName} `))} ${green(
279
- `v${"6.3.2"}`
279
+ `v${"6.3.3"}`
280
280
  )} ${headline}`
281
281
  );
282
282
  }
@@ -1,6 +1,6 @@
1
1
  import { clsx } from "clsx";
2
2
  import { AstroError, AstroErrorData } from "../../../core/errors/index.js";
3
- import { markHTMLString } from "../escape.js";
3
+ import { escapeHTML, markHTMLString } from "../escape.js";
4
4
  import { extractDirectives, generateHydrateScript } from "../hydration.js";
5
5
  import { serializeProps } from "../serialize.js";
6
6
  import { shorthash } from "../shorthash.js";
@@ -287,7 +287,7 @@ ${serializeProps(
287
287
  if (Object.keys(children).length > 0) {
288
288
  for (const key of Object.keys(children)) {
289
289
  let tagName = renderer?.ssr?.supportsAstroStaticSlot ? !!metadata.hydrate ? "astro-slot" : "astro-static-slot" : "astro-slot";
290
- let expectedHTML = key === "default" ? `<${tagName}>` : `<${tagName} name="${key}">`;
290
+ let expectedHTML = key === "default" ? `<${tagName}>` : `<${tagName} name="${escapeHTML(key)}">`;
291
291
  if (!html.includes(expectedHTML)) {
292
292
  unrenderedSlots.push(key);
293
293
  }
@@ -297,7 +297,7 @@ ${serializeProps(
297
297
  unrenderedSlots = Object.keys(children);
298
298
  }
299
299
  const template = unrenderedSlots.length > 0 ? unrenderedSlots.map(
300
- (key) => `<template data-astro-template${key !== "default" ? `="${key}"` : ""}>${children[key]}</template>`
300
+ (key) => `<template data-astro-template${key !== "default" ? `="${escapeHTML(key)}"` : ""}>${children[key]}</template>`
301
301
  ).join("") : "";
302
302
  island.children = `${html ?? ""}${template}`;
303
303
  if (island.children) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "6.3.2",
3
+ "version": "6.3.3",
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",
@@ -164,8 +164,8 @@
164
164
  "xxhash-wasm": "^1.1.0",
165
165
  "yargs-parser": "^22.0.0",
166
166
  "zod": "^4.3.6",
167
- "@astrojs/internal-helpers": "0.9.1",
168
167
  "@astrojs/markdown-remark": "7.1.2",
168
+ "@astrojs/internal-helpers": "0.9.1",
169
169
  "@astrojs/telemetry": "3.3.2"
170
170
  },
171
171
  "optionalDependencies": {