astro 4.0.0 → 4.0.1

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.
@@ -187,11 +187,9 @@ ${bgGreen(black(` ${verb} static routes `))}`);
187
187
  async function generatePage(pageData, ssrEntry, builtPaths, pipeline) {
188
188
  const logger = pipeline.getLogger();
189
189
  const config = pipeline.getConfig();
190
- const manifest = pipeline.getManifest();
191
190
  const pageModulePromise = ssrEntry.page;
192
191
  const onRequest = ssrEntry.onRequest;
193
192
  const pageInfo = getPageDataByComponent(pipeline.getInternals(), pageData.route.component);
194
- const hoistedScripts = pageInfo?.hoistedScript ?? null;
195
193
  const styles = pageData.styles.sort(cssOrder).map(({ sheet }) => sheet).reduce(mergeInlineCss, []);
196
194
  const linkIds = [];
197
195
  const scripts = pageInfo?.hoistedScript ?? null;
@@ -224,6 +222,12 @@ async function generatePage(pageData, ssrEntry, builtPaths, pipeline) {
224
222
  mod: pageModule
225
223
  };
226
224
  for (const route of eachRouteInRouteData(pageData)) {
225
+ const icon = route.type === "page" || route.type === "redirect" || route.type === "fallback" ? green("\u25B6") : magenta("\u03BB");
226
+ if (isRelativePath(route.component)) {
227
+ logger.info(null, `${icon} ${route.route}`);
228
+ } else {
229
+ logger.info(null, `${icon} ${route.component}`);
230
+ }
227
231
  const paths = await getPathsForRoute(route, pageModule, pipeline, builtPaths);
228
232
  let timeStart = performance.now();
229
233
  let prevTimeEnd = timeStart;
@@ -373,12 +377,6 @@ async function generatePath(pathname, pipeline, gopts, route) {
373
377
  });
374
378
  }
375
379
  }
376
- const icon = route.type === "page" || route.type === "redirect" || route.type === "fallback" ? green("\u25B6") : magenta("\u03BB");
377
- if (isRelativePath(route.component)) {
378
- logger.info(null, `${icon} ${route.route}`);
379
- } else {
380
- logger.info(null, `${icon} ${route.component}`);
381
- }
382
380
  if (route.type === "page") {
383
381
  addPageName(pathname, pipeline.getStaticBuildOptions());
384
382
  }
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "4.0.0";
1
+ const ASTRO_VERSION = "4.0.1";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -21,7 +21,7 @@ async function dev(inlineConfig) {
21
21
  base: restart.container.settings.config.base
22
22
  })
23
23
  );
24
- const currentVersion = "4.0.0";
24
+ const currentVersion = "4.0.1";
25
25
  if (currentVersion.includes("-")) {
26
26
  logger.warn("SKIP_FORMAT", msg.prerelease({ currentVersion }));
27
27
  }
@@ -36,7 +36,7 @@ function serverStart({
36
36
  host,
37
37
  base
38
38
  }) {
39
- const version = "4.0.0";
39
+ const version = "4.0.1";
40
40
  const localPrefix = `${dim("\u2503")} Local `;
41
41
  const networkPrefix = `${dim("\u2503")} Network `;
42
42
  const emptyPrefix = " ".repeat(11);
@@ -258,7 +258,7 @@ function printHelp({
258
258
  message.push(
259
259
  linebreak(),
260
260
  ` ${bgGreen(black(` ${commandName} `))} ${green(
261
- `v${"4.0.0"}`
261
+ `v${"4.0.1"}`
262
262
  )} ${headline}`
263
263
  );
264
264
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
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",