astro 5.1.0 → 5.1.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.
@@ -127,7 +127,7 @@ class ContentLayer {
127
127
  logger.info("Content config changed");
128
128
  shouldClear = true;
129
129
  }
130
- if (previousAstroVersion !== "5.1.0") {
130
+ if (previousAstroVersion !== "5.1.1") {
131
131
  logger.info("Astro version changed");
132
132
  shouldClear = true;
133
133
  }
@@ -135,8 +135,8 @@ class ContentLayer {
135
135
  logger.info("Clearing content store");
136
136
  this.#store.clearAll();
137
137
  }
138
- if ("5.1.0") {
139
- await this.#store.metaStore().set("astro-version", "5.1.0");
138
+ if ("5.1.1") {
139
+ await this.#store.metaStore().set("astro-version", "5.1.1");
140
140
  }
141
141
  if (currentConfigDigest) {
142
142
  await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -107,7 +107,7 @@ function glob(globOptions) {
107
107
  try {
108
108
  rendered = await render?.({
109
109
  id,
110
- data: parsedData,
110
+ data,
111
111
  body,
112
112
  filePath,
113
113
  digest
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "5.1.0";
1
+ const ASTRO_VERSION = "5.1.1";
2
2
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
3
3
  const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
4
4
  const REWRITE_DIRECTIVE_HEADER_VALUE = "yes";
@@ -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 = "5.1.0";
25
+ const currentVersion = "5.1.1";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -777,7 +777,7 @@ export declare const AstroResponseHeadersReassigned: {
777
777
  /**
778
778
  * @docs
779
779
  * @see
780
- * - [experimental.session](https://5-0-0-beta.docs.astro.build/en/reference/configuration-reference/#experimentalsession)
780
+ * - [experimental.session](https://docs.astro.build/en/reference/experimental-flags/sessions/)
781
781
  * @description
782
782
  * Thrown when the session storage could not be initialized.
783
783
  */
@@ -790,7 +790,7 @@ export declare const SessionStorageInitError: {
790
790
  /**
791
791
  * @docs
792
792
  * @see
793
- * - [experimental.session](https://5-0-0-beta.docs.astro.build/en/reference/configuration-reference/#experimentalsession)
793
+ * - [experimental.session](https://docs.astro.build/en/reference/experimental-flags/sessions/)
794
794
  * @description
795
795
  * Thrown when the session data could not be saved.
796
796
  */
@@ -279,13 +279,13 @@ const SessionStorageInitError = {
279
279
  name: "SessionStorageInitError",
280
280
  title: "Session storage could not be initialized.",
281
281
  message: (error, driver) => `Error when initializing session storage${driver ? ` with driver ${driver}` : ""}. ${error ?? ""}`,
282
- hint: "For more information, see https://5-0-0-beta.docs.astro.build/en/reference/configuration-reference/#experimentalsession"
282
+ hint: "For more information, see https://docs.astro.build/en/reference/experimental-flags/sessions/"
283
283
  };
284
284
  const SessionStorageSaveError = {
285
285
  name: "SessionStorageSaveError",
286
286
  title: "Session data could not be saved.",
287
287
  message: (error, driver) => `Error when saving session data${driver ? ` with driver ${driver}` : ""}. ${error ?? ""}`,
288
- hint: "For more information, see https://5-0-0-beta.docs.astro.build/en/reference/configuration-reference/#experimentalsession"
288
+ hint: "For more information, see https://docs.astro.build/en/reference/experimental-flags/sessions/"
289
289
  };
290
290
  const MiddlewareCantBeLoaded = {
291
291
  name: "MiddlewareCantBeLoaded",
@@ -38,7 +38,7 @@ function serverStart({
38
38
  host,
39
39
  base
40
40
  }) {
41
- const version = "5.1.0";
41
+ const version = "5.1.1";
42
42
  const localPrefix = `${dim("\u2503")} Local `;
43
43
  const networkPrefix = `${dim("\u2503")} Network `;
44
44
  const emptyPrefix = " ".repeat(11);
@@ -276,7 +276,7 @@ function printHelp({
276
276
  message.push(
277
277
  linebreak(),
278
278
  ` ${bgGreen(black(` ${commandName} `))} ${green(
279
- `v${"5.1.0"}`
279
+ `v${"5.1.1"}`
280
280
  )} ${headline}`
281
281
  );
282
282
  }
@@ -67,7 +67,7 @@ export interface Page<T = any> {
67
67
  next: string | undefined;
68
68
  /** url of the first page (if the current page is not the first page) */
69
69
  first: string | undefined;
70
- /** url of the next page (if the current page in not the last page) */
70
+ /** url of the last page (if the current page is not the last page) */
71
71
  last: string | undefined;
72
72
  };
73
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.1.0",
3
+ "version": "5.1.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",
@@ -150,7 +150,7 @@
150
150
  "unist-util-visit": "^5.0.0",
151
151
  "unstorage": "^1.14.0",
152
152
  "vfile": "^6.0.3",
153
- "vite": "^6.0.1",
153
+ "vite": "^6.0.5",
154
154
  "vitefu": "^1.0.4",
155
155
  "which-pm": "^3.0.0",
156
156
  "xxhash-wasm": "^1.1.0",
@@ -160,8 +160,8 @@
160
160
  "zod-to-json-schema": "^3.23.5",
161
161
  "zod-to-ts": "^1.2.0",
162
162
  "@astrojs/internal-helpers": "0.4.2",
163
- "@astrojs/telemetry": "3.2.0",
164
- "@astrojs/markdown-remark": "6.0.1"
163
+ "@astrojs/markdown-remark": "6.0.1",
164
+ "@astrojs/telemetry": "3.2.0"
165
165
  },
166
166
  "optionalDependencies": {
167
167
  "sharp": "^0.33.3"