astro 4.16.2 → 4.16.3

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.
@@ -121,7 +121,7 @@ class ContentLayer {
121
121
  logger.info("Content config changed");
122
122
  shouldClear = true;
123
123
  }
124
- if (previousAstroVersion !== "4.16.2") {
124
+ if (previousAstroVersion !== "4.16.3") {
125
125
  logger.info("Astro version changed");
126
126
  shouldClear = true;
127
127
  }
@@ -129,8 +129,8 @@ class ContentLayer {
129
129
  logger.info("Clearing content store");
130
130
  this.#store.clearAll();
131
131
  }
132
- if ("4.16.2") {
133
- await this.#store.metaStore().set("astro-version", "4.16.2");
132
+ if ("4.16.3") {
133
+ await this.#store.metaStore().set("astro-version", "4.16.3");
134
134
  }
135
135
  if (currentConfigDigest) {
136
136
  await this.#store.metaStore().set("config-digest", currentConfigDigest);
@@ -42,10 +42,9 @@ class NodeApp extends App {
42
42
  const protocol = forwardedProtocol ?? (isEncrypted ? "https" : "http");
43
43
  const forwardedHostname = getFirstForwardedValue(req.headers["x-forwarded-host"]);
44
44
  const hostname = forwardedHostname ?? req.headers.host ?? req.headers[":authority"];
45
- const forwardedPort = getFirstForwardedValue(req.headers["x-forwarded-port"]);
46
- const port = forwardedPort ?? req.socket?.remotePort?.toString() ?? (isEncrypted ? "443" : "80");
45
+ const port = getFirstForwardedValue(req.headers["x-forwarded-port"]);
47
46
  const portInHostname = typeof hostname === "string" && /:\d+$/.test(hostname);
48
- const hostnamePort = portInHostname ? hostname : `${hostname}:${port}`;
47
+ const hostnamePort = portInHostname ? hostname : `${hostname}${port ? `:${port}` : ""}`;
49
48
  const url = `${protocol}://${hostnamePort}${req.url}`;
50
49
  const options = {
51
50
  method: req.method || "GET",
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "4.16.2";
1
+ const ASTRO_VERSION = "4.16.3";
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 = "4.16.2";
25
+ const currentVersion = "4.16.3";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -38,7 +38,7 @@ function serverStart({
38
38
  host,
39
39
  base
40
40
  }) {
41
- const version = "4.16.2";
41
+ const version = "4.16.3";
42
42
  const localPrefix = `${dim("\u2503")} Local `;
43
43
  const networkPrefix = `${dim("\u2503")} Network `;
44
44
  const emptyPrefix = " ".repeat(11);
@@ -270,7 +270,7 @@ function printHelp({
270
270
  message.push(
271
271
  linebreak(),
272
272
  ` ${bgGreen(black(` ${commandName} `))} ${green(
273
- `v${"4.16.2"}`
273
+ `v${"4.16.3"}`
274
274
  )} ${headline}`
275
275
  );
276
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "4.16.2",
3
+ "version": "4.16.3",
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",
@@ -26,6 +26,8 @@ const _internalGetSecret = (key) => {
26
26
  };
27
27
 
28
28
  // used while generating the virtual module
29
- setOnSetGetEnv((_reset) => {
29
+ // biome-ignore lint/correctness/noUnusedFunctionParameters: `reset` is used by the generated code
30
+ // biome-ignore lint/correctness/noUnusedVariables: `reset` is used by the generated code
31
+ setOnSetGetEnv((reset) => {
30
32
  // @@ON_SET_GET_ENV@@
31
33
  });