astro 5.7.4 → 5.7.6

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.
Files changed (134) hide show
  1. package/components/image.css +5 -12
  2. package/dist/assets/fonts/config.d.ts +6 -22
  3. package/dist/assets/fonts/config.js +2 -3
  4. package/dist/assets/fonts/constants.d.ts +1 -1
  5. package/dist/assets/fonts/providers/index.d.ts +1 -1
  6. package/dist/assets/fonts/providers/index.js +3 -2
  7. package/dist/assets/fonts/utils.d.ts +2 -2
  8. package/dist/assets/fonts/utils.js +9 -6
  9. package/dist/assets/fonts/vite-plugin-fonts.js +29 -10
  10. package/dist/assets/internal.js +0 -2
  11. package/dist/assets/layout.js +4 -4
  12. package/dist/assets/services/service.d.ts +1 -1
  13. package/dist/assets/types.d.ts +4 -4
  14. package/dist/assets/utils/etag.d.ts +0 -11
  15. package/dist/assets/utils/etag.js +1 -2
  16. package/dist/assets/utils/vendor/image-size/lookup.d.ts +0 -2
  17. package/dist/assets/utils/vendor/image-size/lookup.js +0 -10
  18. package/dist/cli/add/index.d.ts +0 -9
  19. package/dist/cli/add/index.js +1 -2
  20. package/dist/cli/info/index.d.ts +0 -1
  21. package/dist/cli/info/index.js +0 -1
  22. package/dist/cli/preferences/index.d.ts +0 -2
  23. package/dist/container/index.js +1 -6
  24. package/dist/content/content-layer.d.ts +2 -7
  25. package/dist/content/content-layer.js +4 -6
  26. package/dist/content/index.d.ts +1 -2
  27. package/dist/content/index.js +1 -5
  28. package/dist/content/loaders/file.d.ts +2 -1
  29. package/dist/content/loaders/glob.d.ts +3 -2
  30. package/dist/content/utils.d.ts +1 -12
  31. package/dist/content/utils.js +0 -13
  32. package/dist/content/vite-plugin-content-virtual-mod.d.ts +0 -16
  33. package/dist/content/vite-plugin-content-virtual-mod.js +1 -3
  34. package/dist/core/app/index.js +3 -4
  35. package/dist/core/app/pipeline.d.ts +2 -3
  36. package/dist/core/app/pipeline.js +1 -3
  37. package/dist/core/app/types.d.ts +3 -2
  38. package/dist/core/build/consts.d.ts +0 -1
  39. package/dist/core/build/consts.js +1 -3
  40. package/dist/core/build/index.d.ts +2 -1
  41. package/dist/core/build/page-data.d.ts +3 -2
  42. package/dist/core/build/plugin.d.ts +1 -1
  43. package/dist/core/build/plugins/plugin-analyzer.d.ts +0 -2
  44. package/dist/core/build/plugins/plugin-analyzer.js +1 -2
  45. package/dist/core/build/plugins/plugin-chunks.d.ts +0 -2
  46. package/dist/core/build/plugins/plugin-chunks.js +1 -2
  47. package/dist/core/build/plugins/plugin-component-entry.d.ts +0 -8
  48. package/dist/core/build/plugins/plugin-component-entry.js +1 -3
  49. package/dist/core/build/plugins/plugin-internals.d.ts +0 -2
  50. package/dist/core/build/plugins/plugin-internals.js +1 -2
  51. package/dist/core/build/plugins/plugin-renderers.d.ts +0 -2
  52. package/dist/core/build/plugins/plugin-renderers.js +1 -2
  53. package/dist/core/build/plugins/plugin-scripts.d.ts +0 -5
  54. package/dist/core/build/plugins/plugin-scripts.js +1 -2
  55. package/dist/core/build/plugins/plugin-ssr.d.ts +0 -1
  56. package/dist/core/build/plugins/plugin-ssr.js +0 -1
  57. package/dist/core/build/plugins/util.d.ts +0 -9
  58. package/dist/core/build/plugins/util.js +0 -2
  59. package/dist/core/build/types.d.ts +1 -1
  60. package/dist/core/config/config.d.ts +0 -1
  61. package/dist/core/config/config.js +0 -1
  62. package/dist/core/config/index.d.ts +1 -2
  63. package/dist/core/config/index.js +0 -2
  64. package/dist/core/config/schemas/base.d.ts +21 -19
  65. package/dist/core/config/schemas/base.js +1 -1
  66. package/dist/core/config/schemas/relative.d.ts +25 -25
  67. package/dist/core/config/timer.d.ts +0 -5
  68. package/dist/core/config/tsconfig.d.ts +1 -1
  69. package/dist/core/constants.d.ts +0 -4
  70. package/dist/core/constants.js +1 -3
  71. package/dist/core/cookies/index.d.ts +1 -1
  72. package/dist/core/cookies/index.js +2 -4
  73. package/dist/core/cookies/response.d.ts +0 -1
  74. package/dist/core/cookies/response.js +1 -5
  75. package/dist/core/dev/container.d.ts +2 -1
  76. package/dist/core/dev/dev.js +1 -1
  77. package/dist/core/dev/index.d.ts +1 -1
  78. package/dist/core/dev/index.js +1 -2
  79. package/dist/core/dev/restart.d.ts +1 -1
  80. package/dist/core/encryption.d.ts +0 -8
  81. package/dist/core/encryption.js +1 -7
  82. package/dist/core/errors/errors-data.d.ts +2 -1
  83. package/dist/core/errors/errors-data.js +2 -1
  84. package/dist/core/errors/index.d.ts +1 -2
  85. package/dist/core/errors/index.js +0 -2
  86. package/dist/core/logger/core.d.ts +3 -9
  87. package/dist/core/logger/core.js +1 -5
  88. package/dist/core/messages.d.ts +0 -1
  89. package/dist/core/messages.js +2 -11
  90. package/dist/core/middleware/sequence.js +3 -0
  91. package/dist/core/preview/static-preview-server.d.ts +2 -1
  92. package/dist/core/redirects/index.d.ts +0 -1
  93. package/dist/core/redirects/index.js +0 -2
  94. package/dist/core/render/index.d.ts +0 -17
  95. package/dist/core/render/ssr-element.d.ts +0 -2
  96. package/dist/core/render/ssr-element.js +0 -2
  97. package/dist/core/render-context.js +4 -0
  98. package/dist/core/request.d.ts +1 -1
  99. package/dist/core/routing/3xx.d.ts +2 -1
  100. package/dist/core/routing/astro-designed-error-pages.d.ts +0 -1
  101. package/dist/core/routing/astro-designed-error-pages.js +1 -16
  102. package/dist/core/routing/index.d.ts +2 -3
  103. package/dist/core/routing/index.js +3 -8
  104. package/dist/core/routing/manifest/create.d.ts +2 -3
  105. package/dist/core/routing/manifest/create.js +4 -2
  106. package/dist/core/routing/request.d.ts +0 -1
  107. package/dist/core/routing/request.js +1 -2
  108. package/dist/core/routing/rewrite.d.ts +3 -2
  109. package/dist/core/server-islands/vite-plugin-server-islands.d.ts +0 -1
  110. package/dist/core/server-islands/vite-plugin-server-islands.js +0 -1
  111. package/dist/core/sync/index.d.ts +2 -1
  112. package/dist/core/util.d.ts +0 -1
  113. package/dist/core/util.js +0 -1
  114. package/dist/events/session.d.ts +1 -1
  115. package/dist/integrations/features-validation.d.ts +1 -3
  116. package/dist/integrations/features-validation.js +0 -2
  117. package/dist/preferences/index.d.ts +4 -4
  118. package/dist/type-utils.d.ts +0 -4
  119. package/dist/types/public/config.d.ts +36 -20
  120. package/dist/types/typed-emitter.d.ts +2 -1
  121. package/dist/vite-plugin-astro/hmr.d.ts +2 -1
  122. package/dist/vite-plugin-astro/query.d.ts +3 -2
  123. package/dist/vite-plugin-astro/types.d.ts +2 -1
  124. package/dist/vite-plugin-astro-server/controller.d.ts +2 -2
  125. package/dist/vite-plugin-astro-server/plugin.d.ts +2 -1
  126. package/dist/vite-plugin-astro-server/response.d.ts +0 -1
  127. package/dist/vite-plugin-astro-server/response.js +0 -12
  128. package/dist/vite-plugin-astro-server/route.d.ts +1 -1
  129. package/dist/vite-plugin-astro-server/server-state.d.ts +3 -3
  130. package/dist/vite-plugin-astro-server/server-state.js +0 -4
  131. package/dist/vite-plugin-load-fallback/index.d.ts +1 -1
  132. package/dist/vite-plugin-scanner/index.d.ts +2 -1
  133. package/package.json +5 -11
  134. package/templates/env.mjs +1 -0
