fix(deps): update dependency astro to v2.10.15 - autoclosed #20
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.6.4
->2.10.15
Release Notes
withastro/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 cloneablev2.8.1
Compare Source
Patch Changes
#7611
904921cbe
Thanks @bluwy! - Ignore content .json files prefixed with underscores (regression)#7618
3669e2d27
Thanks @ematipico! - Add a fallback label ifastro info
command can't determine the package manager used.#7620
831dfd151
Thanks @delucis! - Filter outastro
from integration peer dependencies when runningastro add
v2.8.0
Compare Source
Minor Changes
#7532
9e5fafa2b
Thanks @ematipico! - Theastro/middleware
module exports a new utility calledtrySerializeLocals
.This utility can be used by adapters to validate their
locals
before 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
9e5fafa2b
Thanks @ematipico! - Astro exposes the middleware file path to the integrations in the hookastro:build:ssr
The
middlewareEntryPoint
is only defined if the user has created an Astro middleware.#7432
6e9c29579
Thanks @ematipico! - Adds a new commandastro info
, useful for sharing debugging information about your current environment when you need help!Output
#7532
9e5fafa2b
Thanks @ematipico! - Theastro/middleware
module 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
9e5fafa2b
Thanks @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
9e5fafa2b
Thanks @ematipico! - Correctly track the middleware during the SSR build.v2.7.4
Compare Source
Patch Changes
#7544
47b756e3e
Thanks @johannesspohr! - Batch async iterator buffering to reduce numbers of calls tosetTimeout
#7565
5ffdec758
Thanks @bluwy! - Fix style crawling logic for CSS HMRv2.7.3
Compare Source
Patch Changes
#7527
9e2426f75
Thanks @natemoo-re! - Default registry logic to fallback to NPM if registry command fails (sorry, Bun users!)#7542
cdc28326c
Thanks @natemoo-re! - Fix bug when usingdefine:vars
with astyle
object#7521
19c2d43ea
Thanks @knpwrs! - AddProps
generic forAPIRoute
type#7531
2172dd4f0
Thanks @wackbyte! - Fix serialization ofundefined
in framework component props#7539
1170877b5
Thanks @jc1144096387! - Update registry logic, improving edge cases (http support, redirects, registries ending with '/')v2.7.2
Compare Source
Patch Changes
#7273
6dfd7081b
Thanks @bluwy! - Fix error stacktrace from Vite SSR runtime#7370
83016795e
Thanks @bluwy! - Simplify nested hydration flow#7488
d3247851f
Thanks @natemoo-re! - PasscompressHTML
setting to server adapters#7491
a3928016c
Thanks @bluwy! - Fix CSS error line offset#7494
2726098bc
Thanks @itsmatteomanf! - Replaces the instance ofsetTimeout()
in the runtime to usequeueMicrotask()
, to resolve limitations on Cloudflare Workers.#7509
f4fea3b02
Thanks @ematipico! - Correctly emit pre-rendered pages whenbuild.split
is set totrue
v2.7.1
Compare Source
Patch Changes
#7490
601403744
Thanks @ematipico! - Fix the URL that belongs toentryPoints
in the hookastro:build:ssr
. The paths were created with the wrong output directory.#7459
869197aaf
Thanks @bluwy! - Fix missing styles for Markdoc files in development#7440
2b7539952
Thanks @bluwy! - Removeslash
package#7476
478cd9d8f
Thanks @hirasso! - Allow astro to be installed underneath a folder with leading slashes#7479
57e603038
Thanks @bluwy! - Handle esbuild 0.18 changes#7381
f359d77b1
Thanks @matthewp! - Prevent accidental inclusion of page CSS in dev modeUpdated dependencies [
2b7539952
]:v2.7.0
Compare Source
Minor Changes
#7353
76fcdb84d
Thanks @bholmesdev! - Remove legacy handling for MDX content collections. Ensure you are using@astrojs/mdx
v0.18 or above.#7385
8e2923cc6
Thanks @ematipico! -Astro.locals
is now exposed to the adapter API. Node Adapter can now pass in alocals
object in the SSR handler middleware.#7220
459b5bd05
Thanks @ematipico! - Shipped a new SSR build configuration mode:split
.When enabled, Astro will "split" the single
entry.mjs
file 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: true
in your Astro config:#7220
459b5bd05
Thanks @ematipico! - The Astro hookastro:build:ssr
now receives a new option in their payload, calledentryPoints
.entryPoints
is defined as aMap<RouteData, URL>
, whereRouteData
represents the information of a Astro route andURL
is the path to the physical file emitted at the end of the build.Patch Changes
#7438
30bb36371
Thanks @bluwy! - Fixastro:build:setup
hookupdateConfig
utility, where the configuration wasn't correctly updated when the hook was fired.#7436
3943fa390
Thanks @kossidts! - Fix an issue related to the documentation. Destructure the argument of the function to customize the Astro dev server based on the command run.#7424
7877a06d8
Thanks @bholmesdev! - Update internal types for more stable builds for Astro maintainers.#7427
e314a04bf
Thanks @ematipico! - Correctly emit the middleware code during the build phase. The file emitted is nowdist/middleware.mjs
#7423
33cdc8622
Thanks @bmenant! - Ensure injected/_image
endpoint for image optimization is not prerendered on hybrid output.v2.6.6
Compare Source
Patch Changes
#7418
2b34fc492
Thanks @ematipico! - Correctly type the optionserver.open
#7429
89a483520
Thanks @delucis! - Fix telemetry reporting for integrations that return an arrayv2.6.5
Compare Source
Patch Changes
#7414
bb644834e
Thanks @bluwy! - Simplify telemetry Vite version detection#7399
d2020c29c
Thanks @natemoo-re! - Fix edge case where injected routes would cause builds to fail in a PNPM workspaceConfiguration
📅 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.