astro 1.0.0-beta.71 → 1.0.0-beta.72
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/{index.js → index.ts} +0 -0
- package/dist/core/dev/index.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/core/util.js +1 -1
- package/dist/runtime/server/index.js +5 -1
- package/dist/runtime/server/util.js +1 -1
- package/dist/types/@types/astro.d.ts +1 -0
- package/package.json +2 -2
|
File without changes
|
package/dist/core/dev/index.js
CHANGED
|
@@ -47,7 +47,7 @@ async function dev(config, options) {
|
|
|
47
47
|
site,
|
|
48
48
|
https: !!((_a = viteConfig.server) == null ? void 0 : _a.https)
|
|
49
49
|
}));
|
|
50
|
-
const currentVersion = "1.0.0-beta.
|
|
50
|
+
const currentVersion = "1.0.0-beta.72";
|
|
51
51
|
if (currentVersion.includes("-")) {
|
|
52
52
|
warn(options.logging, null, msg.prerelease({ currentVersion }));
|
|
53
53
|
}
|
package/dist/core/messages.js
CHANGED
|
@@ -47,7 +47,7 @@ function devStart({
|
|
|
47
47
|
https,
|
|
48
48
|
site
|
|
49
49
|
}) {
|
|
50
|
-
const version = "1.0.0-beta.
|
|
50
|
+
const version = "1.0.0-beta.72";
|
|
51
51
|
const rootPath = site ? site.pathname : "/";
|
|
52
52
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
53
53
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
@@ -206,7 +206,7 @@ function printHelp({
|
|
|
206
206
|
};
|
|
207
207
|
let message = [];
|
|
208
208
|
if (headline) {
|
|
209
|
-
message.push(linebreak(), ` ${bgGreen(black(` ${commandName} `))} ${green(`v${"1.0.0-beta.
|
|
209
|
+
message.push(linebreak(), ` ${bgGreen(black(` ${commandName} `))} ${green(`v${"1.0.0-beta.72"}`)} ${headline}`);
|
|
210
210
|
}
|
|
211
211
|
if (usage) {
|
|
212
212
|
message.push(linebreak(), ` ${green(commandName)} ${bold(usage)}`);
|
package/dist/core/util.js
CHANGED
|
@@ -5,7 +5,7 @@ import resolve from "resolve";
|
|
|
5
5
|
import slash from "slash";
|
|
6
6
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
7
7
|
import { removeTrailingForwardSlash } from "./path.js";
|
|
8
|
-
const ASTRO_VERSION = "1.0.0-beta.
|
|
8
|
+
const ASTRO_VERSION = "1.0.0-beta.72";
|
|
9
9
|
function isObject(value) {
|
|
10
10
|
return typeof value === "object" && value != null;
|
|
11
11
|
}
|
|
@@ -340,7 +340,11 @@ Make sure to use the static attribute syntax (\`${key}={value}\`) instead of the
|
|
|
340
340
|
return "";
|
|
341
341
|
}
|
|
342
342
|
if (key === "class:list") {
|
|
343
|
-
|
|
343
|
+
const listValue = toAttributeString(serializeListValue(value));
|
|
344
|
+
if (listValue === "") {
|
|
345
|
+
return "";
|
|
346
|
+
}
|
|
347
|
+
return markHTMLString(` ${key.slice(0, -5)}="${listValue}"`);
|
|
344
348
|
}
|
|
345
349
|
if (value === true && (key.startsWith("data-") || htmlBooleanAttributes.test(key))) {
|
|
346
350
|
return markHTMLString(` ${key}`);
|
|
@@ -17,7 +17,7 @@ function serializeListValue(value) {
|
|
|
17
17
|
push(name);
|
|
18
18
|
});
|
|
19
19
|
else {
|
|
20
|
-
item = item == null ? "" : String(item).trim();
|
|
20
|
+
item = item === false || item == null ? "" : String(item).trim();
|
|
21
21
|
if (item) {
|
|
22
22
|
item.split(/\s+/).forEach((name) => {
|
|
23
23
|
hash[name] = true;
|
|
@@ -10,6 +10,7 @@ import type { AstroConfigSchema } from '../core/config';
|
|
|
10
10
|
import type { ViteConfigWithSSR } from '../core/create-vite';
|
|
11
11
|
import type { AstroComponentFactory, Metadata } from '../runtime/server';
|
|
12
12
|
export type { SSRManifest } from '../core/app/types';
|
|
13
|
+
export type { AstroComponentFactory } from '../runtime/server';
|
|
13
14
|
export interface AstroBuiltinProps {
|
|
14
15
|
'client:load'?: boolean;
|
|
15
16
|
'client:idle'?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.72",
|
|
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",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"./app": "./dist/core/app/index.js",
|
|
36
36
|
"./app/node": "./dist/core/app/node.js",
|
|
37
37
|
"./client/*": "./dist/runtime/client/*",
|
|
38
|
-
"./components": "./components/index.
|
|
38
|
+
"./components": "./components/index.ts",
|
|
39
39
|
"./components/*": "./components/*",
|
|
40
40
|
"./debug": "./components/Debug.astro",
|
|
41
41
|
"./internal/*": "./dist/runtime/server/*",
|