Title: Bump astro from 4.16.7 to 5.4.2 by dependabot[bot] · Pull Request #293 · emeraldjava/emeraldjava.github.io · GitHub
Open Graph Title: Bump astro from 4.16.7 to 5.4.2 by dependabot[bot] · Pull Request #293 · emeraldjava/emeraldjava.github.io
X Title: Bump astro from 4.16.7 to 5.4.2 by dependabot[bot] · Pull Request #293 · emeraldjava/emeraldjava.github.io
Description: Bumps astro from 4.16.7 to 5.4.2.
Release notes
Sourced from astro's releases.
astro@5.4.2
Patch Changes
#12985 84e94cc Thanks @matthewp! - Prevent re-executing scripts in client router
#13349 50e2e0b Thanks @ascorbic! - Correctly escapes attributes in Markdown images
#13262 0025df3 Thanks @ematipico! - Refactor Astro Actions to not use a middleware. Doing so should avoid unexpected issues when using the Astro middleware at the edge.
astro@5.4.1
Patch Changes
#13336 8f632ef Thanks @ematipico! - Fixes a regression where some asset utilities were move across monorepo, and not re-exported anymore.
#13320 b5dabe9 Thanks @{! - Adds support for typing experimental session data
You can add optional types to your session data by creating a src/env.d.ts file in your project that extends the global App.SessionData interface. For example:
declare namespace App {
interface SessionData {
id: string;
email: string;
};
lastLogin: Date;
}
}
Any keys not defined in this interface will be treated as any.
Then when you access Astro.session in your components, any defined keys will be typed correctly:
---
const user = await Astro.session.get('user');
// ^? const: user: { id: string; email: string; } | undefined
const something = await Astro.session.get('something');
// ^? const: something: any
Astro.session.set('user', 1);
// ^? Argument of type 'number' is not assignable to parameter of type '{ id: string; email: string; }'.
See the experimental session docs for more information.
#13330 5e7646e Thanks @ematipico! - Fixes an issue with the conditional rendering of scripts.
... (truncated)
Changelog
Sourced from astro's changelog.
5.4.2
Patch Changes
#12985 84e94cc Thanks @matthewp! - Prevent re-executing scripts in client router
#13349 50e2e0b Thanks @ascorbic! - Correctly escapes attributes in Markdown images
#13262 0025df3 Thanks @ematipico! - Refactor Astro Actions to not use a middleware. Doing so should avoid unexpected issues when using the Astro middleware at the edge.
5.4.1
Patch Changes
#13336 8f632ef Thanks @ematipico! - Fixes a regression where some asset utilities were move across monorepo, and not re-exported anymore.
#13320 b5dabe9 Thanks @{! - Adds support for typing experimental session data
You can add optional types to your session data by creating a src/env.d.ts file in your project that extends the global App.SessionData interface. For example:
declare namespace App {
interface SessionData {
id: string;
email: string;
};
lastLogin: Date;
}
}
Any keys not defined in this interface will be treated as any.
Then when you access Astro.session in your components, any defined keys will be typed correctly:
---
const user = await Astro.session.get('user');
// ^? const: user: { id: string; email: string; } | undefined
const something = await Astro.session.get('something');
// ^? const: something: any
Astro.session.set('user', 1);
// ^? Argument of type 'number' is not assignable to parameter of type '{ id: string; email: string; }'.
See the experimental session docs for more information.
... (truncated)
Commits
c67a351 [ci] release (#13350)
f61d442 [ci] format
0025df3 refactor(core): move actions inside core (#13262)
fe8cacd [ci] format
16d6d41 fix(deps): update all non-major dependencies (#13346)
55ef4f5 [ci] format
84e94cc Prevent rerunning scripts already ran in router (#12985)
21c233c [ci] format
50e2e0b fix: escape img attributes in Markdown (#13349)
8483502 [ci] release (#13337)
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.2. Release notes Sourced from astro's releases. astro@5.4.2 Patch Changes #12985 84e94cc Thanks @matthewp! - Prevent re-executing scripts in client router ...
X Description: Bumps astro from 4.16.7 to 5.4.2. Release notes Sourced from astro's releases. astro@5.4.2 Patch Changes #12985 84e94cc Thanks @matthewp! - Prevent re-executing scripts in client route...
Opengraph URL: https://github.com/emeraldjava/emeraldjava.github.io/pull/293
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7444f762-2aa5-ad83-4868-b9b8fbeadea4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FE4:C551D:3A50B1E:50A2FFA:6977D970 |
| html-safe-nonce | f999462cf1ff7130b18b13401235d4a8eb9cd8b8a7147b47c7f63462ae9fa123 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkU0OkM1NTFEOjNBNTBCMUU6NTBBMkZGQTo2OTc3RDk3MCIsInZpc2l0b3JfaWQiOiI0NTk5OTAwNTQ0MDM3MjgwMTEyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 86ec11070a2ced451011402d262ed661b3f75616a635cb6b6ac55e82e8d7b069 |
| hovercard-subject-tag | pull_request:2372792420 |
| 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/293/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.2. Release notes Sourced from astro's releases. astro@5.4.2 Patch Changes #12985 84e94cc Thanks @matthewp! - Prevent re-executing scripts in client router ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 8909f95e78dc1ccc1b9acf9d5c963c2515579e48d2898151cf571437facd1d7b |
| 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 | d6b13f6e4712dc1242cf12b5e75dec8b1bf3a9ab |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width