Skip to content

chore(deps): update dependency astro to v7.1.1#78

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/astro-monorepo
Open

chore(deps): update dependency astro to v7.1.1#78
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/astro-monorepo

Conversation

@renovate

@renovate renovate Bot commented Mar 16, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
astro (source) 7.0.37.1.1 age adoption passing confidence

Release Notes

withastro/astro (astro)

v7.1.1

Compare Source

Patch Changes

v7.1.0

Compare Source

Minor Changes
  • #​17302 5f4dc03 Thanks @​astrobot-houston! - Adds a new deferRender option to the glob() content loader

    When set to true, renderable entries (such as Markdown) are not rendered during content sync. Instead, rendering is deferred until the entry is actually rendered in a page, using the same on-demand path that .mdx files already use.

    This reduces memory usage during astro build for large collections whose rendered output is much larger than the source — for example, Markdown that uses heavy rehype plugins like rehype-katex. Such builds could previously run out of memory while storing the eagerly-rendered HTML for every entry.

    // src/content.config.ts
    import { defineCollection } from 'astro:content';
    import { glob } from 'astro/loaders';
    
    const docs = defineCollection({
      loader: glob({ pattern: '**/*.md', base: 'src/content/docs', deferRender: true }),
    });

    By default deferRender is false, preserving the existing behavior of rendering entries eagerly during sync so their rendered HTML can be cached across builds.

  • #​17296 30698a2 Thanks @​ematipico! - Adds a new experimental collectionStorage option for controlling how the content layer persists its data store

    By default, Astro serializes the entire content layer data store to a single file (.astro/data-store.json). For very large content collections, this file can grow large enough to hit platform file-size limits.

    Set experimental.collectionStorage: 'chunked' to instead split the data store across many smaller, content-addressed files inside a .astro/data-store/ directory, described by a manifest:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      experimental: {
        collectionStorage: 'chunked',
      },
    });

    Because each part file is named by a hash of its contents, unchanged parts keep the same name across builds and are not rewritten, and identical parts are deduplicated. The default value is 'single-file', which preserves the current behavior.

  • #​17214 44c4989 Thanks @​ematipico! - Adds support for the more specific CSP directives script-src-elem, script-src-attr, style-src-elem, and style-src-attr through a new kind option.

    Previously, CSP was only scoped to generic script-src/style-src directives. Now each source or hash can be scoped to a narrower directive — for example, to allow inline style attributes (such as those from define:vars or Shiki) without loosening the policy for your <style> and <link> elements.

Scoping sources and hashes in your config

Each entry in resources and hashes can be an object with a kind property. Depending on whether you use scriptDirective or styleDirective, "element" targets script-src-elem or style-src-elem, "attribute" targets script-src-attr or style-src-attr, and "default" (the same as a bare string or hash) targets script-src or style-src.

// astro.config.mjs
import { defineConfig } from 'astro/config';

export default defineConfig({
  security: {
    csp: {
      scriptDirective: {
        resources: [{ resource: 'https://cdn.example.com', kind: 'element' }],
      },
      styleDirective: {
        resources: [{ resource: "'unsafe-inline'", kind: 'attribute' }],
      },
    },
  },
});
Scoping at runtime

The same kind option is available on the runtime CSP API, where the existing methods now also accept an object:

ctx.csp.insertScriptResource({ resource: 'https://cdn.example.com', kind: 'element' });
ctx.csp.insertStyleResource({ resource: "'unsafe-inline'", kind: 'attribute' });
  • #​17258 84814d4 Thanks @​astrobot-houston! - Adds a new format() option to the paginate utility. The format() option is a function that accepts the current URL of the page, and returns a new URL.

    For example, when your host only supports URLs using the .html extension, you can use format() to add it to the generated URLs:

    ---
    export async function getStaticPaths({ paginate }) {
      // Load your data with fetch(), getCollection(), etc.
      const response = await fetch(`https://pokeapi.co/api/v2/pokemon?limit=150`);
      const result = await response.json();
      const allPokemon = result.results;
    
      // Return a paginated collection of paths for all items
      return paginate(allPokemon, {
        pageSize: 10,
        format: (url) => `${url}.html`,
      });
    }
    
    const { page } = Astro.props;
    ---
  • #​17331 7db6420 Thanks @​matthewp! - Adds a --ignore-lock flag to astro dev for starting a dev server without checking or writing the lock file, so it can run alongside an already-running dev server for the same project.

    The new instance is not tracked by astro dev stop, astro dev status, or astro dev logs. --ignore-lock cannot be combined with --background (or an auto-detected AI agent environment, which runs dev servers in the background automatically) or --force, since those rely on the lock file.

    astro dev --ignore-lock
  • #​17389 16de021 Thanks @​florian-lefebvre! - Allows passing URL entrypoints when configuring the logger

    Matching other APIs like session drivers or font providers, the logger entrypoint can now be a URL:

    import { defineConfig } from 'astro/config';
    
    export default defineConfig({
      logger: {
        entrypoint: new URL('./logger.js', import.meta.url),
      },
    });
