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 docs-dependencies group with 5 updates in the /docs directory:
0.28.2
0.28.3
5.1.1
5.1.2
4.16.1
4.16.6
3.4.13
3.4.14
5.6.2
5.6.3
Updates
@astrojs/starlight
from 0.28.2 to 0.28.3Release notes
Sourced from
@astrojs/starlight
's releases.Changelog
Sourced from
@astrojs/starlight
's changelog.Commits
27feccd
[ci] release (#2382)a0f40b3
fix bottom padding in search dialog (#2443)6bba3d8
Fix type-checking issue (#2388)0b4823d
Fix link formatting issue withbuild.format
set tofile
and abase
(#2408)45d2ed7
[ci] format7b451cf
Loosen i18n schema to pass through unknown keys by default (#2380)Updates
@astrojs/tailwind
from 5.1.1 to 5.1.2Release notes
Sourced from
@astrojs/tailwind
's releases.Changelog
Sourced from
@astrojs/tailwind
's changelog.Commits
582f12e
[ci] release (#12148)8e500f2
Addcss
keyword to Tailwind integration (#12161)2594eb0
fix(deps): update all non-major dependencies (#12003)Updates
astro
from 4.16.1 to 4.16.6Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
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)Updates
typescript
from 5.6.2 to 5.6.3Release notes
Sourced from typescript's releases.
Commits
d48a5cf
Bump version to 5.6.3 and LKGfefa70a
🤖 Pick PR #60083 (Don't issue implicit any when obtai...) into release-5.6 (#...ff71692
[release-5.6] Remove tsbuildInfo specification error now that we need it for ...1f44dcf
🤖 Pick PR #60157 (fix automatic type acquisition) into release-5.6 (#60169)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