astro 4.8.0 → 4.8.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/components/Picture.astro
CHANGED
|
@@ -27,6 +27,21 @@ if (props.alt === undefined || props.alt === null) {
|
|
|
27
27
|
throw new AstroError(AstroErrorData.ImageMissingAlt);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
// Picture attribute inherit scoped styles from class and attributes
|
|
31
|
+
const scopedStyleClass = props.class?.match(/\bastro-\w{8}\b/)?.[0];
|
|
32
|
+
if (scopedStyleClass) {
|
|
33
|
+
if (pictureAttributes.class) {
|
|
34
|
+
pictureAttributes.class = `${pictureAttributes.class} ${scopedStyleClass}`;
|
|
35
|
+
} else {
|
|
36
|
+
pictureAttributes.class = scopedStyleClass;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
for (const key in props) {
|
|
40
|
+
if (key.startsWith('data-astro-cid')) {
|
|
41
|
+
pictureAttributes[key] = props[key];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
30
45
|
const originalSrc = await resolveSrc(props.src);
|
|
31
46
|
const optimizedImages: GetImageResult[] = await Promise.all(
|
|
32
47
|
formats.map(
|
package/dist/@types/astro.d.ts
CHANGED
|
@@ -1968,7 +1968,7 @@ export interface AstroUserConfig {
|
|
|
1968
1968
|
*
|
|
1969
1969
|
* For a complete overview, and to give feedback on this experimental API, see the [Rerouting RFC](https://github.com/withastro/roadmap/blob/feat/reroute/proposals/0047-rerouting.md).
|
|
1970
1970
|
*/
|
|
1971
|
-
rewriting
|
|
1971
|
+
rewriting?: boolean;
|
|
1972
1972
|
};
|
|
1973
1973
|
}
|
|
1974
1974
|
/**
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -19,7 +19,7 @@ async function dev(inlineConfig) {
|
|
|
19
19
|
await telemetry.record([]);
|
|
20
20
|
const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
|
|
21
21
|
const logger = restart.container.logger;
|
|
22
|
-
const currentVersion = "4.8.
|
|
22
|
+
const currentVersion = "4.8.1";
|
|
23
23
|
const isPrerelease = currentVersion.includes("-");
|
|
24
24
|
if (!isPrerelease) {
|
|
25
25
|
try {
|
package/dist/core/messages.js
CHANGED
|
@@ -37,7 +37,7 @@ function serverStart({
|
|
|
37
37
|
host,
|
|
38
38
|
base
|
|
39
39
|
}) {
|
|
40
|
-
const version = "4.8.
|
|
40
|
+
const version = "4.8.1";
|
|
41
41
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
42
42
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
43
43
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -269,7 +269,7 @@ function printHelp({
|
|
|
269
269
|
message.push(
|
|
270
270
|
linebreak(),
|
|
271
271
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
272
|
-
`v${"4.8.
|
|
272
|
+
`v${"4.8.1"}`
|
|
273
273
|
)} ${headline}`
|
|
274
274
|
);
|
|
275
275
|
}
|