astro 5.14.0 → 5.14.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.
@@ -14,10 +14,24 @@ function createDevUrlProxyHashResolver({
14
14
  return {
15
15
  resolve(input) {
16
16
  const { cssVariable, data } = input;
17
- return [cssVariable.slice(2), data.weight, data.style, baseHashResolver.resolve(input)].filter(Boolean).join("-");
17
+ return [
18
+ cssVariable.slice(2),
19
+ formatWeight(data.weight),
20
+ data.style,
21
+ baseHashResolver.resolve(input)
22
+ ].filter(Boolean).join("-");
18
23
  }
19
24
  };
20
25
  }
26
+ function formatWeight(weight) {
27
+ if (Array.isArray(weight)) {
28
+ return weight.join("-");
29
+ }
30
+ if (typeof weight === "number") {
31
+ return weight.toString();
32
+ }
33
+ return weight;
34
+ }
21
35
  export {
22
36
  createBuildUrlProxyHashResolver,
23
37
  createDevUrlProxyHashResolver
@@ -164,7 +164,7 @@ ${contentConfig.error.message}`);
164
164
  logger.info("Content config changed");
165
165
  shouldClear = true;
166
166
  }
167
- if (previousAstroVersion && previousAstroVersion !== "5.14.0") {
167
+ if (previousAstroVersion && previousAstroVersion !== "5.14.1") {
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 ("5.14.0") {
176
- await this.#store.metaStore().set("astro-version", "5.14.0");
175
+ if ("5.14.1") {
176
+ await this.#store.metaStore().set("astro-version", "5.14.1");
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 = "5.14.0";
1
+ const ASTRO_VERSION = "5.14.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.14.0";
25
+ const currentVersion = "5.14.1";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -679,8 +679,10 @@ export declare const CouldNotTransformImage: {
679
679
  };
680
680
  /**
681
681
  * @docs
682
+ * @see
683
+ * - [HTML streaming](https://docs.astro.build/en/guides/on-demand-rendering/#html-streaming)
682
684
  * @description
683
- * Making changes to the response, such as setting headers, cookies, and the status code cannot be done outside of page components.
685
+ * Making changes to the response, such as setting headers, cookies, and the status code can only be done in [page components](https://docs.astro.build/en/basics/astro-pages/).
684
686
  */
685
687
  export declare const ResponseSentError: {
686
688
  name: string;
@@ -37,7 +37,7 @@ function serverStart({
37
37
  host,
38
38
  base
39
39
  }) {
40
- const version = "5.14.0";
40
+ const version = "5.14.1";
41
41
  const localPrefix = `${dim("\u2503")} Local `;
42
42
  const networkPrefix = `${dim("\u2503")} Network `;
43
43
  const emptyPrefix = " ".repeat(11);
@@ -274,7 +274,7 @@ function printHelp({
274
274
  message.push(
275
275
  linebreak(),
276
276
  ` ${bgGreen(black(` ${commandName} `))} ${green(
277
- `v${"5.14.0"}`
277
+ `v${"5.14.1"}`
278
278
  )} ${headline}`
279
279
  );
280
280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.14.0",
3
+ "version": "5.14.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",