Update astro monorepo#36
Closed
renovate[bot] wants to merge 1 commit into
Closed
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
5481fc6 to
d05f1d7
Compare
d05f1d7 to
f42122c
Compare
f42122c to
3955725
Compare
3955725 to
e4c6f17
Compare
e4c6f17 to
069ac59
Compare
069ac59 to
57342a2
Compare
57342a2 to
ac3ab44
Compare
ac3ab44 to
d577b00
Compare
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
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.0->3.6.14.11.5->4.13.1Release Notes
withastro/astro (@astrojs/react)
v3.6.1Compare Source
Patch Changes
#11571
1c3265aThanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest@astrojs/reactintegration as well if you're using React 19 features.Make
.safe()the default return value for actions. This means{ data, error }will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the.orThrow()modifier.withastro/astro (astro)
v4.13.1Compare Source
Patch Changes
#11584
a65ffe3Thanks @bholmesdev! - Removes async local storage dependency from Astro Actions. This allows Actions to run in Cloudflare and Stackblitz without opt-in flags or other configuration.This also introduces a new convention for calling actions from server code. Instead of calling actions directly, you must wrap function calls with the new
Astro.callAction()utility.v4.13.0Compare Source
Minor Changes
#11507
a62345fThanks @ematipico! - Adds color-coding to the console output during the build to highlight slow pages.Pages that take more than 500 milliseconds to render will have their build time logged in red. This change can help you discover pages of your site that are not performant and may need attention.
#11379
e5e2d3eThanks @alexanderniebuhr! - Theexperimental.contentCollectionJsonSchemafeature introduced behind a flag in v4.5.0 is no longer experimental and is available for general use.If you are working with collections of type
data, Astro will now auto-generate JSON schema files for your editor to get IntelliSense and type-checking. A separate file will be created for each data collection in your project based on your collections defined insrc/content/config.tsusing a library calledzod-to-json-schema.This feature requires you to manually set your schema's file path as the value for
$schemain each data entry file of the collection:{ "$schema": "../../../.astro/collections/authors.schema.json", "name": "Armand", "skills": ["Astro", "Starlight"] }Alternatively, you can set this value in your editor settings. For example, to set this value in VSCode's
json.schemassetting, provide the path of files to match and the location of your JSON schema:{ "json.schemas": [ { "fileMatch": ["/src/content/authors/**"], "url": "./.astro/collections/authors.schema.json" } ] }If you were previously using this feature, please remove the experimental flag from your Astro config:
import { defineConfig } from 'astro' export default defineConfig({ - experimental: { - contentCollectionJsonSchema: true - } })If you have been waiting for stabilization before using JSON Schema generation for content collections, you can now do so.
Please see the content collections guide for more about this feature.
#11542
45ad326Thanks @ematipico! - Theexperimental.rewritingfeature introduced behind a flag in v4.8.0 is no longer experimental and is available for general use.Astro.rewrite()andcontext.rewrite()allow you to render a different page without changing the URL in the browser. Unlike using a redirect, your visitor is kept on the original page they visited.Rewrites can be useful for showing the same content at multiple paths (e.g. /products/shoes/men/ and /products/men/shoes/) without needing to maintain two identical source files.
Rewrites are supported in Astro pages, endpoints, and middleware.
Return
Astro.rewrite()in the frontmatter of a.astropage component to display a different page's content, such as fallback localized content:v4.12.3Compare Source
Patch Changes
#11509
dfbca06Thanks @bluwy! - Excludes hoisted scripts and styles from Astro components imported with?urlor?raw#11561
904f1e5Thanks @ArmandPhilippot! - Uses the correct pageSize default inpage.sizeJSDoc comment#11571
1c3265aThanks @bholmesdev! - BREAKING CHANGE to the experimental Actions API only. Install the latest@astrojs/reactintegration as well if you're using React 19 features.Make
.safe()the default return value for actions. This means{ data, error }will be returned when calling an action directly. If you prefer to get the data while allowing errors to throw, chain the.orThrow()modifier.v4.12.2Compare Source
Patch Changes
#11505
8ff7658Thanks @ematipico! - Enhances the dev server logging when rewrites occur during the lifecycle or rendering.The dev server will log the status code before and after a rewrite:
#11506
026e8baThanks @sarah11918! - Fixes typo in documenting theslot="fallback"attribute for Server Islands experimental feature.#11508
ca335e1Thanks @cramforce! - Escapes HTML in serialized props#11501
4db78aeThanks @martrapp! - Adds the missing export for accessing thegetFallback()function of the client site router.v4.12.1Compare Source
Patch Changes
#11486
9c0c849Thanks @ematipico! - Adds a new function calledaddClientRendererto the Container API.This function should be used when rendering components using the
client:*directives. TheaddClientRendererAPI must be usedafter the use of the
addServerRenderer:#11500
4e142d3Thanks @Princesseuh! - Fixes inferRemoteSize type not working#11496
53ccd20Thanks @alfawal! - Hide the dev toolbar onwindow.print()(CTRL + P)v4.12.0Compare Source
Minor Changes
#11341
49b5145Thanks @madcampos! - Adds support for Shiki'sdefaultColoroption.This option allows you to override the values of a theme's inline style, adding only CSS variables to give you more flexibility in applying multiple color themes.
Configure
defaultColor: falsein your Shiki config to apply throughout your site, or pass to Astro's built-in<Code>component to style an individual code block.v4.11.6Compare Source
Patch Changes
#11459
bc2e74dThanks @mingjunlu! - Fixes false positive audit warnings on elements with the role "tabpanel".#11472
cb4e6d0Thanks @delucis! - Avoids targeting all files in thesrc/directory for eager optimization by Vite. After this change, only JSX, Vue, Svelte, and Astro components get scanned for early optimization.#11387
b498461Thanks @bluwy! - Fixes prerendering not removing unused dynamic imported chunks#11437
6ccb30eThanks @NuroDev! - Fixes a case where Astro's configexperimental.env.schemakeys did not allow numbers. Numbers are still not allowed as the first character to be able to generate valid JavaScript identifiers#11439
08baf56Thanks @bholmesdev! - Expands theisInputError()utility fromastro:actionsto accept errors of any type. This should now allow type narrowing from a try / catch block.#11452
0e66849Thanks @FugiTech! - Fixes an issue where using .nullish() in a formdata Astro action would always parse as a string#11438
619f07dThanks @bholmesdev! - Exposes utility types fromastro:actionsfor thedefineActionhandler (ActionHandler) and theActionErrorcode (ActionErrorCode).#11456
17e048dThanks @RickyC0626! - Fixesastro dev --openunexpected behavior that spawns a new tab every time a config file is saved#11337
0a4b31fThanks @florian-lefebvre! - Adds a new propertyexperimental.env.validateSecretsto allow validating private variables on the server.By default, this is set to
falseand only public variables are checked on start. If enabled, secrets will also be checked on start (dev/build modes). This is useful for example in some CIs to make sure all your secrets are correctly set before deploying.#11443
ea4bc04Thanks @bholmesdev! - Expose newActionReturnTypeutility fromastro:actions. This infers the return type of an action by passingtypeof actions.nameas a type argument. This example defines alikeaction that returnslikesas an object:In your client code, you can infer this handler return value with
ActionReturnType:#11436
7dca68fThanks @bholmesdev! - Fixesastro:actionsautocompletion for thedefineActionacceptproperty#11455
645e128Thanks @florian-lefebvre! - Improvesastro:envinvalid variables errorsConfiguration
📅 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.