astro 2.9.5 → 2.9.6

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.
@@ -1766,9 +1766,10 @@ export interface RouteData {
1766
1766
  export type RedirectRouteData = RouteData & {
1767
1767
  redirect: string;
1768
1768
  };
1769
- export type SerializedRouteData = Omit<RouteData, 'generate' | 'pattern'> & {
1769
+ export type SerializedRouteData = Omit<RouteData, 'generate' | 'pattern' | 'redirectRoute'> & {
1770
1770
  generate: undefined;
1771
1771
  pattern: string;
1772
+ redirectRoute: SerializedRouteData | undefined;
1772
1773
  _meta: {
1773
1774
  trailingSlash: AstroConfig['trailingSlash'];
1774
1775
  };
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "2.9.5";
1
+ const ASTRO_VERSION = "2.9.6";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -54,7 +54,7 @@ async function dev(settings, options) {
54
54
  isRestart: options.isRestart
55
55
  })
56
56
  );
57
- const currentVersion = "2.9.5";
57
+ const currentVersion = "2.9.6";
58
58
  if (currentVersion.includes("-")) {
59
59
  warn(options.logging, null, msg.prerelease({ currentVersion }));
60
60
  }
@@ -47,7 +47,7 @@ function serverStart({
47
47
  base,
48
48
  isRestart = false
49
49
  }) {
50
- const version = "2.9.5";
50
+ const version = "2.9.6";
51
51
  const localPrefix = `${dim("\u2503")} Local `;
52
52
  const networkPrefix = `${dim("\u2503")} Network `;
53
53
  const emptyPrefix = " ".repeat(11);
@@ -233,7 +233,7 @@ function printHelp({
233
233
  message.push(
234
234
  linebreak(),
235
235
  ` ${bgGreen(black(` ${commandName} `))} ${green(
236
- `v${"2.9.5"}`
236
+ `v${"2.9.6"}`
237
237
  )} ${headline}`
238
238
  );
239
239
  }
@@ -4,6 +4,7 @@ function serializeRouteData(routeData, trailingSlash) {
4
4
  ...routeData,
5
5
  generate: void 0,
6
6
  pattern: routeData.pattern.source,
7
+ redirectRoute: routeData.redirectRoute ? serializeRouteData(routeData.redirectRoute, trailingSlash) : void 0,
7
8
  _meta: { trailingSlash }
8
9
  };
9
10
  }
@@ -17,7 +18,9 @@ function deserializeRouteData(rawRouteData) {
17
18
  generate: getRouteGenerator(rawRouteData.segments, rawRouteData._meta.trailingSlash),
18
19
  pathname: rawRouteData.pathname || void 0,
19
20
  segments: rawRouteData.segments,
20
- prerender: rawRouteData.prerender
21
+ prerender: rawRouteData.prerender,
22
+ redirect: rawRouteData.redirect,
23
+ redirectRoute: rawRouteData.redirectRoute ? deserializeRouteData(rawRouteData.redirectRoute) : void 0
21
24
  };
22
25
  }
23
26
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "2.9.5",
3
+ "version": "2.9.6",
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",