astro 1.2.6 → 1.2.7

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.
@@ -45,10 +45,13 @@ function* getPageDatasByChunk(internals, chunk) {
45
45
  function* getPageDatasByClientOnlyID(internals, viteid) {
46
46
  const pagesByClientOnly = internals.pagesByClientOnly;
47
47
  if (pagesByClientOnly.size) {
48
- let pathname = `/@fs${prependForwardSlash(viteid)}`;
49
48
  let pageBuildDatas = pagesByClientOnly.get(viteid);
50
49
  if (!pageBuildDatas) {
51
- pathname = `/@fs${prependForwardSlash(removeFileExtension(viteid))}`;
50
+ let pathname = `/@fs${prependForwardSlash(viteid)}`;
51
+ pageBuildDatas = pagesByClientOnly.get(pathname);
52
+ }
53
+ if (!pageBuildDatas) {
54
+ let pathname = `/@fs${prependForwardSlash(removeFileExtension(viteid))}`;
52
55
  pageBuildDatas = pagesByClientOnly.get(pathname);
53
56
  }
54
57
  if (pageBuildDatas) {
@@ -48,7 +48,7 @@ async function dev(settings, options) {
48
48
  isRestart
49
49
  })
50
50
  );
51
- const currentVersion = "1.2.6";
51
+ const currentVersion = "1.2.7";
52
52
  if (currentVersion.includes("-")) {
53
53
  warn(options.logging, null, msg.prerelease({ currentVersion }));
54
54
  }
@@ -47,7 +47,7 @@ function devStart({
47
47
  site,
48
48
  isRestart = false
49
49
  }) {
50
- const version = "1.2.6";
50
+ const version = "1.2.7";
51
51
  const rootPath = site ? site.pathname : "/";
52
52
  const localPrefix = `${dim("\u2503")} Local `;
53
53
  const networkPrefix = `${dim("\u2503")} Network `;
@@ -226,7 +226,7 @@ function printHelp({
226
226
  message.push(
227
227
  linebreak(),
228
228
  ` ${bgGreen(black(` ${commandName} `))} ${green(
229
- `v${"1.2.6"}`
229
+ `v${"1.2.7"}`
230
230
  )} ${headline}`
231
231
  );
232
232
  }
package/dist/core/util.js CHANGED
@@ -5,7 +5,7 @@ import resolve from "resolve";
5
5
  import slash from "slash";
6
6
  import { fileURLToPath, pathToFileURL } from "url";
7
7
  import { prependForwardSlash, removeTrailingForwardSlash } from "./path.js";
8
- const ASTRO_VERSION = "1.2.6";
8
+ const ASTRO_VERSION = "1.2.7";
9
9
  function isObject(value) {
10
10
  return typeof value === "object" && value != null;
11
11
  }
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "1.2.6";
1
+ const ASTRO_VERSION = "1.2.7";
2
2
  function createDeprecatedFetchContentFn() {
3
3
  return () => {
4
4
  throw new Error("Deprecated: Astro.fetchContent() has been replaced with Astro.glob().");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
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",
@@ -136,7 +136,7 @@
136
136
  "tsconfig-resolver": "^3.0.1",
137
137
  "unist-util-visit": "^4.1.0",
138
138
  "vfile": "^5.3.2",
139
- "vite": "3.1.0",
139
+ "vite": "~3.1.3",
140
140
  "yargs-parser": "^21.0.1",
141
141
  "zod": "^3.17.3"
142
142
  },