Packages

astro

7.4.13 · 18 Nov 2026MIT12.5M / weekRepositoryHomepagenpmAtom feed

Your version

5.14.6

17 Oct 2025Where it was published

5.18.2 is the newest release of 5.x.

In short

1 breaking1 removed2 fixed

  • Breaking

    Adds missing rendered property to experimental live collections entry type

  • Removed

    Removes support for the maxAge property in cacheHint objects returned by live loaders.

Security

20 advisories affect 5.14.6; 7.4.7 fixes them

15 more

Release note

Patch Changes

  • Fixes a bug where the behavior of the "muted" HTML attribute was inconsistent with that of other attributes.

  • Improves how Actions are implemented

  • Removed

    Removes support for the maxAge property in cacheHint objects returned by live loaders.

:warning: Breaking change for experimental live content collections only

Feedback showed that this did not make sense to set at the loader level, since the loader does not know how long each individual entry should be cached for.

If your live loader returns cache hints with `maxAge`, you need to remove this property:

```diff
return {
  entries: [...],
  cacheHint: {
    tags: ['my-tag'],
-   maxAge: 60,
    lastModified: new Date(),
  },
};
```

The `cacheHint` object now only supports `tags` and `lastModified` properties. If you want to set the max age for a page, you can set the headers manually:

```astro
---
Astro.headers.set('cdn-cache-control', 'max-age=3600');
---
```
  • Breaking

    Adds missing rendered property to experimental live collections entry type

    Live collections support a rendered property that allows you to provide pre-rendered HTML for each entry. While this property was documented and implemented, it was missing from the TypeScript types. This could lead to type errors when trying to use it in a TypeScript project.

    No changes to your project code are necessary. You can continue to use the rendered property as before, and it will no longer produce TypeScript errors.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.