astro 1.9.0 → 1.9.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 = "1.9.0";
1
+ const ASTRO_VERSION = "1.9.2";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -30,7 +30,7 @@ async function dev(settings, options) {
30
30
  isRestart: options.isRestart
31
31
  })
32
32
  );
33
- const currentVersion = "1.9.0";
33
+ const currentVersion = "1.9.2";
34
34
  if (currentVersion.includes("-")) {
35
35
  warn(options.logging, null, msg.prerelease({ currentVersion }));
36
36
  }
@@ -49,7 +49,7 @@ function serverStart({
49
49
  site,
50
50
  isRestart = false
51
51
  }) {
52
- const version = "1.9.0";
52
+ const version = "1.9.2";
53
53
  const rootPath = site ? site.pathname : "/";
54
54
  const localPrefix = `${dim("\u2503")} Local `;
55
55
  const networkPrefix = `${dim("\u2503")} Network `;
@@ -272,7 +272,7 @@ function printHelp({
272
272
  message.push(
273
273
  linebreak(),
274
274
  ` ${bgGreen(black(` ${commandName} `))} ${green(
275
- `v${"1.9.0"}`
275
+ `v${"1.9.2"}`
276
276
  )} ${headline}`
277
277
  );
278
278
  }
@@ -4,6 +4,7 @@ import {
4
4
  appendForwardSlash,
5
5
  removeLeadingForwardSlashWindows
6
6
  } from "../core/path.js";
7
+ import { viteID } from "../core/util.js";
7
8
  function escapeViteEnvReferences(code) {
8
9
  return code.replace(/import\.meta\.env/g, "import\\u002Emeta.env");
9
10
  }
@@ -48,7 +49,8 @@ function normalizeFilename(filename, config) {
48
49
  if (filename.startsWith("/@fs")) {
49
50
  filename = filename.slice("/@fs".length);
50
51
  } else if (filename.startsWith("/") && !ancestor(filename, config.root.pathname)) {
51
- filename = new URL("." + filename, config.root).pathname;
52
+ const url = new URL("." + filename, config.root);
53
+ filename = viteID(url);
52
54
  }
53
55
  return removeLeadingForwardSlashWindows(filename);
54
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "1.9.0",
3
+ "version": "1.9.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",