astro 3.0.5 → 3.0.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.
@@ -300,6 +300,7 @@ const { fallback = 'animate' } = Astro.props as Props;
300
300
  !link ||
301
301
  !(link instanceof HTMLAnchorElement) ||
302
302
  link.dataset.astroReload !== undefined ||
303
+ link.hasAttribute('download') ||
303
304
  !link.href ||
304
305
  (link.target && link.target !== '_self') ||
305
306
  link.origin !== location.origin ||
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "3.0.5";
1
+ const ASTRO_VERSION = "3.0.6";
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.0.5";
23
+ const currentVersion = "3.0.6";
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.0.5";
53
+ const version = "3.0.6";
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.0.5"}`
238
+ `v${"3.0.6"}`
239
239
  )} ${headline}`
240
240
  );
241
241
  }
@@ -1,3 +1,4 @@
1
+ import { trimSlashes } from "../path.js";
1
2
  import { validateGetStaticPathsParameter } from "./validation.js";
2
3
  function getParams(array) {
3
4
  const fn = (match) => {
@@ -17,7 +18,9 @@ function stringifyParams(params, route) {
17
18
  const validatedParams = Object.entries(params).reduce((acc, next) => {
18
19
  validateGetStaticPathsParameter(next, route.component);
19
20
  const [key, value] = next;
20
- acc[key] = value?.toString();
21
+ if (value !== void 0) {
22
+ acc[key] = typeof value === "string" ? trimSlashes(value) : value.toString();
23
+ }
21
24
  return acc;
22
25
  }, {});
23
26
  return JSON.stringify(route.generate(validatedParams));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "3.0.5",
3
+ "version": "3.0.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",