Title: Bump astro from 4.16.7 to 5.4.0 by dependabot[bot] · Pull Request #287 · emeraldjava/emeraldjava.github.io · GitHub
Open Graph Title: Bump astro from 4.16.7 to 5.4.0 by dependabot[bot] · Pull Request #287 · emeraldjava/emeraldjava.github.io
X Title: Bump astro from 4.16.7 to 5.4.0 by dependabot[bot] · Pull Request #287 · emeraldjava/emeraldjava.github.io
Description: Bumps astro from 4.16.7 to 5.4.0.
Release notes
Sourced from astro's releases.
astro@5.4.0
Minor Changes
#12052 5be12b2 Thanks @Fryuni! - Exposes extra APIs for scripting and testing.
Config helpers
Two new helper functions exported from astro/config:
mergeConfig() allows users to merge partially defined Astro configurations on top of a base config while following the merge rules of updateConfig() available for integrations.
validateConfig() allows users to validate that a given value is a valid Astro configuration and fills in default values as necessary.
These helpers are particularly useful for integration authors and for developers writing scripts that need to manipulate Astro configurations programmatically.
Programmatic build
The build API now receives a second optional BuildOptions argument where users can specify:
devOutput (default false): output a development-based build similar to code transformed in astro dev.
teardownCompiler (default true): teardown the compiler WASM instance after build.
These options provide more control when running Astro builds programmatically, especially for testing scenarios or custom build pipelines.
#13278 4a43c4b Thanks @ematipico! - Adds a new configuration option server.allowedHosts and CLI option --allowed-hosts.
Now you can specify the hostnames that the dev and preview servers are allowed to respond to. This is useful for allowing additional subdomains, or running the dev server in a web container.
allowedHosts checks the Host header on HTTP requests from browsers and if it doesn't match, it will reject the request to prevent CSRF and XSS attacks.
astro dev --allowed-hosts=foo.bar.example.com,bar.example.com
astro preview --allowed-hosts=foo.bar.example.com,bar.example.com
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
server: {
allowedHosts: ['foo.bar.example.com', 'bar.example.com'],
},
});
This feature is the same as Vite's server.allowHosts configuration.
... (truncated)
Changelog
Sourced from astro's changelog.
5.4.0
Minor Changes
#12052 5be12b2 Thanks @Fryuni! - Exposes extra APIs for scripting and testing.
Config helpers
Two new helper functions exported from astro/config:
mergeConfig() allows users to merge partially defined Astro configurations on top of a base config while following the merge rules of updateConfig() available for integrations.
validateConfig() allows users to validate that a given value is a valid Astro configuration and fills in default values as necessary.
These helpers are particularly useful for integration authors and for developers writing scripts that need to manipulate Astro configurations programmatically.
Programmatic build
The build API now receives a second optional BuildOptions argument where users can specify:
devOutput (default false): output a development-based build similar to code transformed in astro dev.
teardownCompiler (default true): teardown the compiler WASM instance after build.
These options provide more control when running Astro builds programmatically, especially for testing scenarios or custom build pipelines.
#13278 4a43c4b Thanks @ematipico! - Adds a new configuration option server.allowedHosts and CLI option --allowed-hosts.
Now you can specify the hostnames that the dev and preview servers are allowed to respond to. This is useful for allowing additional subdomains, or running the dev server in a web container.
allowedHosts checks the Host header on HTTP requests from browsers and if it doesn't match, it will reject the request to prevent CSRF and XSS attacks.
astro dev --allowed-hosts=foo.bar.example.com,bar.example.com
astro preview --allowed-hosts=foo.bar.example.com,bar.example.com
// astro.config.mjs
import { defineConfig } from 'astro/config';
export default defineConfig({
server: {
allowedHosts: ['foo.bar.example.com', 'bar.example.com'],
},
});
This feature is the same as Vite's server.allowHosts configuration.
... (truncated)
Commits
9aa5ac1 [ci] release (#13318)
80926fa chore(deps): update esbuild and vite versions (#13323)
5b6df02 [ci] format
5f72a58 fix(core): double encoding during match of routes (#13303)
2154ada [ci] format
5be12b2 feat(astro): Exposes extra APIs for script and testing (#12052)
eb47231 [ci] format
9e7c71d fixes property shadowing for form.attributes (#13313)
2cdeaea [ci] format
4a43c4b feat: add new allowedHosts option (#13278)
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
Open Graph Description: Bumps astro from 4.16.7 to 5.4.0. Release notes Sourced from astro's releases. astro@5.4.0 Minor Changes #12052 5be12b2 Thanks @Fryuni! - Exposes extra APIs for scripting and testing. Conf...
X Description: Bumps astro from 4.16.7 to 5.4.0. Release notes Sourced from astro's releases. astro@5.4.0 Minor Changes #12052 5be12b2 Thanks @Fryuni! - Exposes extra APIs for scripting and testing. ...
Opengraph URL: https://github.com/emeraldjava/emeraldjava.github.io/pull/287
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:eef9eacc-d064-f3db-1412-380abfc02bd5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E470:167CC0:E30528:13ED70E:6979D250 |
| html-safe-nonce | 1a142e5b4d5860aa4850735d16682266f84d309e55c5586a364b30773e02bfb1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDcwOjE2N0NDMDpFMzA1Mjg6MTNFRDcwRTo2OTc5RDI1MCIsInZpc2l0b3JfaWQiOiI1NTAyMjAwMTI0MTIzMjM4OTkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 78b2881fdad378380db24339e6d419e2d3bda125a62468ed66e92b8a4ce15067 |
| hovercard-subject-tag | pull_request:2363880940 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/emeraldjava/emeraldjava.github.io/pull/287/files |
| 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.4.0. Release notes Sourced from astro's releases. astro@5.4.0 Minor Changes #12052 5be12b2 Thanks @Fryuni! - Exposes extra APIs for scripting and testing. Conf... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c049b65ec7e54cbf2521f5a560b6527714c612b0bd169188e2ea6e16f83bd5f4 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 87b137883e35e2766c3d0f6a257c4044f6390b83 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width