astro 5.18.1 → 5.18.2

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 = "5.18.1";
3
+ version = "5.18.2";
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 !== "5.18.1") {
167
+ if (previousAstroVersion && previousAstroVersion !== "5.18.2") {
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.18.1") {
176
- await this.#store.metaStore().set("astro-version", "5.18.1");
175
+ if ("5.18.2") {
176
+ await this.#store.metaStore().set("astro-version", "5.18.2");
177
177
  }
178
178
  if (currentConfigDigest) {
179
179
  await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -187,11 +187,13 @@ async function buildManifest(opts, internals, staticFiles, encodedKey) {
187
187
  const outFolder = getOutFolder(opts.settings, route.pathname, route);
188
188
  const outFile = getOutFile(opts.settings.config, outFolder, route.pathname, route);
189
189
  const file = outFile.toString().replace(opts.settings.config.build.client.toString(), "");
190
+ const pageData = internals.pagesByKeys.get(makePageDataKey(route.route, route.component));
191
+ const styles = pageData ? pageData.styles.sort(cssOrder).map(({ sheet }) => sheet).map((s) => s.type === "external" ? { ...s, src: prefixAssetPath(s.src) } : s).reduce(mergeInlineCss, []) : [];
190
192
  routes.push({
191
193
  file,
192
194
  links: [],
193
195
  scripts: [],
194
- styles: [],
196
+ styles,
195
197
  routeData: serializeRouteData(route, settings.config.trailingSlash)
196
198
  });
197
199
  staticFiles.push(file);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "5.18.1";
1
+ const ASTRO_VERSION = "5.18.2";
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.18.1";
25
+ const currentVersion = "5.18.2";
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 = "5.18.1";
41
+ const version = "5.18.2";
42
42
  const localPrefix = `${dim("\u2503")} Local `;
43
43
  const networkPrefix = `${dim("\u2503")} Network `;
44
44
  const emptyPrefix = " ".repeat(11);
@@ -275,7 +275,7 @@ function printHelp({
275
275
  message.push(
276
276
  linebreak(),
277
277
  ` ${bgGreen(black(` ${commandName} `))} ${green(
278
- `v${"5.18.1"}`
278
+ `v${"5.18.2"}`
279
279
  )} ${headline}`
280
280
  );
281
281
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.18.1",
3
+ "version": "5.18.2",
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",
@@ -154,8 +154,8 @@
154
154
  "zod-to-json-schema": "^3.25.1",
155
155
  "zod-to-ts": "^1.2.0",
156
156
  "@astrojs/internal-helpers": "0.7.6",
157
- "@astrojs/markdown-remark": "6.3.11",
158
- "@astrojs/telemetry": "3.3.0"
157
+ "@astrojs/telemetry": "3.3.0",
158
+ "@astrojs/markdown-remark": "6.3.11"
159
159
  },
160
160
  "optionalDependencies": {
161
161
  "sharp": "^0.34.0"