|
258 | 258 | - Updated dependencies [[`727b0a2`](https://github.com/withastro/astro/commit/727b0a205eb765f1c36f13a73dfc69e17e44df8f)]: |
259 | 259 | - @astrojs/markdown-remark@7.0.0-alpha.0 |
260 | 260 |
|
| 261 | +## 5.16.8 |
| 262 | + |
| 263 | +### Patch Changes |
| 264 | + |
| 265 | +- [#15124](https://github.com/withastro/astro/pull/15124) [`81db3c0`](https://github.com/withastro/astro/commit/81db3c06e8f75bf1ec6f3d4d31a42d16dcf0e969) Thanks [@leonace924](https://github.com/leonace924)! - Fixes an issue where requests with query parameters to the `base` path would return a 404 if trailingSlash was not `'ignore'` in development |
| 266 | + |
| 267 | +- [#15152](https://github.com/withastro/astro/pull/15152) [`39ee41f`](https://github.com/withastro/astro/commit/39ee41fa56b362942162dc17b0b4252d2f881e7e) Thanks [@rururux](https://github.com/rururux)! - Fixes a case where `context.cookies.set()` would be overriden when setting cookies via response headers in development |
| 268 | + |
| 269 | +- [#15140](https://github.com/withastro/astro/pull/15140) [`6f6f8f8`](https://github.com/withastro/astro/commit/6f6f8f8c0c3ccf346d741a8625bbfbe1329e472e) Thanks [@cameronraysmith](https://github.com/cameronraysmith)! - Fixes esbuild warning due to dead code in assets virtual module |
| 270 | + |
| 271 | +- [#15127](https://github.com/withastro/astro/pull/15127) [`2cff904`](https://github.com/withastro/astro/commit/2cff9045256a2b551465750de7cba29087046658) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Updates "Unsupported page types found" error to only appear in more realistic cases |
| 272 | + |
| 273 | +- [#15149](https://github.com/withastro/astro/pull/15149) [`34f84c2`](https://github.com/withastro/astro/commit/34f84c2437fd078e299a29eeb1f931c9f83c8d2e) Thanks [@rahuld109](https://github.com/rahuld109)! - Skips "Use the Image component" audit warning for images inside framework components (React, Vue, Svelte, etc.) |
| 274 | + |
| 275 | +## 5.16.7 |
| 276 | + |
| 277 | +### Patch Changes |
| 278 | + |
| 279 | +- [#15122](https://github.com/withastro/astro/pull/15122) [`b137946`](https://github.com/withastro/astro/commit/b1379466e8c6ded9fbcc3687c7faca4c2d3472b2) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Improves JSDoc annotations for `AstroGlobal`, `AstroSharedContext` and `APIContext` types |
| 280 | + |
| 281 | +- [#15123](https://github.com/withastro/astro/pull/15123) [`3f58fa2`](https://github.com/withastro/astro/commit/3f58fa20540ee3753158d8d0372affa47775c561) Thanks [@43081j](https://github.com/43081j)! - Improves rendering performance by grouping render chunks when emitting from async iterables to avoid encoding costs |
| 282 | + |
| 283 | +- [#14954](https://github.com/withastro/astro/pull/14954) [`7bec4bd`](https://github.com/withastro/astro/commit/7bec4bdadda1d66da1c7dc0a01ad4412a47337d9) Thanks [@volpeon](https://github.com/volpeon)! - Fixes remote images `Etag` header handling by disabling internal cache |
| 284 | + |
| 285 | +- [#15052](https://github.com/withastro/astro/pull/15052) [`b2bcd5a`](https://github.com/withastro/astro/commit/b2bcd5af28dfb75541f3249b0277b458355395cf) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fixes images not working in development when using setups with port forwarding |
| 286 | + |
| 287 | +- [#15028](https://github.com/withastro/astro/pull/15028) [`87b19b8`](https://github.com/withastro/astro/commit/87b19b8df49d08ee7a7a1855f3645fe7bebf1997) Thanks [@Princesseuh](https://github.com/Princesseuh)! - Fixes certain aliases not working when using images in JSON files with the content layer |
| 288 | + |
| 289 | +- [#15118](https://github.com/withastro/astro/pull/15118) [`cfa382b`](https://github.com/withastro/astro/commit/cfa382b7aa23a9f5a506181c75a0706595208396) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - **BREAKING CHANGE to the experimental Fonts API only** |
| 290 | + |
| 291 | + Removes the `defineAstroFontProvider()` type helper. |
| 292 | + |
| 293 | + If you are building a custom font provider, remove any occurrence of `defineAstroFontProvider()` and use the `FontProvider` type instead: |
| 294 | + |
| 295 | + ```diff |
| 296 | + -import { defineAstroFontProvider } from 'astro/config'; |
| 297 | + |
| 298 | + -export function myProvider() { |
| 299 | + - return defineAstroFontProvider({ |
| 300 | + - entrypoint: new URL('./implementation.js', import.meta.url) |
| 301 | + - }); |
| 302 | + -}; |
| 303 | + |
| 304 | + +import type { FontProvider } from 'astro'; |
| 305 | + |
| 306 | + +export function myProvider(): FontProvider { |
| 307 | + + return { |
| 308 | + + entrypoint: new URL('./implementation.js', import.meta.url) |
| 309 | + + }, |
| 310 | + +} |
| 311 | + ``` |
| 312 | + |
| 313 | +- [#15055](https://github.com/withastro/astro/pull/15055) [`4e28db8`](https://github.com/withastro/astro/commit/4e28db8d125b693039b393111fa48d7bcc913968) Thanks [@delucis](https://github.com/delucis)! - Reduces Astro’s install size by around 8 MB |
| 314 | + |
| 315 | +- [#15088](https://github.com/withastro/astro/pull/15088) [`a19140f`](https://github.com/withastro/astro/commit/a19140fd11efbc635a391d176da54b0dc5e4a99c) Thanks [@martrapp](https://github.com/martrapp)! - Enables the ClientRouter to preserve the original hash part of the target URL during server side redirects. |
| 316 | + |
| 317 | +- [#15117](https://github.com/withastro/astro/pull/15117) [`b1e8e32`](https://github.com/withastro/astro/commit/b1e8e32670ba601d3b3150514173dd7d1bb25650) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - **BREAKING CHANGE to the experimental Fonts API only** |
| 318 | + |
| 319 | + Changes the font format downloaded by default when using the experimental Fonts API. Additionally, adds a new `formats` configuration option to specify which font formats to download. |
| 320 | + |
| 321 | + Previously, Astro was opinionated about which font sources would be kept for usage, mainly keeping `woff2` and `woff` files. |
| 322 | + |
| 323 | + You can now specify what font formats should be downloaded (if available). Only `woff2` files are downloaded by default. |
| 324 | + |
| 325 | + #### What should I do? |
| 326 | + |
| 327 | + If you were previously relying on Astro downloading the `woff` format, you will now need to specify this explicitly with the new `formats` configuration option. Additionally, you may also specify any additional file formats to download if available: |
| 328 | + |
| 329 | + ```diff |
| 330 | + // astro.config.mjs |
| 331 | + import { defineConfig, fontProviders } from 'astro/config' |
| 332 | + |
| 333 | + export default defineConfig({ |
| 334 | + experimental: { |
| 335 | + fonts: [{ |
| 336 | + name: 'Roboto', |
| 337 | + cssVariable: '--font-roboto', |
| 338 | + provider: fontProviders.google(), |
| 339 | + + formats: ['woff2', 'woff', 'otf'] |
| 340 | + }] |
| 341 | + } |
| 342 | + }) |
| 343 | + ``` |
| 344 | + |
| 345 | +- [#15034](https://github.com/withastro/astro/pull/15034) [`8115752`](https://github.com/withastro/astro/commit/811575237d159ceac5d9f0a2ea3bf023df718759) Thanks [@florian-lefebvre](https://github.com/florian-lefebvre)! - Fixes a vite warning log during builds when using npm |
| 346 | + |
261 | 347 | ## 5.16.6 |
262 | 348 |
|
263 | 349 | ### Patch Changes |
|
0 commit comments