Skip to content

Support Astro 7#1552

Open
AlexMPLeite wants to merge 1 commit into
Thinkmill:mainfrom
AlexMPLeite:support-astro-7
Open

Support Astro 7#1552
AlexMPLeite wants to merge 1 commit into
Thinkmill:mainfrom
AlexMPLeite:support-astro-7

Conversation

@AlexMPLeite

Copy link
Copy Markdown

Summary

Adds support for Astro 7. The @keystatic/astro integration code is unchanged — only its peerDependencies range is widened — and the example/template projects are upgraded to Astro 7 with Vite 8-compatible integrations.

Changes

  • Widen @keystatic/astro peerDependencies to 2 || 3 || 4 || 5 || 6 || 7 (+ bump its dev astro to ^7.0.4)
  • Bump astro to ^7.0.4 in dev-projects/astro, dev-projects/astro-content, templates/astro
  • Upgrade official integrations for Vite 8: @astrojs/react@^6, @astrojs/node@^11, @astrojs/markdoc@^2, @astrojs/sitemap@^3.7.3, @tailwindcss/vite/tailwindcss@^4.3.2
  • Add changeset (@keystatic/astro minor)

Check plan

  • pnpm check:types passes
  • pnpm check:lint and pnpm check:format pass
  • pnpm build:packages produces packages/astro/dist/*
  • pnpm --filter @example/astro build succeeds (server + Node adapter)
  • pnpm --filter @example/astro-content build succeeds (Tailwind 4 CSS-first, Content Layer)
  • pnpm --filter @keystatic/templates-astro build succeeds with prerendered public pages
  • pnpm --filter @example/astro devGET /keystatic/ 200 (admin UI bundle), /keystatic/collection/posts 200, GET /api/keystatic/github/login 307
@changeset-bot

changeset-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 9d74c5c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystatic/astro Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtailwindcss@​4.3.21001008198100
Added@​astrojs/​sitemap@​3.7.31001008289100
Added@​astrojs/​node@​11.0.01001008297100
Added@​astrojs/​react@​6.0.0991008296100
Added@​astrojs/​markdoc@​2.0.1941008397100
Addedastro@​7.0.4881008898100
Added@​tailwindcss/​vite@​4.3.21001008998100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Action Severity Alert  (click "▶" to expand/collapse)
Warn High
Obfuscated code: npm @emnapi/runtime is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: pnpm-lock.yamlnpm/@astrojs/react@6.0.0npm/@tailwindcss/vite@4.3.2npm/astro@7.0.4npm/@emnapi/runtime@1.11.1

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/@emnapi/runtime@1.11.1. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn High
Obfuscated code: npm astro is 90.0% likely obfuscated

Confidence: 0.90

Location: Package overview

From: dev-projects/astro-content/package.jsonnpm/astro@7.0.4

ℹ Read more on: This package | This alert | What is obfuscated code?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support@socket.dev.

Suggestion: Packages should not obfuscate their code. Consider not using packages with obfuscated code.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/astro@7.0.4. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant