fix(deps): update dependency astro to v3 #342
Merged
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:
^1.7.0
->^3.0.0
Release Notes
withastro/astro (astro)
v3.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
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
Patch Changes
7eea37a07
Thanks @matthewp! - Fix multi-layout head injectionv3.0.11
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
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
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
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
Patch Changes
#8276
d3a6f9f83
Thanks @FredKSchott! - Sanitize route params for leading and trailing slashes#8339
f21599671
Thanks @martrapp! - Respect the download attribute in links when using view transitionsv3.0.5
Patch Changes
#8327
5f3a44aee
Thanks @natemoo-re! - Improveastro info
command formatting, allow users to copy info automatically#8320
b21038c19
Thanks @ematipico! - Exclude redirects from split entry points#8331
7a894eec3
Thanks @matthewp! - Prevent View Transition fallback from waiting on looping animations#8231
af41b03d0
Thanks @justinbeaty! - Fixes scroll behavior when using View Transitions by enablingmanual
scroll restorationv3.0.4
Patch Changes
#8324
0752cf368
Thanks @matthewp! - Prevent React hook call warnings when used with MDXWhen React and MDX are used in the same project, if the MDX integration is added before React, previously you'd get a warning about hook calls.
This makes it so that the MDX integration's JSX renderer is last in order.
v3.0.3
Patch Changes
d4a6ab733
Thanks @ematipico! - Correctly retrive middleware when using it in SSR enviroments.v3.0.2
Patch Changes
d9bd7cf5c
Thanks @Princesseuh! - Fixtsc
errors insideastro/components/index.ts
v3.0.1
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.0
Major Changes
#8188
d0679a666
Thanks @ematipico! - Remove support for Node 16. The lowest supported version by Astro and all integrations is now v18.14.1. As a reminder, Node 16 will be deprecated on the 11th September 2023.#8188
364d861bd
Thanks @ematipico! - Removed automatic flattening ofgetStaticPaths
result..flatMap
and.flat
should now be used to ensure that you're returning a flat array.#8113
2484dc408
Thanks @Princesseuh! - This import alias is no longer included by default with astro:assets. If you were using this alias with experimental assets, you must convert them to relative file paths, or create your own import aliases.v2.10.15
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](https://togithub.com/with
Configuration
📅 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.