#111294bb9269 Thanks @matthewp! - Prevent errors from adapters when i18n domains is not used
astro@4.9.0
Minor Changes
#1105112a1bcc Thanks @ematipico! - Introduces an experimental Container API to render .astro components in isolation.
This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:
create(): creates a new instance of the container.
renderToString(): renders a component and return a string.
renderToResponse(): renders a component and returns the Response emitted by the rendering phase.
The first supported use of this new API is to enable unit testing. For example, with vitest, you can create a container to render your component with test data and check the result:
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import { expect, test } from 'vitest';
import Card from '../src/components/Card.astro';
#111294bb9269 Thanks @matthewp! - Prevent errors from adapters when i18n domains is not used
4.9.0
Minor Changes
#1105112a1bcc Thanks @ematipico! - Introduces an experimental Container API to render .astro components in isolation.
This API introduces three new functions to allow you to create a new container and render an Astro component returning either a string or a Response:
create(): creates a new instance of the container.
renderToString(): renders a component and return a string.
renderToResponse(): renders a component and returns the Response emitted by the rendering phase.
The first supported use of this new API is to enable unit testing. For example, with vitest, you can create a container to render your component with test data and check the result:
import { experimental_AstroContainer as AstroContainer } from 'astro/container';
import { expect, test } from 'vitest';
import Card from '../src/components/Card.astro';
#110718ca7c73 Thanks @bholmesdev! - Adds two new functions experimental_getActionState() and experimental_withState() to support the React 19 useActionState() hook when using Astro Actions. This introduces progressive enhancement when calling an Action with the withState() utility.
This example calls a like action that accepts a postId and returns the number of likes. Pass this action to the experimental_withState() function to apply progressive enhancement info, and apply to useActionState() to track the result:
import { actions } from 'astro:actions';
import { experimental_withState } from '@astrojs/react/actions';
You can also access the state stored by useActionState() from your action handler. Call experimental_getActionState() with the API context, and optionally apply a type to the result:
import { defineAction, z } from 'astro:actions';
import { experimental_getActionState } from '@astrojs/react/actions';
#110718ca7c73 Thanks @bholmesdev! - Adds two new functions experimental_getActionState() and experimental_withState() to support the React 19 useActionState() hook when using Astro Actions. This introduces progressive enhancement when calling an Action with the withState() utility.
This example calls a like action that accepts a postId and returns the number of likes. Pass this action to the experimental_withState() function to apply progressive enhancement info, and apply to useActionState() to track the result:
import { actions } from 'astro:actions';
import { experimental_withState } from '@astrojs/react/actions';
You can also access the state stored by useActionState() from your action handler. Call experimental_getActionState() with the API context, and optionally apply a type to the result:
import { defineAction, z } from 'astro:actions';
import { experimental_getActionState } from '@astrojs/react/actions';
Bumps the npm-deps group with 13 updates in the / directory:
3.1.2
3.1.5
5.0.17
5.0.18
4.5.12
4.9.2
11.0.24
11.2.10
3.1.0
3.4.0
0.5.12
0.5.13
7.4.0
7.11.0
8.57.0
9.4.0
0.33.1
1.2.0
3.2.5
3.3.0
0.5.14
0.6.1
18.2.0
18.3.1
18.2.0
18.3.1
Updates
@astrojs/sitemap
from 3.1.2 to 3.1.5Release notes
Sourced from
@astrojs/sitemap
's releases.Changelog
Sourced from
@astrojs/sitemap
's changelog.Commits
9ddd638
[ci] release (#11086)cefeadf
Make status code check more strict for sitemap plugin (#10779)f9b6f4f
chore(deps): update all non-major dependencies (#10958)05d58ef
fix(deps): update all non-major dependencies (#10901)8d5f3e8
chore(deps): update all non-major dependencies (#10833)7fda037
[ci] release (#10798)5750ad1
[ci] format0e22462
fix(sitemap): Trailing slashes on root url (#10772)668d973
[ci] release (#10777)1ce2288
Improve sitemap generate performance (#10795)Updates
@fontsource/inter
from 5.0.17 to 5.0.18Commits
Updates
astro
from 4.5.12 to 4.9.2Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
Commits
cdf89a1
[ci] release (#11140)5af99dc
[ci] format98e0372
feat: pass props to container (#11138)4c7949d
[ci] release (#11132)4bb9269
Prevent errors from adapters when i18n domains is not used (#11129)5077592
[ci] release (#11116)9566fa0
Actions: Allow actions to be called on the server (#11088)e71348e
[docs] fix config reference code formatting (#11119)7bfe8aa
[ci] formatc7386ef
[docs] update heading level in config reference (#11118)Updates
framer-motion
from 11.0.24 to 11.2.10Changelog
Sourced from framer-motion's changelog.
... (truncated)
Commits
5425384
v11.2.10619f12b
Updating changelog565f4f3
Merge pull request #2691 from framer/fix/mix-immediate-invalid-colord3248d2
Removing unused files8535767
Updating interpolation for invalid colorsa58d3e7
Updating8faded0
Updating versione49ac6c
v11.2.99a52cda
Updating changelog4b5bb92
Ensures CSS variables are trimmed before animating (#2688)Updates
@astrojs/react
from 3.1.0 to 3.4.0Release notes
Sourced from
@astrojs/react
's releases.... (truncated)
Changelog
Sourced from
@astrojs/react
's changelog.... (truncated)
Commits
5077592
[ci] release (#11116)7be7b1a
[ci] format8ca7c73
Actions: React 19 progressive enhancement support (#11071)cb2586f
fix(deps): update all non-major dependencies (#11015)e2cdd3c
[ci] release (#10985)4d16381
feat(package.json): removed wrong react types (#10986)770b9f0
[ci] release (#10944)f9b6f4f
chore(deps): update all non-major dependencies (#10958)cceeafb
[ci] formatd47baa4
Support React 19 (#10942)Updates
@tailwindcss/typography
from 0.5.12 to 0.5.13Release notes
Sourced from
@tailwindcss/typography
's releases.Changelog
Sourced from
@tailwindcss/typography
's changelog.Commits
e21d9e6
0.5.13c0dea6c
Don't apply margins to\<br>
elements contained in an\<li>
in FF (#350)Updates
@typescript-eslint/parser
from 7.4.0 to 7.11.0Release notes
Sourced from
@typescript-eslint/parser
's releases.... (truncated)
Changelog
Sourced from
@typescript-eslint/parser
's changelog.... (truncated)
Commits
e360541
chore(release): publish 7.11.0c18226e
chore(release): publish 7.10.077fc366
chore(release): publish 7.9.0f53fece
chore: add knip (#8192)ee677f6
chore(release): publish 7.8.03e19436
chore(release): publish 7.7.1e44a1a2
chore(release): publish 7.7.0e1db872
chore(release): publish 7.6.0a6ab2cb
feat: bump npm dependency ranges (#8860)a14ba9d
chore(release): publish 7.5.0Updates
eslint
from 8.57.0 to 9.4.0Release notes
Sourced from eslint's releases.
... (truncated)
Changelog
Sourced from eslint's changelog.
... (truncated)
Commits
a5f7e58
9.4.08c6d0c3
Build: changelog update for 9.4.0010dd2e
chore: upgrade to@eslint/js@9.4.0
(#18534)5e1b5dc
chore: package.json update for@eslint/js
released7ab6f5
docs: update theme when whenprefers-color-scheme
changes (#18510)594145f
refactor: switch to@eslint/config-array
(#18527)525fdff
docs: fix components files (#18519)89a4a0a
feat: ignore IIFE's in theno-loop-func
rule (#17528)80747d2
docs: refactorprefer-destructuring
rule (#18472)f6534d1
fix: skip processor code blocks that match only universal patterns (#18507)Updates
eslint-plugin-astro
from 0.33.1 to 1.2.0Release notes
Sourced from eslint-plugin-astro's releases.