astro 5.12.4 → 5.12.5
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.
|
@@ -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.12.
|
|
167
|
+
if (previousAstroVersion && previousAstroVersion !== "5.12.5") {
|
|
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.12.
|
|
176
|
-
await this.#store.metaStore().set("astro-version", "5.12.
|
|
175
|
+
if ("5.12.5") {
|
|
176
|
+
await this.#store.metaStore().set("astro-version", "5.12.5");
|
|
177
177
|
}
|
|
178
178
|
if (currentConfigDigest) {
|
|
179
179
|
await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
|
|
@@ -13,7 +13,8 @@ import {
|
|
|
13
13
|
isRelativePath,
|
|
14
14
|
joinPaths,
|
|
15
15
|
removeLeadingForwardSlash,
|
|
16
|
-
removeTrailingForwardSlash
|
|
16
|
+
removeTrailingForwardSlash,
|
|
17
|
+
trimSlashes
|
|
17
18
|
} from "../../core/path.js";
|
|
18
19
|
import { toFallbackType, toRoutingStrategy } from "../../i18n/utils.js";
|
|
19
20
|
import { runHookBuildGenerated, toIntegrationResolvedRoute } from "../../integrations/hooks.js";
|
|
@@ -309,11 +310,14 @@ async function generatePath(pathname, pipeline, gopts, route, integrationRoute,
|
|
|
309
310
|
addPageName(pathname, options);
|
|
310
311
|
}
|
|
311
312
|
if (route.type === "fallback" && route.pathname !== "/") {
|
|
312
|
-
let locale = removeLeadingForwardSlash(pathname).split("/")[0];
|
|
313
313
|
if (Object.values(options.allPages).some((val) => {
|
|
314
314
|
if (val.route.pattern.test(pathname)) {
|
|
315
|
-
if (val.route.
|
|
316
|
-
if (val.route.
|
|
315
|
+
if (val.route.params && val.route.params.length !== 0) {
|
|
316
|
+
if (val.route.distURL && !val.route.distURL.find(
|
|
317
|
+
(url2) => url2.href.replace(config.outDir.toString(), "").replace(/(?:\/index\.html|\.html)$/, "") == trimSlashes(pathname)
|
|
318
|
+
)) {
|
|
319
|
+
return false;
|
|
320
|
+
}
|
|
317
321
|
}
|
|
318
322
|
return true;
|
|
319
323
|
} else {
|
|
@@ -166,7 +166,7 @@ function generateSSRCode(adapter, middlewareId) {
|
|
|
166
166
|
// They are NOT equivalent! Some bundlers will throw if `start` is not exported, but we
|
|
167
167
|
// only want to silently ignore it... hence the dynamic, obfuscated weirdness.
|
|
168
168
|
`const _start = 'start';
|
|
169
|
-
if (_start
|
|
169
|
+
if (Object.prototype.hasOwnProperty.call(serverEntrypointModule, _start)) {
|
|
170
170
|
serverEntrypointModule[_start](_manifest, _args);
|
|
171
171
|
}`
|
|
172
172
|
];
|
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.12.
|
|
25
|
+
const currentVersion = "5.12.5";
|
|
26
26
|
const isPrerelease = currentVersion.includes("-");
|
|
27
27
|
if (!isPrerelease) {
|
|
28
28
|
try {
|
package/dist/core/messages.js
CHANGED
|
@@ -37,7 +37,7 @@ function serverStart({
|
|
|
37
37
|
host,
|
|
38
38
|
base
|
|
39
39
|
}) {
|
|
40
|
-
const version = "5.12.
|
|
40
|
+
const version = "5.12.5";
|
|
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.12.
|
|
277
|
+
`v${"5.12.5"}`
|
|
278
278
|
)} ${headline}`
|
|
279
279
|
);
|
|
280
280
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.5",
|
|
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",
|
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
"zod": "^3.24.4",
|
|
159
159
|
"zod-to-json-schema": "^3.24.5",
|
|
160
160
|
"zod-to-ts": "^1.2.0",
|
|
161
|
-
"@astrojs/internal-helpers": "0.6.1",
|
|
162
161
|
"@astrojs/markdown-remark": "6.3.3",
|
|
162
|
+
"@astrojs/internal-helpers": "0.6.1",
|
|
163
163
|
"@astrojs/telemetry": "3.3.0"
|
|
164
164
|
},
|
|
165
165
|
"optionalDependencies": {
|