astro 4.1.0 → 4.1.1
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/dist/@types/astro.d.ts
CHANGED
|
@@ -864,7 +864,7 @@ export interface AstroUserConfig {
|
|
|
864
864
|
* - `'tap'`: Prefetch just before you click on the link.
|
|
865
865
|
* - `'hover'`: Prefetch when you hover over or focus on the link. (default)
|
|
866
866
|
* - `'viewport'`: Prefetch as the links enter the viewport.
|
|
867
|
-
* - `'load'`: Prefetch the
|
|
867
|
+
* - `'load'`: Prefetch all links on the page after the page is loaded.
|
|
868
868
|
*
|
|
869
869
|
* You can override this default value and select a different strategy for any individual link by setting a value on the attribute.
|
|
870
870
|
*
|
|
@@ -930,7 +930,7 @@ export interface AstroUserConfig {
|
|
|
930
930
|
* @name server.open
|
|
931
931
|
* @type {string | boolean}
|
|
932
932
|
* @default `false`
|
|
933
|
-
* @version
|
|
933
|
+
* @version 4.1.0
|
|
934
934
|
* @description
|
|
935
935
|
* Controls whether the dev server should open in your browser window on startup.
|
|
936
936
|
*
|
|
@@ -1013,7 +1013,7 @@ export interface AstroUserConfig {
|
|
|
1013
1013
|
* @docs
|
|
1014
1014
|
* @name image.service.config.limitInputPixels
|
|
1015
1015
|
* @kind h4
|
|
1016
|
-
* @type {boolean}
|
|
1016
|
+
* @type {number | boolean}
|
|
1017
1017
|
* @default `true`
|
|
1018
1018
|
* @version 4.1.0
|
|
1019
1019
|
* @description
|
|
@@ -2025,7 +2025,7 @@ export interface APIContext<Props extends Record<string, any> = Record<string, a
|
|
|
2025
2025
|
*/
|
|
2026
2026
|
currentLocale: string | undefined;
|
|
2027
2027
|
}
|
|
2028
|
-
export type APIRoute<Props extends Record<string, any> = Record<string, any>> = (context: APIContext<Props>) => Response | Promise<Response>;
|
|
2028
|
+
export type APIRoute<Props extends Record<string, any> = Record<string, any>, APIParams extends Record<string, string | undefined> = Record<string, string | undefined>> = (context: APIContext<Props, APIParams>) => Response | Promise<Response>;
|
|
2029
2029
|
export interface EndpointHandler {
|
|
2030
2030
|
[method: string]: APIRoute;
|
|
2031
2031
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import type { SharpOptions } from 'sharp';
|
|
1
2
|
import { type LocalImageService } from './service.js';
|
|
2
3
|
export interface SharpImageServiceConfig {
|
|
3
4
|
/**
|
|
4
5
|
* The `limitInputPixels` option passed to Sharp. See https://sharp.pixelplumbing.com/api-constructor for more information
|
|
5
6
|
*/
|
|
6
|
-
limitInputPixels?:
|
|
7
|
+
limitInputPixels?: SharpOptions['limitInputPixels'];
|
|
7
8
|
}
|
|
8
9
|
declare const sharpService: LocalImageService<SharpImageServiceConfig>;
|
|
9
10
|
export default sharpService;
|
package/dist/cli/add/index.js
CHANGED
|
@@ -134,6 +134,9 @@ async function add(names, { flags }) {
|
|
|
134
134
|
possibleConfigFiles: [
|
|
135
135
|
"./tailwind.config.cjs",
|
|
136
136
|
"./tailwind.config.mjs",
|
|
137
|
+
"./tailwind.config.ts",
|
|
138
|
+
"./tailwind.config.mts",
|
|
139
|
+
"./tailwind.config.cts",
|
|
137
140
|
"./tailwind.config.js"
|
|
138
141
|
],
|
|
139
142
|
defaultConfigFile: "./tailwind.config.mjs",
|
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 = "4.1.
|
|
26
|
+
const currentVersion = "4.1.1";
|
|
27
27
|
if (currentVersion.includes("-")) {
|
|
28
28
|
logger.warn("SKIP_FORMAT", msg.prerelease({ currentVersion }));
|
|
29
29
|
}
|
package/dist/core/messages.js
CHANGED
|
@@ -36,7 +36,7 @@ function serverStart({
|
|
|
36
36
|
host,
|
|
37
37
|
base
|
|
38
38
|
}) {
|
|
39
|
-
const version = "4.1.
|
|
39
|
+
const version = "4.1.1";
|
|
40
40
|
const localPrefix = `${dim("\u2503")} Local `;
|
|
41
41
|
const networkPrefix = `${dim("\u2503")} Network `;
|
|
42
42
|
const emptyPrefix = " ".repeat(11);
|
|
@@ -258,7 +258,7 @@ function printHelp({
|
|
|
258
258
|
message.push(
|
|
259
259
|
linebreak(),
|
|
260
260
|
` ${bgGreen(black(` ${commandName} `))} ${green(
|
|
261
|
-
`v${"4.1.
|
|
261
|
+
`v${"4.1.1"}`
|
|
262
262
|
)} ${headline}`
|
|
263
263
|
);
|
|
264
264
|
}
|