astro 5.10.0 → 5.10.2
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/Image.astro +1 -1
- package/components/Picture.astro +1 -1
- package/dist/actions/integration.js +2 -2
- package/dist/actions/runtime/virtual/server.d.ts +1 -1
- package/dist/actions/runtime/virtual/server.js +1 -1
- package/dist/actions/runtime/virtual/shared.d.ts +1 -1
- package/dist/actions/runtime/virtual/shared.js +1 -1
- package/dist/assets/endpoint/node.js +1 -1
- package/dist/assets/fonts/definitions.d.ts +1 -2
- package/dist/assets/fonts/vite-plugin-fonts.js +1 -1
- package/dist/assets/internal.js +2 -2
- package/dist/assets/utils/index.d.ts +4 -4
- package/dist/assets/utils/index.js +4 -4
- package/dist/assets/utils/remotePattern.d.ts +1 -1
- package/dist/config/entrypoint.d.ts +4 -4
- package/dist/config/entrypoint.js +3 -3
- package/dist/content/config.d.ts +1 -1
- package/dist/content/config.js +17 -2
- package/dist/content/content-layer.js +4 -4
- package/dist/content/loaders/file.js +1 -1
- package/dist/content/loaders/glob.js +1 -1
- package/dist/content/mutable-data-store.js +1 -1
- package/dist/content/runtime-assets.d.ts +2 -2
- package/dist/content/runtime.js +22 -6
- package/dist/content/utils.d.ts +5 -5
- package/dist/content/utils.js +2 -2
- package/dist/core/app/common.d.ts +1 -1
- package/dist/core/app/index.js +2 -2
- package/dist/core/app/node.d.ts +1 -1
- package/dist/core/build/generate.js +2 -3
- package/dist/core/build/index.js +3 -4
- package/dist/core/build/plugins/plugin-css.js +1 -1
- package/dist/core/compile/index.d.ts +1 -1
- package/dist/core/config/schemas/base.d.ts +1 -1
- package/dist/core/config/schemas/index.d.ts +2 -2
- package/dist/core/config/schemas/index.js +3 -3
- package/dist/core/config/settings.js +1 -1
- package/dist/core/config/tsconfig.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/cookies/index.d.ts +1 -1
- package/dist/core/create-vite.js +1 -1
- package/dist/core/csp/common.js +2 -2
- package/dist/core/dev/container.d.ts +2 -2
- package/dist/core/dev/dev.js +2 -2
- package/dist/core/dev/restart.js +18 -1
- package/dist/core/errors/dev/vite.js +1 -1
- package/dist/core/errors/errors-data.d.ts +1 -1
- package/dist/core/errors/index.d.ts +2 -2
- package/dist/core/errors/index.js +4 -4
- package/dist/core/logger/console.js +1 -1
- package/dist/core/messages.js +2 -2
- package/dist/core/middleware/sequence.js +7 -2
- package/dist/core/module-loader/index.d.ts +1 -1
- package/dist/core/render-context.js +37 -9
- package/dist/core/routing/default.js +2 -2
- package/dist/core/routing/manifest/create.d.ts +1 -1
- package/dist/core/routing/rewrite.d.ts +1 -1
- package/dist/core/routing/rewrite.js +14 -2
- package/dist/core/viteUtils.js +1 -1
- package/dist/env/runtime.d.ts +1 -1
- package/dist/env/runtime.js +1 -1
- package/dist/env/setup.d.ts +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/jsx-runtime/index.js +1 -1
- package/dist/runtime/client/dev-toolbar/ui-library/index.d.ts +1 -1
- package/dist/runtime/client/dev-toolbar/ui-library/index.js +1 -1
- package/dist/runtime/compiler/index.d.ts +1 -1
- package/dist/runtime/compiler/index.js +1 -1
- package/dist/runtime/server/endpoint.js +1 -1
- package/dist/runtime/server/index.d.ts +1 -1
- package/dist/runtime/server/index.js +4 -4
- package/dist/runtime/server/jsx.js +1 -1
- package/dist/runtime/server/render/astro/index.d.ts +3 -3
- package/dist/runtime/server/render/astro/index.js +1 -1
- package/dist/runtime/server/render/astro/instance.d.ts +2 -2
- package/dist/runtime/server/render/component.js +8 -6
- package/dist/runtime/server/render/index.d.ts +4 -4
- package/dist/runtime/server/render/index.js +2 -2
- package/dist/runtime/server/render/slot.d.ts +2 -2
- package/dist/runtime/server/render/slot.js +1 -1
- package/dist/runtime/server/render/util.d.ts +3 -3
- package/dist/runtime/server/render/util.js +17 -8
- package/dist/runtime/server/scripts.js +2 -2
- package/dist/template/4xx.js +1 -1
- package/dist/transitions/router.js +1 -1
- package/dist/types/public/config.d.ts +16 -15
- package/dist/types/public/content.d.ts +2 -0
- package/dist/types/public/context.d.ts +7 -7
- package/dist/types/public/index.d.ts +15 -15
- package/dist/types/public/internal.d.ts +1 -1
- package/dist/virtual-modules/i18n.d.ts +1 -1
- package/dist/vite-plugin-astro-server/base.d.ts +1 -1
- package/dist/vite-plugin-astro-server/error.d.ts +1 -1
- package/dist/vite-plugin-astro-server/pipeline.js +1 -1
- package/dist/vite-plugin-astro-server/route.js +3 -3
- package/dist/vite-plugin-head/index.d.ts +1 -1
- package/dist/vite-plugin-html/transform/slots.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createHeadAndContent, renderTemplate, renderToString } from "./astro/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { chunkToByteArray, chunkToString, Fragment, Renderer } from "./common.js";
|
|
3
3
|
import { renderComponent, renderComponentToString } from "./component.js";
|
|
4
|
-
import { renderScript } from "./script.js";
|
|
5
4
|
import { renderHTMLElement } from "./dom.js";
|
|
6
5
|
import { maybeRenderHead, renderHead } from "./head.js";
|
|
7
6
|
import { renderPage } from "./page.js";
|
|
7
|
+
import { renderScript } from "./script.js";
|
|
8
8
|
import { renderSlot, renderSlotToString } from "./slot.js";
|
|
9
9
|
import { renderScriptElement, renderUniqueStylesheet } from "./tags.js";
|
|
10
10
|
import { addAttribute, defineScriptVars, voidElementNames } from "./util.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { renderTemplate } from './astro/render-template.js';
|
|
2
|
-
import type { RenderInstruction } from './instruction.js';
|
|
3
1
|
import type { SSRResult } from '../../../types/public/internal.js';
|
|
4
2
|
import { HTMLString } from '../escape.js';
|
|
3
|
+
import { renderTemplate } from './astro/render-template.js';
|
|
5
4
|
import { type RenderInstance } from './common.js';
|
|
5
|
+
import type { RenderInstruction } from './instruction.js';
|
|
6
6
|
type RenderTemplateResult = ReturnType<typeof renderTemplate>;
|
|
7
7
|
export type ComponentSlots = Record<string, ComponentSlotValue>;
|
|
8
8
|
export type ComponentSlotValue = (result: SSRResult) => RenderTemplateResult | Promise<RenderTemplateResult>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { renderTemplate } from "./astro/render-template.js";
|
|
2
1
|
import { HTMLString, markHTMLString, unescapeHTML } from "../escape.js";
|
|
3
2
|
import { renderChild } from "./any.js";
|
|
3
|
+
import { renderTemplate } from "./astro/render-template.js";
|
|
4
4
|
import { chunkToString } from "./common.js";
|
|
5
5
|
const slotString = Symbol.for("astro:slot-string");
|
|
6
6
|
class SlotString extends HTMLString {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type { RenderDestination, RenderFunction } from './common.js';
|
|
2
1
|
import type { SSRElement } from '../../../types/public/internal.js';
|
|
2
|
+
import type { RenderDestination, RenderFunction } from './common.js';
|
|
3
3
|
export declare const voidElementNames: RegExp;
|
|
4
4
|
export declare const toAttributeString: (value: any, shouldEscape?: boolean) => any;
|
|
5
5
|
export declare const toStyleString: (obj: Record<string, any>) => string;
|
|
6
6
|
export declare function defineScriptVars(vars: Record<any, any>): any;
|
|
7
7
|
export declare function formatList(values: string[]): string;
|
|
8
|
-
export declare function addAttribute(value: any, key: string, shouldEscape?: boolean): any;
|
|
9
|
-
export declare function internalSpreadAttributes(values: Record<any, any>, shouldEscape
|
|
8
|
+
export declare function addAttribute(value: any, key: string, shouldEscape?: boolean, tagName?: string): any;
|
|
9
|
+
export declare function internalSpreadAttributes(values: Record<any, any>, shouldEscape: boolean | undefined, tagName: string): any;
|
|
10
10
|
export declare function renderElement(name: string, { props: _props, children }: SSRElement, shouldEscape?: boolean): string;
|
|
11
11
|
/**
|
|
12
12
|
* Executes the `bufferRenderFunction` to prerender it into a buffer destination, and return a promise
|
|
@@ -33,7 +33,16 @@ function formatList(values) {
|
|
|
33
33
|
}
|
|
34
34
|
return `${values.slice(0, -1).join(", ")} or ${values[values.length - 1]}`;
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function isCustomElement(tagName) {
|
|
37
|
+
return tagName.includes("-");
|
|
38
|
+
}
|
|
39
|
+
function handleBooleanAttribute(key, value, shouldEscape, tagName) {
|
|
40
|
+
if (tagName && isCustomElement(tagName)) {
|
|
41
|
+
return markHTMLString(` ${key}="${toAttributeString(value, shouldEscape)}"`);
|
|
42
|
+
}
|
|
43
|
+
return markHTMLString(value ? ` ${key}` : "");
|
|
44
|
+
}
|
|
45
|
+
function addAttribute(value, key, shouldEscape = true, tagName = "") {
|
|
37
46
|
if (value == null) {
|
|
38
47
|
return "";
|
|
39
48
|
}
|
|
@@ -67,23 +76,23 @@ Make sure to use the static attribute syntax (\`${key}={value}\`) instead of the
|
|
|
67
76
|
return markHTMLString(` ${key}="${toAttributeString(value, false)}"`);
|
|
68
77
|
}
|
|
69
78
|
if (htmlBooleanAttributes.test(key)) {
|
|
70
|
-
return
|
|
79
|
+
return handleBooleanAttribute(key, value, shouldEscape, tagName);
|
|
71
80
|
}
|
|
72
81
|
if (value === "") {
|
|
73
82
|
return markHTMLString(` ${key}`);
|
|
74
83
|
}
|
|
75
84
|
if (key === "popover" && typeof value === "boolean") {
|
|
76
|
-
return
|
|
85
|
+
return handleBooleanAttribute(key, value, shouldEscape, tagName);
|
|
77
86
|
}
|
|
78
87
|
if (key === "download" && typeof value === "boolean") {
|
|
79
|
-
return
|
|
88
|
+
return handleBooleanAttribute(key, value, shouldEscape, tagName);
|
|
80
89
|
}
|
|
81
90
|
return markHTMLString(` ${key}="${toAttributeString(value, shouldEscape)}"`);
|
|
82
91
|
}
|
|
83
|
-
function internalSpreadAttributes(values, shouldEscape = true) {
|
|
92
|
+
function internalSpreadAttributes(values, shouldEscape = true, tagName) {
|
|
84
93
|
let output = "";
|
|
85
94
|
for (const [key, value] of Object.entries(values)) {
|
|
86
|
-
output += addAttribute(value, key, shouldEscape);
|
|
95
|
+
output += addAttribute(value, key, shouldEscape, tagName);
|
|
87
96
|
}
|
|
88
97
|
return markHTMLString(output);
|
|
89
98
|
}
|
|
@@ -100,9 +109,9 @@ function renderElement(name, { props: _props, children = "" }, shouldEscape = tr
|
|
|
100
109
|
}
|
|
101
110
|
}
|
|
102
111
|
if ((children == null || children == "") && voidElementNames.test(name)) {
|
|
103
|
-
return `<${name}${internalSpreadAttributes(props, shouldEscape)}>`;
|
|
112
|
+
return `<${name}${internalSpreadAttributes(props, shouldEscape, name)}>`;
|
|
104
113
|
}
|
|
105
|
-
return `<${name}${internalSpreadAttributes(props, shouldEscape)}>${children}</${name}>`;
|
|
114
|
+
return `<${name}${internalSpreadAttributes(props, shouldEscape, name)}>${children}</${name}>`;
|
|
106
115
|
}
|
|
107
116
|
const noop = () => {
|
|
108
117
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ISLAND_STYLES } from "./astro-island-styles.js";
|
|
2
|
-
import islandScriptDev from "./astro-island.prebuilt-dev.js";
|
|
3
1
|
import islandScript from "./astro-island.prebuilt.js";
|
|
2
|
+
import islandScriptDev from "./astro-island.prebuilt-dev.js";
|
|
3
|
+
import { ISLAND_STYLES } from "./astro-island-styles.js";
|
|
4
4
|
function determineIfNeedsHydrationScript(result) {
|
|
5
5
|
if (result._metadata.hasHydrationScript) {
|
|
6
6
|
return false;
|
package/dist/template/4xx.js
CHANGED
|
@@ -116,7 +116,7 @@ function trailingSlashMismatchTemplate(pathname, trailingSlash) {
|
|
|
116
116
|
title: "Not found",
|
|
117
117
|
tabTitle: "404: Not Found",
|
|
118
118
|
body: `<p>Your site is configured with <code>trailingSlash</code> set to <code>${trailingSlash}</code>. Do you want to go to <a href="${corrected}">${corrected}</a> instead?</p>
|
|
119
|
-
<p>See <a href=https://docs.astro.build/en/reference/configuration-reference/#trailingslash">the documentation for <code>trailingSlash</code></a> if you need help.</p>`
|
|
119
|
+
<p>See <a href="https://docs.astro.build/en/reference/configuration-reference/#trailingslash">the documentation for <code>trailingSlash</code></a> if you need help.</p>`
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function notFoundTemplate(pathname, message = "Not found") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { doPreparation, doSwap, TRANSITION_AFTER_SWAP } from "./events.js";
|
|
2
2
|
import { detectScriptExecuted } from "./swap-functions.js";
|
|
3
3
|
const inBrowser = import.meta.env.SSR === false;
|
|
4
4
|
const pushState = inBrowser && history.pushState.bind(history);
|
|
@@ -1240,6 +1240,20 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
|
|
|
1240
1240
|
|
|
1241
1241
|
*/
|
|
1242
1242
|
remotePatterns?: Partial<RemotePattern>[];
|
|
1243
|
+
/**
|
|
1244
|
+
* @docs
|
|
1245
|
+
* @name image.responsiveStyles
|
|
1246
|
+
* @type {boolean}
|
|
1247
|
+
* @default `false`
|
|
1248
|
+
* @version 5.10.0
|
|
1249
|
+
* @description
|
|
1250
|
+
* Whether to automatically add global styles for responsive images. You should enable this option unless you are styling the images yourself.
|
|
1251
|
+
*
|
|
1252
|
+
* This option is only used when `layout` is set to `constrained`, `full-width`, or `fixed` using the configuration or the `layout` prop on the image component.
|
|
1253
|
+
*
|
|
1254
|
+
* See [the images docs](https://docs.astro.build/en/guides/images/#responsive-image-styles) for more information.
|
|
1255
|
+
*/
|
|
1256
|
+
responsiveStyles?: boolean;
|
|
1243
1257
|
/**
|
|
1244
1258
|
* @docs
|
|
1245
1259
|
* @name image.layout
|
|
@@ -1262,7 +1276,7 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
|
|
|
1262
1276
|
* @default `"cover"`
|
|
1263
1277
|
* @version 5.10.0
|
|
1264
1278
|
* @description
|
|
1265
|
-
* The
|
|
1279
|
+
* The [`object-fit` CSS property value](https://developer.mozilla.org/en-US/docs/Web/CSS/object-fit) for responsive images. Can be overridden by the `fit` prop on the image component.
|
|
1266
1280
|
* Requires a value for `layout` to be set.
|
|
1267
1281
|
*
|
|
1268
1282
|
* See [the `fit` component property](https://docs.astro.build/en/reference/modules/astro-assets/#fit) for more details.
|
|
@@ -1275,7 +1289,7 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
|
|
|
1275
1289
|
* @default `"center"`
|
|
1276
1290
|
* @version 5.10.0
|
|
1277
1291
|
* @description
|
|
1278
|
-
* The default object-position value for responsive images. Can be overridden by the `position` prop on the image component.
|
|
1292
|
+
* The default [`object-position` CSS property value](https://developer.mozilla.org/en-US/docs/Web/CSS/object-position) for responsive images. Can be overridden by the `position` prop on the image component.
|
|
1279
1293
|
* Requires a value for `layout` to be set.
|
|
1280
1294
|
*
|
|
1281
1295
|
* See [the `position` component property](https://docs.astro.build/en/reference/modules/astro-assets/#position) for more details.
|
|
@@ -1293,19 +1307,6 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
|
|
|
1293
1307
|
* the more comprehensive list is used, because only the required sizes are generated. For local services, the list is shorter to reduce the number of images generated.
|
|
1294
1308
|
*/
|
|
1295
1309
|
breakpoints?: number[];
|
|
1296
|
-
/**
|
|
1297
|
-
* @docs
|
|
1298
|
-
* @name image.responsiveStyles
|
|
1299
|
-
* @type {boolean}
|
|
1300
|
-
* @default `false`
|
|
1301
|
-
* @version 5.10.0
|
|
1302
|
-
* @description
|
|
1303
|
-
* Whether to automatically add global styles for responsive images. You should enable this option unless you are styling the images yourself.
|
|
1304
|
-
* This option is only used when `layout` is set to `constrained`, `full-width`, or `fixed` using the configuration or the `layout` prop on the image component.
|
|
1305
|
-
*
|
|
1306
|
-
* See [the images docs](https://docs.astro.build/en/guides/images/#responsive-image-styles) for more information.
|
|
1307
|
-
*/
|
|
1308
|
-
responsiveStyles?: boolean;
|
|
1309
1310
|
};
|
|
1310
1311
|
/**
|
|
1311
1312
|
* @docs
|
|
@@ -114,6 +114,8 @@ export interface CacheHint {
|
|
|
114
114
|
tags?: Array<string>;
|
|
115
115
|
/** Maximum age of the response in seconds */
|
|
116
116
|
maxAge?: number;
|
|
117
|
+
/** Last modified time of the content */
|
|
118
|
+
lastModified?: Date;
|
|
117
119
|
}
|
|
118
120
|
export interface LiveDataEntry<TData extends Record<string, any> = Record<string, unknown>> {
|
|
119
121
|
/** The ID of the entry. Unique per collection. */
|
|
@@ -7,7 +7,7 @@ import type { AstroSession } from '../../core/session.js';
|
|
|
7
7
|
import type { AstroComponentFactory } from '../../runtime/server/index.js';
|
|
8
8
|
import type { Params, RewritePayload } from './common.js';
|
|
9
9
|
import type { ValidRedirectStatus } from './config.js';
|
|
10
|
-
import type { AstroInstance,
|
|
10
|
+
import type { AstroInstance, MarkdownInstance, MDXInstance } from './content.js';
|
|
11
11
|
/**
|
|
12
12
|
* Astro global available in all contexts in .astro files
|
|
13
13
|
*
|
|
@@ -132,9 +132,9 @@ export interface AstroGlobal<Props extends Record<string, any> = Record<string,
|
|
|
132
132
|
* The route currently rendered. It's stripped of the `srcDir` and the `pages` folder, and it doesn't contain the extension.
|
|
133
133
|
*
|
|
134
134
|
* ## Example
|
|
135
|
-
* - The value when rendering `src/pages/index.astro` will
|
|
136
|
-
* - The value when rendering `src/pages/blog/[slug].astro` will
|
|
137
|
-
* - The value when rendering `src/pages/[...path].astro` will
|
|
135
|
+
* - The value when rendering `src/pages/index.astro` will be `/`.
|
|
136
|
+
* - The value when rendering `src/pages/blog/[slug].astro` will be `/blog/[slug]`.
|
|
137
|
+
* - The value when rendering `src/pages/[...path].astro` will be `/[...path]`.
|
|
138
138
|
*/
|
|
139
139
|
routePattern: string;
|
|
140
140
|
/**
|
|
@@ -526,9 +526,9 @@ export interface APIContext<Props extends Record<string, any> = Record<string, a
|
|
|
526
526
|
* The route currently rendered. It's stripped of the `srcDir` and the `pages` folder, and it doesn't contain the extension.
|
|
527
527
|
*
|
|
528
528
|
* ## Example
|
|
529
|
-
* - The value when rendering `src/pages/index.astro` will
|
|
530
|
-
* - The value when rendering `src/pages/blog/[slug].astro` will
|
|
531
|
-
* - The value when rendering `src/pages/[...path].astro` will
|
|
529
|
+
* - The value when rendering `src/pages/index.astro` will be `/`.
|
|
530
|
+
* - The value when rendering `src/pages/blog/[slug].astro` will be `/blog/[slug]`.
|
|
531
|
+
* - The value when rendering `src/pages/[...path].astro` will be `/[...path]`.
|
|
532
532
|
*/
|
|
533
533
|
routePattern: string;
|
|
534
534
|
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export type * from './config.js';
|
|
2
|
-
export type * from './elements.js';
|
|
3
|
-
export type * from './extendables.js';
|
|
4
|
-
export type * from './toolbar.js';
|
|
5
|
-
export type * from './view-transitions.js';
|
|
6
|
-
export type * from './integrations.js';
|
|
7
|
-
export type * from './internal.js';
|
|
8
|
-
export type * from './context.js';
|
|
9
|
-
export type * from './preview.js';
|
|
10
|
-
export type * from './content.js';
|
|
11
|
-
export type * from './common.js';
|
|
12
|
-
export type * from './manifest.js';
|
|
13
|
-
export type { AstroIntegrationLogger } from '../../core/logger/core.js';
|
|
14
|
-
export type { ToolbarServerHelpers } from '../../runtime/client/dev-toolbar/helpers.js';
|
|
15
1
|
export type { RemotePattern } from '@astrojs/internal-helpers/remote';
|
|
16
2
|
export type { MarkdownHeading, RehypePlugins, RemarkPlugins, ShikiConfig, } from '@astrojs/markdown-remark';
|
|
17
3
|
export type { ExternalImageService, ImageService, LocalImageService, } from '../../assets/services/service.js';
|
|
18
4
|
export type { GetImageResult, ImageInputFormat, ImageMetadata, ImageOutputFormat, ImageQuality, ImageQualityPreset, ImageTransform, UnresolvedImageTransform, } from '../../assets/types.js';
|
|
5
|
+
export type { ContainerRenderer } from '../../container/index.js';
|
|
19
6
|
export type { AssetsPrefix, SSRManifest } from '../../core/app/types.js';
|
|
20
7
|
export type { AstroCookieGetOptions, AstroCookieSetOptions, AstroCookies, } from '../../core/cookies/index.js';
|
|
21
|
-
export type {
|
|
8
|
+
export type { AstroIntegrationLogger } from '../../core/logger/core.js';
|
|
22
9
|
export { AstroSession } from '../../core/session.js';
|
|
10
|
+
export type { ToolbarServerHelpers } from '../../runtime/client/dev-toolbar/helpers.js';
|
|
11
|
+
export type * from './common.js';
|
|
12
|
+
export type * from './config.js';
|
|
13
|
+
export type * from './content.js';
|
|
14
|
+
export type * from './context.js';
|
|
15
|
+
export type * from './elements.js';
|
|
16
|
+
export type * from './extendables.js';
|
|
17
|
+
export type * from './integrations.js';
|
|
18
|
+
export type * from './internal.js';
|
|
19
|
+
export type * from './manifest.js';
|
|
20
|
+
export type * from './preview.js';
|
|
21
|
+
export type * from './toolbar.js';
|
|
22
|
+
export type * from './view-transitions.js';
|
|
@@ -6,7 +6,7 @@ import type { Params } from './common.js';
|
|
|
6
6
|
import type { AstroConfig, RedirectConfig } from './config.js';
|
|
7
7
|
import type { AstroGlobal, AstroGlobalPartial } from './context.js';
|
|
8
8
|
import type { AstroRenderer } from './integrations.js';
|
|
9
|
-
export type { SSRManifest, SSRManifestCSP
|
|
9
|
+
export type { SSRActions, SSRManifest, SSRManifestCSP } from '../../core/app/types.js';
|
|
10
10
|
export interface NamedSSRLoadedRendererValue extends SSRLoadedRendererValue {
|
|
11
11
|
name: string;
|
|
12
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as I18nInternals from '../i18n/index.js';
|
|
2
1
|
import type { RedirectToFallback } from '../i18n/index.js';
|
|
2
|
+
import * as I18nInternals from '../i18n/index.js';
|
|
3
3
|
import type { MiddlewareHandler } from '../types/public/common.js';
|
|
4
4
|
import type { AstroConfig, ValidRedirectStatus } from '../types/public/config.js';
|
|
5
5
|
import type { APIContext } from '../types/public/context.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type * as vite from 'vite';
|
|
2
|
-
import type { AstroSettings } from '../types/astro.js';
|
|
3
2
|
import type { Logger } from '../core/logger/core.js';
|
|
3
|
+
import type { AstroSettings } from '../types/astro.js';
|
|
4
4
|
export declare function baseMiddleware(settings: AstroSettings, logger: Logger): vite.Connect.NextHandleFunction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModuleLoader } from '../core/module-loader/index.js';
|
|
2
|
-
import type { DevPipeline } from './pipeline.js';
|
|
3
2
|
import type { AstroConfig } from '../types/public/config.js';
|
|
3
|
+
import type { DevPipeline } from './pipeline.js';
|
|
4
4
|
export declare function recordServerError(loader: ModuleLoader, config: AstroConfig, { logger }: DevPipeline, _err: unknown): {
|
|
5
5
|
error: Error;
|
|
6
6
|
errorWithMetadata: import("../core/errors/errors.js").ErrorWithMetadata;
|
|
@@ -3,7 +3,7 @@ import { getInfoOutput } from "../cli/info/index.js";
|
|
|
3
3
|
import { ASTRO_VERSION } from "../core/constants.js";
|
|
4
4
|
import { enhanceViteSSRError } from "../core/errors/dev/index.js";
|
|
5
5
|
import { AggregateError, CSSError, MarkdownError } from "../core/errors/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { loadRenderer, Pipeline } from "../core/render/index.js";
|
|
7
7
|
import { createDefaultRoutes } from "../core/routing/default.js";
|
|
8
8
|
import { findRouteToRewrite } from "../core/routing/rewrite.js";
|
|
9
9
|
import { isPage, viteID } from "../core/util.js";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { loadActions } from "../actions/loadActions.js";
|
|
2
2
|
import {
|
|
3
|
+
clientLocalsSymbol,
|
|
3
4
|
DEFAULT_404_COMPONENT,
|
|
4
5
|
NOOP_MIDDLEWARE_HEADER,
|
|
5
6
|
REROUTE_DIRECTIVE_HEADER,
|
|
6
|
-
REWRITE_DIRECTIVE_HEADER_KEY
|
|
7
|
-
clientLocalsSymbol
|
|
7
|
+
REWRITE_DIRECTIVE_HEADER_KEY
|
|
8
8
|
} from "../core/constants.js";
|
|
9
9
|
import { AstroErrorData, isAstroError } from "../core/errors/index.js";
|
|
10
10
|
import { req } from "../core/messages.js";
|
|
11
11
|
import { loadMiddleware } from "../core/middleware/loadMiddleware.js";
|
|
12
12
|
import { routeIsRedirect } from "../core/redirects/index.js";
|
|
13
|
-
import { RenderContext } from "../core/render-context.js";
|
|
14
13
|
import { getProps } from "../core/render/index.js";
|
|
14
|
+
import { RenderContext } from "../core/render-context.js";
|
|
15
15
|
import { createRequest } from "../core/request.js";
|
|
16
16
|
import { redirectTemplate } from "../core/routing/3xx.js";
|
|
17
17
|
import { matchAllRoutes } from "../core/routing/index.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as vite from 'vite';
|
|
2
|
-
import type { AstroBuildPlugin } from '../core/build/plugin.js';
|
|
3
2
|
import type { BuildInternals } from '../core/build/internal.js';
|
|
3
|
+
import type { AstroBuildPlugin } from '../core/build/plugin.js';
|
|
4
4
|
export default function configHeadVitePlugin(): vite.Plugin;
|
|
5
5
|
export declare function astroHeadBuildPlugin(internals: BuildInternals): AstroBuildPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astro",
|
|
3
|
-
"version": "5.10.
|
|
3
|
+
"version": "5.10.2",
|
|
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",
|
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
"zod-to-json-schema": "^3.24.5",
|
|
159
159
|
"zod-to-ts": "^1.2.0",
|
|
160
160
|
"@astrojs/internal-helpers": "0.6.1",
|
|
161
|
-
"@astrojs/
|
|
162
|
-
"@astrojs/
|
|
161
|
+
"@astrojs/telemetry": "3.3.0",
|
|
162
|
+
"@astrojs/markdown-remark": "6.3.2"
|
|
163
163
|
},
|
|
164
164
|
"optionalDependencies": {
|
|
165
165
|
"sharp": "^0.33.3"
|