@@ -837,6 +837,25 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
837
837
  * }
838
838
  * ```
839
839
  */
840
+ /**
841
+ * @docs
842
+ * @name server.allowedHosts
843
+ * @type {string[] | true}
844
+ * @default `[]`
845
+ * @version 5.4.0
846
+ * @description
847
+ *
848
+ * A list of hostnames that Astro is allowed to respond to. When the value is set to `true`, any
849
+ * hostname is allowed.
850
+ *
851
+ * ```js
852
+ * {
853
+ * server: {
854
+ * allowedHosts: ['staging.example.com', 'qa.example.com']
855
+ * }
856
+ * }
857
+ * ```
858
+ */
840
859
  /**
841
860
  * @docs
842
861
  * @name server.open
@@ -1227,7 +1246,7 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
1227
1246
  * @description
1228
1247
  * The default layout type for responsive images. Can be overridden by the `layout` prop on the image component.
1229
1248
  * Requires the `experimental.responsiveImages` flag to be enabled.
1230
- * - `responsive` - The image will scale to fit the container, maintaining its aspect ratio, but will not exceed the specified dimensions.
1249
+ * - `constrained` - The image will scale to fit the container, maintaining its aspect ratio, but will not exceed the specified dimensions.
1231
1250
  * - `fixed` - The image will maintain its original dimensions.
1232
1251
  * - `full-width` - The image will scale to fit the container, maintaining its aspect ratio.
1233
1252
  */
@@ -1963,14 +1982,14 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
1963
1982
  * }
1964
1983
  * ```
