René's URL Explorer Experiment
Title: Bump astro from 4.16.7 to 5.6.0 by dependabot[bot] · Pull Request #329 · emeraldjava/emeraldjava.github.io · GitHub
Open Graph Title: Bump astro from 4.16.7 to 5.6.0 by dependabot[bot] · Pull Request #329 · emeraldjava/emeraldjava.github.io
X Title: Bump astro from 4.16.7 to 5.6.0 by dependabot[bot] · Pull Request #329 · emeraldjava/emeraldjava.github.io
Description: Bumps astro from 4.16.7 to 5.6.0.
Release notes
Sourced from astro's releases.
astro@5.6.0
Minor Changes
#13403 dcb9526 Thanks @yurynix! - Adds a new optional prerenderedErrorPageFetch option in the Adapter API to allow adapters to provide custom implementations for fetching prerendered error pages.
Now, adapters can override the default fetch() behavior, for example when fetch() is unavailable or when you cannot call the server from itself.
The following example provides a custom fetch for 500.html and 404.html, reading them from disk instead of performing an HTTP call:
return app.render(request, {
prerenderedErrorPageFetch: async (url: string): Promise => {
if (url.includes("/500")) {
const content = await fs.promises.readFile("500.html", "utf-8");
return new Response(content, {
status: 500,
headers: { "Content-Type": "text/html" },
});
}
const content = await fs.promises.readFile("404.html", "utf-8");
return new Response(content, {
status: 404,
headers: { "Content-Type": "text/html" },
});
});
If no value is provided, Astro will fallback to its default behavior for fetching error pages.
Read more about this feature in the Adapter API reference.
#13482 ff257df Thanks @florian-lefebvre! - Updates Astro config validation to also run for the Integration API. An error log will specify which integration is failing the validation.
Now, Astro will first validate the user configuration, then validate the updated configuration after each integration astro:config:setup hook has run. This means updateConfig() calls will no longer accept invalid configuration.
This fixes a situation where integrations could potentially update a project with a malformed configuration. These issues should now be caught and logged so that you can update your integration to only set valid configurations.
#13405 21e7e80 Thanks @Marocco2! - Adds a new eagerness option for prefetch() when using experimental.clientPrerender
With the experimental clientPrerender flag enabled, you can use the eagerness option on prefetch() to suggest to the browser how eagerly it should prefetch/prerender link targets.
This follows the same API described in the Speculation Rules API and allows you to balance the benefit of reduced wait times against bandwidth, memory, and CPU costs for your site visitors.
For example, you can now use prefetch() programmatically with large sets of links and avoid browser limits in place to guard against over-speculating (prerendering/prefetching too many links). Set eagerness: 'moderate' to take advantage of First In, First Out (FIFO) strategies and browser heuristics to let the browser decide when to prerender/prefetch them and in what order:
A Nice Link 1
A Nice Link 2
A Nice Link 3
A Nice Link 4
... (truncated)
Changelog
Sourced from astro's changelog.
5.6.0
Minor Changes
#13403 dcb9526 Thanks @yurynix! - Adds a new optional prerenderedErrorPageFetch option in the Adapter API to allow adapters to provide custom implementations for fetching prerendered error pages.
Now, adapters can override the default fetch() behavior, for example when fetch() is unavailable or when you cannot call the server from itself.
The following example provides a custom fetch for 500.html and 404.html, reading them from disk instead of performing an HTTP call:
return app.render(request, {
prerenderedErrorPageFetch: async (url: string): Promise => {
if (url.includes("/500")) {
const content = await fs.promises.readFile("500.html", "utf-8");
return new Response(content, {
status: 500,
headers: { "Content-Type": "text/html" },
});
}
const content = await fs.promises.readFile("404.html", "utf-8");
return new Response(content, {
status: 404,
headers: { "Content-Type": "text/html" },
});
});
If no value is provided, Astro will fallback to its default behavior for fetching error pages.
Read more about this feature in the Adapter API reference.
#13482 ff257df Thanks @florian-lefebvre! - Updates Astro config validation to also run for the Integration API. An error log will specify which integration is failing the validation.
Now, Astro will first validate the user configuration, then validate the updated configuration after each integration astro:config:setup hook has run. This means updateConfig() calls will no longer accept invalid configuration.
This fixes a situation where integrations could potentially update a project with a malformed configuration. These issues should now be caught and logged so that you can update your integration to only set valid configurations.
#13405 21e7e80 Thanks @Marocco2! - Adds a new eagerness option for prefetch() when using experimental.clientPrerender
With the experimental clientPrerender flag enabled, you can use the eagerness option on prefetch() to suggest to the browser how eagerly it should prefetch/prerender link targets.
This follows the same API described in the Speculation Rules API and allows you to balance the benefit of reduced wait times against bandwidth, memory, and CPU costs for your site visitors.
For example, you can now use prefetch() programmatically with large sets of links and avoid browser limits in place to guard against over-speculating (prerendering/prefetching too many links). Set eagerness: 'moderate' to take advantage of First In, First Out (FIFO) strategies and browser heuristics to let the browser decide when to prerender/prefetch them and in what order:
A Nice Link 1
A Nice Link 2
A Nice Link 3
... (truncated)
Commits
90b0ac1 [ci] release (#13540)
d777420 Remove non-stable SVG features (#13488)
f5a8b07 [ci] format
c43bf8c feat: add session.load(id) method (#13539)
0edd79f [ci] format
ff257df feat: move astro config validation after astro:config:setup (#13482)
4db2c68 [ci] format
dcb9526 Allow to pass custom fetch for fetching pre-rendered errors (#13403)
2279053 [ci] format
21e7e80 feat: Add eagerness support for prefetch() (#13405)
Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot merge will merge this PR after your CI passes on it
@dependabot squash and merge will squash and merge this PR after your CI passes on it
@dependabot cancel merge will cancel a previously requested merge and block automerging
@dependabot reopen will reopen this PR if it is closed
@dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
@dependabot show ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
@dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Open Graph Description: Bumps astro from 4.16.7 to 5.6.0.
Release notes
Sourced from astro's releases.
astro@5.6.0
Minor Changes
#13403 dcb9526 Thanks @yurynix! - Adds a new optional prerenderedErrorPageFetch opt...
X Description: Bumps astro from 4.16.7 to 5.6.0.
Release notes
Sourced from astro's releases.
astro@5.6.0
Minor Changes
#13403 dcb9526 Thanks @yurynix! - Adds a new optional prerenderedErrorPageFetch...
Opengraph URL: https://github.com/emeraldjava/emeraldjava.github.io/pull/329
X: @github
direct link
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:0df1d2c1-6173-481e-7544-3fcb06b54ff4 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | E65E:119557:3C530D2:4FE4447:69746CC7 |
| html-safe-nonce | 8b4ec55be9377e540234e49daa37f0bbfea92c98c19692e961c39e416df9ced3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjVFOjExOTU1NzozQzUzMEQyOjRGRTQ0NDc6Njk3NDZDQzciLCJ2aXNpdG9yX2lkIjoiNzIzODQ1NjkxODU3MjAzNTI3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 493aaf6515fa708c7a957836c874f74f884979d0f89473f499455ad89b8781dc |
| hovercard-subject-tag | pull_request:2438754732 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/checks |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/emeraldjava/emeraldjava.github.io/pull/329/checks |
| twitter:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/29110?s=400&v=4 |
| og:image:alt | Bumps astro from 4.16.7 to 5.6.0.
Release notes
Sourced from astro's releases.
astro@5.6.0
Minor Changes
#13403 dcb9526 Thanks @yurynix! - Adds a new optional prerenderedErrorPageFetch opt... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/emeraldjava/emeraldjava.github.io git https://github.com/emeraldjava/emeraldjava.github.io.git |
| octolytics-dimension-user_id | 229760 |
| octolytics-dimension-user_login | emeraldjava |
| octolytics-dimension-repository_id | 17636941 |
| octolytics-dimension-repository_nwo | emeraldjava/emeraldjava.github.io |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17636941 |
| octolytics-dimension-repository_network_root_nwo | emeraldjava/emeraldjava.github.io |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width
URLs of crawlers that visited me.