summaryrefslogtreecommitdiff
path: root/packages/integrations/vue
diff options
context:
space:
mode:
authorGravatar Houston (Bot) <108291165+astrobot-houston@users.noreply.github.com> 2024-06-06 08:02:22 -0700
committerGravatar GitHub <noreply@github.com> 2024-06-06 11:02:22 -0400
commit48d53094cdbbcd4363d6c77aac13161c5cde5064 (patch)
tree5ef23b05dc153f4a2944e4ca8c2536d3f3d6934e /packages/integrations/vue
parent97fbe938a9b07d52d61011da4bd5a8b5ad85a700 (diff)
downloadastro-48d53094cdbbcd4363d6c77aac13161c5cde5064.tar.gz
astro-48d53094cdbbcd4363d6c77aac13161c5cde5064.tar.zst
astro-48d53094cdbbcd4363d6c77aac13161c5cde5064.zip
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'packages/integrations/vue')
-rw-r--r--packages/integrations/vue/CHANGELOG.md24
-rw-r--r--packages/integrations/vue/package.json2
2 files changed, 25 insertions, 1 deletions
diff --git a/packages/integrations/vue/CHANGELOG.md b/packages/integrations/vue/CHANGELOG.md
index acef2a55e..d509141d1 100644
--- a/packages/integrations/vue/CHANGELOG.md
+++ b/packages/integrations/vue/CHANGELOG.md
@@ -1,5 +1,29 @@
# @astrojs/vue
+## 4.4.0
+
+### Minor Changes
+
+- [#11144](https://github.com/withastro/astro/pull/11144) [`803dd80`](https://github.com/withastro/astro/commit/803dd8061df02138b4928442bcb76e77dcf6f5e7) Thanks [@ematipico](https://github.com/ematipico)! - The integration now exposes a function called `getContainerRenderer`, that can be used inside the Container APIs to load the relative renderer.
+
+ ```js
+ import { experimental_AstroContainer as AstroContainer } from 'astro/container';
+ import ReactWrapper from '../src/components/ReactWrapper.astro';
+ import { loadRenderers } from 'astro:container';
+ import { getContainerRenderer } from '@astrojs/react';
+
+ test('ReactWrapper with react renderer', async () => {
+ const renderers = await loadRenderers([getContainerRenderer()]);
+ const container = await AstroContainer.create({
+ renderers,
+ });
+ const result = await container.renderToString(ReactWrapper);
+
+ expect(result).toContain('Counter');
+ expect(result).toContain('Count: <!-- -->5');
+ });
+ ```
+
## 4.3.0
### Minor Changes
diff --git a/packages/integrations/vue/package.json b/packages/integrations/vue/package.json
index f38d767a9..73dc6376c 100644
--- a/packages/integrations/vue/package.json
+++ b/packages/integrations/vue/package.json
@@ -1,6 +1,6 @@
{
"name": "@astrojs/vue",
- "version": "4.3.0",
+ "version": "4.4.0",
"description": "Use Vue components within Astro",
"type": "module",
"types": "./dist/index.d.ts",