Following quick within the footsteps of the Astro 4.1 release, Astro 4.2 has arrived, bringing enhancements to accessibility guidelines and the power for comment plugins to customise picture optimization.
The Astro 4.2 launch additionally introduces prerendering utilizing the Hypothesis Guidelines API and reworked routing precedence for injected routes, each experimental options.
Improved accessibility guidelines added to the Astro Dev Instrument Bar in Astro 4.0 have been improved to be extra correct, following a meticulous studying of WCAG (Internet Content material Accessibility Tips). Additionally, comment plugins now can customise how pictures are optimized in Markdown information. Beforehand, each picture included in these information utilizing the native syntax used Astro’s default settings for picture optimizations. With the replace, comment plugins now can add properties to
picture nodes to customise optimization.
In an experimental functionality,
One other experimental characteristic reworks precedence for injected routes. With an experimental flag enabled, routes injected utilizing the
injectroute() API, in addition to redirects, will observe the identical precedence order that routes from the filesystems do, which ought to present extra steady, constant precedence ordering guidelines for all challenge routes.
A brand new
redirectToDefaultLocale config choice offers the power to disable automated redirects of the basis URL to the default location when
prefixDefaultLocale: true is ready. That is now attainable with the brand new
redirectToDefaultLocale: false choice.
Copyright © 2024 IDG Communications, Inc.