Patch Changes
  • #​17332 4407483 Thanks @​astrobot-houston! - Fixes the JSON logger crashing with process is not defined in non-Node runtimes like Cloudflare's workerd. The JSON logger now uses console.log/console.error instead of process.stdout/process.stderr, matching the pattern already used by the console logger.

  • #​17391 186a1e7 Thanks @​florian-lefebvre! - Fixes a case where an integration could not update the logger with updateConfig()

  • #​17394 d9f99e1 Thanks @​matthewp! - Fixes element-specific CSP directives to preserve the existing behavior of configured script and style resources

  • #​17374 b2d1b3e Thanks @​astrobot-houston! - Fixes dev server returning 404 for ?url imported assets when accessed via browser navigation

  • #​17390 ed71eaf Thanks @​florian-lefebvre! - Removes an unused and undocumented generic from the AstroLoggerDestination type

  • #​17393 092da56 Thanks @​matthewp! - Hardens generated transition styles, development metadata, and server island URLs when embedding dynamic values

v7.0.9

Compare Source

Patch Changes
  • #​17286 a249317 Thanks @​astrobot-houston! - Fixes the first browser visit after astro dev starts triggering an immediate full page reload

  • #​17369 a94d4a5 Thanks @​adamchal! - Fixes an issue where a client island could permanently fail to hydrate if the first attempt to load its component failed. Islands now reliably recover from transient import failures, which previously did not work for React components during astro dev.

v7.0.8

Compare Source

Patch Changes

v7.0.7

Compare Source

Patch Changes
  • #​17318 23a4120 Thanks @​astrobot-houston! - Fixes CSS module scoped-name hash mismatch in astro dev when using vite.css.transformer: 'lightningcss' with content collections. Previously, a component importing a CSS module and rendered via content collection render() would get different class name hashes in the element and the injected <style> tag, causing styles not to apply.

  • #​17323 4298883 Thanks @​ematipico! - Fixes a dev server memory leak which caused Node.js to emit warnings in the console.

  • #​17323 4298883 Thanks @​ematipico! - Fixes a dev server crash when a .html or /index.html suffixed request (such as those netlify dev probes as pretty-URL fallbacks) matched a dynamic endpoint route, causing a TypeError: Missing parameter error

  • #​17325 cebc404 Thanks @​astrobot-houston! - Fixes a bug where CSS @import rules could end up mid-stylesheet after inline CSS chunks were merged during build, causing browsers to silently ignore them

  • #​17323 4298883 Thanks @​ematipico! - Fixes a build regression that could leave unresolved preload markers in inlined scripts with external dynamic imports

  • Updated dependencies [4298883, 4298883]:

v7.0.6

Compare Source

Patch Changes
  • #​17261 79aa99c Thanks @​astrobot-houston! - Fixes a false deprecation warning for markdown.gfm and markdown.smartypants when using the Container API

  • #​17247 f94280d Thanks @​chatman-media! - Fixes route generation throwing "Missing parameter" (or silently dropping the segment) when a dynamic param's value is 0. The generator used truthy checks instead of checking for undefined, so paginate(posts, { params: { categoryId: 0 } }) would crash even though 0 is a perfectly valid param value.

  • #​17278 6f11739 Thanks @​astrobot-houston! - Fixes missing CSS for virtual style modules (e.g., responsive image layout styles) in dev mode when JavaScript is disabled

  • #​17250 0b30b35 Thanks @​matthewp! - Fixes the security.checkOrigin check so it is applied consistently to Astro Actions and on-demand endpoints, regardless of how the request pipeline is composed. Previously, the origin check could be skipped in the composable astro/hono pipeline depending on the order of the middleware() primitive (or when it was omitted).

  • #​17274 8c3579b Thanks @​astrobot-houston! - Fixes missing render() type overload for live collection entries. Previously, calling render() on a LiveDataEntry produced a TypeScript error when using only live.config.ts without a content.config.ts.

  • #​17257 4208297 Thanks @​astrobot-houston! - Fixes astro check failing to find @astrojs/check and typescript when astro is installed in a directory outside the project tree (e.g. pnpm virtual store)

  • #​17272 b428648 Thanks @​matthewp! - Fixes island component paths so that extensionless imports (e.g. import { Counter } from '../components/Counter') resolve to the real file on disk, matching Vite's extension order and directory index resolution. This makes the include/exclude options of JSX renderer integrations (React, Preact, Solid) match components imported without a file extension, and removes the spurious React 19 "Invalid hook call" warning logged on every request in dev when include was set alongside another JSX renderer

  • #​17279 2aeaa44 Thanks @​astrobot-houston! - Fixes a bug where <Picture inferSize> with a remote image could fail with FailedToFetchRemoteImageDimensions when the image server rate-limits requests (e.g. HTTP 429). Remote dimensions are now resolved once per render instead of once per output format.

  • #​17251 5240e26 Thanks @​matthewp! - Hardens the handling of attribute rendering when using with custom elements.

  • #​17248 429bd62 Thanks @​astrobot-houston! - Fixes a crash when using Astro's getViteConfig with Vitest browser mode (e.g., Storybook vitest runner). Astro now skips dev server setup inside Vitest, preventing errors.

  • #​17260 14524c0 Thanks @​matthewp! - Fixes a regression where a <script> inside a component rendered through Astro.slots.render() was hoisted out of its original position instead of staying next to its component content

  • Updated dependencies [eb6f97e]:

