astro 2.6.5 → 2.6.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.
@@ -289,6 +289,21 @@ type ServerConfig = {
289
289
  * Set custom HTTP response headers to be sent in `astro dev` and `astro preview`.
290
290
  */
291
291
  headers?: OutgoingHttpHeaders;
292
+ /**
293
+ * @name server.open
294
+ * @type {boolean}
295
+ * @default `false`
296
+ * @version 2.1.8
297
+ * @description
298
+ * Control whether the dev server should open in your browser window on startup.
299
+ *
300
+ * ```js
301
+ * {
302
+ * server: { open: true }
303
+ * }
304
+ * ```
305
+ */
306
+ open?: boolean;
292
307
  };
293
308
  export interface ViteUserConfig extends vite.UserConfig {
294
309
  ssr?: vite.SSROptions;
@@ -810,6 +825,20 @@ export interface AstroUserConfig {
810
825
  * }
811
826
  * ```
812
827
  */
828
+ /**
829
+ * @name server.open
830
+ * @type {boolean}
831
+ * @default `false`
832
+ * @version 2.1.8
833
+ * @description
834
+ * Control whether the dev server should open in your browser window on startup.
835
+ *
836
+ * ```js
837
+ * {
838
+ * server: { open: true }
839
+ * }
840
+ * ```
841
+ */
813
842
  /**
814
843
  * @docs
815
844
  * @name server.headers
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "2.6.5";
1
+ const ASTRO_VERSION = "2.6.6";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -53,7 +53,7 @@ async function dev(settings, options) {
53
53
  isRestart: options.isRestart
54
54
  })
55
55
  );
56
- const currentVersion = "2.6.5";
56
+ const currentVersion = "2.6.6";
57
57
  if (currentVersion.includes("-")) {
58
58
  warn(options.logging, null, msg.prerelease({ currentVersion }));
59
59
  }
@@ -47,7 +47,7 @@ function serverStart({
47
47
  base,
48
48
  isRestart = false
49
49
  }) {
50
- const version = "2.6.5";
50
+ const version = "2.6.6";
51
51
  const localPrefix = `${dim("\u2503")} Local `;
52
52
  const networkPrefix = `${dim("\u2503")} Network `;
53
53
  const emptyPrefix = " ".repeat(11);
@@ -233,7 +233,7 @@ function printHelp({
233
233
  message.push(
234
234
  linebreak(),
235
235
  ` ${bgGreen(black(` ${commandName} `))} ${green(
236
- `v${"2.6.5"}`
236
+ `v${"2.6.6"}`
237
237
  )} ${headline}`
238
238
  );
239
239
  }
@@ -44,7 +44,7 @@ function eventCliSession(cliCommand, userConfig, flags) {
44
44
  )) ?? []
45
45
  ],
46
46
  adapter: ((_e = userConfig == null ? void 0 : userConfig.adapter) == null ? void 0 : _e.name) ?? null,
47
- integrations: ((userConfig == null ? void 0 : userConfig.integrations) ?? []).filter(Boolean).map((i) => i == null ? void 0 : i.name),
47
+ integrations: ((userConfig == null ? void 0 : userConfig.integrations) ?? []).filter(Boolean).flat().map((i) => i == null ? void 0 : i.name),
48
48
  trailingSlash: userConfig == null ? void 0 : userConfig.trailingSlash,
49
49
  build: (userConfig == null ? void 0 : userConfig.build) ? {
50
50
  format: (_f = userConfig == null ? void 0 : userConfig.build) == null ? void 0 : _f.format
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "2.6.5",
3
+ "version": "2.6.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",