-
Notifications
You must be signed in to change notification settings - Fork 2
chore: update dependency astro to v4 #293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/astro-4.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
48c5e8c to
77d8e03
Compare
77d8e03 to
4abbba1
Compare
4abbba1 to
50a45d5
Compare
50a45d5 to
8f143cf
Compare
8f143cf to
75b68cd
Compare
75b68cd to
9b7faae
Compare
9b7faae to
be4f75f
Compare
be4f75f to
2aaddb4
Compare
2aaddb4 to
08ceee8
Compare
08ceee8 to
2e1263b
Compare
2e1263b to
17d0819
Compare
17d0819 to
6fd337b
Compare
6fd337b to
0b20566
Compare
0b20566 to
a9a4138
Compare
a9a4138 to
3cc9449
Compare
3cc9449 to
0c991f7
Compare
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:
^3.6.4->^4.2.1Release Notes
withastro/astro (astro)
v4.2.1Compare Source
Patch Changes
a4b696def3a7eb18c1ae48b10fd3758a1874b6feThanks @Fryuni! - Fixes a regression in routing priority betweenindex.astroand dynamic routes with rest parametersv4.2.0Compare Source
Minor Changes
#9566
165cfc154be477337037185c32b308616d1ed6faThanks @OliverSpeir! - Allows remark plugins to pass options specifying how images in.mdfiles will be optimized#9661
d6edc7540864cf5d294d7b881eb886a3804f6d05Thanks @ematipico! - Adds new helper functions for adapter developers.Astro.clientAddresscan now be passed directly to theapp.render()method.RequestandResponseobjects are now provided as static methods on theNodeAppclass.Astro.cookies.set()can now be automatically added to theResponseobject by passing theaddCookieHeaderoption toapp.render().#9638
f1a61268061b8834f39a9b38bca043ae41caed04Thanks @ematipico! - Adds a newi18n.routingconfig optionredirectToDefaultLocaleto disable automatic redirects of the root URL (/) to the default locale whenprefixDefaultLocale: trueis set.In projects where every route, including the default locale, is prefixed with
/[locale]/path, this property allows you to control whether or notsrc/pages/index.astroshould automatically redirect your site visitors from/to/[defaultLocale].You can now opt out of this automatic redirection by setting
redirectToDefaultLocale: false:#9671
8521ff77fbf7e867701cc30d18253856914dbd1bThanks @bholmesdev! - Removes the requirement for non-content files and assets inside content collections to be prefixed with an underscore. For files with extensions like.astroor.css, you can now remove underscores without seeing a warning in the terminal.Continue to use underscores in your content collections to exclude individual content files, such as drafts, from the build output.
#9567
3a4d5ec8001ebf95c917fdc0d186d29650533d93Thanks @OliverSpeir! - Improves the a11y-missing-content rule and error message for audit feature of dev-overlay. This also fixes an error where this check was falsely reporting accessibility errors.#9643
e9a72d9a91a3741566866bcaab11172cb0dc7d31Thanks @blackmann! - Adds a newmarkdown.shikiConfig.transformersconfig option. You can use this option to transform the Shikiji hast (AST format of the generated HTML) to customize the final HTML. Also updates Shikiji to the latest stable version.See Shikiji's documentation for more details about creating your own custom transformers, and a list of common transformers you can add directly to your project.
#9644
a5f1682347e602330246129d4666a9227374c832Thanks @rossrobino! - Adds an experimental flagclientPrerenderto prerender your prefetched pages on the client with the Speculation Rules API.Enabling this feature overrides the default
prefetchbehavior globally to prerender links on the client according to yourprefetchconfiguration. Instead of appending a<link>tag to the head of the document or fetching the page with JavaScript, a<script>tag will be appended with the corresponding speculation rules.Client side prerendering requires browser support. If the Speculation Rules API is not supported,
prefetchwill fallback to the supported strategy.See the Prefetch Guide for more
prefetchoptions and usage.#9439
fd17f4a40b83d14350dce691aeb79d87e8fcaf40Thanks @Fryuni! - Adds an experimental flagglobalRoutePriorityto prioritize redirects and injected routes equally alongside file-based project routes, following the same route priority order rules for all routes.Enabling this feature ensures that all routes in your project follow the same, predictable route priority order rules. In particular, this avoids an issue where redirects or injected routes (e.g. from an integration) would always take precedence over local route definitions, making it impossible to override some routes locally.
The following table shows which route builds certain page URLs when file-based routes, injected routes, and redirects are combined as shown below:
/blog/post/[pid]/[page]/blog/[...slug]/blog/tags/[tag]->/[tag]/posts->/blogURLs are handled by the following routes:
/blog/tags/astro/blog/[...slug]/tags/[tag]/blog/post/0/blog/[...slug]/blog/post/[pid]/posts/[page]/blogIn the event of route collisions, where two routes of equal route priority attempt to build the same URL, Astro will log a warning identifying the conflicting routes.
Patch Changes
#9719
7e1db8b4ce2da9e044ea0393e533c6db2561ac90Thanks @bluwy! - Refactors Vite config to avoid Vite 5.1 warnings#9439
fd17f4a40b83d14350dce691aeb79d87e8fcaf40Thanks @Fryuni! - Updates Astro's routing priority rules to prioritize the most specifically-defined routes.Now, routes with more defined path segments will take precedence over less specific routes.
For example,
/blog/posts/[pid].astro(3 path segments) takes precedence over/blog/[...slug].astro(2 path segments). This means that:/pages/blog/posts/[id].astrowill build routes of the form/blog/posts/1and/blog/posts/a/pages/blog/[...slug].astrowill build routes of a variety of forms, includingblog/1and/blog/posts/1/a, but will not build either of the previous routes.For a complete list of Astro's routing priority rules, please see the routing guide. This should not be a breaking change, but you may wish to inspect your built routes to ensure that your project is unaffected.
#9706
1539e04a8e5865027b3a8718c6f142885e7c8d88Thanks @bluwy! - Simplifies HMR handling, improves circular dependency invalidation, and fixes Astro styles invalidationUpdated dependencies [
165cfc154be477337037185c32b308616d1ed6fa,e9a72d9a91a3741566866bcaab11172cb0dc7d31]:v4.1.3Compare Source
Patch Changes
#9665
d02a3c48a3ce204649d22e17b1e26fb5a6a60bcfThanks @bluwy! - Disables internal file watcher for one-off Vite servers to improve start-up performance#9664
1bf0ddd2777ae5f9fde3fd854a9e75aa56c080f2Thanks @bluwy! - Improves HMR for Astro style and script modules#9668
74008cc23853ed507b144efab02300202c5386edThanks @Princesseuh! - Fix the passthrough image service not generatingsrcsetvalues properly#9693
d38b2a4fe827e956662fcf457d1f1f84832c2f15Thanks @kidylee! - Disables View Transition form handling when theactionproperty points to an external URL#9678
091097e60ef38dadb87d7c8c1fc9cb939a248921Thanks @ematipico! - Adds an error during the build phase in casei18n.routing.prefixDefaultLocaleis set totrueand the index page is missing.#9659
39050c6e1f77dc21e87716d95e627a654828ee74Thanks @Princesseuh! - Fix Astro wrongfully deleting certain images imported with?urlwhen used in tandem withastro:assets#9685
35d54b3ddb3310ab4c505d49bd4937b2d25e4078Thanks @lilnasy! - Fixes an issue where anchor elements within a custom component could not trigger a view transition.v4.1.2Compare Source
Patch Changes
#9642
cdb7bfa66260afc79b829b617492a01a709a86efThanks @martrapp! - Fixes an issue where View Transitions did not work when navigating to the 404 page#9637
5cba637c4ec39c06794146b0c7fd3225d26dcabbThanks @bluwy! - Improves environment variables replacement in SSR#9658
a3b5695176cd0280438938c1d6caef478a571415Thanks @martrapp! - Fixes an issue caused by trying to load text/partytown scripts during view transitions#9657
a4f90d95ff97abe59f2a1ef0956cab257ae36838Thanks @ematipico! - Fixes a bug where the custom status code wasn't correctly computed in the dev server#9627
a700a20291e19cde23705e8e661e833aec7d3095Thanks @lilnasy! - Adds a warning when setting cookies will have no effect#9652
e72efd6a9a1e2a70488fd225529617ffd8418534Thanks @bluwy! - Improves environment variables handling by using esbuild to perform replacements#9560
8b9c4844f7b302380835154fab1c3489979fc07dThanks @bluwy! - Fixes tsconfig alias with import.meta.glob#9653
50f39183cfec4a4522c1f935d710e5d9b724993bThanks @Princesseuh! - Pin Sharp to 0.32.6 until we can raise our semver requirements. To use the latest version of Sharp, you can add it to your project's dependencies.v4.1.1Compare Source
Patch Changes
#9618
401fd3e8c8957a3bed6469a622cd67b157ca303fThanks @ldh3907! - Adds a second generic parameter toAPIRouteto type theparams#9600
47b951b3888a5a8a708d2f9b974f12fba7ec9ed3Thanks @jacobdalamb! - Improves tailwind config file detection when adding the tailwind integration usingastro add tailwindTailwind config file ending in
.ts,.mtsor.ctswill now be used instead of creating a newtailwind.config.mjswhen the tailwind integration is added usingastro add tailwind.#9622
5156c740506cbf6ec85c95e1663c14cbd438d75bThanks @bluwy! - Fixes the Sharp image servicelimitInputPixelsoption typev4.1.0Compare Source
Minor Changes
#9513
e44f6acf99195a3f29b8390fd9b2c06410551b74Thanks @wtto00! - Adds a'load'prefetch strategy to prefetch links on page load#9377
fe719e27a84c09e46b515252690678c174a25759Thanks @bluwy! - Adds "Missing ARIA roles check" and "Unsupported ARIA roles check" audit rules for the dev toolbar#9573
2a8b9c56b9c6918531c57ec38b89474571331aeeThanks @bluwy! - Allows passing a string to--openandserver.opento open a specific URL on startup in development#9544
b8a6fa8917ff7babd35dafb3d3dcd9a58cee836dThanks @bluwy! - Adds a helpful error for static sites when you use theastro previewcommand if you have not previously runastro build.#9546
08402ad5846c73b6887e74ed4575fd71a3e3c73dThanks @bluwy! - Adds an option for the Sharp image service to allow large images to be processed. SetlimitInputPixels: falseto bypass the default image size limit:#9596
fbc26976533bbcf2de9d6dba1aa3ea3dc6ce0853Thanks @Princesseuh! - Adds the ability to set arootMarginsetting when using theclient:visibledirective. This allows a component to be hydrated when it is near the viewport, rather than hydrated when it has entered the viewport.#9063
f33fe3190b482a42ebc68cc5275fd7f2c49102e6Thanks @alex-sherwin! - Cookie encoding / decoding can now be customizedAdds new
encodeanddecodefunctions to allow customizing how cookies are encoded and decoded. For example, you can bypass the default encoding viaencodeURIComponentwhen adding a URL as part of a cookie:v4.0.9Compare Source
Patch Changes
#9571
ec71f03cfd9b8195fb21c92dfda0eff63b6ebeedThanks @bluwy! - Removes telemetry for unhandled errors in the dev server#9548
8049f0cd91b239c52e37d571e3ba3e703cf0e4cfThanks @bluwy! - Fixes error overlay display on URI malformed error#9504
8cc3d6aa46f438d668516539c34b48ad748ade39Thanks @matiboux! - Implement i18n'sgetLocaleByPathfunction#9547
22f42d11a4fd2e154a0c5873c4f516584e383b70Thanks @bluwy! - Prevents ANSI codes from rendering in the error overlay#9446
ede3f7fef6b43a08c9371f7a2531e2eef858b94dThanks @alexnguyennz! - Toggle dev toolbar hitbox height when toolbar is visible#9572
9f6453cf4972ac28eec4f07a1373feaa295c8864Thanks @bluwy! - Documents supported--hostand--portflags inastro preview --help#9540
7f212f0831d8cd899a86fb94899a7cad8ec280dbThanks @matthewp! - Fixes remote images with encoded characters#9559
8b873bf1f343efc1f486d8ef53c38380e2373c08Thanks @sygint! - Adds 'starlight' to the displayed options forastro add#9537
16e61fcacb98e6bd948ac240bc082659d70193a4Thanks @walter9388! -<Image />srcset now parses encoded paths correctlyv4.0.8Compare Source
Patch Changes
#9522
bb1438d20d325acd15f3755c6e306e45a7c64bcdThanks @Zegnat! - Add support for autocomplete attribute to the HTML button type.#9531
662f06fd9fae377bed1aaa49adbba3542cced087Thanks @bluwy! - Fixes duplicated CSS modules content when it's imported by both Astro files and framework components#9501
eb36e95596fcdb3db4a31744e910495e22e3af84Thanks @Princesseuh! - Export JSX namespace fromastro/jsx-runtimefor language tooling to consume#9492
89a2a07c2e411cda32244b7b05d3c79e93f7dd84Thanks @lilnasy! - Improves error message for the case where two similarly named files result in the same content entry.#9532
7224809b73d2c3ec8e8aee2fa07463dc3b57a7a2Thanks @bluwy! - Prevents unnecessary URI decoding when rendering a route#9478
dfef925e1fd07f3efb9fde6f4f23548f2af7dc75Thanks @lilnasy! - Improves errors in certain places to also report their causes.#9463
3b0eaed3b544ef8c4ec1f7b0d5a8f475bcfeb25eThanks @Princesseuh! - Update Sharp version to ^0.33.1#9512
1469e0e5a915e6b42b9953dbb48fe57a74518056Thanks @mingjunlu! - Prevents dev toolbar tooltip from overflowing outside of the screen#9497
7f7a7f1aeaec6b327ae0e5e7470a4f46174bf8aeThanks @lilnasy! - Adds a helpful warning message for when an exported API Route is not uppercase.v4.0.7Compare Source
Patch Changes
#9452
e83b5095fThanks @florian-lefebvre! - Upgrades vite to latest#9352
f515b1421Thanks @tmcw! - Add a more descriptive error message when image conversion fails#9486
f6714f677Thanks @martrapp! - Fixes View Transition's form submission prevention, allowingpreventDefaultto be used.#9461
429be8cc3Thanks @Skn0tt! - update import created forastro create netlify#9464
faf6c7e11Thanks @Fryuni! - Fixes an edge case with view transitions where some spec-compliantContent-Typeheaders would cause a valid HTML response to be ignored.#9400
1e984389bThanks @bluwy! - Fixes importing dev toolbar apps from integrations on Windows#9487
19169db1fThanks @ematipico! - Improves logging of the generated pages during the build#9460
047d285beThanks @Princesseuh! - Fix Astro failing to build on certain exotic platform that reports their CPU count incorrectly#9466
5062d27a1Thanks @knpwrs! - Updates view transitionsformhandling with logic for theenctypeattribute#9458
fa3078ce9Thanks @ematipico! - Correctly handle the error in case the middleware throws a runtime error#9089
5ae657882Thanks @lilnasy! - Fixes an issue where redirects did not replace slugs when the target of the redirect rule was not a verbatim route in the project.#9483
c384f6924Thanks @Princesseuh! - Fix some false positive in the audit logic of the dev toolbar#9437
354a62c86Thanks @dkobierski! - Fixes incorrect hoisted script paths when custom rollup output file names are configured#9475
7ae4928f3Thanks @ematipico! - Remove the manifest from the generated files in thedist/folder.v4.0.6Compare Source
Patch Changes
#9419
151bd429bThanks @matthewp! - Prevent Partytown from hijacking history APIs#9426
c01cc4e34Thanks @alexnguyennz! - Fixes warning for external URL redirects#9445
f963d07f2Thanks @natemoo-re! - Upgrades Astro's compiler to a crash when sourcemaps try to map multibyte characters#9126
6d2d0e279Thanks @lilnasy! - Fixes an issue where error pages were not shown when trailingSlash was set to "always".#9434
c01580a2cThanks @ematipico! - Improves the error message when a middleware doesn't return aResponse#9433
fcc2fd5b0Thanks @ematipico! - Correctly merge headers from the original response when an error page is renderedv4.0.5Compare Source
Patch Changes
#9423
bda1d294fThanks @matthewp! - Error when getImage is passed an undefined src#9424
e1a5a2d36Thanks @matthewp! - Prevents dev server from crashing on unhandled rejections, and adds a helpful error message#9404
8aa17a64bThanks @Princesseuh! - Fixed some newer HTML attributes not being included in our type definitions#9414
bebf38c0cThanks @Skn0tt! - Adds the feature name to logs about feature deprecation / experimental status.#9418
2c168af67Thanks @alexnguyennz! - Fix broken link in CI instructions#9407
546d92c86Thanks @matthewp! - Allows file URLs as import specifiersv4.0.4Compare Source
Patch Changes
#9380
ea0918259Thanks @ematipico! - Correctly handle the rendering of i18n routes whenoutput: "hybrid"is set#9374
65ddb0271Thanks @bluwy! - Fixes an issue where prerendered route paths that end with.mjswere removed from the final build#9375
26f7023d6Thanks @bluwy! - Prettifies generated route names injected by integrations#9387
a7c75b333Thanks @natemoo-re! - Fixes an edge case withastro addthat could install a prerelease instead of a stable release version.Prior to this change
astro add svelteinstalls[email protected]After this change
astro add svelteinstalls[email protected]Updated dependencies [
270c6cc27]:v4.0.3Compare Source
Patch Changes
#9342
eb942942dThanks @Princesseuh! - Fix missingis:inlinetype for the<slot />element#9343
ab0281aeeThanks @martrapp! - Adds source file properties to HTML elements only if devToolbar is enabled#9336
c76901065Thanks @FredKSchott! - dev: fix issue where 404 and 500 responses were logged as 200#9339
0bb3d5322Thanks @morinokami! - Fixed the log message to correctly display 'enabled' and 'disabled' when toggling 'Disable notifications' in the Toolbar.v4.0.2Compare Source
Patch Changes
#9331
cfb20550dThanks @natemoo-re! - Updates an internal dependency (vitefu) to avoid a commonpeerDependencywarning#9327
3878a91beThanks @doseofted! - Fixes an edge case for<form method="dialog">when using View Transitions. Forms withmethod="dialog"no longer require an additionaldata-astro-reloadattribute.v4.0.1Compare Source
Patch Changes
631e5d01bThanks @ematipico! - Fixes an issue where logs that weren't grouped together by route when building the app.v4.0.0Compare Source
Major Changes
#9138
abf601233Thanks @bluwy! - Updates the unified, remark, and rehype dependencies to latest. Make sure to update your custom remark and rehype plugins as well to be compatible with the latest versions.Potentially breaking change: The default value of
markdown.remarkRehype.footnoteBackLabelis changed from"Back to content"to"Back to reference 1". See themdast-util-to-hastcommit for more information.#9181
cdabf6ef0Thanks @bluwy! - Removes support for returning simple objects from endpoints (deprecated since Astro 3.0). You should return aResponseinstead.ResponseWithEncodingis also removed. You can refactor the code to return a response with an array buffer instead, which is encoding agnostic.The types for middlewares have also been revised. To type a middleware function, you should now use
MiddlewareHandlerinstead ofMiddlewareResponseHandler. If you useddefineMiddleware()to type the function, no changes are needed.#9263
3cbd8ea75Thanks @bluwy! - Removes additional deprecated APIs:astro/client-imagetype. You should use theastro/clienttype instead.rsssupport ingetStaticPaths. You should use@astrojs/rssinstead.Astro.request.paramssupport. You should useAstro.paramsinstead.#9271
47604bd5bThanks @matthewp! - Renames Dev Overlay to Dev ToolbarThe previously named experimental Dev Overlay is now known as the Astro Dev Toolbar. Overlay plugins have been renamed as Toolbar Apps. All APIs have been updated to reflect this name change.
To not break existing APIs, aliases for the Toolbar-based names have been created. The previous API names will continue to function but will be deprecated in the future. All documentation has been updated to reflect Toolbar-based names.
#9122
1c48ed286Thanks @bluwy! - Adds Vite 5 support. There are no breaking changes from Astro. Check the Vite migration guide for details of the breaking changes from Vite instead.#9225
c421a3d17Thanks @natemoo-re! - Removes the opt-inhandleFormsproperty for<ViewTransitions />. Form submissions are now handled by default and this property is no longer necessary. This default behavior can be disabled by settingdata-astro-reloadon relevant<form />elements.#9196
37697a2c5Thanks @bluwy! - Removes support for Shiki custom language'spathproperty. The language JSON file should be imported and passed to the option instead.#9199
49aa215a0Thanks @lilnasy! - This change only affects maintainers of third-party adapters. In the Integration API, theapp.render()method of theAppclass has been simplified.Instead of two optional arguments, it now takes a single optional argument that is an object with two optional properties:
routeDataandlocals.The current signature is deprecated but will continue to function until next major version.
#9212
c0383ea0cThanks @alexanderniebuhr! - Removes deprecatedapp.match()option,matchNotFound#9168
153a5abb9Thanks @bluwy! - Removes deprecated features from Astro 3.0supportedAstroFeaturesto specify a list of features they support.build.splitandbuild.excludeMiddlewareoptions are removed. UsefunctionPerRouteandedgeMiddlewarefrom adapters instead.markdown.draftsoption and draft feature is removed. Use content collections instead.getHeaders()exported from markdown files is removed. UsegetHeadings()instead.Minor Changes
#9105
6201bbe96Thanks @FredKSchott! - Update CLI logging experience#9200
b4b851f5aThanks @ematipico! - Adds a new way to configure thei18n.localesarray.Developers can now assign a custom URL path prefix that can span multiple language codes:
With the above configuration, the URL prefix of the default locale will be
/english/. When computingAstro.preferredLocale, Astro will use thecodes.#9115
3b77889b4Thanks @natemoo-re! - Adds theastro preferencescommand to manage user preferences. User preferences are specific to individual Astro users, unlike theastro.config.mjsfile which changes behavior for everyone working on a project.User preferences are scoped to the current project by default, stored in a local
.astro/settings.jsonfile. Using the--globalflag, user preferences can also be applied to every Astro project on the current machine. Global user preferences are stored in an operating system-specific location.Configuration
📅 Schedule: Branch creation - "after 8am and before 5pm" in timezone Asia/Tokyo, 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.