Changes the default page rendering behavior of Astro components in containers, and adds a new option partial: false to render full Astro pages as before.
Previously, the Container API was rendering all Astro components as if they were full Astro pages containing <!DOCTYPE html> by default. This was not intended, and now by default, all components will render as page partials: only the contents of the components without a page shell.
To render the component as a full-fledged Astro page, pass a new option called partial: false to renderToString() and renderToResponse():
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import Card from '../src/components/Card.astro';
const container = AstroContainer.create();
await container.renderToString(Card); // the string will not contain <!DOCTYPE html>
await container.renderToString(Card, { partial: false }); // the string will contain <!DOCTYPE html>
astro@4.16.5
Patch Changes
#12232ff68ba5 Thanks @martrapp! - Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true
astro@4.16.4
Patch Changes
#1222379ffa5d Thanks @ArmandPhilippot! - Fixes a false positive reported by the dev toolbar Audit app where a label was considered missing when associated with a button
The button element can be used with a label (e.g. to create a switch) and should not be reported as an accessibility issue when used as a child of a label.
#12199c351352 Thanks @ematipico! - Fixes a regression in the computation of Astro.currentLocale
#12222fb55695 Thanks @ematipico! - Fixes an issue where the edge middleware couldn't correctly compute the client IP address when calling ctx.clientAddress()
Changes the default page rendering behavior of Astro components in containers, and adds a new option partial: false to render full Astro pages as before.
Previously, the Container API was rendering all Astro components as if they were full Astro pages containing <!DOCTYPE html> by default. This was not intended, and now by default, all components will render as page partials: only the contents of the components without a page shell.
To render the component as a full-fledged Astro page, pass a new option called partial: false to renderToString() and renderToResponse():
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import Card from '../src/components/Card.astro';
const container = AstroContainer.create();
await container.renderToString(Card); // the string will not contain <!DOCTYPE html>
await container.renderToString(Card, { partial: false }); // the string will contain <!DOCTYPE html>
4.16.5
Patch Changes
#12232ff68ba5 Thanks @martrapp! - Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true
4.16.4
Patch Changes
#1222379ffa5d Thanks @ArmandPhilippot! - Fixes a false positive reported by the dev toolbar Audit app where a label was considered missing when associated with a button
The button element can be used with a label (e.g. to create a switch) and should not be reported as an accessibility issue when used as a child of a label.
#12199c351352 Thanks @ematipico! - Fixes a regression in the computation of Astro.currentLocale
#12222fb55695 Thanks @ematipico! - Fixes an issue where the edge middleware couldn't correctly compute the client IP address when calling ctx.clientAddress()
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 ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the patch-minor group with 3 updates: @astrojs/vercel, astro and tailwindcss.
Updates
@astrojs/vercel
from 7.8.1 to 7.8.2Release notes
Sourced from
@astrojs/vercel
's releases.Changelog
Sourced from
@astrojs/vercel
's changelog.Commits
01e3776
[ci] release (#414)cda3a2f
chore(deps): update all non-major dependencies (#416)5b802a4
fix: ISR opt out for routes with rest parameters (#373)dd6a7c9
fix(deps): update all non-major dependencies (#408)775c185
fix(deps): update all non-major dependencies (#402)187b9e2
chore(deps): update all non-major dependencies (#393)Updates
astro
from 4.16.3 to 4.16.6Release notes
Sourced from astro's releases.
Changelog
Sourced from astro's changelog.
Commits
d6f1704
[ci] release (#12240)c5cd5be
Fix test:vite-ci script (#12246)0bbf2fb
[ci] format8b1a641
fix: do not override process.env (#12227)2b6daa5
fix(container): emit components as partials (#12239)a3d30a6
fix: improve error for inferSize and Image component (#11823)5a4edeb
[ci] release (#12234)ff68ba5
Fixes an issue with cssesc in dev mode when setting vite.ssr.noExternal: true...6df5bba
[ci] release (#12225)64bb796
Use real filesystem for unit testing (#12172)Updates
tailwindcss
from 3.4.13 to 3.4.14Release notes
Sourced from tailwindcss's releases.
Changelog
Sourced from tailwindcss's changelog.
Commits
c616fb9
3.4.14b570e2b
Don't setdisplay: none
on elements that usehidden="until-found"
(#14625)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