astro 5.2.5 → 5.2.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.
- package/dist/content/content-layer.js +3 -3
- package/dist/core/build/index.js +2 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/errors/errors-data.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/core/routing/match.js +1 -1
- package/dist/types/public/common.d.ts +1 -1
- package/package.json +1 -1
|
@@ -153,7 +153,7 @@ ${contentConfig.error.message}`);
|
|
|
153
153
|
logger.info("Content config changed");
|
|
154
154
|
shouldClear = true;
|
|
155
155
|
}
|
|
156
|
-
if (previousAstroVersion && previousAstroVersion !== "5.2.
|
|
156
|
+
if (previousAstroVersion && previousAstroVersion !== "5.2.6") {
|
|
157
157
|
logger.info("Astro version changed");
|
|
158
158
|
shouldClear = true;
|
|
159
159
|
}
|
|
@@ -161,8 +161,8 @@ ${contentConfig.error.message}`);
|
|
|
161
161
|
logger.info("Clearing content store");
|
|
162
162
|
this.#store.clearAll();
|
|
163
163
|
}
|
|
164
|
-
if ("5.2.
|
|
165
|
-
await this.#store.metaStore().set("astro-version", "5.2.
|
|
164
|
+
if ("5.2.6") {
|
|
165
|
+
await this.#store.metaStore().set("astro-version", "5.2.6");
|
|
166
166
|
}
|
|
167
167
|
if (currentConfigDigest) {
|
|
168
168
|
await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
|
package/dist/core/build/index.js
CHANGED
|
@@ -113,7 +113,8 @@ class AstroBuilder {
|
|
|
113
113
|
async build({ viteConfig }) {
|
|
114
114
|
await runHookBuildStart({ config: this.settings.config, logging: this.logger });
|
|
115
115
|
this.validateConfig();
|
|
116
|
-
this.logger.info("build", `output: ${blue('"' + this.settings.
|
|
116
|
+
this.logger.info("build", `output: ${blue('"' + this.settings.config.output + '"')}`);
|
|
117
|
+
this.logger.info("build", `mode: ${blue('"' + this.settings.buildOutput + '"')}`);
|
|
117
118
|
this.logger.info("build", `directory: ${blue(fileURLToPath(this.settings.config.outDir))}`);
|
|
118
119
|
if (this.settings.adapter) {
|
|
119
120
|
this.logger.info("build", `adapter: ${green(this.settings.adapter.name)}`);
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -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.2.
|
|
25
|
+
const currentVersion = "5.2.6";
|
|
26
26
|
const isPrerelease = currentVersion.includes("-");
|
|
27
27
|
if (!isPrerelease) {
|
|
28
28
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const CantUseAstroConfigModuleError = {
|
|
2
2
|
name: "CantUseAstroConfigModuleError",
|
|
3
3
|
title: "Cannot use the `astro:config` module without enabling the experimental feature.",
|
|
4
|
-
message: (moduleName) => `Cannot import the module "${moduleName}" because the experimental feature is disabled. Enable \`experimental.
|
|
4
|
+
message: (moduleName) => `Cannot import the module "${moduleName}" because the experimental feature is disabled. Enable \`experimental.serializeConfig\` in your \`astro.config.mjs\` `
|
|
5
5
|
};
|
|
6
6
|
const UnknownCompilerError = {
|
|
7
7
|
name: "UnknownCompilerError",
|
package/dist/core/messages.js
CHANGED
|
@@ -38,7 +38,7 @@ function serverStart({
|
|
|
38
38
|
host,
|
|
39
39
|
base
|
|
40
40
|
}) {
|
|
41
|
-
const version = "5.2.
|
|
41
|
+
const version = "5.2.6";
|
|
42
42
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
43
43
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
44
44
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -281,7 +281,7 @@ function printHelp({
|
|
|
281
281
|
message.push(
|
|
282
282
|
linebreak(),
|
|
283
283
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
284
|
-
`v${"5.2.
|
|
284
|
+
`v${"5.2.6"}`
|
|
285
285
|
)} ${headline}`
|
|
286
286
|
);
|
|
287
287
|
}
|
|
@@ -25,7 +25,7 @@ function isRouteServerIsland(route) {
|
|
|
25
25
|
}
|
|
26
26
|
function isRequestServerIsland(request, base = "") {
|
|
27
27
|
const url = new URL(request.url);
|
|
28
|
-
const pathname = url.pathname.slice(base.length);
|
|
28
|
+
const pathname = base === "/" ? url.pathname.slice(base.length) : url.pathname.slice(base.length + 1);
|
|
29
29
|
return pathname.startsWith(SERVER_ISLAND_BASE_PREFIX);
|
|
30
30
|
}
|
|
31
31
|
function requestIs404Or500(request, base = "") {
|
|
@@ -71,7 +71,7 @@ export interface Page<T = any> {
|
|
|
71
71
|
last: string | undefined;
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
export type PaginateFunction = <PaginateData, AdditionalPaginateProps extends Props, AdditionalPaginateParams extends Params>(data: PaginateData[], args?: PaginateOptions<AdditionalPaginateProps, AdditionalPaginateParams>) => {
|
|
74
|
+
export type PaginateFunction = <PaginateData, AdditionalPaginateProps extends Props, AdditionalPaginateParams extends Params>(data: readonly PaginateData[], args?: PaginateOptions<AdditionalPaginateProps, AdditionalPaginateParams>) => {
|
|
75
75
|
params: Simplify<{
|
|
76
76
|
page: string | undefined;
|
|
77
77
|
} & OmitIndexSignature<AdditionalPaginateParams>>;
|