astro 6.0.0-alpha.3 → 6.0.0-alpha.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,6 +1,6 @@
1
1
  class BuildTimeAstroVersionProvider {
2
2
  // Injected during the build through esbuild define
3
- version = "6.0.0-alpha.3";
3
+ version = "6.0.0-alpha.4";
4
4
  }
5
5
  export {
6
6
  BuildTimeAstroVersionProvider
@@ -164,7 +164,7 @@ ${contentConfig.error.message}`);
164
164
  logger.info("Content config changed");
165
165
  shouldClear = true;
166
166
  }
167
- if (previousAstroVersion && previousAstroVersion !== "6.0.0-alpha.3") {
167
+ if (previousAstroVersion && previousAstroVersion !== "6.0.0-alpha.4") {
168
168
  logger.info("Astro version changed");
169
169
  shouldClear = true;
170
170
  }
@@ -172,8 +172,8 @@ ${contentConfig.error.message}`);
172
172
  logger.info("Clearing content store");
173
173
  this.#store.clearAll();
174
174
  }
175
- if ("6.0.0-alpha.3") {
176
- await this.#store.metaStore().set("astro-version", "6.0.0-alpha.3");
175
+ if ("6.0.0-alpha.4") {
176
+ await this.#store.metaStore().set("astro-version", "6.0.0-alpha.4");
177
177
  }
178
178
  if (currentConfigDigest) {
179
179
  await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "6.0.0-alpha.3";
1
+ const ASTRO_VERSION = "6.0.0-alpha.4";
2
2
  const ASTRO_GENERATOR = `Astro v${ASTRO_VERSION}`;
3
3
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
4
4
  const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
@@ -22,7 +22,7 @@ async function dev(inlineConfig) {
22
22
  await telemetry.record([]);
23
23
  const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
24
24
  const logger = restart.container.logger;
25
- const currentVersion = "6.0.0-alpha.3";
25
+ const currentVersion = "6.0.0-alpha.4";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -11,7 +11,8 @@ const errorMap = (issue) => {
11
11
  typeOrLiteralErrByPath.set(flattenedErrorPath, {
12
12
  code: unionError.code,
13
13
  received: unionError.received,
14
- expected: [unionError.expected]
14
+ expected: [unionError.expected],
15
+ message: unionError.message
15
16
  });
16
17
  }
17
18
  }
@@ -65,7 +66,8 @@ const errorMap = (issue) => {
65
66
  getTypeOrLiteralMsg({
66
67
  code: issue.code,
67
68
  received: typeof issue.input,
68
- expected: [issue.expected]
69
+ expected: [issue.expected],
70
+ message: issue.message
69
71
  })
70
72
  )
71
73
  };
@@ -74,7 +76,8 @@ const errorMap = (issue) => {
74
76
  }
75
77
  };
76
78
  const getTypeOrLiteralMsg = (error) => {
77
- if (typeof error.received === "undefined" || error.received === "undefined") return "Required";
79
+ if (typeof error.received === "undefined" || error.received === "undefined")
80
+ return error.message ?? "Required";
78
81
  const expectedDeduped = new Set(error.expected);
79
82
  switch (error.code) {
80
83
  case "invalid_type":
@@ -28,7 +28,7 @@ function serverStart({
28
28
  host,
29
29
  base
30
30
  }) {
31
- const version = "6.0.0-alpha.3";
31
+ const version = "6.0.0-alpha.4";
32
32
  const localPrefix = `${dim("\u2503")} Local `;
33
33
  const networkPrefix = `${dim("\u2503")} Network `;
34
34
  const emptyPrefix = " ".repeat(11);
@@ -265,7 +265,7 @@ function printHelp({
265
265
  message.push(
266
266
  linebreak(),
267
267
  ` ${bgGreen(black(` ${commandName} `))} ${green(
268
- `v${"6.0.0-alpha.3"}`
268
+ `v${"6.0.0-alpha.4"}`
269
269
  )} ${headline}`
270
270
  );
271
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "6.0.0-alpha.3",
3
+ "version": "6.0.0-alpha.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",