1965
1984
  *
1966
- * When enabled, you can pass a `layout` props to any `<Image />` or `<Picture />` component to create a responsive image. When a layout is set, images have automatically generated `srcset` and `sizes` attributes based on the image's dimensions and the layout type. Images with `responsive` and `full-width` layouts will have styles applied to ensure they resize according to their container.
1985
+ * When enabled, you can pass a `layout` props to any `<Image />` or `<Picture />` component to create a responsive image. When a layout is set, images have automatically generated `srcset` and `sizes` attributes based on the image's dimensions and the layout type. Images with `constrained` and `full-width` layouts will have styles applied to ensure they resize according to their container.
1967
1986
  *
1968
1987
  * ```astro title=MyComponent.astro
1969
1988
  * ---
1970
1989
  * import { Image, Picture } from 'astro:assets';
1971
1990
  * import myImage from '../assets/my_image.png';
1972
1991
  * ---
1973
- * <Image src={myImage} alt="A description of my image." layout='responsive' width={800} height={600} />
1992
+ * <Image src={myImage} alt="A description of my image." layout='constrained' width={800} height={600} />
1974
1993
  * <Picture src={myImage} alt="A description of my image." layout='full-width' formats={['avif', 'webp', 'jpeg']} />
1975
1994
  * ```
