chore(deps): update dependency astro to v2.10.15 #12
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.10->2.10.15Release Notes
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 servicev2.8.3Compare Source
Patch Changes
#7637
af5827d4fThanks @Princesseuh! - Fixastro:assetsnot respecting EXIF rotation#7644
213e10991Thanks @matthewp! - Fix for allowing the root path / as a redirect#7644
213e10991Thanks @matthewp! - Fix static redirects prefered over dynamic regular routes#7643
4b82e55cfThanks @alvinometric! - Add support for using.svgfiles 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.2Compare Source
Patch Changes
86e19c7cfThanks @matthewp! - Allow our Response wrapper to be cloneablev2.8.1Compare Source
Patch Changes
#7611
904921cbeThanks @bluwy! - Ignore content .json files prefixed with underscores (regression)#7618
3669e2d27Thanks @ematipico! - Add a fallback label ifastro infocommand can't determine the package manager used.#7620
831dfd151Thanks @delucis! - Filter outastrofrom integration peer dependencies when runningastro addv2.8.0Compare Source
Minor Changes
#7532
9e5fafa2bThanks @ematipico! - Theastro/middlewaremodule exports a new utility calledtrySerializeLocals.This utility can be used by adapters to validate their
localsbefore sending itto the Astro middleware.
This function will throw a runtime error if the value passed is not serializable, so
consumers will need to handle that error.
#7532
9e5fafa2bThanks @ematipico! - Astro exposes the middleware file path to the integrations in the hookastro:build:ssrThe
middlewareEntryPointis only defined if the user has created an Astro middleware.#7432
6e9c29579Thanks @ematipico! - Adds a new commandastro info, useful for sharing debugging information about your current environment when you need help!Output
#7532
9e5fafa2bThanks @ematipico! - Theastro/middlewaremodule exports a new API calledcreateContext.This a low-level API that adapters can use to create a context that can be consumed by middleware functions.
#7532
9e5fafa2bThanks @ematipico! - Introduced a new build option for SSR, calledbuild.excludeMiddleware.When enabled, the code that belongs to be middleware won't be imported
by the final pages/entry points. The user is responsible for importing it and
calling it manually.
Patch Changes
9e5fafa2bThanks @ematipico! - Correctly track the middleware during the SSR build.v2.7.4Compare Source
Patch Changes
#7544
47b756e3eThanks @johannesspohr! - Batch async iterator buffering to reduce numbers of calls tosetTimeout#7565
5ffdec758Thanks @bluwy! - Fix style crawling logic for CSS HMRv2.7.3Compare Source
Patch Changes
#7527
9e2426f75Thanks @natemoo-re! - Default registry logic to fallback to NPM if registry command fails (sorry, Bun users!)#7542
cdc28326cThanks @natemoo-re! - Fix bug when usingdefine:varswith astyleobject#7521
19c2d43eaThanks @knpwrs! - AddPropsgeneric forAPIRoutetype#7531
2172dd4f0Thanks @wackbyte! - Fix serialization ofundefinedin framework component props#7539
1170877b5Thanks @jc1144096387! - Update registry logic, improving edge cases (http support, redirects, registries ending with '/')v2.7.2Compare Source
Patch Changes
#7273
6dfd7081bThanks @bluwy! - Fix error stacktrace from Vite SSR runtime#7370
83016795eThanks @bluwy! - Simplify nested hydration flow#7488
d3247851fThanks @natemoo-re! - PasscompressHTMLsetting to server adapters#7491
a3928016cThanks @bluwy! - Fix CSS error line offset#7494
2726098bcThanks @itsmatteomanf! - Replaces the instance ofsetTimeout()in the runtime to usequeueMicrotask(), to resolve limitations on Cloudflare Workers.#7509
f4fea3b02Thanks @ematipico! - Correctly emit pre-rendered pages whenbuild.splitis set totruev2.7.1Compare Source
Patch Changes
#7490
601403744Thanks @ematipico! - Fix the URL that belongs toentryPointsin the hookastro:build:ssr. The paths were created with the wrong output directory.#7459
869197aafThanks @bluwy! - Fix missing styles for Markdoc files in development#7440
2b7539952Thanks @bluwy! - Removeslashpackage#7476
478cd9d8fThanks @hirasso! - Allow astro to be installed underneath a folder with leading slashes#7479
57e603038Thanks @bluwy! - Handle esbuild 0.18 changes#7381
f359d77b1Thanks @matthewp! - Prevent accidental inclusion of page CSS in dev modeUpdated dependencies [
2b7539952]:v2.7.0Compare Source
Minor Changes
#7353
76fcdb84dThanks @bholmesdev! - Remove legacy handling for MDX content collections. Ensure you are using@astrojs/mdxv0.18 or above.#7385
8e2923cc6Thanks @ematipico! -Astro.localsis now exposed to the adapter API. Node Adapter can now pass in alocalsobject in the SSR handler middleware.#7220
459b5bd05Thanks @ematipico! - Shipped a new SSR build configuration mode:split.When enabled, Astro will "split" the single
entry.mjsfile and instead emit a separate file to render each individual page during the build process.These files will be emitted inside
dist/pages, mirroring the directory structure of your page files insrc/pages/, for example:To enable, set
build.split: truein your Astro config:Configuration
📅 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.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.