astro 4.5.1 → 4.5.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.
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "4.5.1";
1
+ const ASTRO_VERSION = "4.5.2";
2
2
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
3
3
  const ROUTE_TYPE_HEADER = "X-Astro-Route-Type";
4
4
  const DEFAULT_404_COMPONENT = "astro-default-404";
@@ -23,7 +23,7 @@ async function dev(inlineConfig) {
23
23
  base: restart.container.settings.config.base
24
24
  })
25
25
  );
26
- const currentVersion = "4.5.1";
26
+ const currentVersion = "4.5.2";
27
27
  if (currentVersion.includes("-")) {
28
28
  logger.warn("SKIP_FORMAT", msg.prerelease({ currentVersion }));
29
29
  }
@@ -36,7 +36,7 @@ function serverStart({
36
36
  host,
37
37
  base
38
38
  }) {
39
- const version = "4.5.1";
39
+ const version = "4.5.2";
40
40
  const localPrefix = `${dim("\u2503")} Local `;
41
41
  const networkPrefix = `${dim("\u2503")} Network `;
42
42
  const emptyPrefix = " ".repeat(11);
@@ -261,7 +261,7 @@ function printHelp({
261
261
  message.push(
262
262
  linebreak(),
263
263
  ` ${bgGreen(black(` ${commandName} `))} ${green(
264
- `v${"4.5.1"}`
264
+ `v${"4.5.2"}`
265
265
  )} ${headline}`
266
266
  );
267
267
  }
@@ -1,3 +1,4 @@
1
+ import { escape as escapeHTML } from "html-escaper";
1
2
  import {
2
3
  attachTooltipToHighlight,
3
4
  createHighlight,
@@ -101,13 +102,14 @@ var xray_default = {
101
102
  (prop) => !prop[0].startsWith("data-astro-cid-")
102
103
  );
103
104
  if (islandPropsEntries.length > 0) {
105
+ const stringifiedProps = JSON.stringify(
106
+ Object.fromEntries(islandPropsEntries.map((prop) => [prop[0], prop[1][1]])),
107
+ void 0,
108
+ 2
109
+ );
104
110
  tooltip.sections.push({
105
111
  title: "Props",
106
- content: `<pre><code>${JSON.stringify(
107
- Object.fromEntries(islandPropsEntries.map((prop) => [prop[0], prop[1][1]])),
108
- void 0,
109
- 2
110
- )}</code></pre>`
112
+ content: `<pre><code>${escapeHTML(stringifiedProps)}</code></pre>`
111
113
  });
112
114
  }
113
115
  const islandComponentPath = island.getAttribute("component-url");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "4.5.1",
3
+ "version": "4.5.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",
@@ -163,9 +163,9 @@
163
163
  "yargs-parser": "^21.1.1",
164
164
  "zod": "^3.22.4",
165
165
  "zod-to-json-schema": "^3.22.4",
166
- "@astrojs/telemetry": "3.0.4",
167
166
  "@astrojs/markdown-remark": "4.3.0",
168
- "@astrojs/internal-helpers": "0.3.0"
167
+ "@astrojs/internal-helpers": "0.3.0",
168
+ "@astrojs/telemetry": "3.0.4"
169
169
  },
170
170
  "optionalDependencies": {
171
171
  "sharp": "^0.32.6"