v7.0.5

Compare Source

Patch Changes
  • #​17242 9c05ba4 Thanks @​matthewp! - Fixes an error that could occur after the dev server restarts when using an adapter such as @astrojs/cloudflare, where a request would fail with a 500 referencing a missing pre-bundled dependency:

    The file does not exist at "node_modules/.vite/deps_ssr/astro_compiler-runtime.js?v=6419660d" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.
    
  • #​17202 c6d254d Thanks @​matthewp! - Refactors path alias resolution to use Vite's native tsconfigPaths option

    This is an internal change with no expected impact on user projects. Astro now defers tsconfig and jsconfig paths alias resolution to Vite, keeping a small fallback for a few CSS cases Vite does not yet handle.

  • #​17123 72e29bd Thanks @​martrapp! - Fixes an issue where the ClientRouter wipes head elements after page transitions if the <head> contains a server:defer component.

  • #​17232 257505e Thanks @​matthewp! - Fixes a bug where <style> tags from components such as a content collection's Content could be silently dropped from the output when an await appeared before the component in an .astro file's markup.

  • #​17193 a7352fd Thanks @​jan-kubica! - Fixes the background dev server failing to start when astro is hoisted outside the project's node_modules (for example bun workspaces). The background process is now spawned from Astro's own resolved location instead of a path assumed under the project root.

  • #​17255 581d171 Thanks @​astrobot-houston! - Fixes prefetch not working for links inside server:defer components

v7.0.4

Compare Source

