Open
Conversation
Contributor
Author
Branch automerge failureThis PR was configured for branch automerge. However, this is not possible, so it has been raised as a PR instead.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.18.2→0.19.71.2.1→1.4.02.1.0→2.2.12.1.6→2.10.15Release Notes
withastro/astro (@astrojs/mdx)
v0.19.7Compare Source
Patch Changes
8034edd9eThanks @bholmesdev! - Fix [Object AsyncGenerator] appearing in markup for Markdoc documentsv0.19.6Compare Source
Patch Changes
339529fc8Thanks @bholmesdev! - Bring back improved style and script handling across content collection files. This addresses bugs found in a previous release to@astrojs/markdoc.v0.19.5Compare Source
Patch Changes
#7151
ea16570b1Thanks @bluwy! - Addoptimizeoption for faster builds and rendering#7192
7851f9258Thanks @ematipico! - Detectmdxfiles using their full extension#7191
27c6e0182Thanks @bluwy! - Remove@mdx-js/rollupdependencyv0.19.4Compare Source
Patch Changes
57e65d247Thanks @bholmesdev! - Fix: revert Markdoc asset bleed changes. Production build issues were discovered that deserve a different fix.v0.19.3Compare Source
Patch Changes
f558a9e20Thanks @bholmesdev! - Improve style and script handling across content collection files. This addresses style bleed present in@astrojs/markdocv0.1.0v0.19.2Compare Source
Patch Changes
#7104
826e02890Thanks @bluwy! - Specify"files"field to only publish necessary filesUpdated dependencies [
826e02890]:v0.19.1Compare Source
Patch Changes
#6932
49514e4ceThanks @bluwy! - Upgrade shiki to v0.14.1. This updates the shiki theme colors and adds the theme name to thepretag, e.g.<pre class="astro-code github-dark">.Updated dependencies [
49514e4ce]:v0.19.0Compare Source
Minor Changes
2511d58d5Thanks @Princesseuh! - Add support for using optimized and relative images in MDX files withexperimental.assetsPatch Changes
2511d58d5]:v0.18.4Compare Source
Patch Changes
f882bc163Thanks @bholmesdev! - Fix sourcemap warnings when using Content Collections and MDX with thevite.build.sourcemapoptionv0.18.3Compare Source
Patch Changes
a98f6f418Thanks @matthewp! - Prevent body head content injection in MDX when using layoutwithastro/astro (@astrojs/sitemap)
v1.4.0Compare Source
Minor Changes
c258492b7Thanks @natemoo-re! - Ensure sitemap only excludes numerical pages matching/404and/500exactlyv1.3.3Compare Source
Patch Changes
dff0d0ddaThanks @andremralves! - Fix sitemap does not filter pagesv1.3.2Compare Source
Patch Changes
6ca3b5a9eThanks @alexanderniebuhr! - exported enum type to support typescript > 5.0v1.3.1Compare Source
Patch Changes
1b90a7a5dThanks @TheOtterlord! - Fix generation for static dynamic routesv1.3.0Compare Source
Minor Changes
ad907196cThanks @atilafassina! - Adds support to SSR routes to sitemap generation.v1.2.2Compare Source
Patch Changes
1ec1df126Thanks @andremralves! - Fix sitemap generation with a base pathwithastro/astro (@astrojs/solid-js)
v2.2.1Compare Source
Patch Changes
5b4b78245Thanks @natemoo-re! - Updatebabel-preset-soliddependency to^1.7.7v2.2.0Compare Source
Minor Changes
#7093
3d525efc9Thanks @matthewp! - Prevent removal of nested slots within islandsThis change introduces a new flag that renderers can add called
supportsAstroStaticSlot. What this does is let Astro know that the render is sending<astro-static-slot>as placeholder values for static (non-hydrated) slots which Astro will then remove.This change is completely backwards compatible, but fixes bugs caused by combining ssr-only and client-side framework components like so:
Patch Changes
#7101
2994bc52dThanks @bluwy! - Always build edge/worker runtime with VitewebworkerSSR target#7104
826e02890Thanks @bluwy! - Specify"files"field to only publish necessary filesv2.1.1Compare Source
Patch Changes
b6797fc85Thanks @matthewp! - Allow Solid ecosystem packages to not need special export map configuration. By default Solid is now treated as an external package in SSR, so any other dependent packages will receive the same instance.withastro/astro (astro)
v2.10.15Compare Source
Patch Changes
3b0d805bdThanks @matthewp! - Prevent ViewTransition script from being added by mistakev2.10.14Compare Source
Patch Changes
52606a390Thanks @martrapp! - fix: View Transition: swap attributes of document's root elementv2.10.13Compare Source
Patch Changes
#8152
582132328Thanks @andremralves! - Displays a new config error ifoutDiris placed withinpublicDir.#8166
fddd4dc71Thanks @martrapp! - ViewTransitions: Fixes in the client-side router#8182
cfc465ddeThanks @martrapp! - View Transitions: self link (href="") does not trigger page reload#8171
95120efbeThanks @Princesseuh! - Fix missing type forimageConfigexport fromastro:assets#8187
273335cb0Thanks @bluwy! - Fix Astro components parent-child render order#8184
9142178b1Thanks @martrapp! - Fix: The scrolling behavior of ViewTransitions is now more similar to the expected browser behavior#8163
179796405Thanks @delucis! - Make typing ofdefineCollectionmore permissive to support advanced union and intersection typesv2.10.12Compare Source
Patch Changes
04caa99c4Thanks @lilnasy! - Fixed an issue where data entries' id included backslashes instead of forward slashes on Windows.v2.10.11Compare Source
Patch Changes
97c8760d7Thanks @andremralves! - Fix 404 response leading to an infinite loop when there is no 404 page.v2.10.10Compare Source
Patch Changes
#8127
b12c8471fThanks @natemoo-re! - Do not throw Error when users pass an object with a "type" property#8092
7177f7579Thanks @natemoo-re! - Ensure dotfiles are cleaned during static builds#8122
fa6b68a77Thanks @natemoo-re! - Improve fidelity of time stats when runningastro build#8070
097a8e4e9Thanks @lilnasy! - Fix a handful of edge cases with prerendered 404/500 pages#8123
1f6497c33Thanks @natemoo-re! - Open to configuredbasewhenastro dev --openruns#8105
0e0fa605dThanks @martrapp! - ViewTransition: bug fix for lost scroll position in browser history#8116
b290f0a99Thanks @martrapp! - On back navigation only animate view transitions that were animated going forward.#7778
d6b494376Thanks @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.buildto be optimized:The following configuration will only allow remote images from HTTPS hosts:
#8109
da6e3da1cThanks @martrapp! - fix: reinsert attribute to specify direction of ViewTransition (forward / back)v2.10.9Compare Source
Patch Changes
56e7c5177Thanks @martrapp! - Handle<noscript>tags in<head>during ViewTransitionsv2.10.8Compare Source
Patch Changes
#7702
c19987df0Thanks @shishkin! - Fix AstroConfigSchema type export#8084
560e45924Thanks @hbgl! - Stream request body instead of buffering it in memory.#8066
afc45af20Thanks @Princesseuh! - Add support for non-awaited imports to the Image component andgetImage#7866
d1f7143f9Thanks @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
3e46634fdThanks @natemoo-re! -astro addnow passes down--save-prod,--save-dev,--save-exact, and--no-saveflags for installation#8035
a12027b6aThanks @fyndor! - Removed extra double quotes from computed style in shiki code componentv2.10.7Compare Source
Patch Changes
4a145c4c7Thanks @matthewp! - Treat same pathname with different search params as different pagev2.10.6Compare Source
Patch Changes
#8027
1b8d30209Thanks @natemoo-re! - Ensure dev server restarts respect whenbaseis removed#8033
405913cdfThanks @matthewp! - Prevent script re-evaluation on page transition#8036
87d4b1843Thanks @ematipico! - Fix a bug where the middleware entry point was passed to integrations even though the configurationbuild.excludeMiddlewarewas set tofalse.#8022
c23377caaThanks @bluwy! - Always return a new array instance fromgetCollectionin prod#8013
86bee2812Thanks @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.5Compare Source
Patch Changes
5b1e39ef6Thanks @bluwy! - Move hoisted script analysis optimization behind theexperimental.optimizeHoistedScriptoptionv2.10.4Compare Source
Patch Changes
#8003
16161afb2Thanks @JuanM04! - FixedEndpointOutputtypes with{ encoding: 'binary' }#7995
79376f842Thanks @belluzj! - Fix quadratic quote escaping in nested data in island props#8007
58b121d42Thanks @paperdave! - Support Bun by adjusting how@babel/plugin-transform-react-jsxis imported.v2.10.3Compare Source
Patch Changes
8e5a27b48Thanks @natemoo-re! - Ensure injectRoute is properly handled inbuildas well asdevv2.10.2Compare Source
Patch Changes
#7945
a00cfb894Thanks @matthewp! - Fix race condition when performing swap for fallback#7983
6cd7290d2Thanks @natemoo-re! - Fix filename generation for.astropages#7946
9d0070095Thanks @andremralves! - Fix: missing CSS import when 404 server Response redirects to a custom 404 page.#7977
a4a637c8fThanks @bluwy! - Fix inline root resolve logic#7943
c2682a17cThanks @natemoo-re! - Ensure that injected routes fromnode_modulesare properly detectedv2.10.1Compare Source
Patch Changes
#7935
6035bb35fThanks @natemoo-re! - Properly handle routing when multiple slashes are present in the request by collapsing them to a single/#7936
4b6deda36Thanks @matthewp! - Export createTransitionScope for the runtimeUpdated dependencies [
6035bb35f]:v2.10.0Compare Source
Minor Changes
#7861
41afb8405Thanks @matthewp! - Persistent DOM and Islands in Experimental View TransitionsWith
viewTransitions: trueenabled in your Astro config's experimental section, pages using the<ViewTransition />routing component can now access a newtransition:persistdirective.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:persistto 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
c00b6f0c4Thanks @ottomated! - Fixes an issue that prevents importing'astro/app'#7917
1f0ee494aThanks @bluwy! - Prevent integration hooks from re-triggering if the server restarts on config change, but the config fails to load.#7901
00cb28f49Thanks @bluwy! - Improve sourcemap generation and performance#7911
c264be349Thanks @martrapp! - fix for #7882 by setting state in page navigation (view transitions)#7909
e1e958a75Thanks @tonydangblog! - Fix: ignore.jsonfiles nested in subdirectories within content collection directories starting with an_underscore.v2.9.7Compare Source
Patch Changes
#7754
298dbb89fThanks @natemoo-re! - Refactor404and500route handling for consistency and improved prerendering support#7885
9e2203847Thanks @andremralves! - Fix incorrect build path logging for 404.astro pages.#7887
5c5da8d2fThanks @ffxsam! - Add logging for when JSON.parse fails within hydrate func#7895
0b8375fe8Thanks @bluwy! - Fix streaming Astro components#7876
89d015db6Thanks @ematipico! - Check forgetStaticPathsonly if the file has the.astroextension.#7879
ebf7ebbf7Thanks @bluwy! - Refactor and improve Astro config loading flowv2.9.6Compare Source
Patch Changes
861f10eafThanks @matthewp! - Properly serialize redirect config for SSRv2.9.5Compare Source
Patch Changes
#7838
e50f64675Thanks @bluwy! - Fix head propagation for MDX components#7841
2275c7d56Thanks @ematipico! - Allow to return a redirect in dev mode when the original route is not present in the file system.#7800
49a4b2820Thanks @matthewp! - Scroll position restoration with ViewTransitions routerv2.9.4Compare Source
Patch Changes
#7826
31c4031baThanks @Princesseuh! - Fixastro:assetsnot working on Windows in build when using Squoosh#7823
5161cf919Thanks @matthewp! - Adds anastro:beforeloadevent for the dark mode use-case#7836
59b556232Thanks @matthewp! - Upgrade compiler to bring in Image view transition support#7824
267487e63Thanks @matthewp! - Prevent navigation on hash change#7829
b063a2d8aThanks @Princesseuh! - Fixastro:assetsendpoint not working in dev and SSR ifexperimental.assetswas enabled by an integration (such as Starlight)#7734
d5f526b33Thanks @Princesseuh! - Fix some global state related toastro:assetsnot getting cleaned out properly in SSR with no pre-rendered pages#7843
7dbcbc86bThanks @matthewp! - Fixes head propagation regressionv2.9.3Compare Source
Patch Changes
#7782
0f677c009Thanks @bluwy! - Refactor Astro rendering to write results directly. This improves the rendering performance for all Astro files.#7786
188eeddd4Thanks @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=modulescripts 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:loadevent listener been added:v2.9.2Compare Source
Patch Changes
#7777
3567afac4Thanks @bluwy! - Fix rendering TextEncoder encoding error regression#7759
1792737daThanks @Princesseuh! - Fix SharedImageService's types not properly reflecting that image services hooks can be async#7766
da7f1128bThanks @Princesseuh! - Fix missingreferrerpolicyon ScriptHTMLAttributes#7746
0c9959704Thanks @birkskyum! - Update Vite to 4.4v2.9.1Compare Source
Patch Changes
#7756
274e67532Thanks @matthewp! - Fixes case where there is FOUC caused by stylesheets not loaded#7742
e52852628Thanks @andersk! - Fix parsing image assets from a Markdown line along with other markup.#7757
c2d6cfd0cThanks @matthewp! - Prevent animations when prefers-reduced-motion#7750
201d32dcfThanks @matthewp! - Trigger full page refresh on back nav from page without VT enabledv2.9.0Compare Source
Minor Changes
#7686
ec745d689Thanks @matthewp! - Redirects configurationThis change moves the
redirectsconfiguration 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
3a6e42e19Thanks @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:You should now see more efficient performance with Astro now supporting this common library re-export pattern.
#7511
6a12fcecbThanks @matthewp! - Built-in View Transitions Support (experimental)Astro now supports view transitions through the new
<ViewTransitions />component and thetransition:animate(and associated) directives. View transitions are a great fit for content-oriented sites, and we see it as the best path to get the benefits of client-side routing (smoother transitions) without sacrificing the more simple mental model of MPAs.Enable support for view transitions in Astro 2.9 by adding the experimental flag to your config:
This enables you to use the new APIs added.
Animations
Continue learning
Patch Changes
#7701
019b797bfThanks @bluwy! - Fix redirects map object-form value validation#7704
d78db48acThanks @bluwy! - Fix absolute path handling when passingroot,srcDir,publicDir,outDir,cacheDir,build.client, andbuild.serverconfigs in Windows#7713
d088351f5Thanks @natemoo-re! - Update warning whengetStaticPathsis detected but a route is not prerendered.v2.8.5Compare Source
Patch Changes
#7711
72bbfac97Thanks @natemoo-re! - Fixstatuscode for custom404and500pages in the dev server#7693
d401866f9Thanks @natemoo-re! - Fix loading of/404.astropage when dynamic route returns 404#7706
4f6b5ae2bThanks @Princesseuh! - Fix Markdoc integration not being able to importemitESMImagefrom Astro#7694
06c255716Thanks @natemoo-re! - Fix route matching behavior whengetStaticPathsresult includes hyphenated paramsv2.8.4Compare Source
Patch Changes
#7680
cc8e9de88Thanks @ematipico! - Throw an error whenbuild.splitis set totruebutoutputisn't set to"server".#7679
1a6f833c4Thanks @bluwy! - Handle inlining non-string boolean environment variables#7691
cc0f81c04Thanks @Princesseuh! - Fix not being able to build on Vercel Edge whenastro:assetswas enabled even when using a non-Node image service[
v2.8.3](httConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.