1976
1995
  * This `<Image />` component will generate the following HTML output:
@@ -1992,31 +2011,28 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
1992
2011
  * fetchpriority="auto"
1993
2012
  * width="800"
1994
2013
  * height="600"
1995
- * style="--w: 800; --h: 600; --fit: cover; --pos: center;"
1996
- * data-astro-image="responsive"
2014
+ * style="--fit: cover; --pos: center;"
2015
+ * data-astro-image="constrained"
1997
2016
  * >
1998
2017
  * ```
1999
2018
  *
2000
2019
  * The following styles are applied to ensure the images resize correctly:
2001
2020
  *
2002
2021
  * ```css title="Responsive Image Styles"
2003
- * [data-astro-image] {
2004
- * width: 100%;
2005
- * height: auto;
2006
- * object-fit: var(--fit);
2007
- * object-position: var(--pos);
2008
- * aspect-ratio: var(--w) / var(--h)
2022
+ *
2023
+ * :where([data-astro-image]) {
2024
+ * object-fit: var(--fit);
2025
+ * object-position: var(--pos);
2009
2026
  * }
2010
2027
  *
2011
- * [data-astro-image=responsive] {
2012
- * max-width: calc(var(--w) * 1px);
2013
- * max-height: calc(var(--h) * 1px)
2028
+ * :where([data-astro-image='full-width']) {
2029
+ * width: 100%;
2014
2030
  * }
2015
2031
  *
2016
- * [data-astro-image=fixed] {
2017
- * width: calc(var(--w) * 1px);
2018
- * height: calc(var(--h) * 1px)
2032
+ * :where([data-astro-image='constrained']) {
2033
+ * max-width: 100%;
2019
2034
  * }
2035
+ *
2020
2036
  * ```
2021
2037
  * You can enable responsive images for all `<Image />` and `<Picture />` components by setting `image.experimentalLayout` with a default value. This can be overridden by the `layout` prop on each component.
2022
2038
  *
@@ -2025,7 +2041,7 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
2025
2041
  * {
2026
2042
  * image: {
2027
2043
  * // Used for all `<Image />` and `<Picture />` components unless overridden
2028
- * experimentalLayout: 'responsive',
2044
+ * experimentalLayout: 'constrained',
2029
2045
  * },
2030
2046
  * experimental: {
2031
2047
  * responsiveImages: true,
@@ -2050,12 +2066,12 @@ export interface ViteUserConfig extends OriginalViteUserConfig {
2050
2066
  *
2051
2067
  * These are additional properties available to the `<Image />` and `<Picture />` components when responsive images are enabled:
2052
2068
  *
2053
- * - `layout`: The layout type for the image. Can be `responsive`, `fixed`, `full-width` or `none`. Defaults to value of `image.experimentalLayout`.
2069
+ * - `layout`: The layout type for the image. Can be `constrained`, `fixed`, `full-width` or `none`. Defaults to value of `image.experimentalLayout`.
2054
2070
  * - `fit`: Defines how the image should be cropped if the aspect ratio is changed. Values match those of CSS `object-fit`. Defaults to `cover`, or the value of `image.experimentalObjectFit` if set.
2055
2071
  * - `position`: Defines the position of the image crop if the aspect ratio is changed. Values match those of CSS `object-position`. Defaults to `center`, or the value of `image.experimentalObjectPosition` if set.
2056
2072
  * - `priority`: If set, eagerly loads the image. Otherwise images will be lazy-loaded. Use this for your largest above-the-fold image. Defaults to `false`.
2057
2073
  *
2058
- * The `widths` and `sizes` attributes are automatically generated based on the image's dimensions and the layout type, and in most cases should not be set manually. The generated `sizes` attribute for `responsive` and `full-width` images
2074
+ * The `widths` and `sizes` attributes are automatically generated based on the image's dimensions and the layout type, and in most cases should not be set manually. The generated `sizes` attribute for `constrained` and `full-width` images
2059
2075
  * is based on the assumption that the image is displayed at close to the full width of the screen when the viewport is smaller than the image's width. If it is significantly different (e.g. if it's in a multi-column layout on small screens) you may need to adjust the `sizes` attribute manually for best results.
2060
2076
  *
2061
2077
  * The `densities` attribute is not compatible with responsive images and will be ignored if set.
@@ -3,7 +3,7 @@
3
3
  * Copyright (c) 2018 Andy Wermke
4
4
  * https://github.com/andywer/typed-emitter/blob/9a139b6fa0ec6b0db6141b5b756b784e4f7ef4e4/LICENSE
5
5
  */
6
- export type EventMap = {
6
+ type EventMap = {
7
7
  [key: string]: (...args: any[]) => void;
8
8
  };
9
9
  /**
@@ -39,3 +39,4 @@ export interface TypedEventEmitter<Events extends EventMap> {
39
39
  getMaxListeners(): number;
40
40
  setMaxListeners(maxListeners: number): this;
41
41
  }
42
+ export {};
@@ -1,9 +1,10 @@
1
1
  import type { HmrContext } from 'vite';
2
2
  import type { Logger } from '../core/logger/core.js';
3
3
  import type { CompileMetadata } from './types.js';
4
- export interface HandleHotUpdateOptions {
4
+ interface HandleHotUpdateOptions {
5
5
  logger: Logger;
6
6
  astroFileToCompileMetadata: Map<string, CompileMetadata>;
7
7
  }
8
8
  export declare function handleHotUpdate(ctx: HmrContext, { logger, astroFileToCompileMetadata }: HandleHotUpdateOptions): Promise<import("vite").ModuleNode[] | undefined>;
9
9
  export declare function isStyleOnlyChanged(oldCode: string, newCode: string): boolean;
10
+ export {};
@@ -1,4 +1,4 @@
1
- export interface AstroQuery {
1
+ interface AstroQuery {
2
2
  astro?: boolean;
3
3
  src?: boolean;
4
4
  type?: 'script' | 'template' | 'style' | 'custom';
@@ -6,8 +6,9 @@ export interface AstroQuery {
6
6
  lang?: string;
7
7
  raw?: boolean;
8
8
  }
9
- export interface ParsedRequestResult {
9
+ interface ParsedRequestResult {
10
10
  filename: string;
11
11
  query: AstroQuery;
12
12
  }
13
13
  export declare function parseAstroRequest(id: string): ParsedRequestResult;
14
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { HoistedScript, TransformResult } from '@astrojs/compiler';
2
2
  import type { CompileCssResult } from '../core/compile/types.js';
3
3
  import type { PropagationHint } from '../types/public/internal.js';
4
- export interface PageOptions {
4
+ interface PageOptions {
5
5
  prerender?: boolean;
6
6
  }
7
7
  export interface PluginMetadata {
@@ -43,3 +43,4 @@ export interface CompileMetadata {
43
43
  /** For Astro scripts virtual module */
44
44
  scripts: HoistedScript[];
45
45
  }
46
+ export {};
@@ -6,13 +6,13 @@ export interface DevServerController {
6
6
  onFileChange: LoaderEvents['file-change'];
7
7
  onHMRError: LoaderEvents['hmr-error'];
8
8
  }
9
- export type CreateControllerParams = {
9
+ type CreateControllerParams = {
10
10
  loader: ModuleLoader;
11
11
  } | {
12
12
  reload: ReloadFn;
13
13
  };
14
14
  export declare function createController(params: CreateControllerParams): DevServerController;
15
- export interface RunWithErrorHandlingParams {
15
+ interface RunWithErrorHandlingParams {
16
16
  controller: DevServerController;
17
17
  pathname: string;
18
18
  run: () => Promise<any>;
@@ -3,7 +3,7 @@ import type * as vite from 'vite';
3
3
  import type { SSRManifest } from '../core/app/types.js';
4
4
  import type { Logger } from '../core/logger/core.js';
5
5
  import type { AstroSettings, RoutesList } from '../types/astro.js';
6
- export interface AstroPluginOptions {
6
+ interface AstroPluginOptions {
7
7
  settings: AstroSettings;
8
8
  logger: Logger;
9
9
  fs: typeof fs;
@@ -18,3 +18,4 @@ export default function createVitePluginAstroServer({ settings, logger, fs: fsMo
18
18
  * @param settings
19
19
  */
20
20
  export declare function createDevelopmentManifest(settings: AstroSettings): SSRManifest;
21
+ export {};
@@ -1,7 +1,6 @@
1
1
  import type http from 'node:http';
2
2
  import type { ErrorWithMetadata } from '../core/errors/index.js';
3
3
  import type { ModuleLoader } from '../core/module-loader/index.js';
4
- export declare function handle404Response(origin: string, req: http.IncomingMessage, res: http.ServerResponse): Promise<void>;
5
4
  export declare function handle500Response(loader: ModuleLoader, res: http.ServerResponse, err: ErrorWithMetadata): Promise<void>;
6
5
  export declare function writeHtmlResponse(res: http.ServerResponse, statusCode: number, html: string): void;
7
6
  export declare function writeRedirectResponse(res: http.ServerResponse, statusCode: number, location: string): void;
@@ -3,17 +3,6 @@ import { Readable } from "node:stream";
3
3
  import { getSetCookiesFromResponse } from "../core/cookies/index.js";
4
4
  import { getViteErrorPayload } from "../core/errors/dev/index.js";
5
5
  import { redirectTemplate } from "../core/routing/3xx.js";
6
- import notFoundTemplate from "../template/4xx.js";
7
- async function handle404Response(origin, req, res) {
8
- const pathname = decodeURI(new URL(origin + req.url).pathname);
9
- const html = notFoundTemplate({
10
- statusCode: 404,
11
- title: "Not found",
12
- tabTitle: "404: Not Found",
13
- pathname
14
- });
15
- writeHtmlResponse(res, 404, html);
16
- }
17
6
  async function handle500Response(loader, res, err) {
18
7
  res.on(
19
8
  "close",
@@ -99,7 +88,6 @@ async function writeSSRResult(webRequest, webResponse, res) {
99
88
  return writeWebResponse(res, webResponse);
100
89
  }
101
90
  export {
102
- handle404Response,
103
91
  handle500Response,
104
92
  writeHtmlResponse,
105
93
  writeRedirectResponse,
@@ -3,7 +3,7 @@ import type { ComponentInstance, RoutesList } from '../types/astro.js';
3
3
  import type { RouteData } from '../types/public/internal.js';
4
4
  import type { DevPipeline } from './pipeline.js';
5
5
  type AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (...args: any) => Promise<infer R> ? R : any;
6
- export interface MatchedRoute {
6
+ interface MatchedRoute {
7
7
  route: RouteData;
8
8
  filePath: URL;
9
9
  resolvedPathname: string;
@@ -1,5 +1,5 @@
1
- export type ErrorState = 'fresh' | 'error';
2
- export interface RouteState {
1
+ type ErrorState = 'fresh' | 'error';
2
+ interface RouteState {
3
3
  state: ErrorState;
4
4
  error?: Error;
5
5
  }
@@ -9,7 +9,7 @@ export interface ServerState {
9
9
  error?: Error;
10
10
  }
11
11
  export declare function createServerState(): ServerState;
12
- export declare function hasAnyFailureState(serverState: ServerState): boolean;
13
12
  export declare function setRouteError(serverState: ServerState, pathname: string, error: Error): void;
14
13
  export declare function setServerError(serverState: ServerState, error: Error): void;
15
14
  export declare function clearRouteError(serverState: ServerState, pathname: string): void;
15
+ export {};
@@ -4,9 +4,6 @@ function createServerState() {
4
4
  state: "fresh"
5
5
  };
6
6
  }
7
- function hasAnyFailureState(serverState) {
8
- return serverState.state !== "fresh";
9
- }
10
7
  function setRouteError(serverState, pathname, error) {
11
8
  if (serverState.routes.has(pathname)) {
12
9
  const routeState = serverState.routes.get(pathname);
@@ -36,7 +33,6 @@ function clearRouteError(serverState, pathname) {
36
33
  export {
37
34
  clearRouteError,
38
35
  createServerState,
39
- hasAnyFailureState,
40
36
  setRouteError,
41
37
  setServerError
42
38
  };
@@ -1,7 +1,7 @@
1
1
  import nodeFs from 'node:fs';
2
2
  import type * as vite from 'vite';
3
3
  type NodeFileSystemModule = typeof nodeFs;
4
- export interface LoadFallbackPluginParams {
4
+ interface LoadFallbackPluginParams {
5
5
  fs?: NodeFileSystemModule;
6
6
  root: URL;
7
7
  }
@@ -1,9 +1,10 @@
1
1
  import type { Plugin as VitePlugin } from 'vite';
2
2
  import type { Logger } from '../core/logger/core.js';
3
3
  import type { AstroSettings, RoutesList } from '../types/astro.js';
4
- export interface AstroPluginScannerOptions {
4
+ interface AstroPluginScannerOptions {
5
5
  settings: AstroSettings;
6
6
  logger: Logger;
7
7
  routesList: RoutesList;
8
8
  }
9
9
  export default function astroScannerPlugin({ settings, logger, routesList, }: AstroPluginScannerOptions): VitePlugin;
10
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.7.4",
3
+ "version": "5.7.6",
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",
@@ -47,10 +47,7 @@
47
47
  "./compiler-runtime": "./dist/runtime/compiler/index.js",
48
48
  "./runtime/*": "./dist/runtime/*",
49
49
  "./config": "./dist/config/entrypoint.js",
50
- "./container": {
51
- "types": "./dist/container/index.d.ts",
52
- "default": "./dist/container/index.js"
53
- },
50
+ "./container": "./dist/container/index.js",
54
51
  "./app": "./dist/core/app/index.js",
55
52
  "./app/node": "./dist/core/app/node.js",
56
53
  "./client/*": "./dist/runtime/client/*",
@@ -76,10 +73,7 @@
76
73
  "default": "./zod.mjs"
77
74
  },
78
75
  "./errors": "./dist/core/errors/userError.js",
79
- "./middleware": {
80
- "types": "./dist/core/middleware/index.d.ts",
81
- "default": "./dist/core/middleware/index.js"
82
- },
76
+ "./middleware": "./dist/core/middleware/index.js",
83
77
  "./virtual-modules/*": "./dist/virtual-modules/*"
84
78
  },
85
79
  "bin": {
@@ -160,9 +154,9 @@
160
154
  "zod": "^3.24.2",
161
155
  "zod-to-json-schema": "^3.24.5",
162
156
  "zod-to-ts": "^1.2.0",
157
+ "@astrojs/internal-helpers": "0.6.1",
163
158
  "@astrojs/markdown-remark": "6.3.1",
164
- "@astrojs/telemetry": "3.2.0",
165
- "@astrojs/internal-helpers": "0.6.1"
159
+ "@astrojs/telemetry": "3.2.1"
166
160
  },
167
161
  "optionalDependencies": {
168
162
  "sharp": "^0.33.3"
package/templates/env.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-unused-vars */
1
2
  // @ts-check
2
3
  import { schema } from 'virtual:astro:env/internal';
3
4
  import {