Update - Upgrade Astro to 7.2 and remove unused session KV binding - #743
Merged
Conversation
astro@7.0.3 was already violating the peer dependency declared by the installed @astrojs/cloudflare adapter (astro: ^7.2.0). Bumps astro and @astrojs/mdx, and drops the SESSION KV binding from wrangler.jsonc since nothing in the codebase uses Astro.session. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the site’s build/runtime dependencies to align with the currently installed @astrojs/cloudflare peer requirements, and removes an unused Cloudflare Workers KV binding from the Wrangler configuration (with regenerated Wrangler type output to match).
Changes:
- Bump
astrofrom7.0.3to7.2.3and@astrojs/mdxfrom7.0.0to7.0.6, updating the lockfile accordingly. - Remove the unused
SESSIONKV namespace binding fromwrangler.jsonc. - Regenerate
worker-configuration.d.tsso theEnvinterface reflects the current Wrangler bindings (droppingSESSION).
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
wrangler.jsonc |
Removes the unused SESSION KV binding from the Worker configuration. |
worker-configuration.d.ts |
Regenerated Wrangler types; Env no longer includes SESSION and runtime typings are updated. |
package.json |
Updates astro and @astrojs/mdx dependency versions. |
pnpm-lock.yaml |
Updates the dependency graph/lock state to match the new Astro + MDX versions. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
astro7.0.3 → 7.2.3 and@astrojs/mdx7.0.0 → 7.0.6 (the newest patch versions available given pnpm'sminimumReleaseAgepolicy — 7.2.4/7.0.7 were published within the last 24h)@astrojs/cloudflare@14.2.2already declarespeerDependencies: { astro: "^7.2.0" }, whichastro@7.0.3violatedSESSIONKV binding fromwrangler.jsonc— nothing insrccallsAstro.sessionworker-configuration.d.tsaccordinglyexperimental.incrementalBuildflag from 7.2 for now — it's still pre-stable, its benefit depends on the build cache persisting across Cloudflare Pages builds (unconfirmed), and the current build is already ~4s for all 88 pages, so there's no bottleneck it would solveSupersedes #739 (Dependabot's astro 7.1.1 bump).
Test plan
pnpm run check— 0 errorspnpm build— clean, 88 pages builtpnpm lint— cleanpnpm test— 114 passed, 6 skipped, 0 failed🤖 Generated with Claude Code