astro 3.0.3 → 3.0.4

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 = "3.0.3";
1
+ const ASTRO_VERSION = "3.0.4";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -20,7 +20,7 @@ async function dev(inlineConfig) {
20
20
  base: restart.container.settings.config.base
21
21
  })
22
22
  );
23
- const currentVersion = "3.0.3";
23
+ const currentVersion = "3.0.4";
24
24
  if (currentVersion.includes("-")) {
25
25
  logger.warn(null, msg.prerelease({ currentVersion }));
26
26
  }
@@ -50,7 +50,7 @@ function serverStart({
50
50
  base,
51
51
  isRestart = false
52
52
  }) {
53
- const version = "3.0.3";
53
+ const version = "3.0.4";
54
54
  const localPrefix = `${dim("\u2503")} Local `;
55
55
  const networkPrefix = `${dim("\u2503")} Network `;
56
56
  const emptyPrefix = " ".repeat(11);
@@ -235,7 +235,7 @@ function printHelp({
235
235
  message.push(
236
236
  linebreak(),
237
237
  ` ${bgGreen(black(` ${commandName} `))} ${green(
238
- `v${"3.0.3"}`
238
+ `v${"3.0.4"}`
239
239
  )} ${headline}`
240
240
  );
241
241
  }
@@ -40,6 +40,7 @@ async function runHookConfigSetup({
40
40
  let updatedConfig = { ...settings.config };
41
41
  let updatedSettings = { ...settings, config: updatedConfig };
42
42
  let addedClientDirectives = /* @__PURE__ */ new Map();
43
+ let astroJSXRenderer = null;
43
44
  for (const integration of settings.config.integrations) {
44
45
  if (integration.hooks?.["astro:config:setup"]) {
45
46
  let addPageExtension2 = function(...input) {
@@ -63,7 +64,11 @@ async function runHookConfigSetup({
63
64
  if (!renderer.serverEntrypoint) {
64
65
  throw new Error(`Renderer ${bold(renderer.name)} does not provide a serverEntrypoint.`);
65
66
  }
66
- updatedSettings.renderers.push(renderer);
67
+ if (renderer.name === "astro:jsx") {
68
+ astroJSXRenderer = renderer;
69
+ } else {
70
+ updatedSettings.renderers.push(renderer);
71
+ }
67
72
  },
68
73
  injectScript: (stage, content) => {
69
74
  updatedSettings.scripts.push({ stage, content });
@@ -112,6 +117,9 @@ async function runHookConfigSetup({
112
117
  }
113
118
  }
114
119
  }
120
+ if (astroJSXRenderer) {
121
+ updatedSettings.renderers.push(astroJSXRenderer);
122
+ }
115
123
  updatedSettings.config = updatedConfig;
116
124
  return updatedSettings;
117
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
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",