Patch Changes
  • #​17212 7ba0bb1 Thanks @​matthewp! - Ensures transition directive values are HTML-escaped when rendered on hydrated islands

  • #​17224 dc5e52f Thanks @​astrobot-houston! - Fixes trailing slash handling for dynamic file endpoints in dev mode. Dynamic file endpoints (e.g., src/pages/api/[name].json.ts) with trailingSlash: "always" incorrectly required a trailing slash in dev mode, returning 404 for /api/bar.json and 200 for /api/bar.json/.

  • #​17067 23f9446 Thanks @​fkatsuhiro! - Fixed a bug where the development toolbar did not output a warning even though the implicit ARIA role and the manually specified role were duplicated.

  • #​17234 d5fbee8 Thanks @​ocavue! - Adds support for sharp v0.35. pnpm users no longer need to approve sharp's build script (see allowBuilds) when on v0.35.

  • #​17223 5970ef4 Thanks @​astrobot-houston! - Fixes getCollection() returning empty in dev mode for large content collections (500k+ entries)

  • #​17184 799e5cd Thanks @​Princesseuh! - Upgrades the Rust compiler to the latest, which fixes some bugs. Refer to its changelog for more information.

  • #​17208 da8b573 Thanks @​matthewp! - Hardens forwarded header handling so the internal request helper validates X-Forwarded-Host against security.allowedDomains before trusting X-Forwarded-For for clientAddress. Previously it only checked that the header was present, which was inconsistent with the public createRequest helper. This aligns both code paths; behavior is unchanged for correctly configured proxies.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 74a76ce to 54a65a5 Compare March 18, 2026 21:28
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.0.5 chore(deps): update dependency astro to v6.0.6 Mar 18, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 54a65a5 to dc45716 Compare March 19, 2026 20:58
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.0.6 chore(deps): update dependency astro to v6.0.7 Mar 19, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from dc45716 to d66a156 Compare March 20, 2026 22:00
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.0.7 chore(deps): update dependency astro to v6.0.8 Mar 20, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from d66a156 to ac7e646 Compare March 26, 2026 18:31
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.0.8 chore(deps): update dependency astro to v6.1.0 Mar 26, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from ac7e646 to daa5265 Compare March 26, 2026 20:43
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.0 chore(deps): update dependency astro to v6.1.1 Mar 26, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from daa5265 to 8baa667 Compare March 30, 2026 17:20
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.1 chore(deps): update dependency astro to v6.1.2 Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 3bea296 to 0603621 Compare April 1, 2026 22:41
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.2 chore(deps): update dependency astro to v6.1.3 Apr 1, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 0603621 to d0fe0fa Compare April 6, 2026 13:18
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.3 chore(deps): update dependency astro to v6.1.4 Apr 6, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from d0fe0fa to b94fd5c Compare April 8, 2026 20:55
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.4 chore(deps): update dependency astro to v6.1.5 Apr 8, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from b94fd5c to c49a7a7 Compare April 13, 2026 18:46
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.5 chore(deps): update dependency astro to v6.1.6 Apr 13, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from c49a7a7 to 6dd58e7 Compare April 16, 2026 09:28
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.6 chore(deps): update dependency astro to v6.1.7 Apr 16, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 6dd58e7 to 77925fa Compare April 18, 2026 12:55
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.7 chore(deps): update dependency astro to v6.1.8 Apr 18, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 77925fa to 8273b0a Compare April 22, 2026 19:56
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.8 chore(deps): update dependency astro to v6.1.9 Apr 22, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 8273b0a to 3c569cd Compare April 28, 2026 16:43
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.1.9 chore(deps): update dependency astro to v6.1.10 Apr 28, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 3c569cd to 1764286 Compare April 29, 2026 18:36
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 14ce452 to 4f4debf Compare May 13, 2026 21:42
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.1 chore(deps): update dependency astro to v6.3.2 May 13, 2026
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.2 chore(deps): update dependency astro to v6.3.3 May 14, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 3689209 to 49ea332 Compare May 18, 2026 18:06
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.3 chore(deps): update dependency astro to v6.3.5 May 18, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 49ea332 to 482e3ac Compare May 20, 2026 13:30
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.5 chore(deps): update dependency astro to v6.3.6 May 20, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 482e3ac to e46bdf3 Compare May 21, 2026 18:50
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.6 chore(deps): update dependency astro to v6.3.7 May 21, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from e46bdf3 to 13c2e31 Compare May 26, 2026 20:52
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.7 chore(deps): update dependency astro to v6.3.8 May 26, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 13c2e31 to 0305ea6 Compare May 28, 2026 14:56
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.3.8 chore(deps): update dependency astro to v6.4.1 May 28, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 0305ea6 to 7ec250e Compare May 28, 2026 20:39
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.4.1 chore(deps): update dependency astro to v6.4.2 May 28, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch 2 times, most recently from 05b252f to 610dcb4 Compare June 2, 2026 17:10
@renovate renovate Bot changed the title chore(deps): update dependency astro to v6.4.2 chore(deps): update astro monorepo to v6.4.3 Jun 2, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 610dcb4 to 59a1614 Compare June 3, 2026 23:58
@renovate renovate Bot changed the title chore(deps): update astro monorepo to v6.4.3 chore(deps): update astro monorepo to v6.4.4 Jun 3, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 59a1614 to 9e19636 Compare June 9, 2026 15:46
@renovate renovate Bot changed the title chore(deps): update astro monorepo to v6.4.4 chore(deps): update astro monorepo to v6.4.5 Jun 9, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 9e19636 to 8f92129 Compare June 10, 2026 19:58
@renovate renovate Bot changed the title chore(deps): update astro monorepo to v6.4.5 chore(deps): update astro monorepo to v6.4.6 Jun 10, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from 8f92129 to de59273 Compare June 15, 2026 11:51
@renovate renovate Bot changed the title chore(deps): update astro monorepo to v6.4.6 chore(deps): update astro monorepo to v6.4.7 Jun 15, 2026
@renovate
renovate Bot force-pushed the renovate/astro-monorepo branch from de59273 to a5743db Compare June 17, 2026 18:36
@renovate renovate Bot changed the title chore(deps): update astro monorepo to v6.4.7 chore(deps): update astro monorepo to v6.4.8 Jun 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants