Bump astro from 4.13.1 to 4.14.2 in /page
Bumps astro from 4.13.1 to 4.14.2.
Release notes
Sourced from astro's releases.
[email protected]
Patch Changes
[email protected]
Patch Changes
#11725
6c1560fThanks@ascorbic! - Prevents content layer importing node builtins in runtime#11692
35af73aThanks@matthewp! - Prevent errant HTML from crashing server islandsWhen an HTML minifier strips away the server island comment, the script can't correctly know where the end of the fallback content is. This makes it so that it simply doesn't remove any DOM in that scenario. This means the fallback isn't removed, but it also doesn't crash the browser.
#11727
3c2f93bThanks@florian-lefebvre! - Fixes a type issue when using the Content Layer in dev[email protected]
Minor Changes
#11657
a23c69dThanks@bluwy! - Deprecates the option for route-generating files to export a dynamic value forprerender. Only static values are now supported (e.g.export const prerender = trueor= false). This allows for better treeshaking and bundling configuration in the future.Adds a new
"astro:route:setup"hook to the Integrations API to allow you to dynamically set options for a route at build or request time through an integration, such as enabling on-demand server rendering.To migrate from a dynamic export to the new hook, update or remove any dynamic
prerenderexports from individual routing files:// src/pages/blog/[slug].astro - export const prerender = import.meta.env.PRERENDERInstead, create an integration with the
"astro:route:setup"hook and update the route'sprerenderoption:// astro.config.mjs import { defineConfig } from 'astro/config'; import { loadEnv } from 'vite';export default defineConfig({ integrations: [setPrerender()], });
function setPrerender() { const { PRERENDER } = loadEnv(process.env.NODE_ENV, process.cwd(), '');
return { name: 'set-prerender', hooks: { 'astro:route:setup': ({ route }) => { if (route.component.endsWith('/blog/[slug].astro')) { route.prerender = PRERENDER;
... (truncated)
Changelog
Sourced from astro's changelog.
4.14.2
Patch Changes
4.14.1
Patch Changes
#11725
6c1560fThanks@ascorbic! - Prevents content layer importing node builtins in runtime#11692
35af73aThanks@matthewp! - Prevent errant HTML from crashing server islandsWhen an HTML minifier strips away the server island comment, the script can't correctly know where the end of the fallback content is. This makes it so that it simply doesn't remove any DOM in that scenario. This means the fallback isn't removed, but it also doesn't crash the browser.
#11727
3c2f93bThanks@florian-lefebvre! - Fixes a type issue when using the Content Layer in dev4.14.0
Minor Changes
#11657
a23c69dThanks@bluwy! - Deprecates the option for route-generating files to export a dynamic value forprerender. Only static values are now supported (e.g.export const prerender = trueor= false). This allows for better treeshaking and bundling configuration in the future.Adds a new
"astro:route:setup"hook to the Integrations API to allow you to dynamically set options for a route at build or request time through an integration, such as enabling on-demand server rendering.To migrate from a dynamic export to the new hook, update or remove any dynamic
prerenderexports from individual routing files:// src/pages/blog/[slug].astro - export const prerender = import.meta.env.PRERENDERInstead, create an integration with the
"astro:route:setup"hook and update the route'sprerenderoption:// astro.config.mjs import { defineConfig } from 'astro/config'; import { loadEnv } from 'vite';export default defineConfig({ integrations: [setPrerender()], });
function setPrerender() { const { PRERENDER } = loadEnv(process.env.NODE_ENV, process.cwd(), '');
return { name: 'set-prerender', hooks: {
... (truncated)
Commits
0109690[ci] release (#11734)391324dRevert parseArgs change (#11733)91d36fa[ci] release (#11719)87ce238[ci] format70945ddrefactor: enforce node prefix (#11723)3c2f93bfix: content types sync in dev (#11727)6c1560ffix: separate data store into mutable and immutable versions (#11725)4844e1bchore: updates the supported features of test adapter (#11724)934165e[ci] format35af73aPrevent errant HTML from crashing server islands (#11692)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)