astro 5.2.1 → 5.2.2

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.
@@ -6,6 +6,7 @@ interface AddOptions {
6
6
  interface IntegrationInfo {
7
7
  id: string;
8
8
  packageName: string;
9
+ integrationName: string;
9
10
  dependencies: [name: string, version: string][];
10
11
  type: 'integration' | 'adapter';
11
12
  }
@@ -254,7 +254,7 @@ async function add(names, { flags }) {
254
254
  `
255
255
  ${magenta(
256
256
  `Check our deployment docs for ${bold(
257
- integration.packageName
257
+ integration.integrationName
258
258
  )} to update your "adapter" config.`
259
259
  )}`
260
260
  );
@@ -314,7 +314,7 @@ async function add(names, { flags }) {
314
314
  case 3 /* failure */:
315
315
  case 1 /* updated */:
316
316
  case void 0: {
317
- const list = integrations.map((integration) => ` - ${integration.packageName}`).join("\n");
317
+ const list = integrations.map((integration) => ` - ${integration.integrationName}`).join("\n");
318
318
  logger.info(
319
319
  "SKIP_FORMAT",
320
320
  msg.success(
@@ -501,8 +501,7 @@ async function getInstallIntegrationsCommand({
501
501
  }
502
502
  async function convertIntegrationsToInstallSpecifiers(integrations) {
503
503
  const ranges = {};
504
- for (let { packageName, dependencies } of integrations) {
505
- ranges[packageName] = "*";
504
+ for (let { dependencies } of integrations) {
506
505
  for (const [name, range] of dependencies) {
507
506
  ranges[name] = range;
508
507
  }
@@ -652,6 +651,7 @@ async function validateIntegrations(integrations) {
652
651
  }
653
652
  const resolvedScope = pkgType === "first-party" ? "@astrojs" : scope;
654
653
  const packageName = `${resolvedScope ? `${resolvedScope}/` : ""}${name}`;
654
+ let integrationName = packageName;
655
655
  let dependencies = [
656
656
  [pkgJson["name"], `^${pkgJson["version"]}`]
657
657
  ];
@@ -681,12 +681,19 @@ async function validateIntegrations(integrations) {
681
681
  );
682
682
  }
683
683
  if (integration === "tailwind") {
684
+ integrationName = "tailwind";
684
685
  dependencies = [
685
686
  ["@tailwindcss/vite", "^4.0.0"],
686
687
  ["tailwindcss", "^4.0.0"]
687
688
  ];
688
689
  }
689
- return { id: integration, packageName, dependencies, type: integrationType };
690
+ return {
691
+ id: integration,
692
+ packageName,
693
+ dependencies,
694
+ type: integrationType,
695
+ integrationName
696
+ };
690
697
  })
691
698
  );
692
699
  spinner.success();
@@ -153,7 +153,7 @@ ${contentConfig.error.message}`);
153
153
  logger.info("Content config changed");
154
154
  shouldClear = true;
155
155
  }
156
- if (previousAstroVersion && previousAstroVersion !== "5.2.1") {
156
+ if (previousAstroVersion && previousAstroVersion !== "5.2.2") {
157
157
  logger.info("Astro version changed");
158
158
  shouldClear = true;
159
159
  }
@@ -161,8 +161,8 @@ ${contentConfig.error.message}`);
161
161
  logger.info("Clearing content store");
162
162
  this.#store.clearAll();
163
163
  }
164
- if ("5.2.1") {
165
- await this.#store.metaStore().set("astro-version", "5.2.1");
164
+ if ("5.2.2") {
165
+ await this.#store.metaStore().set("astro-version", "5.2.2");
166
166
  }
167
167
  if (currentConfigDigest) {
168
168
  await this.#store.metaStore().set("content-config-digest", currentConfigDigest);
@@ -1,4 +1,4 @@
1
- const ASTRO_VERSION = "5.2.1";
1
+ const ASTRO_VERSION = "5.2.2";
2
2
  const REROUTE_DIRECTIVE_HEADER = "X-Astro-Reroute";
3
3
  const REWRITE_DIRECTIVE_HEADER_KEY = "X-Astro-Rewrite";
4
4
  const REWRITE_DIRECTIVE_HEADER_VALUE = "yes";
@@ -22,7 +22,7 @@ async function dev(inlineConfig) {
22
22
  await telemetry.record([]);
23
23
  const restart = await createContainerWithAutomaticRestart({ inlineConfig, fs });
24
24
  const logger = restart.container.logger;
25
- const currentVersion = "5.2.1";
25
+ const currentVersion = "5.2.2";
26
26
  const isPrerelease = currentVersion.includes("-");
27
27
  if (!isPrerelease) {
28
28
  try {
@@ -38,7 +38,7 @@ function serverStart({
38
38
  host,
39
39
  base
40
40
  }) {
41
- const version = "5.2.1";
41
+ const version = "5.2.2";
42
42
  const localPrefix = `${dim("\u2503")} Local `;
43
43
  const networkPrefix = `${dim("\u2503")} Network `;
44
44
  const emptyPrefix = " ".repeat(11);
@@ -276,7 +276,7 @@ function printHelp({
276
276
  message.push(
277
277
  linebreak(),
278
278
  ` ${bgGreen(black(` ${commandName} `))} ${green(
279
- `v${"5.2.1"}`
279
+ `v${"5.2.2"}`
280
280
  )} ${headline}`
281
281
  );
282
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
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",
@@ -160,8 +160,8 @@
160
160
  "zod-to-json-schema": "^3.24.1",
161
161
  "zod-to-ts": "^1.2.0",
162
162
  "@astrojs/internal-helpers": "0.5.0",
163
- "@astrojs/markdown-remark": "6.1.0",
164
- "@astrojs/telemetry": "3.2.0"
163
+ "@astrojs/telemetry": "3.2.0",
164
+ "@astrojs/markdown-remark": "6.1.0"
165
165
  },
166
166
  "optionalDependencies": {
167
167
  "sharp": "^0.33.3"