#112344385bf7 Thanks @ematipico! - Adds a new function called addServerRenderer to the Container API. Use this function to manually store renderers inside the instance of your container.
This new function should be preferred when using the Container API in environments like on-demand pages:
import type { APIRoute } from 'astro';
import { experimental_AstroContainer } from 'astro/container';
import reactRenderer from '@astrojs/react/server.js';
import vueRenderer from '@astrojs/vue/server.js';
import ReactComponent from '../components/button.jsx';
import VueComponent from '../components/button.vue';
// MDX runtime is contained inside the Astro core
import mdxRenderer from 'astro/jsx/server.js';
// In case you need to import a custom renderer
import customRenderer from '../renderers/customRenderer.js';
export const GET: APIRoute = async (ctx) => {
const container = await experimental_AstroContainer.create();
container.addServerRenderer({ renderer: reactRenderer });
container.addServerRenderer({ renderer: vueRenderer });
container.addServerRenderer({ renderer: customRenderer });
// You can pass a custom name too
container.addServerRenderer({
name: 'customRenderer',
renderer: customRenderer,
});
const vueComponent = await container.renderToString(VueComponent);
return await container.renderToResponse(Component);
};
#112344385bf7 Thanks @ematipico! - Adds a new function called addServerRenderer to the Container API. Use this function to manually store renderers inside the instance of your container.
This new function should be preferred when using the Container API in environments like on-demand pages:
import type { APIRoute } from 'astro';
import { experimental_AstroContainer } from 'astro/container';
import reactRenderer from '@astrojs/react/server.js';
import vueRenderer from '@astrojs/vue/server.js';
import ReactComponent from '../components/button.jsx';
import VueComponent from '../components/button.vue';
// MDX runtime is contained inside the Astro core
import mdxRenderer from 'astro/jsx/server.js';
// In case you need to import a custom renderer
import customRenderer from '../renderers/customRenderer.js';
export const GET: APIRoute = async (ctx) => {
const container = await experimental_AstroContainer.create();
container.addServerRenderer({ renderer: reactRenderer });
container.addServerRenderer({ renderer: vueRenderer });
container.addServerRenderer({ renderer: customRenderer });
// You can pass a custom name too
container.addServerRenderer({
name: 'customRenderer',
renderer: customRenderer,
});
const vueComponent = await container.renderToString(VueComponent);
return await container.renderToResponse(Component);
};
#113270df8142 Thanks @ematipico! - Fixes an issue with the container APIs where a runtime error was thrown during the build, when using pnpm as package manager.
#1132641121fb Thanks @florian-lefebvre! - Fixes a case where running astro sync when using the experimental astro:env feature would fail if environment variables were missing
#113389752a0b Thanks @zaaakher! - Fixes svg icon margin in devtool tooltip title to look coherent in rtl and ltr layouts
Previously we tracked non-fatal errors in telemetry to get a good idea of the types of errors that occur in astro dev. However this has become noisy over time and results in a lot of data that isn't particularly useful. This removes those non-fatal errors from being tracked.
astro@4.11.1
Patch Changes
#1130844c61dd Thanks @ematipico! - Fixes an issue where custom 404.astro and 500.astro were not returning the correct status code when rendered inside a rewriting cycle.
#113020622567 Thanks @martrapp! - Fixes an issue with the view transition router when redirecting to an URL with different origin.
#113270df8142 Thanks @ematipico! - Fixes an issue with the container APIs where a runtime error was thrown during the build, when using pnpm as package manager.
#1132641121fb Thanks @florian-lefebvre! - Fixes a case where running astro sync when using the experimental astro:env feature would fail if environment variables were missing
#113389752a0b Thanks @zaaakher! - Fixes svg icon margin in devtool tooltip title to look coherent in rtl and ltr layouts
Previously we tracked non-fatal errors in telemetry to get a good idea of the types of errors that occur in astro dev. However this has become noisy over time and results in a lot of data that isn't particularly useful. This removes those non-fatal errors from being tracked.
4.11.1
Patch Changes
#1130844c61dd Thanks @ematipico! - Fixes an issue where custom 404.astro and 500.astro were not returning the correct status code when rendered inside a rewriting cycle.
#113020622567 Thanks @martrapp! - Fixes an issue with the view transition router when redirecting to an URL with different origin.
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 production-dependencies group with 7 updates in the / directory:
3.1.0
3.1.2
3.5.0
3.6.0
4.0.6
4.0.7
3.1.5
3.1.6
1.1.192
1.1.196
4.10.2
4.11.3
0.49.0
0.50.0
Updates
@astrojs/mdx
from 3.1.0 to 3.1.2Release notes
Sourced from
@astrojs/mdx
's releases.Changelog
Sourced from
@astrojs/mdx
's changelog.Commits
ce310f8
[ci] release (#11297)47e78d4
fix(deps): update all non-major dependencies (#11318)83c565b
[ci] release (#11233)7d59750
chore: logging cleanup (#11263)68f1d0d
chore(deps): update all non-major dependencies (#11269)8725cb2
fix(deps): update all non-major dependencies (#11222)Updates
@astrojs/react
from 3.5.0 to 3.6.0Release notes
Sourced from
@astrojs/react
's releases.Changelog
Sourced from
@astrojs/react
's changelog.Commits
83c565b
[ci] release (#11233)68f1d0d
chore(deps): update all non-major dependencies (#11269)fd9da98
feat: refine container APIs for renderers (#11251)a6df7e8
[ci] format4385bf7
feat(@astrojs/react
): export renderer for easy loading (#11234)8725cb2
fix(deps): update all non-major dependencies (#11222)Updates
@astrojs/rss
from 4.0.6 to 4.0.7Release notes
Sourced from
@astrojs/rss
's releases.Changelog
Sourced from
@astrojs/rss
's changelog.Commits
ce310f8
[ci] release (#11297)8ce66f2
fix(rss): correct types forRSSFeedItem
(#11299)464b0a1
fix(deps): update all non-major dependencies (#11151)Updates
@astrojs/sitemap
from 3.1.5 to 3.1.6Release notes
Sourced from
@astrojs/sitemap
's releases.Changelog
Sourced from
@astrojs/sitemap
's changelog.Commits
83c565b
[ci] release (#11233)7d59750
chore: logging cleanup (#11263)464b0a1
fix(deps): update all non-major dependencies (#11151)Updates
@iconify-json/lucide
from 1.1.192 to 1.1.196Commits
c141407
Update Material Design Icons, OpenMojic31a1e1
Update Material Design Icons, Simple Iconsaccd74a
Update HeroIcons Outline, HeroIcons Solid, Material Design Icons, OpenMoji, U...1073ca5
Update Material Design Icons, Noto EmojiUpdates
astro
from 4.10.2 to 4.11.3Release notes
Sourced from astro's releases.
... (truncated)
Changelog
Sourced from astro's changelog.
... (truncated)
Commits
d7ae91c
[ci] release (#11346)33bdc54
Fix getPackage resolve path (#11347)0df8142
fix(container): breakdown files to avoid importingvite
(#11327)d9e6190
[ci] release (#11336)f1b78a4
Remove resolve package and refactor db & studio exports (#11331)9752a0b
[ui] fix margin around devtool tooltip icon inrtl
(#11338)8fdbf0e
Remove non-fatal errors from telemetry (#11339)16af927
[ci] format02c37c7
refactor(plugin-content): code refactor (#11312)86515f4
[ci] formatUpdates
monaco-editor
from 0.49.0 to 0.50.0Release notes
Sourced from monaco-editor's releases.
... (truncated)
Changelog
Sourced from monaco-editor's changelog.
Commits
c321d0f
Merge pull request #4572 from microsoft/satisfactory-beetle29a4a3a
updating the version in the package.json fileada2b3d
Merge pull request #4570 from microsoft/dependabot/npm_and_yarn/ws-8.17.18a98f87
Bump ws from 8.4.2 to 8.17.1d15d6ba
Bump express from 4.18.1 to 4.19.2 in /website (#4447)654fd3d
Bump express from 4.18.1 to 4.19.2 in /samples (#4446)1eed447
Bump braces from 3.0.2 to 3.0.3 in /samples (#4565)f883fe9
Bump braces from 3.0.2 to 3.0.3 (#4564)c49fdf9
Merge pull request #4482 from jakebailey/emit-file-diagnostics045e29b
Merge pull request #4504 from htcfreek/patch-1Dependabot 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