astro 4.4.12 → 4.4.13

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,5 +1,6 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { sep } from "node:path";
3
+ import { pathToFileURL } from "node:url";
3
4
  import boxen from "boxen";
4
5
  import { execa } from "execa";
5
6
  import { bold, cyan, dim, magenta } from "kleur/colors";
@@ -15,8 +16,8 @@ async function getPackage(packageName, logger, options, otherDeps = []) {
15
16
  const packageJsonLoc = require2.resolve(packageName + "/package.json", {
16
17
  paths: [options.cwd ?? process.cwd()]
17
18
  });
18
- const packageLoc = packageJsonLoc.replace(`package.json`, "dist/index.js");
19
- const packageImport2 = await import(packageLoc);
19
+ const packageLoc = pathToFileURL(packageJsonLoc.replace(`package.json`, "dist/index.js"));
20
+ const packageImport2 = await import(packageLoc.toString());
20
21
  return packageImport2;
21
22
  }
22
23
  await tryResolve(packageName, options.cwd ?? process.cwd());
@@ -18,7 +18,8 @@ async function createViteServer(root, fs) {
18
18
  "@astrojs/react",
19
19
  "@astrojs/preact",
20
20
  "@astrojs/sitemap",
21
- "@astrojs/markdoc"
21
+ "@astrojs/markdoc",
22
+ "@astrojs/db"
22
23
  ]
23
24
  },
24
25
  plugins: [loadFallbackPlugin({ fs, root: pathToFileURL(root) })]
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "4.4.12";
1
+ const ASTRO_VERSION = "4.4.13";
2
2
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
3
3
  const ROUTE_TYPE_HEADER = "X-Astro-Route-Type";
4
4
  const REROUTABLE_STATUS_CODES = [404, 500];
@@ -23,7 +23,7 @@ async function dev(inlineConfig) {
23
23
  base: restart.container.settings.config.base
24
24
  })
25
25
  );
26
- const currentVersion = "4.4.12";
26
+ const currentVersion = "4.4.13";
27
27
  if (currentVersion.includes("-")) {
28
28
  logger.warn("SKIP_FORMAT", msg.prerelease({ currentVersion }));
29
29
  }
@@ -36,7 +36,7 @@ function serverStart({
36
36
  host,
37
37
  base
38
38
  }) {
39
- const version = "4.4.12";
39
+ const version = "4.4.13";
40
40
  const localPrefix = `${dim("\u2503")} Local `;
41
41
  const networkPrefix = `${dim("\u2503")} Network `;
42
42
  const emptyPrefix = " ".repeat(11);
@@ -261,7 +261,7 @@ function printHelp({
261
261
  message.push(
262
262
  linebreak(),
263
263
  ` ${bgGreen(black(` ${commandName} `))} ${green(
264
- `v${"4.4.12"}`
264
+ `v${"4.4.13"}`
265
265
  )} ${headline}`
266
266
  );
267
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "4.4.12",
3
+ "version": "4.4.13",
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",
@@ -164,8 +164,8 @@
164
164
  "yargs-parser": "^21.1.1",
165
165
  "zod": "^3.22.4",
166
166
  "@astrojs/internal-helpers": "0.2.1",
167
- "@astrojs/markdown-remark": "4.2.1",
168
- "@astrojs/telemetry": "3.0.4"
167
+ "@astrojs/telemetry": "3.0.4",
168
+ "@astrojs/markdown-remark": "4.2.1"
169
169
  },
170
170
  "optionalDependencies": {
171
171
  "sharp": "^0.32.6"