Releases: withastro/astro
[email protected]
Patch Changes
- #14911
fcdf52fThanks @Princesseuh! - Retry failed publish
[email protected]
Patch Changes
- #14909
629d86bThanks @Princesseuh! - Fixes borked publish
[email protected]
Patch Changes
-
#14740
abfed97Thanks @ArmandPhilippot! - Fixes link targets in documentation following repository relocation. -
#14710
c6903cdThanks @RomanHauksson! - Fixes the displayed description for the Content-intellisense setting to refer to the correct configuration file option
@astrojs/[email protected]
@astrojs/[email protected]
Patch Changes
- #14740
abfed97Thanks @ArmandPhilippot! - Fixes link targets in documentation following repository relocation.
@astrojs/[email protected]
Patch Changes
-
#14807
c17767aThanks @jmgala! - Fixes a case where disabling the local image CDN wasn't possible -
Updated dependencies []:
- @astrojs/[email protected]
@astrojs/[email protected]
Patch Changes
- #14740
abfed97Thanks @ArmandPhilippot! - Fixes link targets in documentation following repository relocation.
@astrojs/[email protected]
Patch Changes
-
#14777
9720b70Thanks @iclectic! - Updates assets handling to use@astrojs/internal-helpers -
Updated dependencies []:
- @astrojs/[email protected]
@astrojs/[email protected]
Patch Changes
-
#14740
abfed97Thanks @ArmandPhilippot! - Fixes link targets in documentation following repository relocation. -
Updated dependencies [
abfed97]:- @astrojs/[email protected]
[email protected]
Minor Changes
-
#13880
1a2ed01Thanks @azat-io! - Adds experimental SVGO optimization support for SVG assetsAstro now supports automatic SVG optimization using SVGO during build time. This experimental feature helps reduce SVG file sizes while maintaining visual quality, improving your site's performance.
To enable SVG optimization with default settings, add the following to your
astro.config.mjs:import { defineConfig } from 'astro/config'; export default defineConfig({ experimental: { svgo: true, }, });
To customize optimization, pass a SVGO configuration object:
export default defineConfig({ experimental: { svgo: { plugins: [ 'preset-default', { name: 'removeViewBox', active: false, }, ], }, }, });
For more information on enabling and using this feature in your project, see the experimental SVG optimization docs.
-
#14810
2e845feThanks @ascorbic! - Adds a hint for code agents to use the--yesflag to skip prompts when runningastro add -
#14698
f42ff9bThanks @mauriciabad! - Adds theActionInputSchemautility type to automatically infer the TypeScript type of an action's input based on its Zod schemaFor example, this type can be used to retrieve the input type of a form action:
import { type ActionInputSchema, defineAction } from 'astro:actions'; import { z } from 'astro/zod'; const action = defineAction({ accept: 'form', input: z.object({ name: z.string() }), handler: ({ name }) => ({ message: `Welcome, ${name}!` }), }); type Schema = ActionInputSchema<typeof action>; // typeof z.object({ name: z.string() }) type Input = z.input<Schema>; // { name: string }
-
#14574
4356485Thanks @jacobdalamb! - Adds new CLI shortcuts available when runningastro preview:o+enter: open the site in your browserq+enter: quit the previewh+enter: print all available shortcuts
Patch Changes
-
#14813
e1dd377Thanks @ematipico! - Removespicocolorsas dependency in favor of the forkpiccolore. -
#14609
d774306Thanks @florian-lefebvre! - Improvesastro info -
#14796
c29a785Thanks @florian-lefebvre! - BREAKING CHANGE to the experimental Fonts API onlyUpdates the default
subsetsto["latin"]Subsets have been a common source of confusion: they caused a lot of files to be downloaded by default. You now have to manually pick extra subsets.
Review your Astro config and update subsets if you need, for example if you need greek characters:
import { defineConfig, fontProviders } from "astro/config" export default defineConfig({ experimental: { fonts: [{ name: "Roboto", cssVariable: "--font-roboto", provider: fontProviders.google(), + subsets: ["latin", "greek"] }] } })