Update astro monorepo (major) #167
Open
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 contains the following updates:
0.19.7->4.3.101.4.0->3.6.02.2.1->5.1.32.10.15->5.15.4Release Notes
withastro/astro (@astrojs/mdx)
v4.3.10Compare Source
Patch Changes
#14715
3d55c5dThanks @ascorbic! - Adds support for client hydration ingetContainerRenderer()The
getContainerRenderer()function is exported by Astro framework integrations to simplify the process of rendering framework components when using the experimental Container API inside a Vite or Vitest environment. This update adds the client hydration entrypoint to the returned object, enabling client-side interactivity for components rendered using this function. Previously this required users to manually callcontainer.addClientRenderer()with the appropriate client renderer entrypoint.See the
container-with-vitestdemo for a usage example, and the Container API documentation for more information on using framework components with the experimental Container API.v4.3.9Patch Changes
e3175d9Thanks @GameRoMan! - Updatesviteversion to fix CVEv4.3.8Patch Changes
#14591
3e887ecThanks @matthewp! - Adds TypeScript support for thecomponentsprop on MDXContentcomponent when usingawait render(). Developers now get proper IntelliSense and type checking when passing custom components to override default MDX element rendering.#14598
7b45c65Thanks @delucis! - Reduces terminal text styling dependency size by switching fromkleurtopicocolorsv4.3.7Compare Source
Patch Changes
v4.3.6Compare Source
Patch Changes
v4.3.5Compare Source
Patch Changes
c24a8f4Thanks @jsparkdev! - Updatesviteversion to fix CVEv4.3.4Compare Source
Patch Changes
v4.3.3Compare Source
Patch Changes
v4.3.2Compare Source
Patch Changes
v4.3.1Compare Source
Patch Changes
6bd5f75]:v4.3.0Compare Source
Minor Changes
#13809
3c3b492Thanks @ascorbic! - Increases minimum Node.js version to 18.20.8Node.js 18 has now reached end-of-life and should not be used. For now, Astro will continue to support Node.js 18.20.8, which is the final LTS release of Node.js 18, as well as Node.js 20 and Node.js 22 or later. We will drop support for Node.js 18 in a future release, so we recommend upgrading to Node.js 22 as soon as possible. See Astro's Node.js support policy for more details.
Patch Changes
v4.2.6Compare Source
Patch Changes
c3e80c2Thanks @jsparkdev! - update vite to latest version for fixing CVEv4.2.5Compare Source
Patch Changes
5dd2d3fThanks @florian-lefebvre! - Removes unused codev4.2.4Compare Source
Patch Changes
#13596
3752519Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91Thanks @jsparkdev! - Updates vite to the latest versionv4.2.3Compare Source
Patch Changes
ff9d69eThanks @jsparkdev! - updateviteto the latest versionv4.2.2Patch Changes
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.v4.2.1Patch Changes
#13448
91c9503Thanks @ematipico! - Upgrade to shiki v3Updated dependencies [
91c9503]:v4.2.0Compare Source
Minor Changes
#13352
cb886dcThanks @delucis! - Adds support for a newexperimental.headingIdCompatflagBy default, Astro removes a trailing
-from the end of IDs it generates for headings ending withspecial characters. This differs from the behavior of common Markdown processors.
You can now disable this behavior with a new configuration flag:
This can be useful when heading IDs and anchor links need to behave consistently across your site
and other platforms such as GitHub and npm.
If you are using the
rehypeHeadingIdsplugin directly, you can also pass this new option:Patch Changes
cb886dc,a3327ff]:v4.1.1Compare Source
Patch Changes
v4.1.0Compare Source
Minor Changes
#13254
1e11f5eThanks @p0lyw0lf! - Adds the ability to process and optimize remote images in Markdown syntax in MDX files.Previously, Astro only allowed local images to be optimized when included using
![]()syntax. Astro's image service could only display remote images without any processing.Now, Astro's image service can also optimize remote images written in standard Markdown syntax. This allows you to enjoy the benefits of Astro's image processing when your images are stored externally, for example in a CMS or digital asset manager.
No additional configuration is required to use this feature! Any existing remote images written in Markdown will now automatically be optimized. To opt-out of this processing, write your images in Markdown using the JSX
<img/>tag instead. Note that images located in yourpublic/folder are still never processed.Patch Changes
1e11f5e]:v4.0.8Compare Source
Patch Changes
db252e0]:v4.0.7Compare Source
Patch Changes
cf30880Thanks @ascorbic! - Upgrades Vitev4.0.6Compare Source
Patch Changes
3d89e62]:v4.0.5Compare Source
Patch Changes
3a267f3Thanks @bluwy! - Reverts9a3b48cwhich caused a regression for rendering inline MDX components and MDX files from content collectionsv4.0.4Compare Source
Patch Changes
#12921
aeb7e1aThanks @ascorbic! - Fixes a bug that caused Image component to be imported on MDX pages that did not include images#12913
9a3b48cThanks @bluwy! - Makes internalcheck()function a no-op to allow faster component renders and prevent React 19 component warningsv4.0.3Compare Source
Patch Changes
739dbfbThanks @ascorbic! - Upgrades Vite to pin esbuildv4.0.2Compare Source
Patch Changes
f13417b,87231b1,a71e9b9]:v4.0.1Compare Source
Patch Changes
4f2fd0aThanks @Princesseuh! - Fixes compatibility with Astro 5v4.0.0Compare Source
Major Changes
#12231
90ae100Thanks @bluwy! - Handles the breaking change in Astro where content pages (including.mdxpages located withinsrc/pages/) no longer respond withcharset=utf-8in theContent-Typeheader.For MDX pages without layouts,
@astrojs/mdxwill automatically add the<meta charset="utf-8">tag to the page by default. This reduces the boilerplate needed to write with non-ASCII characters. If your MDX pages have a layout, the layout component should include the<meta charset="utf-8">tag.If you require
charset=utf-8to render your page correctly, make sure that your layout components have the<meta charset="utf-8">tag added.#12008
5608338Thanks @Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
Minor Changes
#12539
827093eThanks @bluwy! - Drops node 21 support#11741
6617491Thanks @bluwy! - Updates adapter server entrypoint to use@astrojs/mdx/server.jsThis is an internal change. Handling JSX in your
.mdxfiles has been moved from Astro internals and is now the responsibility of this integration. You should not notice a change in your project, and no update to your code is required.Patch Changes
#12075
a19530eThanks @bluwy! - Parses frontmatter ourselves#11861
3ab3b4eThanks @bluwy! - Updates@astrojs/markdown-remarkand handle its breaking changes#12533
1b61fdfThanks @ematipico! - Fixes a case where the MDX renderer couldn't be loaded when used as a direct dependency of an Astro integration.Updated dependencies [
3ab3b4e,5608338,560ef15,83a2a64,3ab3b4e,a19530e]:v3.1.9Compare Source
Patch Changes
1d4f6a4Thanks @bmenant! - Addcomponentsproperty to MDXInstance type definition (RenderResult and module import)v3.1.8Compare Source
Patch Changes
710a1a1]:v3.1.7Compare Source
Patch Changes
40e7a1bThanks @bluwy! - Initializes the MDX processor only when there's.mdxfilesv3.1.6Compare Source
Patch Changes
c9ae7b1Thanks @bluwy! - Handles nested root hast node when optimizing MDXv3.1.5Compare Source
Patch Changes
88ef1d0Thanks @bluwy! - Fixes CSS in the layout component to be ordered first before any other components in the MDX filev3.1.4Compare Source
Patch Changes
423614eThanks @bluwy! - Fixes stack trace location when failed to parse an MDX file with frontmatterv3.1.3Compare Source
Patch Changes
49b5145]:v3.1.2Compare Source
Patch Changes
b6afe6a]:v3.1.1Compare Source
Patch Changes
7d59750Thanks @wackbyte! - Refactor to use Astro's integration logger for loggingv3.1.0Compare Source
Minor Changes
#11144
803dd80Thanks @ematipico! - The integration now exposes a function calledgetContainerRenderer, that can be used inside the Container APIs to load the relative renderer.v3.0.1Compare Source
Patch Changes
3cc3e2cThanks @Xetera! - Omitting compiler-internal symbol from user components to fix breaking error messagesv3.0.0Compare Source
Major Changes
#10935
ddd8e49Thanks @bluwy! - Refactors the MDX transformation to rely only on the unified pipeline. Babel and esbuild transformations are removed, which should result in faster build times. The refactor requires using Astro v4.8.0 but no other changes are necessary.#10935
ddd8e49Thanks @bluwy! - Allows integrations after the MDX integration to updatemarkdown.remarkPluginsandmarkdown.rehypePlugins, and have the plugins work in MDX too.If your integration relies on Astro's previous behavior that prevents integrations from adding remark/rehype plugins for MDX, you will now need to configure
@astrojs/mdxwithextendMarkdownConfig: falseand explicitly specify anyremarkPluginsandrehypePluginsoptions instead.#10935
ddd8e49Thanks @bluwy! - Renames theoptimize.customComponentNamesoption tooptimize.ignoreElementNamesto better reflect its usecase. Its behaviour is not changed and should continue to work as before.#10935
ddd8e49Thanks @bluwy! - Replaces the internalremark-images-to-componentplugin withrehype-images-to-componentto let users use additional rehype plugins for imagesPatch Changes
#10935
ddd8e49Thanks @bluwy! - Simplifies plain MDX components as hast element nodes to further improve HTML string inlining for theoptimizeoption#10935
ddd8e49Thanks @bluwy! - Allows Vite plugins to transform.mdxfiles before the MDX plugin transforms it#10935
ddd8e49Thanks @bluwy! - Updates theoptimizeoption to group static sibling nodes as a<Fragment />. This reduces the number of AST nodes and simplifies runtime rendering of MDX pages.#10935
ddd8e49Thanks @bluwy! - Tags the MDX component export for quicker component checks while rendering#10935
ddd8e49Thanks @bluwy! - Fixesexport const componentskeys detection for theoptimizeoption#10935
ddd8e49Thanks @bluwy! - Improvesoptimizehandling for MDX components with attributes and inline MDX componentsv2.3.1Compare Source
Patch Changes
#10754
3e7a12c8532411e580fcfdb8445cad8fc8499291Thanks @rishi-raj-jain! - Fixes an issue where images in MDX required a relative specifier (e.g../)Now, you can use the standard
syntax in MDX files for images colocated in the same folder: no relative specifier required!There is no need to update your project; your existing images will still continue to work. However, you may wish to remove any relative specifiers from these MDX images as they are no longer necessary:
#10770
88ee63a3ba4488c60348cb821034e6d4a057efd0Thanks @bluwy! - Removes internal MDX processor onbuildEndto free up memoryv2.3.0Compare Source
Minor Changes
#10689
683d51a5eecafbbfbfed3910a3f1fbf0b3531b99Thanks @ematipico! - Deprecate support for versions of Node.js older thanv18.17.1for Node.js 18, older thanv20.0.3for Node.js 20, and the complete Node.js v19 release line.This change is in line with Astro's Node.js support policy.
Patch Changes
ccafa8d230f65c9302421a0ce0a0adc5824bfd55]:v2.2.4Compare Source
Patch Changes
db7f9c87035a0de780536d95cdd9facff00c3c08Thanks @bluwy! - Removes unnecessary internalrecmaInjectImportMetaEnvpluginv2.2.3Compare Source
Patch Changes
2cf116f80cb5e421ab5cc5eb4a654e7b78c1b8de,374efcdff9625ca43309d89e3b9cfc9174351512]:v2.2.2Compare Source
Patch Changes
c585528f446ccca3d4c643f4af5d550b93c18902]:v2.2.1Compare Source
Patch Changes
19e42c368184013fc30d1e46753b9e9383bb2bdf]:v2.2.0Compare Source
Minor Changes
#10104
a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18Thanks @remcohaszing! - Changes Astro's internal syntax highlighting to use rehype plugins instead of remark plugins. This provides better interoperability with other rehype plugins that deal with code blocks, in particular with third party syntax highlighting plugins andrehype-mermaid.This may be a breaking change if you are currently using:
htmlraw.Please review your rendered code samples carefully, and if necessary, consider using a rehype plugin that deals with the generated
elementnodes instead. You can transform the AST of raw HTML strings, or alternatively usehast-util-to-htmlto get a string from arawnode.Patch Changes
c081adf998d30419fed97d8fccc11340cdc512e0,5a9528741fa98d017b269c7e4f013058028bdc5d,a31bbd7ff8f3ec62ee507f72d1d25140b82ffc18]:v2.1.1Compare Source
Patch Changes
44c957f893c6bf5f5b7c78301de7b21c5975584d]:v2.1.0Compare Source
Minor Changes
df37366556d46f7abdf82b09e33b08bd94e631b3Thanks @OliverSpeir! - Allows remark plugins to pass options specifying how images in .mdx files will be optimizedv2.0.6Compare Source
Patch Changes
53c69dcc82cdf4000aff13a6c11fffe19096cf45,2f81cffa9da9db0e2802d303f94feaee8d2f54ec,a505190933365268d48139a5f197a3cfb5570870]:v2.0.5Compare Source
Patch Changes
#9706
1539e04a8e5865027b3a8718c6f142885e7c8d88Thanks @bluwy! - Removes redundant HMR handling codeUpdated dependencies [
165cfc154be477337037185c32b308616d1ed6fa,e9a72d9a91a3741566866bcaab11172cb0dc7d31]:v2.0.4Compare Source
Patch Changes
e72efd6a9a1e2a70488fd225529617ffd8418534Thanks @bluwy! - Removes environment variables workaround that broke project builds with sourcemapsv2.0.3Compare Source
Patch Changes
1baf0b0d3cbd0564954c2366a7278794fad6726eThanks @sarah11918! - Updates READMEv2.0.2Compare Source
Patch Changes
e83b5095fThanks @florian-lefebvre! - Upgrades vite to latestv2.0.1Compare Source
Patch Changes
#9366
1b4e91898Thanks @lilnasy! - Updates NPM package to refer to the stable Astro version instead of a beta.Updated dependencies [
270c6cc27]:v2.0.0Compare Source
Major Changes
#9138
abf601233Thanks @bluwy! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.Potentially breaking change: The default value of
markdown.remarkRehype.footnoteBackLabelis changed from"Back to content"to"Back to reference 1". See themdast-util-to-hastcommit for more information.Patch Changes
abf601233,addb57c8e,c7953645e]:v1.1.5Compare Source
Patch Changes
4537ecf0d]:v1.1.4Compare Source
Patch Changes
c5010aad3]:v1.1.3Compare Source
Patch Changes
#8897
5a3d46da1Thanks @remcohaszing! - Update the README to suggest that users install the official MDX extension for VS Code.Updated dependencies [
26b77b8fe]:v1.1.2Compare Source
Patch Changes
2993055be,c4270e476,bd5aa1cd3,f369fa250,391729686,f999365b8,b2ae9ee0c,0abff97fe,3bef32f81]:v1.1.1Compare Source
Patch Changes
#8737
6f60da805Thanks @ematipico! - Add provenance statement when publishing the library from CIUpdated dependencies [
21f482657,6f60da805,d78806dfe,d1c75fe15,aa265d730,78adbc443,21e0757ea,357270f2a]:v1.1.0Compare Source
Minor Changes
#8468
a8d72ceaeThanks @bholmesdev! - Support theimgcomponent export for optimized images. This allows you to customize how optimized images are styled and rendered.When rendering an optimized image, Astro will pass the
ImageMetadataobject to yourimgcomponent as thesrcprop. For unoptimized images (i.e. images using URLs or absolute paths), Astro will continue to pass thesrcas a string.This example handles both cases and applies custom styling:
v1.0.3Compare Source
Patch Changes
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.