astro 2.10.13 → 2.10.15
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.
|
@@ -136,6 +136,18 @@ const { fallback = 'animate' } = Astro.props as Props;
|
|
|
136
136
|
// Remove them before swapping.
|
|
137
137
|
doc.querySelectorAll('head noscript').forEach((el) => el.remove());
|
|
138
138
|
|
|
139
|
+
// swap attributes of the html element
|
|
140
|
+
// - delete all attributes from the current document
|
|
141
|
+
// - insert all attributes from doc
|
|
142
|
+
// - reinsert all original attributes that are named 'data-astro-*'
|
|
143
|
+
const html = document.documentElement;
|
|
144
|
+
const astro = [...html.attributes].filter(
|
|
145
|
+
({ name }) => (html.removeAttribute(name), name.startsWith('data-astro-'))
|
|
146
|
+
);
|
|
147
|
+
[...doc.documentElement.attributes, ...astro].forEach(({ name, value }) =>
|
|
148
|
+
html.setAttribute(name, value)
|
|
149
|
+
);
|
|
150
|
+
|
|
139
151
|
// Swap head
|
|
140
152
|
for (const el of Array.from(document.head.children)) {
|
|
141
153
|
const newEl = persistedHeadElement(el);
|
package/components/index.ts
CHANGED
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -23,7 +23,7 @@ async function dev(inlineConfig) {
|
|
|
23
23
|
base: restart.container.settings.config.base
|
|
24
24
|
})
|
|
25
25
|
);
|
|
26
|
-
const currentVersion = "2.10.
|
|
26
|
+
const currentVersion = "2.10.15";
|
|
27
27
|
if (currentVersion.includes("-")) {
|
|
28
28
|
warn(logging, null, msg.prerelease({ currentVersion }));
|
|
29
29
|
}
|
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.10.
|
|
50
|
+
const version = "2.10.15";
|
|
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.10.
|
|
236
|
+
`v${"2.10.15"}`
|
|
237
237
|
)} ${headline}`
|
|
238
238
|
);
|
|
239
239
|
}
|