Title: Bump astro from 4.16.7 to 5.4.1 by dependabot[bot] · Pull Request #290 · emeraldjava/emeraldjava.github.io · GitHub
Open Graph Title: Bump astro from 4.16.7 to 5.4.1 by dependabot[bot] · Pull Request #290 · emeraldjava/emeraldjava.github.io
X Title: Bump astro from 4.16.7 to 5.4.1 by dependabot[bot] · Pull Request #290 · emeraldjava/emeraldjava.github.io
Description: Bumps astro from 4.16.7 to 5.4.1.
Release notes
Sourced from astro's releases.
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.
This change updates a v5.0 breaking change when experimental.directRenderScript became the default script handling behavior.
If you have already successfully upgraded to Astro v5, you may need to review your script tags again and make sure they still behave as desired after this release. See the v5 Upgrade Guide for more details.
astro@5.4.0
Minor Changes
#12052 5be12b2 Thanks @Fryuni! - Exposes extra APIs for scripting and testing.
... (truncated)
Changelog
Sourced from astro's changelog.
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.
This change updates a v5.0 breaking change when experimental.directRenderScript became the default script handling behavior.
If you have already successfully upgraded to Astro v5, you may need to review your script tags again and make sure they still behave as desired after this release. See the v5 Upgrade Guide for more details.
5.4.0
Minor Changes
... (truncated)
Commits
8483502 [ci] release (#13337)
9c7afbe [ci] format
b5dabe9 feat: add support session typing (#13320)
5d8f71c [ci] format
5e7646e chore: bump compiler and upgrade packages (#13330)
8f632ef fix(assets): export again asset utilities (#13336)
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)
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.1. Release notes Sourced from astro's releases. astro@5.4.1 Patch Changes #13336 8f632ef Thanks @ematipico! - Fixes a regression where some asset utilities w...
X Description: Bumps astro from 4.16.7 to 5.4.1. Release notes Sourced from astro's releases. astro@5.4.1 Patch Changes #13336 8f632ef Thanks @ematipico! - Fixes a regression where some asset utiliti...
Opengraph URL: https://github.com/emeraldjava/emeraldjava.github.io/pull/290
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4203cab5-d3dc-56d3-5a0b-20dc18d356ef |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AE06:3B0EF2:694E80:9585F2:697A1CF8 |
| html-safe-nonce | a7a316e5307fab24e313d8d6293eceaa1d90f869c39248bc9186cead6ed3a5fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRTA2OjNCMEVGMjo2OTRFODA6OTU4NUYyOjY5N0ExQ0Y4IiwidmlzaXRvcl9pZCI6IjUxMTkyMTEyMTA3NjI1NzIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | da8f3e6ed3211e9931ad9782a7b4d52cdea6730c83de32310aaa8e1c9ed3329c |
| hovercard-subject-tag | pull_request:2367416935 |
| 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/290/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.1. Release notes Sourced from astro's releases. astro@5.4.1 Patch Changes #13336 8f632ef Thanks @ematipico! - Fixes a regression where some asset utilities w... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24021c77440f544078f9cbe80d78a2fb16ccff65fca92deda9da3c51d1cdc5fc |
| 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 | 2841ead760bbcdca99003cf970f91348178160c3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width