Title: Bump astro from 4.16.7 to 5.1.1 by dependabot[bot] · Pull Request #222 · emeraldjava/emeraldjava.github.io · GitHub
Open Graph Title: Bump astro from 4.16.7 to 5.1.1 by dependabot[bot] · Pull Request #222 · emeraldjava/emeraldjava.github.io
X Title: Bump astro from 4.16.7 to 5.1.1 by dependabot[bot] · Pull Request #222 · emeraldjava/emeraldjava.github.io
Description: Bumps astro from 4.16.7 to 5.1.1.
Release notes
Sourced from astro's releases.
astro@5.1.1
Patch Changes
#12782 f3d8385 Thanks @fhiromasa! - update comment in packages/astro/src/types/public/common.ts
#12789 f632b94 Thanks @ascorbic! - Pass raw frontmatter to remark plugins in glob loader
#12799 739dbfb Thanks @ascorbic! - Upgrades Vite to pin esbuild
astro@5.1.0
Minor Changes
#12441 b4fec3c Thanks @ascorbic! - Adds experimental session support
Sessions are used to store user state between requests for server-rendered pages, such as login status, shopping cart contents, or other user-specific data.
---
export const prerender = false; // Not needed in 'server' mode
const cart = await Astro.session.get('cart');
---
🛒 {cart?.length ?? 0} items
Sessions are available in on-demand rendered/SSR pages, API endpoints, actions and middleware. To enable session support, you must configure a storage driver.
If you are using the Node.js adapter, you can use the fs driver to store session data on the filesystem:
// astro.config.mjs
{
adapter: node({ mode: 'standalone' }),
experimental: {
session: {
// Required: the name of the unstorage driver
driver: "fs",
},
},
}
If you are deploying to a serverless environment, you can use drivers such as redis, netlify-blobs, vercel-kv, or cloudflare-kv-binding and optionally pass additional configuration options.
For more information, including using the session API with other adapters and a full list of supported drivers, see the docs for experimental session support. For even more details, and to leave feedback and participate in the development of this feature, the Sessions RFC.
#12426 3dc02c5 Thanks @oliverlynch! - Improves asset caching of remote images
Astro will now store entity tags and the Last-Modified date for cached remote images and use them to revalidate the cache when it goes stale.
... (truncated)
Changelog
Sourced from astro's changelog.
5.1.1
Patch Changes
#12782 f3d8385 Thanks @fhiromasa! - update comment in packages/astro/src/types/public/common.ts
#12789 f632b94 Thanks @ascorbic! - Pass raw frontmatter to remark plugins in glob loader
#12799 739dbfb Thanks @ascorbic! - Upgrades Vite to pin esbuild
5.1.0
Minor Changes
#12441 b4fec3c Thanks @ascorbic! - Adds experimental session support
Sessions are used to store user state between requests for server-rendered pages, such as login status, shopping cart contents, or other user-specific data.
---
export const prerender = false; // Not needed in 'server' mode
const cart = await Astro.session.get('cart');
---
🛒 {cart?.length ?? 0} items
Sessions are available in on-demand rendered/SSR pages, API endpoints, actions and middleware. To enable session support, you must configure a storage driver.
If you are using the Node.js adapter, you can use the fs driver to store session data on the filesystem:
// astro.config.mjs
{
adapter: node({ mode: 'standalone' }),
experimental: {
session: {
// Required: the name of the unstorage driver
driver: "fs",
},
},
}
If you are deploying to a serverless environment, you can use drivers such as redis, netlify-blobs, vercel-kv, or cloudflare-kv-binding and optionally pass additional configuration options.
For more information, including using the session API with other adapters and a full list of supported drivers, see the docs for experimental session support. For even more details, and to leave feedback and participate in the development of this feature, the Sessions RFC.
#12426 3dc02c5 Thanks @oliverlynch! - Improves asset caching of remote images
... (truncated)
Commits
5f4c543 [ci] release (#12790)
739dbfb fix(deps): upgrade Vite (#12799)
f3d8385 update comment in packages/astro/src/types/public/common.ts (#12782)
49cc5d7 [ci] format
f632b94 fix: pass raw frontmatter to when parsing markdown in glob loader (#12789)
5e9d1bc chore: move files to .mjs (#12765)
73b6c8b chore: fix links in session errors (#12787)
3f557b2 [ci] release (#12762)
4353fc5 fix: correctly return 404.astro in i18n (#12764)
45005a5 [ci] format
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.1.1. Release notes Sourced from astro's releases. astro@5.1.1 Patch Changes #12782 f3d8385 Thanks @fhiromasa! - update comment in packages/astro/src/types/publ...
X Description: Bumps astro from 4.16.7 to 5.1.1. Release notes Sourced from astro's releases. astro@5.1.1 Patch Changes #12782 f3d8385 Thanks @fhiromasa! - update comment in packages/astro/src/types/...
Opengraph URL: https://github.com/emeraldjava/emeraldjava.github.io/pull/222
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:7be33869-ff1b-8048-4047-94c300289eb5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A31E:B4345:4944B2:67DCEB:698315C1 |
| html-safe-nonce | dba9f5d6efdf6b4594fadfa187c958d7444556eb3992f6e2ac368aa239a98169 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzFFOkI0MzQ1OjQ5NDRCMjo2N0RDRUI6Njk4MzE1QzEiLCJ2aXNpdG9yX2lkIjoiNjE4MDM3Mjc1NDMzMjg0OTYwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5cca7ec141d34effe0ce97f77b15422b59d83a785848689e6de4eb1bb89301c4 |
| hovercard-subject-tag | pull_request:2248953494 |
| 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/222/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.1.1. Release notes Sourced from astro's releases. astro@5.1.1 Patch Changes #12782 f3d8385 Thanks @fhiromasa! - update comment in packages/astro/src/types/publ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6741528aa4d4ba81c57bbff8f8cc0de0e9115cb2993431dc9dac8d489f7b4ee |
| 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 | c275e7fc2c24425f5ec1050127d9e70ac5c9342d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width