Bump astro from 5.10.1 to 5.11.0
Type: Pull Request
State: Closed
Association: Contributor
Comments: 1
(9 months ago)
(9 months ago)
(9 months ago)
dependencies javascript
Bumps astro from 5.10.1 to 5.11.0.
Release notes
Sourced from astro's releases.
astro@5.11.0
Minor Changes
#13972
db8f8beThanks@ematipico! - Updates theNodeApp.match()function in the Adapter API to accept a second, optional parameter to allow adapter authors to add headers to static, prerendered pages.
NodeApp.match(request)currently checks whether there is a route that matches the givenRequest. If there is a prerendered route, the function returnsundefined, because static routes are already rendered and their headers cannot be updated.When the new, optional boolean parameter is passed (e.g.
NodeApp.match(request, true)), Astro will return the first matched route, even when it's a prerendered route. This allows your adapter to now access static routes and provides the opportunity to set headers for these pages, for example, to implement a Content Security Policy (CSP).Patch Changes
#14029
42562f9Thanks@ematipico! - Fixes a bug where server islands wouldn't be correctly rendered when they are rendered inside fragments.Now the following examples work as expected:
--- import { Cart } from '../components/Cart.astro'; ---<> <Cart server:defer /> </>
<Fragment slot="rest"> <Cart server:defer> <div slot="fallback">Not working</div> </Cart> </Fragment>
#14017
8d238bcThanks@dmgawel! - Fixes a bug where i18n fallback rewrites didn't work in dynamic pages.astro@5.10.2
Patch Changes
#14000
3cbedaeThanks@feelixe! - Fix routePattern JSDoc examples to show correct return values#13990
de6cfd6Thanks@isVivek99! - Fixes a case whereastro:config/clientandastro:config/servervirtual modules would not contain config passed to integrationsupdateConfig()during the build#14019
a160d1eThanks@ascorbic! - Removes the requirement to settype: 'live'when defining experimental live content collectionsPreviously, live collections required a
typeandloaderconfigured. Now, Astro can determine that your collection is alivecollection without defining it explicitly.This means it is now safe to remove
type: 'live'from your collections defined insrc/live.config.ts:import { defineLiveCollection } from 'astro:content'; import { storeLoader } from '@mystore/astro-loader';
... (truncated)
Changelog
Sourced from astro's changelog.
5.11.0
Minor Changes
#13972
db8f8beThanks@ematipico! - Updates theNodeApp.match()function in the Adapter API to accept a second, optional parameter to allow adapter authors to add headers to static, prerendered pages.
NodeApp.match(request)currently checks whether there is a route that matches the givenRequest. If there is a prerendered route, the function returnsundefined, because static routes are already rendered and their headers cannot be updated.When the new, optional boolean parameter is passed (e.g.
NodeApp.match(request, true)), Astro will return the first matched route, even when it's a prerendered route. This allows your adapter to now access static routes and provides the opportunity to set headers for these pages, for example, to implement a Content Security Policy (CSP).Patch Changes
#14029
42562f9Thanks@ematipico! - Fixes a bug where server islands wouldn't be correctly rendered when they are rendered inside fragments.Now the following examples work as expected:
--- import { Cart } from '../components/Cart.astro'; ---<> <Cart server:defer /> </>
<Fragment slot="rest"> <Cart server:defer> <div slot="fallback">Not working</div> </Cart> </Fragment>
#14017
8d238bcThanks@dmgawel! - Fixes a bug where i18n fallback rewrites didn't work in dynamic pages.5.10.2
Patch Changes
#14000
3cbedaeThanks@feelixe! - Fix routePattern JSDoc examples to show correct return values#13990
de6cfd6Thanks@isVivek99! - Fixes a case whereastro:config/clientandastro:config/servervirtual modules would not contain config passed to integrationsupdateConfig()during the build#14019
a160d1eThanks@ascorbic! - Removes the requirement to settype: 'live'when defining experimental live content collectionsPreviously, live collections required a
typeandloaderconfigured. Now, Astro can determine that your collection is alivecollection without defining it explicitly.This means it is now safe to remove
type: 'live'from your collections defined insrc/live.config.ts:import { defineLiveCollection } from 'astro:content';
... (truncated)
Commits
88b54d3[ci] release (#14033)42562f9fix(render): server islands in fragments (#14029)db8f8befeat(node): experimental static headers (#13972)eb39f8e[ci] format8d238bcfix i18n fallback rewrites failing in server mode (#14017)5891056[ci] release (#14007)508e6bf[ci] formata160d1eMake "type" optional when defining live collections (#14019)041a37d[ci] format33f2d15chore: upgrade to Biome v2 (#13984)- 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+5
-6
Package Dependencies
Technical Details
| ID: | 2936811 |
| UUID: | 2648085118 |
| Node ID: | PR_kwDOKJHWfM6d1pJ- |
| Host: | GitHub |
| Repository: | TurtleCode84/turtlecode.dev |
| Mergeable: | Yes |
| Merge State: | Clean |