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:
^2.0.0
->^3.0.0
Release Notes
withastro/astro (astro)
v3.5.5
Compare Source
Patch Changes
#9091
536c6c9fd
Thanks @ematipico! - TheroutingStrategy
prefix-always
should not force its logic to endpoints. This fixes some regression withastro:assets
and@astrojs/rss
.#9102
60e8210b0
Thanks @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.4
Compare Source
Patch Changes
#9085
fc66ecff1
Thanks @ematipico! - When redirecting to the default root locale, Astro middleare should take into consideration the value oftrailingSlash
#9067
c6e449c5b
Thanks @danielhajduk! - Fixes display of debug messages when using the--verbose
flag#9075
c5dc8f2ec
Thanks @Princesseuh! - Fix Passthrough image service generating multiple images with the same content in certain cases#9083
4537ecf0d
Thanks @bluwy! - Uses newcreateShikiHighlighter
API from@astrojs/markdown-remark
to avoid code duplication#9084
045e5ec97
Thanks @matthewp! - Supportsformmethod
andformaction
for form overrides#9087
b895113a0
Thanks @alexanderniebuhr! - Fixes the regression which broke bundling of image service for pre-rendered pages, which was introduced by #8854#9058
5ef89ef33
Thanks @Princesseuh! - Add a new settings panel to the dev overlay#9045
84312f24f
Thanks @rishi-raj-jain! - Fixes preview servertrailingSlash
handling for request URLs with query stringsUpdated dependencies [
4537ecf0d
]:v3.5.3
Compare Source
Patch Changes
50164f5e3
Thanks @natemoo-re! - Fix a regression introduced in 3.5.0 related to content collection stylesv3.5.2
Compare Source
Patch Changes
1bc331968
Thanks @ematipico! - Correctly infer the presence of an user middlewarev3.5.1
Compare Source
Patch Changes
#9037
ea71975ec
Thanks @sarah11918! - Updates i18n configuration reference#9051
15b84ccb9
Thanks @ematipico! - Fix a regression where endpoints were incorrectly processed during SSG build whentrailingSlash: "always"
#9042
7dedd17fc
Thanks @rishi-raj-jain! - Safely bail when thexclip
command does not exist on Linux when trying to copy to clipboard withastro info
#9050
bf0286e50
Thanks @Princesseuh! - Fix --verbose flag not working#9049
49b82edb2
Thanks @Princesseuh! - Fix image errors when images were used on the clientv3.5.0
Compare Source
Minor Changes
#8869
f5bdfa272
Thanks @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.ts
file themselves. Now, adding third-party middleware is as easy as adding a new integration.For integration authors, there is a new
addMiddleware
function in theastro:config:setup
hook. 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
3e1239e42
Thanks @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
static
site 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 build
from 133.20s to 10.46s, about 92% faster. The end-to-endastro build
process used to take 4min 58s and now takes just over1min
for 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
--force
flag toastro build
.#8963
fda3a0213
Thanks @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
handleForms
prop to the ` component:v3.4.4
Compare Source
Patch Changes
#9000
35739d01e
Thanks @martrapp! - Fixes an error in dev mode on Safari where view transitions prevented navigating to pages withclient:only
components#9014
d979b8f0a
Thanks @Princesseuh! - Add animations, shadows and general styling tweaks to the Dev Overlay to better match the intended design.#8996
3988bbcc9
Thanks @bluwy! - Adds compatibility for shiki languages with thepath
property#8986
910eb00fe
Thanks @Princesseuh! - Fixsizes
attribute not being present onsource
elements when using it on the Picture componentv3.4.3
Compare Source
Patch Changes
#8981
ab7e745cc
Thanks @matthewp! - Increase the scroll restoration throttle time#8940
937522fb7
Thanks @MarvinXu! - Omit nullish and falsy (non-zero) values when stringifying object-formstyle
attributes in Astro filesv3.4.2
Compare Source
Patch Changes
#8977
40a061679
Thanks @matthewp! - Prevent route announcer from being visible#8929
2da33b7a1
Thanks @lilnasy! - Fixes an issue where rendering the same slot multiple times invoked it only once.#8978
cc3278bb6
Thanks @Princesseuh! - In the dev overlay, add a tooltip showing the currently hovered / focused plugin's namev3.4.1
Compare Source
Patch Changes
#8966
262cef248
Thanks @Princesseuh! - Fix Dev Overlay not working properly when view transitions are enabled#8932
5fed432b0
Thanks @Princesseuh! - Fixed window component appearing over the dev overlay on small windows. Added a maximum length to sections of the tooltip component#8965
430c470ac
Thanks @matthewp! - Move VT route announcer styles to a classDoing so allows stricter CSP policies.
#8762
35cd810f0
Thanks @evadecker! - Upgrades Zod to 3.22.4#8928
ca90b47cf
Thanks @HiDeoo! - Renames dev overlay UI Toolkit component names for consistency.v3.4.0
Compare Source
Minor Changes
#8755
fe4079f05
Thanks @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
doctype
or any head content included in the rendered result. You can mark any page as a partial by setting this option:v3.3.4
Compare Source
Patch Changes
#8877
26b77b8fe
Thanks @bluwy! - Fixes CSS modules ordering by rendering styles before linksUpdated dependencies [
341ef6578
]:v3.3.3
Compare Source
Patch Changes
#8870
5ea6ee0ed
Thanks @xstevenyung! - prevent production install on astro add cmd#8840
5c888c10b
Thanks @martrapp! - Fixes styles ofclient:only
components not persisting during view transitions in dev mode#8814
ad2bb9155
Thanks @lilnasy! - Fix an issue where500.astro
did not render when the middleware threw an error.#8863
326e17893
Thanks @florian-lefebvre! - Fixes an issue where the dev server logged the full file path on updates.v3.3.2
Compare Source
Patch Changes
#8852
2c18e2d12
Thanks @rayriffy! - Only use Vite config from astro.config.mjs as source of truth#8828
11f45b9a3
Thanks @rishi-raj-jain! - fix file system path references#8779
2b8a459a6
Thanks @ematipico! - Enriches the explanation of thebase
configuration with examples.v3.3.1
Compare Source
Patch Changes
#8823
8946f2a25
Thanks @Princesseuh! - Fix duplicate images being created in some cases when using densities and/or widths#8842
b405b039a
Thanks @Princesseuh! - Fixes Picture component not taking into account the fallback format specified#8827
ce3025cfa
Thanks @rishi-raj-jain! - better error handling there whenever we don't get a normal 200 response#8817
f8de1983b
Thanks @bluwy! - Fix error overlay syntax highlighting#8838
2f9e2083d
Thanks @dominikg! - deps: unpin and update tsconfck from3.0.0-next.9
to^3.0.0
#8823
8946f2a25
Thanks @Princesseuh! - fix remote srcset images not being resizedv3.3.0
Compare Source
Minor Changes
#8808
2993055be
Thanks @delucis! - Adds support for an--outDir
CLI flag toastro build
#8502
c4270e476
Thanks @bluwy! - Updates the internalshiki
syntax 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
shikiji
now produces a smaller HTML markup by attaching a fallbackcolor
style to thepre
orcode
element, instead of to the linespan
directly. For example:Before:
After:
This does not affect the colors as the
span
will inherit thecolor
from the parent, but if you're relying on a specific HTML markup, please check your site carefully after upgrading to verify the styles.#8798
f369fa250
Thanks @Princesseuh! - Fixedtsconfig.json
's new array format forextends
not working. This was done by migrating Astro to usetsconfck
instead oftsconfig-resolver
to find and parsetsconfig.json
files.#8620
b2ae9ee0c
Thanks @Princesseuh! - Adds experimental support for generatingsrcset
attributes and a new<Picture />
component.v3.2.4
Compare Source
Patch Changes
#8638
160d1cd75
Thanks @florian-lefebvre! - The@astrojs/tailwind
integration now creates atailwind.config.mjs
file by default#8767
30de32436
Thanks @martrapp! - Revert fix #8472#8472 caused some style files from previous pages to not be cleanly deleted on view transitions. For a discussion of a future fix for the original issue #8144 see #8745.
#8741
c4a7ec425
Thanks @lilnasy! - Fixed an issue on Windows where lowercase drive letters in current working directory led to missing scripts and styles.#8772
c24f70d91
Thanks @martrapp! - Fix flickering during view transitions#8754
93b092266
Thanks @bluwy! - Make CSS chunk names less confusing#8776
29cdfa024
Thanks @martrapp! - Fix transition attributes on islands#8773
eaed844ea
Thanks @sumimakito! - Fix an issue where HTML attributes do not render if getHTMLAttributes in an image service returns a Promisev3.2.3
Compare Source
Patch Changes
#8737
6f60da805
Thanks @ematipico! - Add provenance statement when publishing the library from CI#8747
d78806dfe
Thanks @natemoo-re! - Improve error message when user attempts to render a dynamic component reference#8736
d1c75fe15
Thanks @bluwy! - Fixtsconfig.json
update causing the server to crash#8743
aa265d730
Thanks @bluwy! - Remove unused CSS output files when inlined#8700
78adbc443
Thanks @jacobthesheep! - Update link for Netlify SSR#8729
21e0757ea
Thanks @lilnasy! - Node-based adapters now create less server-side javascript#8730
357270f2a
Thanks @natemoo-re! - Improveastro info
copy to clipboard compatabilityUpdated dependencies [
21f482657
,6f60da805
,21e0757ea
]:v3.2.2
Compare Source
Patch Changes
#8724
455af3235
Thanks @bluwy! - Fix CSS styles on Windows#8710
4c2bec681
Thanks @matthewp! - Fixes View transition styles being missing when component used multiple timesv3.2.1
Compare Source
Patch Changes
#8680
31c59ad8b
Thanks @bluwy! - Fix hydration on slow connection#8698
47ea310f0
Thanks @Princesseuh! - Use a Node-specific image endpoint to resolve images in dev and Node SSR. This should fix many issues related to getting 404 from the _image endpoint under certain configurations#8706
345808170
Thanks @bluwy! - Fix duplicated Astro and Vite injected stylesv3.2.0
Compare Source
Minor Changes
#8696
2167ffd72
Thanks @matthewp! - Support adding integrations dynamicallyAstro integrations can now themselves dynamically add and configure additional integrations during set-up. This makes it possible for integration authors to bundle integrations more intelligently for their users.
In the following example, a custom integration checks whether
@astrojs/sitemap
is already configured. If not, the integration adds Astro’s sitemap integration, passing any desired configuration options:#8696
2167ffd72
Thanks @matthewp! - View transitions can now be triggered from JavaScript!Import the client-side router from "astro:transitions/client" and enjoy your new remote control for navigation:
#8696
2167ffd72
Thanks @matthewp! - Route Announcer in<ViewTransitions />
The View Transitions router now does route announcement. When transitioning between pages with a traditional MPA approach, assistive technologies will announce the page title when the page finishes loading. This does not automatically happen during client-side routing, so visitors relying on these technologies to announce routes are not aware when a page has changed.
The view transitions route announcer runs after the
astro:page-load
event, looking for the page<title>
to announce. If one cannot be found, the announcer falls back to the first<h1>
it finds, or otherwise announces the pathname. We recommend you always include a<title>
in each page for accessibility.See the View Transitions docs for more on how accessibility is handled.
Patch Changes
#8647
408b50c5e
Thanks @lilnasy! - Fixed an issue where configured redirects with dynamic routes did not work in dev mode.#8696
2167ffd72
Thanks @matthewp! - Fix logLevel passed to Vite build#8696
2167ffd72
Thanks @matthewp! - Fix NoImageMetadata image path error message#8670
e797b6816
Thanks @MichailiK! - Fix asset optimization failing when outDir is outside the project directory#8684
824dd4670
Thanks @matthewp! - Support content collections with % in filename#8648
cfd895d87
Thanks @lilnasy! - Fixed an issue where a response with status code 404 led to an endless loop of implicit rerouting in dev mode.v3.1.4
Compare Source
Patch Changes
69fbf95b2
Thanks @matthewp! - Fix cases of head propagation not occuring in dev serverv3.1.3
Compare Source
Patch Changes
#8591
863f5171e
Thanks @rishi-raj-jain! - add site url to the location of redirect#8633
63141f3f3
Thanks @Princesseuh! - Fix build not working when having multiple images in the same Markdown file#8636
974d5117a
Thanks @martrapp! - fix: no deletion of scripts during view transition#8645
cb838b84b
Thanks @matthewp! - Fix getDataEntryById to lookup by basename#8640
f36c4295b
Thanks @matthewp! - Warn on empty content collections#8615
4c4ad9d16
Thanks @alexanderniebuhr! - Improve the logging of assets for adapters that do not support image optimizationv3.1.2
Compare Source
Patch Changes
#8612
bcad715ce
Thanks @matthewp! - Ensure cookies are attached when middleware changes the Response#8598
bdd267d08
Thanks @Princesseuh! - Fix relative images in Markdown breaking the build process in certain circumstances#8382
e522a5eb4
Thanks @DerTimonius! - Do not throw an error for an empty collection directory.#8600
ed54d4644
Thanks @FredKSchott! - Improve config info telemetry#8592
70f2a8003
Thanks @bluwy! - Fix alias plugin causing CSS ordering issue#8614
4398e9298
Thanks @lilnasy! - Fixed an issue where spaces and unicode characters in project path prevented middleware from running.#8603
8f8b9069d
Thanks @matthewp! - Prevent body scripts from re-executing on navigation#8609
5a988eaf6
Thanks @bluwy! - Fix Astro HMR from a CSS dependencyUpdated dependencies [
ed54d4644
]:v3.1.1
Compare Source
Patch Changes
#8580
8d361169b
Thanks @rishi-raj-jain! - add hide to style & script generated for island#8568
95b5f6280
Thanks @Princesseuh! - Fix small types issues related toastro:assets
's AVIF support andgetImage
#8579
0586e20e8
Thanks @rishi-raj-jain! - show redirect symbol as of the pagev3.1.0
Compare Source
Minor Changes
#8467
ecc65abbf
Thanks @Princesseuh! - Add a newimage.endpoint
setting to allow using a custom endpoint in dev and SSR#8518
2c4fc878b
Thanks @Princesseuh! - Adds support for using AVIF (.avif
) files with the Image component. Importing an AVIF file will now correctly return the same object shape as other image file types. See the Image docs for more information on the different properties available on the returned object.#8464
c92e0acd7
Thanks @Princesseuh! - Add types for the object syntax forstyle
(ex:style={{color: 'red'}}
)Patch Changes
#8532
7522bb491
Thanks @bluwy! - Improve markdown rendering performance by sharing processor instance#8537
f95febf96
Thanks @martrapp! - bugfix checking media-type in client-side router#8536
b85c8a78a
Thanks @Princesseuh! - Improved error messages aroundastro:assets
#7607
45364c345
Thanks @FineWolf! - AddCollectionKey
,ContentCollectionKey
, andDataCollectionKey
exports toastro:content
Updated dependencies [
d93987824
,7522bb491
]:v3.0.13
Compare Source
Patch Changes
#8484
78b82bb39
Thanks @bb010g! - fix(astro): add support forsrc/content/config.mts
files#8504
5e1099f68
Thanks @ematipico! - Minify the HTML of the redicts emitted during the build.#8480
644825845
Thanks @yamanoku! - Do not add type="text/css" to inline style tag#8472
fa77fa63d
Thanks @matthewp! - Prevent client:only styles from being removed in dev (View Transitions)#8506
23f9536de
Thanks @mascii! - chore: correct description ofattribute
option inscopedStyleStrategy
#8505
2db9762eb
Thanks @martrapp! - Restore horizontal scroll position on history navigation (view transitions)#8461
435b10549
Thanks @rdwz! - Fix lang unspecified code blocks (markdownlint MD040)#8492
a6a516d94
Thanks @xiBread! - fix(types): makeimage.service
optional#8522
43bc5f2a5
Thanks @martrapp! - let view transitions handle same origin redirects#8491
0ca332ba4
Thanks @martrapp! - Bugfixes for back navigation in the view transition client-side routerv3.0.12
Compare Source
Patch Changes
7eea37a07
Thanks @matthewp! - Fix multi-layout head injectionv3.0.11
Compare Source
Patch Changes
#8441
f66053a1e
Thanks @martrapp! - Only transition between pages where both have ViewTransitions enabled#8443
0fa483283
Thanks @the-dijkstra! - Fix "Cannot read properties of null" error in CLI codeUpdated dependencies [
f3f62a5a2
]:v3.0.10
Compare Source
Patch Changes
#8437
b3cf1b327
Thanks @Princesseuh! - Fix imports of images with uppercased file extensions not working#8440
b92d066b7
Thanks @natemoo-re! - Fix issue whererenderToFinalDestination
would throw in internal Astro codev3.0.9
Compare Source
Patch Changes
#8351
7d95bd9ba
Thanks @lilnasy! - Fixed a case where dynamic imports tried to preload inlined stylesheets.#8353
1947ef7a9
Thanks @elevatebart! - Astro will now skip asset optimization when there is a query in the import. Instead, it will let vite deal with it using plugins.#8424
61ad70fdc
Thanks @itsmatteomanf! - Fixes remote assets caching logic to not use expired assets#8306
d2f2a11cd
Thanks @jacobthesheep! - Support detecting Bun when logging messages with package manager information.#8414
5126c6a40
Thanks @Princesseuh! - Fix missing type forimageConfig
export fromastro:assets
#8416
48ff7855b
Thanks @Princesseuh! - Installing will no longer fail when Sharp can't be installed#8418
923a443cb
Thanks @bluwy! - Fix markdown page HMR#8332
8935b3b46
Thanks @martrapp! - Fix scroll position when navigating back from page w/o ViewTransitionsv3.0.8
Compare Source
Patch Changes
#8388
362491b8d
Thanks @natemoo-re! - Properly handleBEFORE_HYDRATION_SCRIPT
generation, fixing MIME type error on hydration.#8370
06e7256b5
Thanks @itsmatteomanf! - Removed extra curly brace.v3.0.7
Compare Source
Patch Changes
#8366
c5633434f
Thanks @natemoo-re! - UpdatechunkFileNames
to avoid emitting invalid characters#8367
405ad9501
Thanks @Princesseuh! - Fixtsc
complaining about imports of.astro
files in specific cases#8357
6b1e79814
Thanks @itsmatteomanf! - Added counter to show progress for assets image generation.Fixed small unit of measurement error.
Updated dependencies [
0ce0720c7
]:v3.0.6
Compare Source
Patch Changes
d3a6f9f83
Thanks [@FredKSchott](https://togithub.com/FredKSchoConfiguration
📅 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.