astro 3.6.1 → 3.6.3
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/Code.astro
CHANGED
|
@@ -10,6 +10,7 @@ import type {
|
|
|
10
10
|
ThemeRegistration,
|
|
11
11
|
ThemeRegistrationRaw,
|
|
12
12
|
} from 'shikiji';
|
|
13
|
+
import { bundledLanguages } from 'shikiji/langs';
|
|
13
14
|
import { getCachedHighlighter } from '../dist/core/shiki.js';
|
|
14
15
|
|
|
15
16
|
interface Props {
|
|
@@ -92,7 +93,13 @@ if (typeof lang === 'object') {
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
const highlighter = await getCachedHighlighter({
|
|
95
|
-
langs: [
|
|
96
|
+
langs: [
|
|
97
|
+
typeof lang === 'string'
|
|
98
|
+
? Object.keys(bundledLanguages).includes(lang)
|
|
99
|
+
? lang
|
|
100
|
+
: 'plaintext'
|
|
101
|
+
: lang,
|
|
102
|
+
],
|
|
96
103
|
theme,
|
|
97
104
|
experimentalThemes,
|
|
98
105
|
wrap,
|
package/dist/core/constants.js
CHANGED
package/dist/core/dev/dev.js
CHANGED
|
@@ -20,7 +20,7 @@ async function dev(inlineConfig) {
|
|
|
20
20
|
base: restart.container.settings.config.base
|
|
21
21
|
})
|
|
22
22
|
);
|
|
23
|
-
const currentVersion = "3.6.
|
|
23
|
+
const currentVersion = "3.6.3";
|
|
24
24
|
if (currentVersion.includes("-")) {
|
|
25
25
|
logger.warn(null, msg.prerelease({ currentVersion }));
|
|
26
26
|
}
|
package/dist/core/messages.js
CHANGED
|
@@ -50,7 +50,7 @@ function serverStart({
|
|
|
50
50
|
base,
|
|
51
51
|
isRestart = false
|
|
52
52
|
}) {
|
|
53
|
-
const version = "3.6.
|
|
53
|
+
const version = "3.6.3";
|
|
54
54
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
55
55
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
56
56
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -235,7 +235,7 @@ function printHelp({
|
|
|
235
235
|
message.push(
|
|
236
236
|
linebreak(),
|
|
237
237
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
238
|
-
`v${"3.6.
|
|
238
|
+
`v${"3.6.3"}`
|
|
239
239
|
)} ${headline}`
|
|
240
240
|
);
|
|
241
241
|
}
|
package/dist/prefetch/index.js
CHANGED
|
@@ -137,7 +137,7 @@ function canPrefetchUrl(url, ignoreSlowConnection) {
|
|
|
137
137
|
return false;
|
|
138
138
|
try {
|
|
139
139
|
const urlObj = new URL(url, location.href);
|
|
140
|
-
return location.origin === urlObj.origin && location.pathname !== urlObj.pathname && !prefetchedUrls.has(url);
|
|
140
|
+
return location.origin === urlObj.origin && (location.pathname !== urlObj.pathname || location.search !== urlObj.search) && !prefetchedUrls.has(url);
|
|
141
141
|
} catch {
|
|
142
142
|
}
|
|
143
143
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.3",
|
|
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",
|
|
@@ -167,8 +167,8 @@
|
|
|
167
167
|
"yargs-parser": "^21.1.1",
|
|
168
168
|
"zod": "^3.22.4",
|
|
169
169
|
"@astrojs/internal-helpers": "0.2.1",
|
|
170
|
-
"@astrojs/
|
|
171
|
-
"@astrojs/
|
|
170
|
+
"@astrojs/markdown-remark": "3.5.0",
|
|
171
|
+
"@astrojs/telemetry": "3.0.4"
|
|
172
172
|
},
|
|
173
173
|
"optionalDependencies": {
|
|
174
174
|
"sharp": "^0.32.5"
|