Skip to content

Commit 5c3b897

Browse files
changes for v1.1.0 (#27)
Co-authored-by: Sylwia Vargas <[email protected]>
1 parent 236f999 commit 5c3b897

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

docs/.vitepress/config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ const SIDEBAR_DEFAULT = [
2323
{
2424
items: [{ text: 'API Reference', link: '/api' }],
2525
},
26+
{
27+
items: [{ text: 'Changelog', link: '/changelog' }],
28+
},
2629
{
2730
items: [{ text: 'Enterprise', link: '/enterprise' }],
2831
},
@@ -88,6 +91,7 @@ export default defineConfig({
8891
'/guides/': SIDEBAR_DEFAULT,
8992
'/tutorial/': SIDEBAR_DEFAULT,
9093
'/api': SIDEBAR_DEFAULT,
94+
'/changelog': SIDEBAR_DEFAULT,
9195
'/enterprise': SIDEBAR_DEFAULT,
9296
'/contact': SIDEBAR_DEFAULT,
9397
'/community-projects': SIDEBAR_DEFAULT,

docs/changelog.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: &title Changelog
3+
description: &description Changelog for the WebContainers API library
4+
head:
5+
- ['meta', {property: 'og:title', content: *title}]
6+
- ['meta', {name: 'twitter:title', content: *title}]
7+
- ['meta', {name: 'twitter:description', content: *description}]
8+
9+
---
10+
11+
# Changelog
12+
13+
## 1.1.0
14+
15+
* The value of the [`Cross-Origin-Embedder-Policy`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cross-Origin-Embedder-Policy) header can be changed now with `BootOptions#coep`.
16+
* The name of the working directory can be specified through `BootOptions#workdirName`.
17+
* The default value of the `PATH` environment variable is exposed in `WebContainer#path`.
18+
* The full path of the working directory is exposed in `WebContainer#workdir`.

docs/guides/configuring-headers.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ head:
1212

1313
This guide provides an overview on how to configure COOP/COEP headers, including hosting platform configuration.
1414

15-
WebContainers require that your page, even in development, be served with these two headers:
15+
WebContainers require that your page, even in development, is served with these two headers:
1616

1717
```yaml
1818
Cross-Origin-Embedder-Policy: require-corp
@@ -21,6 +21,14 @@ Cross-Origin-Opener-Policy: same-origin
2121
2222
These headers are needed because WebContainer _requires_ SharedArrayBuffer, which, in turn, requires your website to be cross-origin isolated.
2323
24+
Some browsers support a different mode for cross-origin isolation: [`credentialless`](https://caniuse.com/mdn-http_headers_cross-origin-embedder-policy_credentialless). If you wish to serve your content in this way, set your headers instead to:
25+
```yaml
26+
Cross-Origin-Embedder-Policy: credentialless
27+
Cross-Origin-Opener-Policy: same-origin
28+
```
29+
and make sure to boot your WebContainer specifying [`coep: 'credentialless'`](/api).
30+
31+
2432
::: info Deep Dive: cross-origin isolation
2533
Here are a few helpful resources if you'd like to learn more about these topics:
2634

0 commit comments

Comments
 (0)