Astro: @astrojs/[email protected] Release

Release date:
March 6, 2026
Previous version:
@astrojs/[email protected] (released March 5, 2026)
Magnitude:
3,025 Diff Delta
Contributors:
3 total committers
Data confidence:
Commits:

19 Commits in this Release

Ordered by the degree to which they evolved the repo in this version.

Top Contributors in @astrojs/[email protected]

ematipico
florian-lefebvre
Princesseuh

Directory Browser for @astrojs/[email protected]

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Patch Changes

  • #15781 2de969d Thanks @ematipico! - Adds a new clientAddress option to the createContext() function

    Providing this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing clientAddress throws an error consistent with other contexts where it is not set by the adapter.

    Additionally, both of the official Netlify and Vercel adapters have been updated to provide this information in their edge middleware.

    import { createContext } from 'astro/middleware';
    
    createContext({
      clientAddress: context.headers.get('x-real-ip'),
    });
    
  • #15778 4ebc1e3 Thanks @ematipico! - Fixes an issue where the computed clientAddress was incorrect in cases of a Request header with multiple values. The clientAddress is now also validated to contain only characters valid in IP addresses, rejecting injection payloads.

  • Updated dependencies [4ebc1e3, 4e7f3e8]: