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.2.1
->2.3.2
2.4.3
->2.4.4
2.0.0
->2.0.2
2.8.1
->2.10.15
Release Notes
withastro/astro (@astrojs/react)
v2.3.2
Compare Source
Patch Changes
531cc3e49
Thanks @matthewp! - Fix missing package file regressionv2.3.1
Compare Source
Patch Changes
8c0a4ed10
Thanks @natemoo-re! - Fix missing export for newexperimentalReactChildren
optionv2.3.0
Compare Source
Minor Changes
#8082
16a3fdf93
Thanks @matthewp! - Optionally parse React slots as React children.This adds a new configuration option for the React integration
experimentalReactChildren
:With this enabled, children passed to React from Astro components via the default slot are parsed as React components.
This enables better compatibility with certain React components which manipulate their children.
v2.2.2
Compare Source
Patch Changes
da517d405
Thanks @SudoCat! - fix a bug where react identifierPrefix was set to null for client:only components causing React.useId to generate ids prefixed with nullwithastro/astro (@astrojs/rss)
v2.4.4
Compare Source
Patch Changes
51028f85c
Thanks @DerTimonius! - Add URL to RSSOptions.site typewithastro/astro (@astrojs/sitemap)
v2.0.2
Compare Source
Patch Changes
bee284cb7
Thanks @martrapp! - docs: fix github search link in README.mdv2.0.1
Compare Source
Patch Changes
77ffcc8f8
Thanks @natemoo-re! - Ensure nested 404 and 500 pages are always excludedwithastro/astro (astro)
v2.10.15
Compare Source
Patch Changes
3b0d805bd
Thanks @matthewp! - Prevent ViewTransition script from being added by mistakev2.10.14
Compare Source
Patch Changes
52606a390
Thanks @martrapp! - fix: View Transition: swap attributes of document's root elementv2.10.13
Compare Source
Patch Changes
#8152
582132328
Thanks @andremralves! - Displays a new config error ifoutDir
is placed withinpublicDir
.#8166
fddd4dc71
Thanks @martrapp! - ViewTransitions: Fixes in the client-side router#8182
cfc465dde
Thanks @martrapp! - View Transitions: self link (href=""
) does not trigger page reload#8171
95120efbe
Thanks @Princesseuh! - Fix missing type forimageConfig
export fromastro:assets
#8187
273335cb0
Thanks @bluwy! - Fix Astro components parent-child render order#8184
9142178b1
Thanks @martrapp! - Fix: The scrolling behavior of ViewTransitions is now more similar to the expected browser behavior#8163
179796405
Thanks @delucis! - Make typing ofdefineCollection
more permissive to support advanced union and intersection typesv2.10.12
Compare Source
Patch Changes
04caa99c4
Thanks @lilnasy! - Fixed an issue where data entries' id included backslashes instead of forward slashes on Windows.v2.10.11
Compare Source
Patch Changes
97c8760d7
Thanks @andremralves! - Fix 404 response leading to an infinite loop when there is no 404 page.v2.10.10
Compare Source
Patch Changes
#8127
b12c8471f
Thanks @natemoo-re! - Do not throw Error when users pass an object with a "type" property#8092
7177f7579
Thanks @natemoo-re! - Ensure dotfiles are cleaned during static builds#8122
fa6b68a77
Thanks @natemoo-re! - Improve fidelity of time stats when runningastro build
#8070
097a8e4e9
Thanks @lilnasy! - Fix a handful of edge cases with prerendered 404/500 pages#8123
1f6497c33
Thanks @natemoo-re! - Open to configuredbase
whenastro dev --open
runs#8105
0e0fa605d
Thanks @martrapp! - ViewTransition: bug fix for lost scroll position in browser history#8116
b290f0a99
Thanks @martrapp! - On back navigation only animate view transitions that were animated going forward.#7778
d6b494376
Thanks @y-nk! - Added support for optimizing remote images from authorized sources when usingastro:assets
. This comes with two new parameters to specify which domains (image.domains
) and host patterns (image.remotePatterns
) are authorized for remote images.For example, the following configuration will only allow remote images from
astro.build
to be optimized:The following configuration will only allow remote images from HTTPS hosts:
#8109
da6e3da1c
Thanks @martrapp! - fix: reinsert attribute to specify direction of ViewTransition (forward / back)v2.10.9
Compare Source
Patch Changes
56e7c5177
Thanks @martrapp! - Handle<noscript>
tags in<head>
during ViewTransitionsv2.10.8
Compare Source
Patch Changes
#7702
c19987df0
Thanks @shishkin! - Fix AstroConfigSchema type export#8084
560e45924
Thanks @hbgl! - Stream request body instead of buffering it in memory.#8066
afc45af20
Thanks @Princesseuh! - Add support for non-awaited imports to the Image component andgetImage
#7866
d1f7143f9
Thanks @43081j! - Add second type argument to the AstroGlobal type to type Astro.self. This change will ultimately allow our editor tooling to provide props completions and intellisense for<Astro.self />
#8032
3e46634fd
Thanks @natemoo-re! -astro add
now passes down--save-prod
,--save-dev
,--save-exact
, and--no-save
flags for installation#8035
a12027b6a
Thanks @fyndor! - Removed extra double quotes from computed style in shiki code componentv2.10.7
Compare Source
Patch Changes
4a145c4c7
Thanks @matthewp! - Treat same pathname with different search params as different pagev2.10.6
Compare Source
Patch Changes
#8027
1b8d30209
Thanks @natemoo-re! - Ensure dev server restarts respect whenbase
is removed#8033
405913cdf
Thanks @matthewp! - Prevent script re-evaluation on page transition#8036
87d4b1843
Thanks @ematipico! - Fix a bug where the middleware entry point was passed to integrations even though the configurationbuild.excludeMiddleware
was set tofalse
.#8022
c23377caa
Thanks @bluwy! - Always return a new array instance fromgetCollection
in prod#8013
86bee2812
Thanks @martrapp! - Links with hash marks now trigger view transitions if they lead to a different page. Links to the same page do not trigger view transitions.v2.10.5
Compare Source
Patch Changes
5b1e39ef6
Thanks @bluwy! - Move hoisted script analysis optimization behind theexperimental.optimizeHoistedScript
optionv2.10.4
Compare Source
Patch Changes
#8003
16161afb2
Thanks @JuanM04! - FixedEndpointOutput
types with{ encoding: 'binary' }
#7995
79376f842
Thanks @belluzj! - Fix quadratic quote escaping in nested data in island props#8007
58b121d42
Thanks @paperdave! - Support Bun by adjusting how@babel/plugin-transform-react-jsx
is imported.v2.10.3
Compare Source
Patch Changes
8e5a27b48
Thanks @natemoo-re! - Ensure injectRoute is properly handled inbuild
as well asdev
v2.10.2
Compare Source
Patch Changes
#7945
a00cfb894
Thanks @matthewp! - Fix race condition when performing swap for fallback#7983
6cd7290d2
Thanks @natemoo-re! - Fix filename generation for.astro
pages#7946
9d0070095
Thanks @andremralves! - Fix: missing CSS import when 404 server Response redirects to a custom 404 page.#7977
a4a637c8f
Thanks @bluwy! - Fix inline root resolve logic#7943
c2682a17c
Thanks @natemoo-re! - Ensure that injected routes fromnode_modules
are properly detectedv2.10.1
Compare Source
Patch Changes
52606a390
Thanks @martrapp! - fix: View Transition: swap attributes of document's root elementv2.10.0
Compare Source
Minor Changes
#7861
41afb8405
Thanks @matthewp! - Persistent DOM and Islands in Experimental View TransitionsWith
viewTransitions: true
enabled in your Astro config's experimental section, pages using the<ViewTransition />
routing component can now access a newtransition:persist
directive.With this directive, you can keep the state of DOM elements and islands on the old page when transitioning to the new page.
For example, to keep a video playing across page navigation, add
transition:persist
to the element:This
<video>
element, with its current state, will be moved over to the next page (if the video also exists on that page).Likewise, this feature works with any client-side framework component island. In this example, a counter's state is preserved and moved to the new page:
See our View Transitions Guide to learn more on usage.
Patch Changes
#7821
c00b6f0c4
Thanks @ottomated! - Fixes an issue that prevents importing'astro/app'
#7917
1f0ee494a
Thanks @bluwy! - Prevent integration hooks from re-triggering if the server restarts on config change, but the config fails to load.#7901
00cb28f49
Thanks @bluwy! - Improve sourcemap generation and performance#7911
c264be349
Thanks @martrapp! - fix for #7882 by setting state in page navigation (view transitions)#7909
e1e958a75
Thanks @tonydangblog! - Fix: ignore.json
files nested in subdirectories within content collection directories starting with an_
underscore.v2.9.7
Compare Source
Patch Changes
#7754
298dbb89f
Thanks @natemoo-re! - Refactor404
and500
route handling for consistency and improved prerendering support#7885
9e2203847
Thanks @andremralves! - Fix incorrect build path logging for 404.astro pages.#7887
5c5da8d2f
Thanks @ffxsam! - Add logging for when JSON.parse fails within hydrate func#7895
0b8375fe8
Thanks @bluwy! - Fix streaming Astro components#7876
89d015db6
Thanks @ematipico! - Check forgetStaticPaths
only if the file has the.astro
extension.#7879
ebf7ebbf7
Thanks @bluwy! - Refactor and improve Astro config loading flowv2.9.6
Compare Source
Patch Changes
861f10eaf
Thanks @matthewp! - Properly serialize redirect config for SSRv2.9.5
Compare Source
Patch Changes
#7838
e50f64675
Thanks @bluwy! - Fix head propagation for MDX components#7841
2275c7d56
Thanks @ematipico! - Allow to return a redirect in dev mode when the original route is not present in the file system.#7800
49a4b2820
Thanks @matthewp! - Scroll position restoration with ViewTransitions routerv2.9.4
Compare Source
Patch Changes
#7826
31c4031ba
Thanks @Princesseuh! - Fixastro:assets
not working on Windows in build when using Squoosh#7823
5161cf919
Thanks @matthewp! - Adds anastro:beforeload
event for the dark mode use-case#7836
59b556232
Thanks @matthewp! - Upgrade compiler to bring in Image view transition support#7824
267487e63
Thanks @matthewp! - Prevent navigation on hash change#7829
b063a2d8a
Thanks @Princesseuh! - Fixastro:assets
endpoint not working in dev and SSR ifexperimental.assets
was enabled by an integration (such as Starlight)#7734
d5f526b33
Thanks @Princesseuh! - Fix some global state related toastro:assets
not getting cleaned out properly in SSR with no pre-rendered pages#7843
7dbcbc86b
Thanks @matthewp! - Fixes head propagation regressionv2.9.3
Compare Source
Patch Changes
#7782
0f677c009
Thanks @bluwy! - Refactor Astro rendering to write results directly. This improves the rendering performance for all Astro files.#7786
188eeddd4
Thanks @matthewp! - Execute scripts when navigating to a new page.When navigating to an new page with client-side navigation, scripts are executed (and re-executed) so that any new scripts on the incoming page are run and the DOM can be updated.
However,
type=module
scripts never re-execute in Astro, and will not do so in client-side routing. To support cases where you want to modify the DOM, a newastro:load
event listener been added:v2.9.2
Compare Source
Patch Changes
#7777
3567afac4
Thanks @bluwy! - Fix rendering TextEncoder encoding error regression#7759
1792737da
Thanks @Princesseuh! - Fix SharedImageService's types not properly reflecting that image services hooks can be async#7766
da7f1128b
Thanks @Princesseuh! - Fix missingreferrerpolicy
on ScriptHTMLAttributes#7746
0c9959704
Thanks @birkskyum! - Update Vite to 4.4v2.9.1
Compare Source
Patch Changes
#7756
274e67532
Thanks @matthewp! - Fixes case where there is FOUC caused by stylesheets not loaded#7742
e52852628
Thanks @andersk! - Fix parsing image assets from a Markdown line along with other markup.#7757
c2d6cfd0c
Thanks @matthewp! - Prevent animations when prefers-reduced-motion#7750
201d32dcf
Thanks @matthewp! - Trigger full page refresh on back nav from page without VT enabledv2.9.0
Compare Source
Minor Changes
#7686
ec745d689
Thanks @matthewp! - Redirects configurationThis change moves the
redirects
configuration out of experimental. If you were previously using experimental redirects, remove the following experimental flag:If you have been waiting for stabilization before using redirects, now you can do so. Check out the docs on redirects to learn how to use this built-in feature.
#7707
3a6e42e19
Thanks @ottomated! - Improved hoisted script bundlingAstro's static analysis to determine which
<script>
tags to bundle together just got a little smarter!Astro create bundles that optimize script usage between pages and place them in the head of the document so that they are downloaded as early as possible. One limitation to Astro's existing approach has been that you could not dynamically use hoisted scripts. Each page received the same, all-inclusive bundle whether or not every script was needed on that page.
Now, Astro has improved the static analysis to take into account the actual imports used.
For example, Astro would previously bundle the
<script>
s from both the<Tab>
and<Accordian>
component for the following library that re-exports multiple components:@matthewp/my-astro-lib
Now, when an Astro page only uses a single component, Astro will send only the necessary script to the page. A page that only imports the
<Accordian>
component will not receive any<Tab>
component's scripts:v2.8.5
Compare Source
Patch Changes
#7711
72bbfac97
Thanks @natemoo-re! - Fixstatus
code for custom404
and500
pages in the dev server#7693
d401866f9
Thanks @natemoo-re! - Fix loading of/404.astro
page when dynamic route returns 404#7706
4f6b5ae2b
Thanks @Princesseuh! - Fix Markdoc integration not being able to importemitESMImage
from Astro#7694
06c255716
Thanks @natemoo-re! - Fix route matching behavior whengetStaticPaths
result includes hyphenated paramsv2.8.4
Compare Source
Patch Changes
#7680
cc8e9de88
Thanks @ematipico! - Throw an error whenbuild.split
is set totrue
butoutput
isn't set to"server"
.#7679
1a6f833c4
Thanks @bluwy! - Handle inlining non-string boolean environment variables#7691
cc0f81c04
Thanks @Princesseuh! - Fix not being able to build on Vercel Edge whenastro:assets
was enabled even when using a non-Node image servicev2.8.3
Compare Source
Patch Changes
#7637
af5827d4f
Thanks @Princesseuh! - Fixastro:assets
not respecting EXIF rotation#7644
213e10991
Thanks @matthewp! - Fix for allowing the root path / as a redirect#7644
213e10991
Thanks @matthewp! - Fix static redirects prefered over dynamic regular routes#7643
4b82e55cf
Thanks @alvinometric! - Add support for using.svg
files withastro:assets
's base services. The SVGs will NOT be processed and will be return as-is, however, proper attributes, alt enforcement etc will all work correctly.v2.8.2
Compare Source
Patch Changes
86e19c7cf
Thanks @matthewp! - Allow our Response wrapper to be cloneableConfiguration
📅 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.