Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.Releases
astro@2.0.0-beta.0
Major Changes
#5687
e2019be6f
Thanks @bholmesdev! - Give remark and rehype plugins access to user frontmatter via frontmatter injection. This meansdata.astro.frontmatter
is now the complete Markdown or MDX document's frontmatter, rather than an empty object.This allows plugin authors to modify existing frontmatter, or compute new properties based on other properties. For example, say you want to compute a full image URL based on an
imageSrc
slug in your document frontmatter:Content Collections - new
remarkPluginFrontmatter
propertyWe have changed inject frontmatter to modify frontmatter in our docs to improve discoverability. This is based on support forum feedback, where "injection" is rarely the term used.
To reflect this, the
injectedFrontmatter
property has been renamed toremarkPluginFrontmatter
. This should clarify this plugin is still separate from thedata
export Content Collections expose today.Migration instructions
Plugin authors should now check for user frontmatter when applying defaults.
For example, say a remark plugin wants to apply a default
title
if none is present. Add a conditional to check if the property is present, and update if none exists:This differs from previous behavior, where a Markdown file's frontmatter would always override frontmatter injected via remark or reype.
#5728
8fb28648f
Thanks @natemoo-re! - The previously experimental features--experimental-error-overlay
and--experimental-prerender
, both added in v1.7.0, are now the default.You'll notice that the error overlay during
astro dev
has a refreshed visual design and provides more context for your errors.The
prerender
feature is now enabled by default when usingoutput: 'server'
. To prerender a particular page, addexport const prerender = true
to your frontmatter.#5716
dd56c1941
Thanks @bluwy! - Remove MDX Fragment hack. This was used by@astrojs/mdx
to access theFragment
component, but isn't require anymore since@astrojs/mdx
v0.12.1.#5685
f6cf92b48
Thanks @bluwy! - Upgrade to Vite 4. Please see its migration guide for more information.#5724
16c7d0bfd
Thanks @bluwy! - Remove outdated Vue info log. RemovetoString
support forRenderTemplateResult
.#5684
a9c292026
Thanks @bholmesdev! - Refine Markdown and MDX configuration options for ease-of-use.Markdown
remark-smartypants
from Astro's default Markdown plugins.extendDefaultPlugins
option with a simplifiedgfm
boolean. This is enabled by default, and can be disabled to remove GitHub-Flavored Markdown.remarkPlugins
orrehypePlugins
are configured. If you want to apply custom plugins and remove GFM, manually setgfm: false
in your config.MDX
drafts
) from your MDX integration config. This includessyntaxHighlighting
andshikiConfig
options to further customize the MDX renderer.extendDefaults
to anextendMarkdownConfig
option. MDX options will default to their equivalent in your Markdown config. By settingextendMarkdownConfig
to false, you can "eject" to set your own syntax highlighting, plugins, and more.Migration
To preserve your existing Markdown and MDX setup, you may need some configuration changes:
Smartypants manual installation
Smartypants has been removed from Astro's default setup. If you rely on this plugin, install
remark-smartypants
and apply to yourastro.config.*
:Migrate
extendDefaultPlugins
togfm
You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the
extendDefaultPlugins
option. Since Smartypants has been removed, this has been renamed togfm
.Additionally, applying remark and rehype plugins no longer disables
gfm
. You will need to opt-out manually by settinggfm
tofalse
.Migrate MDX's
extendPlugins
toextendMarkdownConfig
You may have used the
extendPlugins
option to manage plugin defaults in MDX. This has been replaced by 2 flags:extendMarkdownConfig
(true
by default) to toggle Markdown config inheritance. This replaces theextendPlugins: 'markdown'
option.gfm
(true
by default) to toggle GitHub-Flavored Markdown in MDX. This replaces theextendPlugins: 'defaults'
option.#5707
5eba34fcc
Thanks @bluwy! - Remove deprecatedAstro
global APIs, includingAstro.resolve
,Astro.fetchContent
, andAstro.canonicalURL
.Astro.resolve
You can resolve asset paths using
import
instead. For example:See the v0.25 migration guide for more information.
Astro.fetchContent
Use
Astro.glob
instead to fetch markdown files, or migrate to the Content Collections feature.Astro.canonicalURL
Use
Astro.url
instead to construct the canonical URL.#5707
5eba34fcc
Thanks @bluwy! - RemovebuildConfig
option parameter from integrationastro:build:start
hook in favour of thebuild.config
option in theastro:config:setup
hook.Patch Changes
e2019be6f
,a9c292026
]:@astrojs/cloudflare@6.0.0-beta.0
Major Changes
5eba34fcc
Thanks @bluwy! - Removeastro:build:start
backwards compatibility codePatch Changes
e2019be6f
,8fb28648f
,dd56c1941
,f6cf92b48
,16c7d0bfd
,a9c292026
,5eba34fcc
,5eba34fcc
]:@astrojs/deno@4.0.0-beta.0
Major Changes
5eba34fcc
Thanks @bluwy! - Removeastro:build:start
backwards compatibility codePatch Changes
e2019be6f
,8fb28648f
,dd56c1941
,f6cf92b48
,16c7d0bfd
,a9c292026
,5eba34fcc
,5eba34fcc
]:@astrojs/netlify@2.0.0-beta.0
Major Changes
5eba34fcc
Thanks @bluwy! - Removeastro:build:start
backwards compatibility code@astrojs/node@5.0.0-beta.0
Major Changes
5eba34fcc
Thanks @bluwy! - Removeastro:build:start
backwards compatibility codePatch Changes
e2019be6f
,8fb28648f
,dd56c1941
,f6cf92b48
,16c7d0bfd
,a9c292026
,5eba34fcc
,5eba34fcc
]:@astrojs/svelte@2.0.0-beta.0
Major Changes
#5685
f6cf92b48
Thanks @bluwy! - Upgrade to Vite 4. Please see its migration guide for more information.#5685
f6cf92b48
Thanks @bluwy! - Simplify Svelte preprocess setup.<style lang="postcss">
is now required if using PostCSS inside style tags.@astrojs/vercel@3.0.0-beta.0
Major Changes
5eba34fcc
Thanks @bluwy! - Removeastro:build:start
backwards compatibility code@astrojs/vue@2.0.0-beta.0
Major Changes
f6cf92b48
Thanks @bluwy! - Upgrade to Vite 4. Please see its migration guide for more information.@astrojs/markdown-remark@2.0.0-beta.0
Major Changes
#5687
e2019be6f
Thanks @bholmesdev! - Give remark and rehype plugins access to user frontmatter via frontmatter injection. This meansdata.astro.frontmatter
is now the complete Markdown or MDX document's frontmatter, rather than an empty object.This allows plugin authors to modify existing frontmatter, or compute new properties based on other properties. For example, say you want to compute a full image URL based on an
imageSrc
slug in your document frontmatter:Content Collections - new
remarkPluginFrontmatter
propertyWe have changed inject frontmatter to modify frontmatter in our docs to improve discoverability. This is based on support forum feedback, where "injection" is rarely the term used.
To reflect this, the
injectedFrontmatter
property has been renamed toremarkPluginFrontmatter
. This should clarify this plugin is still separate from thedata
export Content Collections expose today.Migration instructions
Plugin authors should now check for user frontmatter when applying defaults.
For example, say a remark plugin wants to apply a default
title
if none is present. Add a conditional to check if the property is present, and update if none exists:This differs from previous behavior, where a Markdown file's frontmatter would always override frontmatter injected via remark or reype.
#5684
a9c292026
Thanks @bholmesdev! - Refine Markdown and MDX configuration options for ease-of-use.Markdown
remark-smartypants
from Astro's default Markdown plugins.extendDefaultPlugins
option with a simplifiedgfm
boolean. This is enabled by default, and can be disabled to remove GitHub-Flavored Markdown.remarkPlugins
orrehypePlugins
are configured. If you want to apply custom plugins and remove GFM, manually setgfm: false
in your config.MDX
drafts
) from your MDX integration config. This includessyntaxHighlighting
andshikiConfig
options to further customize the MDX renderer.extendDefaults
to anextendMarkdownConfig
option. MDX options will default to their equivalent in your Markdown config. By settingextendMarkdownConfig
to false, you can "eject" to set your own syntax highlighting, plugins, and more.Migration
To preserve your existing Markdown and MDX setup, you may need some configuration changes:
Smartypants manual installation
Smartypants has been removed from Astro's default setup. If you rely on this plugin, install
remark-smartypants
and apply to yourastro.config.*
:Migrate
extendDefaultPlugins
togfm
You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the
extendDefaultPlugins
option. Since Smartypants has been removed, this has been renamed togfm
.Additionally, applying remark and rehype plugins no longer disables
gfm
. You will need to opt-out manually by settinggfm
tofalse
.Migrate MDX's
extendPlugins
toextendMarkdownConfig
You may have used the
extendPlugins
option to manage plugin defaults in MDX. This has been replaced by 2 flags:extendMarkdownConfig
(true
by default) to toggle Markdown config inheritance. This replaces theextendPlugins: 'markdown'
option.gfm
(true
by default) to toggle GitHub-Flavored Markdown in MDX. This replaces theextendPlugins: 'defaults'
option.@astrojs/image@0.13.0-beta.0
Minor Changes
5eba34fcc
Thanks @bluwy! - Removeastro:build:start
backwards compatibility code@astrojs/mdx@0.15.0-beta.0
Minor Changes
#5687
e2019be6f
Thanks @bholmesdev! - Give remark and rehype plugins access to user frontmatter via frontmatter injection. This meansdata.astro.frontmatter
is now the complete Markdown or MDX document's frontmatter, rather than an empty object.This allows plugin authors to modify existing frontmatter, or compute new properties based on other properties. For example, say you want to compute a full image URL based on an
imageSrc
slug in your document frontmatter:Content Collections - new
remarkPluginFrontmatter
propertyWe have changed inject frontmatter to modify frontmatter in our docs to improve discoverability. This is based on support forum feedback, where "injection" is rarely the term used.
To reflect this, the
injectedFrontmatter
property has been renamed toremarkPluginFrontmatter
. This should clarify this plugin is still separate from thedata
export Content Collections expose today.Migration instructions
Plugin authors should now check for user frontmatter when applying defaults.
For example, say a remark plugin wants to apply a default
title
if none is present. Add a conditional to check if the property is present, and update if none exists:This differs from previous behavior, where a Markdown file's frontmatter would always override frontmatter injected via remark or reype.
#5684
a9c292026
Thanks @bholmesdev! - Refine Markdown and MDX configuration options for ease-of-use.Markdown
remark-smartypants
from Astro's default Markdown plugins.extendDefaultPlugins
option with a simplifiedgfm
boolean. This is enabled by default, and can be disabled to remove GitHub-Flavored Markdown.remarkPlugins
orrehypePlugins
are configured. If you want to apply custom plugins and remove GFM, manually setgfm: false
in your config.MDX
drafts
) from your MDX integration config. This includessyntaxHighlighting
andshikiConfig
options to further customize the MDX renderer.extendDefaults
to anextendMarkdownConfig
option. MDX options will default to their equivalent in your Markdown config. By settingextendMarkdownConfig
to false, you can "eject" to set your own syntax highlighting, plugins, and more.Migration
To preserve your existing Markdown and MDX setup, you may need some configuration changes:
Smartypants manual installation
Smartypants has been removed from Astro's default setup. If you rely on this plugin, install
remark-smartypants
and apply to yourastro.config.*
:Migrate
extendDefaultPlugins
togfm
You may have disabled Astro's built-in plugins (GitHub-Flavored Markdown and Smartypants) with the
extendDefaultPlugins
option. Since Smartypants has been removed, this has been renamed togfm
.Additionally, applying remark and rehype plugins no longer disables
gfm
. You will need to opt-out manually by settinggfm
tofalse
.Migrate MDX's
extendPlugins
toextendMarkdownConfig
You may have used the
extendPlugins
option to manage plugin defaults in MDX. This has been replaced by 2 flags:extendMarkdownConfig
(true
by default) to toggle Markdown config inheritance. This replaces theextendPlugins: 'markdown'
option.gfm
(true
by default) to toggle GitHub-Flavored Markdown in MDX. This replaces theextendPlugins: 'defaults'
option.Patch Changes
e2019be6f
,a9c292026
]: