fix(deps): update dependency astro to ^4.7.0 #204
Closed
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:
^4.5.18->^4.7.0Release Notes
withastro/astro (astro)
v4.7.0Compare Source
Minor Changes
#10665
7b4f284Thanks @Princesseuh! - Adds new utilities to ease the creation of toolbar apps includingdefineToolbarAppto make it easier to define your toolbar app andappandserverhelpers for easier communication between the toolbar and the server. These new utilities abstract away some of the boilerplate code that is common in toolbar apps, and lower the barrier of entry for app authors.For example, instead of creating an event listener for the
app-toggledevent and manually typing the value in the callback, you can now use theonAppToggledmethod. Additionally, communicating with the server does not require knowing any of the Vite APIs anymore, as a newserverobject is passed to theinitfunction that contains easy to use methods for communicating with the server.import { defineToolbarApp } from "astro/toolbar"; export default defineToolbarApp({ init(canvas, app, server) { - app.addEventListener("app-toggled", (e) => { - console.log(`App is now ${state ? "enabled" : "disabled"}`);. - }); + app.onToggled(({ state }) => { + console.log(`App is now ${state ? "enabled" : "disabled"}`); + }); - if (import.meta.hot) { - import.meta.hot.send("my-app:my-client-event", { message: "world" }); - } + server.send("my-app:my-client-event", { message: "world" }) - if (import.meta.hot) { - import.meta.hot.on("my-server-event", (data: {message: string}) => { - console.log(data.message); - }); - } + server.on<{ message: string }>("my-server-event", (data) => { + console.log(data.message); // data is typed using the type parameter + }); }, })Server helpers are also available on the server side, for use in your integrations, through the new
toolbarobject:This is a backwards compatible change and your your existing dev toolbar apps will continue to function. However, we encourage you to build your apps with the new helpers, following the updated Dev Toolbar API documentation.
#10734
6fc4c0eThanks @Princesseuh! - Astro will now automatically check for updates when you run the dev server. If a new version is available, a message will appear in the terminal with instructions on how to update. Updates will be checked once per 10 days, and the message will only appear if the project is multiple versions behind the latest release.This behavior can be disabled by running
astro preferences disable checkUpdatesor setting theASTRO_DISABLE_UPDATE_CHECKenvironment variable tofalse.#10762
43ead8fThanks @bholmesdev! - Enables type checking for JavaScript files when using thestrictestTS config. This ensures consistency with Astro's other TS configs, and fixes type checking for integrations like Astro DB when using anastro.config.mjs.If you are currently using the
strictestpreset and would like to still disable.jsfiles, setallowJS: falsein yourtsconfig.json.Patch Changes
#10861
b673bc8Thanks @mingjunlu! - Fixes an issue whereastro buildwrites type declaration files tooutDirwhen it's outside of root directory.#10684
8b59d5dThanks @PeterDraex! - Update sharp to 0.33 to fix issue with Alpine Linuxv4.6.4Compare Source
Patch Changes
#10846
3294f7aThanks @matthewp! - Prevent getCollection breaking in vitest#10856
30cf82aThanks @robertvanhoesel! - Prevents inputs with a name attribute of action or method to break ViewTransitions' form submission#10833
8d5f3e8Thanks @renovate! - Updatesesbuilddependency to v0.20. This should not affect projects in most cases.#10801
204b782Thanks @rishi-raj-jain! - Fixes an issue where images in MD required a relative specifier (e.g../)Now, you can use the standard
syntax in MD files for images colocated in the same folder: no relative specifier required!There is no need to update your project; your existing images will still continue to work. However, you may wish to remove any relative specifiers from these MD images as they are no longer necessary:
#10841
a2df344Thanks @martrapp! - Due to regression on mobile WebKit browsers, reverts a change made for JavaScript animations during view transitions.v4.6.3Compare Source
Patch Changes
#10799
dc74afca9f5eebc2d61331298d6ef187d92051e0Thanks @martrapp! - Fixes an issue with persisted non-text input fields that have the focus during view transition navigation.#10773
35e43ecdaae7adc4b9a0b974192a033568cfb3f0Thanks @lilnasy! - Improves performance for frequent use of small components.#10763
63132771373ce1510be3e8814897accc0bf62ef8Thanks @matthewp! - Invalidate CC cache manifest when lockfile or config changes#10811
77822a822b04b5113726f713df104e8667333c59Thanks @AvinashReddy3108! - Update list of available integrations in theastro addCLI help.v4.6.2Compare Source
Patch Changes
#10732
a92e263beb6e0166f1f13c97803d1861793e2a99Thanks @rishi-raj-jain! - Correctly setsbuild.assetsdirectory duringviteconfig setup#10776
1607face67051b16d4648555f1001b2a9308e377Thanks @fshafiee! - Fixes cookies type inference#10796
90669472df3a05b33f0de46fd2d039e3eba7f7ddThanks @bluwy! - Disables streaming when rendering site withoutput: "static"#10782
b0589d05538fcc77dd3c38198bf93f3548362cd8Thanks @nektro! - Handles possible null value when callingwhich-pmduring dynamic package installation#10774
308b5d8c122f44e7724bb2f3ad3aa5c43a83e584Thanks @Princesseuh! - Fixesastro addsometimes modifyingbaseUrlunintentionally#10783
4dbd545304d1a8af903c8c97f237eb55c988c40bThanks @jurajkapsz! - Fixes Picture component specialFormatsFallback fallback check#10775
06843121450899ecf0390ca4efaff6c9a6fe0f75Thanks @Princesseuh! - Fixes assets endpoint in serverless returning 404 in certain situations where the website might be under a protected route#10787
699f4559a279b374bddb3e5e48c72afe2709e8e7Thanks @martrapp! - Fixes a timing issue in the view transition simulation.v4.6.1Compare Source
Patch Changes
#10708
742866c5669a2be4f8b5a4c861cadb933c381415Thanks @horo-fox! - Limits parallel imports withingetCollection()to prevent EMFILE errors when accessing files#10755
c6d59b6fb7db20af957a8706c8159c50619235efThanks @ematipico! - Fixes a case where the i18n fallback failed to correctly redirect to the index page with SSR enabledv4.6.0Compare Source
Minor Changes
#10591
39988ef8e2c4c4888543c973e06d9b9939e4ac95Thanks @mingjunlu! - Adds a new dev toolbar settings option to change the horizontal placement of the dev toolbar on your screen: bottom left, bottom center, or bottom right.#10689
683d51a5eecafbbfbfed3910a3f1fbf0b3531b99Thanks @ematipico! - Deprecate support for versions of Node.js older thanv18.17.1for Node.js 18, older thanv20.0.3for Node.js 20, and the complete Node.js v19 release line.This change is in line with Astro's Node.js support policy.
#10678
2e53b5fff6d292b7acdf8c30a6ecf5e5696846a1Thanks @ematipico! - Adds a new experimental security option to prevent Cross-Site Request Forgery (CSRF) attacks. This feature is available only for pages rendered on demand:Enabling this setting performs a check that the "origin" header, automatically passed by all modern browsers, matches the URL sent by each
Request.This experimental "origin" check is executed only for pages rendered on demand, and only for the requests
POST,PATCH,DELETEandPUTwith one of the followingcontent-type` headers: 'application/x-www-form-urlencoded', 'multipart/form-data', 'text/plain'.It the "origin" header doesn't match the pathname of the request, Astro will return a 403 status code and won't render the page.
#10193
440681e7b74511a17b152af0fd6e0e4dc4014025Thanks @ematipico! - Adds a new i18n routing optionmanualto allow you to write your own i18n middleware:Adding
routing: "manual"to your i18n config disables Astro's own i18n middleware and provides you with helper functions to write your own:redirectToDefaultLocale,notFound, andredirectToFallback:Also adds a
middlewarefunction that manually creates Astro's i18n middleware. This allows you to extend Astro's i18n routing instead of completely replacing it. Runmiddlewarein combination with your own middleware, using thesequenceutility to determine the order:#10671
9e14a78cb05667af9821948c630786f74680090dThanks @fshafiee! - Adds thehttpOnly,sameSite, andsecureoptions when deleting a cookiePatch Changes
#10747
994337c99f84304df1147a14504659439a9a7326Thanks @lilnasy! - Fixes an issue where functions could not be used as named slots.#10750
7e825604ddf90c989537e07939a39dc249343897Thanks @OliverSpeir! - Fixes a false positive for "Invalidtabindexon non-interactive element" rule for roleless elements (divandspan).#10745
d51951ce6278d4b59deed938d65e1cb72b5102dfThanks @lilnasy! - Fixes an issue where CLI commands could not report the reason for failure before exiting.#10661
e2cd7f4291912dadd4a654bc7917856c58a72a97Thanks @liruifengv! - Fixed errorOverlay theme toggle bug.Updated dependencies [
ccafa8d230f65c9302421a0ce0a0adc5824bfd55,683d51a5eecafbbfbfed3910a3f1fbf0b3531b99]:Configuration
📅 Schedule: Branch creation - "before 9am on monday" in timezone Europe/Gibraltar, 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.