astro 5.2.0 → 5.2.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.
- package/dist/cli/add/index.d.ts +1 -0
- package/dist/cli/add/index.js +12 -5
- package/dist/content/content-layer.js +3 -3
- package/dist/core/constants.js +1 -1
- package/dist/core/dev/dev.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/vite-plugin-astro-server/trailing-slash.js +3 -0
- package/package.json +3 -3
package/dist/cli/add/index.d.ts
CHANGED
package/dist/cli/add/index.js
CHANGED
|
@@ -254,7 +254,7 @@ async function add(names, { flags }) {
|
|
|
254
254
|
`
|
|
255
255
|
${magenta(
|
|
256
256
|
`Check our deployment docs for ${bold(
|
|
257
|
-
integration.
|
|
257
|
+
integration.integrationName
|
|
258
258
|
)} to update your "adapter" config.`
|
|
259
259
|
)}`
|
|
260
260
|
);
|
|
@@ -314,7 +314,7 @@ async function add(names, { flags }) {
|
|
|
314
314
|
case 3 /* failure */:
|
|
315
315
|
case 1 /* updated */:
|
|
316
316
|
case void 0: {
|
|
317
|
-
const list = integrations.map((integration) => ` - ${integration.
|
|
317
|
+
const list = integrations.map((integration) => ` - ${integration.integrationName}`).join("\n");
|
|
318
318
|
logger.info(
|
|
319
319
|
"SKIP_FORMAT",
|
|
320
320
|
msg.success(
|
|
@@ -501,8 +501,7 @@ async function getInstallIntegrationsCommand({
|
|
|
501
501
|
}
|
|
502
502
|
async function convertIntegrationsToInstallSpecifiers(integrations) {
|
|
503
503
|
const ranges = {};
|
|
504
|
-
for (let {
|
|
505
|
-
ranges[packageName] = "*";
|
|
504
|
+
for (let { dependencies } of integrations) {
|
|
506
505
|
for (const [name, range] of dependencies) {
|
|
507
506
|
ranges[name] = range;
|
|
508
507
|
}
|
|
@@ -652,6 +651,7 @@ async function validateIntegrations(integrations) {
|
|
|
652
651
|
}
|
|
653
652
|
const resolvedScope = pkgType === "first-party" ? "@astrojs" : scope;
|
|
654
653
|
const packageName = `${resolvedScope ? `${resolvedScope}/` : ""}${name}`;
|
|
654
|
+
let integrationName = packageName;
|
|
655
655
|
let dependencies = [
|
|
656
656
|
[pkgJson["name"], `^${pkgJson["version"]}`]
|
|
657
657
|
];
|
|
@@ -681,12 +681,19 @@ async function validateIntegrations(integrations) {
|
|
|
681
681
|
);
|
|
682
682
|
}
|
|
683
683
|
if (integration === "tailwind") {
|
|
684
|
+
integrationName = "tailwind";
|
|
684
685
|
dependencies = [
|
|
685
686
|
["@tailwindcss/vite", "^4.0.0"],
|
|
686
687
|
["tailwindcss", "^4.0.0"]
|
|
687
688
|
];
|
|
688
689
|
}
|
|
689
|
-
return {
|
|
690
|
+
return {
|
|
691
|
+
id: integration,
|
|
692
|
+
packageName,
|
|
693
|
+
dependencies,
|
|
694
|
+
type: integrationType,
|
|
695
|
+
integrationName
|
|
696
|
+
};
|
|
690
697
|
})
|
|
691
698
|
);
|
|
692
699
|
spinner.success();
|
|
@@ -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.2") {
|
|
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.2") {
|
|
165
|
+
await this.#store.metaStore().set("astro-version", "5.2.2");
|
|
166
166
|
}
|
|
167
167
|
if (currentConfigDigest) {
|
|
168
168
|
await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
|
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.2";
|
|
26
26
|
const isPrerelease = currentVersion.includes("-");
|
|
27
27
|
if (!isPrerelease) {
|
|
28
28
|
try {
|
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.2";
|
|
42
42
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
43
43
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
44
44
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -276,7 +276,7 @@ function printHelp({
|
|
|
276
276
|
message.push(
|
|
277
277
|
linebreak(),
|
|
278
278
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
279
|
-
`v${"5.2.
|
|
279
|
+
`v${"5.2.2"}`
|
|
280
280
|
)} ${headline}`
|
|
281
281
|
);
|
|
282
282
|
}
|
|
@@ -15,6 +15,9 @@ function trailingSlashMiddleware(settings) {
|
|
|
15
15
|
} catch (e) {
|
|
16
16
|
return next(e);
|
|
17
17
|
}
|
|
18
|
+
if (pathname.startsWith("/_") || pathname.startsWith("/@")) {
|
|
19
|
+
return next();
|
|
20
|
+
}
|
|
18
21
|
if (trailingSlash === "never" && pathname.endsWith("/") && pathname !== "/" || trailingSlash === "always" && !pathname.endsWith("/") && !hasFileExtension(pathname)) {
|
|
19
22
|
const html = trailingSlashMismatchTemplate(pathname, trailingSlash);
|
|
20
23
|
return writeHtmlResponse(res, 404, html);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.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",
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
"zod-to-json-schema": "^3.24.1",
|
|
161
161
|
"zod-to-ts": "^1.2.0",
|
|
162
162
|
"@astrojs/internal-helpers": "0.5.0",
|
|
163
|
-
"@astrojs/
|
|
164
|
-
"@astrojs/
|
|
163
|
+
"@astrojs/telemetry": "3.2.0",
|
|
164
|
+
"@astrojs/markdown-remark": "6.1.0"
|
|
165
165
|
},
|
|
166
166
|
"optionalDependencies": {
|
|
167
167
|
"sharp": "^0.33.3"
|