feat: support passing URL to islands (#3181)
Adds support for passing `URL` values to Islands.
```tsx
// routes/index.html
export default function Page() {
return <MyIsland url={new URL("https://fresh.deno.dev")} />;
}
```
Also updates documentation with some missing serialization features
(`undefined`, `Map`, `Set`, and `-0`).
---------
Co-authored-by: Marvin Hagemeister <hello@marvinh.dev>
This commit is contained in:
co-authored by
Marvin Hagemeister
parent
03f6981860
commit
57596dc406
@@ -32,6 +32,7 @@ const TESTS = [
|
||||
[null, undefined, -2],
|
||||
{ a: 1, b: null, c: -2 },
|
||||
new Uint8Array([1, 2, 3]),
|
||||
new URL("https://fresh.deno.dev"),
|
||||
new Date("1990-05-31"),
|
||||
new Map([[1, null], [undefined, -2]]),
|
||||
new Set([1, 2, null, -2, NaN]),
|
||||
|
||||
Reference in New Issue
Block a user