astro 3.6.0 → 3.6.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.
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "3.6.0";
1
+ const ASTRO_VERSION = "3.6.1";
2
2
  const SUPPORTED_MARKDOWN_FILE_EXTENSIONS = [
3
3
  ".markdown",
4
4
  ".mdown",
@@ -20,7 +20,7 @@ async function dev(inlineConfig) {
20
20
  base: restart.container.settings.config.base
21
21
  })
22
22
  );
23
- const currentVersion = "3.6.0";
23
+ const currentVersion = "3.6.1";
24
24
  if (currentVersion.includes("-")) {
25
25
  logger.warn(null, msg.prerelease({ currentVersion }));
26
26
  }
@@ -50,7 +50,7 @@ function serverStart({
50
50
  base,
51
51
  isRestart = false
52
52
  }) {
53
- const version = "3.6.0";
53
+ const version = "3.6.1";
54
54
  const localPrefix = `${dim("\u2503")} Local `;
55
55
  const networkPrefix = `${dim("\u2503")} Network `;
56
56
  const emptyPrefix = " ".repeat(11);
@@ -235,7 +235,7 @@ function printHelp({
235
235
  message.push(
236
236
  linebreak(),
237
237
  ` ${bgGreen(black(` ${commandName} `))} ${green(
238
- `v${"3.6.0"}`
238
+ `v${"3.6.1"}`
239
239
  )} ${headline}`
240
240
  );
241
241
  }
@@ -2,7 +2,7 @@ import type { Plugin as VitePlugin } from 'vite';
2
2
  import type { AstroSettings } from '../../@types/astro.js';
3
3
  import type { BuildInternals } from '../build/internal.js';
4
4
  import type { StaticBuildOptions } from '../build/types.js';
5
- export declare const MIDDLEWARE_MODULE_ID = "@astro-middleware";
5
+ export declare const MIDDLEWARE_MODULE_ID = "\0astro-internal:middleware";
6
6
  export declare function vitePluginMiddleware({ settings }: {
7
7
  settings: AstroSettings;
8
8
  }): VitePlugin;
@@ -2,7 +2,7 @@ import { normalizePath } from "vite";
2
2
  import { getOutputDirectory } from "../../prerender/utils.js";
3
3
  import { addRollupInput } from "../build/add-rollup-input.js";
4
4
  import { MIDDLEWARE_PATH_SEGMENT_NAME } from "../constants.js";
5
- const MIDDLEWARE_MODULE_ID = "@astro-middleware";
5
+ const MIDDLEWARE_MODULE_ID = "\0astro-internal:middleware";
6
6
  const EMPTY_MIDDLEWARE = "\0empty-middleware";
7
7
  function vitePluginMiddleware({ settings }) {
8
8
  let isCommandBuild = false;
@@ -139,7 +139,6 @@ const moveToLocation = (to, from, options, historyState) => {
139
139
  to.href
140
140
  );
141
141
  }
142
- history.scrollRestoration = "manual";
143
142
  }
144
143
  originalLocation = to;
145
144
  if (!intraPage) {
@@ -150,12 +149,14 @@ const moveToLocation = (to, from, options, historyState) => {
150
149
  scrollTo(historyState.scrollX, historyState.scrollY);
151
150
  } else {
152
151
  if (to.hash) {
152
+ history.scrollRestoration = "auto";
153
153
  location.href = to.href;
154
154
  } else {
155
155
  if (!scrolledToTop) {
156
156
  scrollTo({ left: 0, top: 0, behavior: "instant" });
157
157
  }
158
158
  }
159
+ history.scrollRestoration = "manual";
159
160
  }
160
161
  };
161
162
  function preloadStyleLinks(newDocument) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "3.6.0",
3
+ "version": "3.6.1",
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",
@@ -166,9 +166,9 @@
166
166
  "which-pm": "^2.1.1",
167
167
  "yargs-parser": "^21.1.1",
168
168
  "zod": "^3.22.4",
169
- "@astrojs/markdown-remark": "3.5.0",
169
+ "@astrojs/internal-helpers": "0.2.1",
170
170
  "@astrojs/telemetry": "3.0.4",
171
- "@astrojs/internal-helpers": "0.2.1"
171
+ "@astrojs/markdown-remark": "3.5.0"
172
172
  },
173
173
  "optionalDependencies": {
174
174
  "sharp": "^0.32.5"