Skip to content

Update Astro peer dependency in adapters with auto-enabled sessions#14240

Merged
delucis merged 3 commits intomainfrom
chris/sessions-compat
Aug 18, 2025
Merged

Update Astro peer dependency in adapters with auto-enabled sessions#14240
delucis merged 3 commits intomainfrom
chris/sessions-compat

Conversation

@delucis
Copy link
Member

@delucis delucis commented Aug 18, 2025

Changes

  • When sessions were stabilized in Astro 5.7.0 (feat: stable sessions #13527), we updated the Node, Netlify, and Cloudflare adapters to auto-enable the feature.
  • However, these adapters did not update their peerDependencies version of astro, meaning it’s possible to install the latest adapter with an older version of astro and see errors because the adapter is setting sessions config which doesn’t exist.
  • This PR bumps the peer dependency to 5.7.0 in the three adapters to fix this.
  • Technically I’d consider this and the initial decision to auto-enable sessions a breaking change, which should have come with a major release of the adapters, but because that change was made in a minor release, I’ve made this a patch as a “fix” to the behaviour introduced in that minor release.

Testing

N/A — dependency management only

Docs

N/A

@delucis delucis marked this pull request as ready for review August 18, 2025 14:08
@changeset-bot
Copy link

changeset-bot bot commented Aug 18, 2025

🦋 Changeset detected

Latest commit: a320b1a

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

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

@github-actions github-actions bot added the pkg: integration Related to any renderer integration (scope) label Aug 18, 2025
Copy link
Member

@ematipico ematipico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated the PR, so the CI should pass

@delucis delucis merged commit 77b18fb into main Aug 18, 2025
14 checks passed
@delucis delucis deleted the chris/sessions-compat branch August 18, 2025 16:31
@astrobot-houston astrobot-houston mentioned this pull request Aug 18, 2025
openscript pushed a commit to openscript/astro that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: integration Related to any renderer integration (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants