astro 2.1.0
Minor Changes
-
#6150
b087b83feThanks @morellodev! - Add getStaticPaths type helpers to infer params and props -
#6344
694918a56Thanks @Princesseuh! - Add a new experimental flag (experimental.assets) to enable our new core Assets story.This unlocks a few features:
- A new built-in image component and JavaScript API to transform and optimize images.
- Relative images with automatic optimization in Markdown.
- Support for validating assets using content collections.
- and more!
See Assets (Experimental) on our docs site for more information on how to use this feature!
-
#6435
a20610609Thanks @matthewp! - Expose the manifest to plugins via the astro:ssr-manifest virtual module -
#6394
a4a74ab70Thanks @ematipico! - Add--helpto various commands:check,sync,dev,preview, andbuild -
#6356
75921b3cdThanks @ematipico! - Added a new--watchflag to the commandastro check -
#6213
afbbc4d5bThanks @Princesseuh! - Updated compilation settings to disable downlevelling for Node 14
Patch Changes
-
#6209
fec583909Thanks @bholmesdev! - Introduce the (experimental)@astrojs/markdocintegration. This unlocks Markdoc inside your Content Collections, bringing support for Astro and UI components in your content. This also improves Astro core internals to make Content Collections extensible to more file types in the future.You can install this integration using the
astro addcommand:astro add markdocRead the
@astrojs/markdocdocumentation for usage instructions, and browse the newwith-markdocstarter to try for yourself. -
Updated dependencies [
694918a56,afbbc4d5b]:- @astrojs/markdown-remark@2.1.0
- @astrojs/telemetry@2.1.0
- @astrojs/webapi@2.1.0