chore(deps): update astro monorepo #21
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:
5.0.0->5.1.53.0.12->3.6.5Release Notes
withastro/astro (@astrojs/tailwind)
v5.1.5Compare Source
Patch Changes
cf30880Thanks @ascorbic! - Upgrades Vitev5.1.4Compare Source
Patch Changes
739dbfbThanks @ascorbic! - Upgrades Vite to pin esbuildv5.1.3Compare Source
Patch Changes
4f2fd0aThanks @Princesseuh! - Fixes compatibility with Astro 5v5.1.2Compare Source
Patch Changes
8e500f2Thanks @delucis! - Adds keywords topackage.jsonto improve categorization in the Astro integrations catalogv5.1.1Compare Source
Patch Changes
dcd1158Thanks @matthewp! - Make @astrojs/tailwind compat with Astro 5v5.1.0Compare Source
Minor Changes
d252fc61b04c1491f51822f5e23fabd404d84d40Thanks @bluwy! - Addsnestingoption to enabletailwindcss/nestingsupportPatch Changes
1baf0b0d3cbd0564954c2366a7278794fad6726eThanks @sarah11918! - Updates READMEv5.0.4Compare Source
Patch Changes
e83b5095fThanks @florian-lefebvre! - Upgrades vite to latestv5.0.3Compare Source
Patch Changes
#9313
2f110a501Thanks @matthewp! - Upgrade for compatibility with Astro 4The Tailwind now supports both Astro 3 and Astro 4.
v5.0.2Compare Source
Patch Changes
#8638
160d1cd75Thanks @florian-lefebvre! - The@astrojs/tailwindintegration now creates atailwind.config.mjsfile by defaultUpdated dependencies [
160d1cd75,30de32436,c4a7ec425,c24f70d91,93b092266,29cdfa024,eaed844ea]:v5.0.1Compare Source
Patch Changes
#8737
6f60da805Thanks @ematipico! - Add provenance statement when publishing the library from CIUpdated dependencies [
6f60da805,d78806dfe,d1c75fe15,aa265d730,78adbc443,21e0757ea,357270f2a]:withastro/astro (astro)
v3.6.5Compare Source
Patch Changes
#10287
a90d685d7Thanks @ematipico! - Fixes an issue where in Node SSR, the image endpoint could be used maliciously to reveal unintended information about the underlying system.Thanks to Google Security Team for reporting this issue.
v3.6.4Compare Source
Patch Changes
#9226
8f8a40e93Thanks @outofambit! - Fix i18n fallback routing with routing strategy of always-prefix#9179
3f28336d9Thanks @lilnasy! - Fixes an issue where the presence of a slot in a page led to an error.#9219
067a65f5bThanks @natemoo-re! - Fix edge case where<style>updates inside of.astrofiles would ocassionally fail to update without reloading the page.#9236
27d3e86e4Thanks @ematipico! - The configurationi18n.routingStrategyhas been replaced with an object calledrouting.export default defineConfig({ experimental: { i18n: { - routingStrategy: "prefix-always", + routing: { + prefixDefaultLocale: true, + } } } })export default defineConfig({ experimental: { i18n: { - routingStrategy: "prefix-other-locales", + routing: { + prefixDefaultLocale: false, + } } } })v3.6.3Compare Source
Patch Changes
0dc99c9a2Thanks @florian-lefebvre! - Prevents the Code component from crashing if the lang isn't supported by falling back toplaintext.v3.6.2Compare Source
Patch Changes
d90714fc3Thanks @SpencerWhitehead7! - Fixes an issue where links with the same pathname as the current page, but different search params, were not prefetched.v3.6.1Compare Source
Patch Changes
#9173
04fdc1c61Thanks @lilnasy! - Fixes an issue where having a middleware prevented the SSR app from being deployed on Netlify.#9186
607542c7cThanks @martrapp! - Fixes a view transition issue on webKit browsers that prevented scrolling to #fragmentsv3.6.0Compare Source
Minor Changes
#9090
c87223c21Thanks @martrapp! - Take full control over the behavior of view transitions!Three new events now complement the existing
astro:after-swapandastro:page-loadevents:The
astro:before-*events allow you to change properties and strategies of the view transition implementation.The
astro:after-*events are notifications that a phase is complete.Head over to docs to see the full view transitions lifecycle including these new events!
#9092
0ea4bd47eThanks @smitbarmase! - Changes the fallback prefetch behavior on slow connections and when data saver mode is enabled. Instead of disabling prefetch entirely, thetapstrategy will be used.#9166
cba6cf32dThanks @matthewp! - The Picture component is no longer experimentalThe
<Picture />component, part ofastro:assets, has exited experimental status and is now recommended for use. There are no code changes to the component, and no upgrade to your project is necessary.This is only a change in documentation/recommendation. If you were waiting to use the
<Picture />component until it had exited the experimental stage, wait no more!#9092
0ea4bd47eThanks @smitbarmase! - Adds aignoreSlowConnectionoption to theprefetch()API to prefetch even on data saver mode or slow connection.v3.5.7Compare Source
Patch Changes
7ff8d62bfThanks @ematipico! - Revert fix around fallback system, which broken injected stylesv3.5.6Compare Source
Patch Changes
#9121
f4efd1c80Thanks @peng! - Adds a warning ifastro addfetches a package but returns a non-404 status#9142
7d55cf68dThanks @ematipico! - Consistely emit fallback routes in the correct folders.#9119
306781795Thanks @ematipico! - Fix a flaw in the i18n fallback logic, where the routes didn't preserve their metadata, such as hoisted scripts#9140
7742fd7dcThanks @martrapp! - View Transitions: handle clicks on SVGAElements and image maps"#9101
e3dce215aThanks @ematipico! - Add a new propertyAstro.currentLocale, available wheni18nis enabled.v3.5.5Compare Source
Patch Changes
#9091
536c6c9fdThanks @ematipico! - TheroutingStrategyprefix-alwaysshould not force its logic to endpoints. This fixes some regression withastro:assetsand@astrojs/rss.#9102
60e8210b0Thanks @Princesseuh! - In the dev overlay, when there's too many plugins enabled at once, some of the plugins will now be hidden in a separate sub menu to avoid the bar becoming too longv3.5.4Compare Source
Patch Changes
#9085
fc66ecff1Thanks @ematipico! - When redirecting to the default root locale, Astro middleare should take into consideration the value oftrailingSlash#9067
c6e449c5bThanks @danielhajduk! - Fixes display of debug messages when using the--verboseflag#9075
c5dc8f2ecThanks @Princesseuh! - Fix Passthrough image service generating multiple images with the same content in certain cases#9083
4537ecf0dThanks @bluwy! - Uses newcreateShikiHighlighterAPI from@astrojs/markdown-remarkto avoid code duplication#9084
045e5ec97Thanks @matthewp! - Supportsformmethodandformactionfor form overrides#9087
b895113a0Thanks @alexanderniebuhr! - Fixes the regression which broke bundling of image service for pre-rendered pages, which was introduced by #8854#9058
5ef89ef33Thanks @Princesseuh! - Add a new settings panel to the dev overlay#9045
84312f24fThanks @rishi-raj-jain! - Fixes preview servertrailingSlashhandling for request URLs with query stringsUpdated dependencies [
4537ecf0d]:v3.5.3Compare Source
Patch Changes
50164f5e3Thanks @natemoo-re! - Fix a regression introduced in 3.5.0 related to content collection stylesv3.5.2Compare Source
Patch Changes
1bc331968Thanks @ematipico! - Correctly infer the presence of an user middlewarev3.5.1Compare Source
Patch Changes
#9037
ea71975ecThanks @sarah11918! - Updates i18n configuration reference#9051
15b84ccb9Thanks @ematipico! - Fix a regression where endpoints were incorrectly processed during SSG build whentrailingSlash: "always"#9042
7dedd17fcThanks @rishi-raj-jain! - Safely bail when thexclipcommand does not exist on Linux when trying to copy to clipboard withastro info#9050
bf0286e50Thanks @Princesseuh! - Fix --verbose flag not working#9049
49b82edb2Thanks @Princesseuh! - Fix image errors when images were used on the clientv3.5.0Compare Source
Minor Changes
#8869
f5bdfa272Thanks @matthewp! - ## Integration Hooks to add MiddlewareIt's now possible in Astro for an integration to add middleware on behalf of the user. Previously when a third party wanted to provide middleware, the user would need to create a
src/middleware.tsfile themselves. Now, adding third-party middleware is as easy as adding a new integration.For integration authors, there is a new
addMiddlewarefunction in theastro:config:setuphook. This function allows you to specify a middleware module and the order in which it should be applied:You can now add your integration's middleware and specify that it runs either before or after the application's own defined middleware (defined in
src/middleware.{js,ts})#8854
3e1239e42Thanks @natemoo-re! - Provides a new, experimental build cache for Content Collections as part of the Incremental Build RFC. This includes multiple refactors to Astro's build process to optimize how Content Collections are handled, which should provide significant performance improvements for users with many collections.Users building a
staticsite can opt-in to preview the new build cache by adding the following flag to your Astro config:When this experimental feature is enabled, the files generated from your content collections will be stored in the
cacheDir(by default,node_modules/.astro) and reused between builds. Most CI environments automatically restore files innode_modules/by default.In our internal testing on the real world Astro Docs project, this feature reduces the bundling step of
astro buildfrom 133.20s to 10.46s, about 92% faster. The end-to-endastro buildprocess used to take 4min 58s and now takes just over1minfor a total reduction of 80%.If you run into any issues with this experimental feature, please let us know!
You can always bypass the cache for a single build by passing the
--forceflag toastro build.#8963
fda3a0213Thanks @matthewp! - Form support in View Transitions routerThe
<ViewTransitions />router can now handle form submissions, allowing the same animated transitions and stateful UI retention on form posts that are already available on<a>links. With this addition, your Astro project can have animations in all of these scenarios:navigate()API.This feature is opt-in for semver reasons and can be enabled by adding the
handleFormsprop to the ` component:Just as with links, if you don't want the routing handling a form submission, you can opt out on a per-form basis with the
data-astro-reloadproperty:Form support works on post
method="get"andmethod="post"forms.#8954
f0031b0a3Thanks @Princesseuh! - Updates the Image Services API to now delete original images from the final build that are not used outside of the optimization pipeline. For users with a large number of these images (e.g. thumbnails), this should reduce storage consumption and deployment times.#8984
26b1484e8Thanks @Princesseuh! - Adds a new propertypropertiesToHashto the Image Services API to allow specifying which properties ofgetImage()/<Image />/<Picture />should be used for hashing the result files when doing local transformations. For most services, this will include properties such assrc,widthorqualitythat directly changes the content of the generated image.#9010
100b61ab5Thanks @jasikpark! - The<Picture />component will now usejpgandjpegrespectively as fallback formats when the original image is in those formats.#8974
143bacf39Thanks @ematipico! - Experimental support for i18n routing.Astro's experimental i18n routing API allows you to add your multilingual content with support for configuring a default language, computing relative page URLs, and accepting preferred languages provided by your visitor's browser. You can also specify fallback languages on a per-language basis so that your visitors can always be directed to existing content on your site.
Enable the experimental routing option by adding an
i18nobject to your Astro configuration with a default location and a list of all languages to support:Organize your content folders by locale depending on your
i18n.routingStrategy, and Astro will handle generating your routes and showing your preferred URLs to your visitors.Compute relative URLs for your links with
getRelativeLocaleUrlfrom the newastro:i18nmodule:Enabling i18n routing also provides two new properties for browser language detection:
Astro.preferredLocaleandAstro.preferredLocaleList. These combine the browser'sAccept-Langaugeheader, and your site's list of supported languages and can be used to automatically respect your visitor's preferred languages.Read more about Astro's experimental i18n routing in our documentation.
#8951
38e21d127Thanks @bluwy! - Prefetching is now supported in coreYou can enable prefetching for your site with the
prefetch: trueconfig. It is enabled by default when using View Transitions and can also be used to configure theprefetchbehaviour used by View Transitions.You can enable prefetching by setting
prefetch:truein your Astro config:This replaces the
@astrojs/prefetchintegration, which is now deprecated and will eventually be removed.Visit the Prefetch guide for more information.
#8903
c5010aad3Thanks @horo-fox! - Adds experimental support for multiple shiki themes with the newmarkdown.shikiConfig.experimentalThemesoption.Patch Changes
#9016
1ecc9aa32Thanks @Princesseuh! - Add ability to "Click to go editor" on auditted elements in the dev overlay#9029
29b83e9e4Thanks @Princesseuh! - Use UInt8Array instead of Buffer for both the input and return values of thetransform()hook of the Image Service API to ensure compatibility with non-Node runtimes.This change is unlikely to affect you, but if you were previously relying on the return value being a Buffer, you may convert an
UInt8Arrayto aBufferusingBuffer.from(your_array).Updated dependencies [
c5010aad3]:v3.4.4Compare Source
Patch Changes
#9000
35739d01eThanks @martrapp! - Fixes an error in dev mode on Safari where view transitions prevented navigating to pages withclient:onlycomponents#9014
d979b8f0aThanks @Princesseuh! - Add animations, shadows and general styling tweaks to the Dev Overlay to better match the intended design.#8996
3988bbcc9Thanks @bluwy! - Adds compatibility for shiki languages with thepathproperty#8986
910eb00feThanks @Princesseuh! - Fixsizesattribute not being present onsourceelements when using it on the Picture componentv3.4.3Compare Source
Patch Changes
#8981
ab7e745ccThanks @matthewp! - Increase the scroll restoration throttle time#8940
937522fb7Thanks @MarvinXu! - Omit nullish and falsy (non-zero) values when stringifying object-formstyleattributes in Astro filesv3.4.2Compare Source
Patch Changes
#8977
40a061679Thanks @matthewp! - Prevent route announcer from being visible#8929
2da33b7a1Thanks @lilnasy! - Fixes an issue where rendering the same slot multiple times invoked it only once.#8978
cc3278bb6Thanks @Princesseuh! - In the dev overlay, add a tooltip showing the currently hovered / focused plugin's namev3.4.1Compare Source
Patch Changes
#8966
262cef248Thanks @Princesseuh! - Fix Dev Overlay not working properly when view transitions are enabled#8932
5fed432b0Thanks @Princesseuh! - Fixed window component appearing over the dev overlay on small windows. Added a maximum length to sections of the tooltip component#8965
430c470acThanks @matthewp! - Move VT route announcer styles to a classDoing so allows stricter CSP policies.
#8762
35cd810f0Thanks @evadecker! - Upgrades Zod to 3.22.4#8928
ca90b47cfThanks @HiDeoo! - Renames dev overlay UI Toolkit component names for consistency.v3.4.0Compare Source
Minor Changes
#8755
fe4079f05Thanks @matthewp! - Page PartialsA page component can now be identified as a partial page, which will render its HTML content without including a
<! DOCTYPE html>declaration nor any<head>content.A rendering library, like htmx or Stimulus or even just jQuery can access partial content on the client to dynamically update only parts of a page.
Pages marked as partials do not have a
doctypeor any head content included in the rendered result. You can mark any page as a partial by setting this option:Other valid page files that can export a value (e.g.
.mdx) can also be marked as partials.Read more about Astro page partials in our documentation.
#8821
4740d761aThanks @Princesseuh! - Improved image optimization performanceAstro will now generate optimized images concurrently at build time, which can significantly speed up build times for sites with many images. Additionally, Astro will now reuse the same buffer for all variants of an image. This should improve performance for websites with many variants of the same image, especially when using remote images.
No code changes are required to take advantage of these improvements.
#8757
e99586787Thanks @Princesseuh! - Dev Overlay (experimental)Provides a new dev overlay for your browser preview that allows you to inspect your page islands, see helpful audits on performance and accessibility, and more. A Dev Overlay Plugin API is also included to allow you to add new features and third-party integrations to it.
You can enable access to the dev overlay and its API by adding the following flag to your Astro config:
Read the Dev Overlay Plugin API documentation for information about building your own plugins to integrate with Astro's dev overlay.
#8880
8c3d4a859Thanks @alexanderniebuhr! - Moves the logic for overriding the image service out of core and into adapters. Also fixes a regression where a validastro:assetsimage service configuration could be overridden.v3.3.4Compare Source
Patch Changes
#8877
26b77b8feThanks @bluwy! - Fixes CSS modules ordering by rendering styles before linksUpdated dependencies [
341ef6578]:v3.3.3Compare Source
Patch Changes
#8870
5ea6ee0edThanks @xstevenyung! - prevent production install on astro add cmd#8840
5c888c10bThanks @martrapp! - Fixes styles ofclient:onlycomponents not persisting during view transitions in dev mode#8814
ad2bb9155Thanks @lilnasy! - Fix an issue where500.astrodid not render when the middleware threw an error.#8863
326e17893Thanks @florian-lefebvre! - Fixes an issue where the dev server logged the full file path on updates.v3.3.2Compare Source
Patch Changes
#8852
2c18e2d12Thanks @rayriffy! - Only use Vite config from astro.config.mjs as source of truth#8828
11f45b9a3Thanks @rishi-raj-jain! - fix file system path references#8779
2b8a459a6Thanks @ematipico! - Enriches the explanation of thebaseconfiguration with examples.v3.3.1Compare Source
Patch Changes
#8823
8946f2a25Thanks @Princesseuh! - Fix duplicate images being created in some cases when using densities and/or widths#8842
b405b039aThanks @Princesseuh! - Fixes Picture component not taking into account the fallback format specified#8827
ce3025cfaThanks @rishi-raj-jain! - better error handling there whenever we don't get a normal 200 response#8817
f8de1983bThanks @bluwy! - Fix error overlay syntax highlighting#8838
2f9e2083dThanks @dominikg! - deps: unpin and update tsconfck from3.0.0-next.9to^3.0.0#8823
8946f2a25Thanks @Princesseuh! - fix remote srcset images not being resizedv3.3.0Compare Source
Minor Changes
#8808
2993055beThanks @delucis! - Adds support for an--outDirCLI flag toastro build#8502
c4270e476Thanks @bluwy! - Updates the internalshikisyntax highlighter toshikiji, an ESM-focused alternative that simplifies bundling and maintenance.There are no new options and no changes to how you author code blocks and syntax highlighting.
Potentially breaking change: While this refactor should be transparent for most projects, the transition to
shikijinow produces a smaller HTML markup by attaching a fallbackcolorstyle to thepreorcodeelement, instead of to the linespandirectly. For example:Before:
After:
This does not affect the colors as the
spanwill inherit thecolorfrom the parent, but if you're relying on a specific HTML markup, please check your site carefully after upgrading to verify the styles.#8798
f369fa250Thanks @Princesseuh! - Fixedtsconfig.json's new array format forextendsnot working. This was done by migrating Astro to usetsconfckinstead oftsconfig-resolverto find and parsetsconfig.jsonfiles.#8620
b2ae9ee0cThanks @Princesseuh! - Adds experimental support for generatingsrcsetattributes and a new<Picture />component.srcsetsupportPicture component
Patch Changes
#8771
bd5aa1cd3Thanks @lilnasy! - Fixed an issue where the transitions router did not work within framework components.#8800
391729686Thanks @lilnasy! - Fixed an issue where attempting to assign a variable onto locals threw an error.#8795
f999365b8Thanks @bluwy! - Fix markdown page charset to be utf-8 by default (same as Astro 2)[#R
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.