astro 2.6.0 → 2.6.1
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/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -53,7 +53,7 @@ async function dev(settings, options) {
|
|
|
53
53
|
isRestart: options.isRestart
|
|
54
54
|
})
|
|
55
55
|
);
|
|
56
|
-
const currentVersion = "2.6.
|
|
56
|
+
const currentVersion = "2.6.1";
|
|
57
57
|
if (currentVersion.includes("-")) {
|
|
58
58
|
warn(options.logging, null, msg.prerelease({ currentVersion }));
|
|
59
59
|
}
|
|
@@ -31,7 +31,7 @@ export declare const AstroErrorData: {
|
|
|
31
31
|
* @docs
|
|
32
32
|
* @see
|
|
33
33
|
* - [Enabling SSR in Your Project](https://docs.astro.build/en/guides/server-side-rendering/#enabling-ssr-in-your-project)
|
|
34
|
-
* - [Astro.redirect](https://docs.astro.build/en/
|
|
34
|
+
* - [Astro.redirect](https://docs.astro.build/en/reference/api-reference/#astroredirect)
|
|
35
35
|
* @description
|
|
36
36
|
* The `Astro.redirect` function is only available when [Server-side rendering](/en/guides/server-side-rendering/) is enabled.
|
|
37
37
|
*
|
|
@@ -647,7 +647,7 @@ export declare const AstroErrorData: {
|
|
|
647
647
|
/**
|
|
648
648
|
* @docs
|
|
649
649
|
* @see
|
|
650
|
-
* - [Astro.redirect](https://docs.astro.build/en/
|
|
650
|
+
* - [Astro.redirect](https://docs.astro.build/en/reference/api-reference/#astroredirect)
|
|
651
651
|
* @description
|
|
652
652
|
* A redirect must be given a location with the `Location` header.
|
|
653
653
|
*/
|
|
@@ -25,7 +25,7 @@ const AstroErrorData = {
|
|
|
25
25
|
* @docs
|
|
26
26
|
* @see
|
|
27
27
|
* - [Enabling SSR in Your Project](https://docs.astro.build/en/guides/server-side-rendering/#enabling-ssr-in-your-project)
|
|
28
|
-
* - [Astro.redirect](https://docs.astro.build/en/
|
|
28
|
+
* - [Astro.redirect](https://docs.astro.build/en/reference/api-reference/#astroredirect)
|
|
29
29
|
* @description
|
|
30
30
|
* The `Astro.redirect` function is only available when [Server-side rendering](/en/guides/server-side-rendering/) is enabled.
|
|
31
31
|
*
|
|
@@ -681,7 +681,7 @@ Expected \`${defaultExpectedValue}\` value but got \`${suffix}\`.`;
|
|
|
681
681
|
/**
|
|
682
682
|
* @docs
|
|
683
683
|
* @see
|
|
684
|
-
* - [Astro.redirect](https://docs.astro.build/en/
|
|
684
|
+
* - [Astro.redirect](https://docs.astro.build/en/reference/api-reference/#astroredirect)
|
|
685
685
|
* @description
|
|
686
686
|
* A redirect must be given a location with the `Location` header.
|
|
687
687
|
*/
|
package/dist/core/messages.js
CHANGED
|
@@ -47,7 +47,7 @@ function serverStart({
|
|
|
47
47
|
base,
|
|
48
48
|
isRestart = false
|
|
49
49
|
}) {
|
|
50
|
-
const version = "2.6.
|
|
50
|
+
const version = "2.6.1";
|
|
51
51
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
52
52
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
53
53
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -233,7 +233,7 @@ function printHelp({
|
|
|
233
233
|
message.push(
|
|
234
234
|
linebreak(),
|
|
235
235
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
236
|
-
`v${"2.6.
|
|
236
|
+
`v${"2.6.1"}`
|
|
237
237
|
)} ${headline}`
|
|
238
238
|
);
|
|
239
239
|
}
|
|
@@ -29,9 +29,6 @@ class AstroComponentInstance {
|
|
|
29
29
|
value = await value;
|
|
30
30
|
}
|
|
31
31
|
if (isHeadAndContent(value)) {
|
|
32
|
-
if (this.result.extraHead.length === 0 && value.head) {
|
|
33
|
-
yield renderChild(value.head);
|
|
34
|
-
}
|
|
35
32
|
yield* value.content;
|
|
36
33
|
} else {
|
|
37
34
|
yield* renderChild(value);
|