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 tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting @dependabot rebase.
Bumps the npm-deps group with 9 updates in the / directory:
3.1.6
3.2.1
5.1.1
5.1.2
4.15.9
4.16.6
11.7.0
11.11.9
3.4.13
3.4.14
7.18.0
8.10.0
8.14.4
8.15.4
8.57.1
9.13.0
0.33.1
1.3.0
Updates
@astrojs/sitemap
from 3.1.6 to 3.2.1Release notes
Sourced from
@astrojs/sitemap
's releases.Changelog
Sourced from
@astrojs/sitemap
's changelog.Commits
6df5bba
[ci] release (#12225)07754f5
fix(sitemap): add missingxslURL
property toSitemapOptions
type (#12156)34d7952
[ci] release (#12098)fbe1bc5
feat(sitemap): add xslURL to enable styling (#11485)11ebf3b
chore: move node and vercel to adapters repo (#11866)87ce238
[ci] format70945dd
refactor: enforce node prefix (#11723)72c7ae9
update formatter config (#11640)87c179a
chore: bump@typescript-eslint/no-unused-vars
to error internally (#11173)edd35d3
fix(deps): update dependency sitemap to v8 (#11321)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.15.9 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
framer-motion
from 11.7.0 to 11.11.9Changelog
Sourced from framer-motion's changelog.
... (truncated)
Commits
8602e0e
v11.11.935f9093
Updating changeloga2b81ac
Remove autowill-change
(#2824)7ce568a
Adjusting times4215639
Updating test6253613
v11.11.8eec04d4
Fixing entrypoint fallbacks4b5453d
Merge pull request #2704 from framer/feature/cid6243c8
Increasing timeouts785a4c5
Loosen test timingUpdates
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-eslint/parser
from 7.18.0 to 8.10.0Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
7effdea
chore(release): publish 8.10.0f9c49e3
feat: support TypeScript 5.6 (#9972)4666ed4
chore(release): publish 8.9.0f898248
chore(release): publish 8.8.12055cfb
chore(release): publish 8.8.0b88ea33
chore(release): publish 8.7.0343710e
chore(release): publish 8.6.04d31ebe
chore(release): publish 8.5.04bc801e
chore: enable unicorn/no-array-reduce (#9640)3920c93
chore(release): publish 8.4.0Updates
cspell
from 8.14.4 to 8.15.4Release notes
Sourced from cspell's releases.
... (truncated)
Changelog
Sourced from cspell's changelog.
Commits
27882ec
v8.15.41672c99
fix: Ignore negative globs in ignore patterns. (#6388)2c24d62
v8.15.355c29fb
fix: correctly handle excludes infiles
(#6375)63f8b97
v8.15.2e7c0b5a
fix: Support passing the config in memory to cspell (#6358)e801dcd
v8.15.160b0456
v8.15.0abc7548
fix: stdin urls on the command line (#6345)611b21a
ci: Workflow Bot -- Update ALL Dependencies (main) (#6311)Updates
eslint
from 8.57.1 to 9.13.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
1a7cdbf
9.13.0627d5bf
Build: changelog update for 9.13.068d2d9d
chore: upgrade to@eslint/js@9.13.0
and@eslint/core@^0.7.0
(#19034)2211f0a
chore: package.json update for@eslint/js
release381c32b
feat: Allow languages to providedefaultLanguageOptions
(#19003)78836d4
fix: update thecomplexity
rule type (#19027)c7abaef
perf: using Node.js compile cache (#19012)bf723bd
feat: Improve eslintrc warning message (#19023)1d7c077
chore: add pkg.type "commonjs" (#19011)abdbfa8
docs: markLintMessage#nodeType
as deprecated (#19019)Updates
eslint-plugin-astro
from 0.33.1 to 1.3.0Release notes
Sourced from eslint-plugin-astro's releases.
Dependabot tried to update this pull request, but something went wrong. We're looking into it, but in the meantime you can retry the update by commenting
@dependabot rebase
.Superseded by #192.