Skip to content

Commit c1b52c1

Browse files
authored
Merge pull request #4 from fullsoak/epx/0.16.0-alpha.2
exp 0.16.0-alpha.2
2 parents 3f7fc8e + ff40acf commit c1b52c1

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

deno.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"imports": {
3-
"fullsoak": "jsr:@fullsoak/[email protected].1",
3+
"fullsoak": "jsr:@fullsoak/[email protected].2",
44
"preact": "npm:[email protected]",
55
"preact-iso": "npm:[email protected]",
66
"@std/testing": "jsr:@std/testing@^1.0.9"

deno.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/__snapshots__/MyComponent.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const snapshot = {};
22

33
snapshot[`MyComponent 1`] = `
4-
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><link rel="preload" href="/components/MyComponent/mount" as="script" type="text/javascript"/><link rel="preload" href="/components/MyComponent/index.tsx" as="script" type="text/javascript"/><script type="importmap">{
4+
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><script type="importmap">{
55
"imports": {
66
"preact": "https://esm.sh/[email protected]",
77
"preact/hooks": "https://esm.sh/[email protected]/hooks",
@@ -21,5 +21,5 @@ snapshot[`MyComponent 1`] = `
2121
"fullsoak": "/fullsoak",
2222
"@fullsoak/fullsoak": "/fullsoak"
2323
}
24-
}</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props &#39;foo&#39; is bar</li><li>state count is 0 <button >+</button><button >-</button></li><li><a href="/app">Route Aware App Component</a></li></ul></section><section style="padding:1rem;"><h2>MyOtherComponent</h2><span>props &#39;baz&#39; is 0</span></section><footer><span>source code of this website:</span> <a href="https://github.com/fullsoak/deno-examples">https://github.com/fullsoak/deno-examples</a></footer></main><script type="text/javascript">window.preloadedProps = {"foo":"bar"}</script><script defer type="module" src="/components/MyComponent/mount"></script></body></html>'
24+
}</script><link rel="modulepreload" href="/components/MyComponent/mount" as="script" type="text/javascript"/><link rel="modulepreload" href="/components/MyComponent/index.tsx" as="script" type="text/javascript"/><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><section class="main"><h1>MyComponent</h1><ul><li>props &#39;foo&#39; is bar</li><li>state count is 0 <button >+</button><button >-</button></li><li><a href="/app">Route Aware App Component</a></li></ul></section><section style="padding:1rem;"><h2>MyOtherComponent</h2><span>props &#39;baz&#39; is 0</span></section><footer><span>source code of this website:</span> <a href="https://github.com/fullsoak/deno-examples">https://github.com/fullsoak/deno-examples</a></footer></main><script type="text/javascript">window.preloadedProps = {"foo":"bar"}</script><script defer type="module" src="/components/MyComponent/mount"></script></body></html>'
2525
`;

tests/__snapshots__/MyRouteAwareComponent.test.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const snapshot = {};
22

33
snapshot[`MyRouteAwareComponent 1`] = `
4-
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><link rel="preload" href="/components/MyRouteAwareComponent/mount" as="script" type="text/javascript"/><link rel="preload" href="/components/MyRouteAwareComponent/index.tsx" as="script" type="text/javascript"/><script type="importmap">{
4+
'<!doctype html><html><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0"/><script type="importmap">{
55
"imports": {
66
"preact": "https://esm.sh/[email protected]",
77
"preact/hooks": "https://esm.sh/[email protected]/hooks",
@@ -21,5 +21,5 @@ snapshot[`MyRouteAwareComponent 1`] = `
2121
"fullsoak": "/fullsoak",
2222
"@fullsoak/fullsoak": "/fullsoak"
2323
}
24-
}</script><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><main><h1>NotFound</h1><a href="/app">Back</a></main></main><script type="text/javascript">window.preloadedProps = {"url":"http://localhost/bar"}</script><script defer type="module" src="/components/MyRouteAwareComponent/mount"></script></body></html>'
24+
}</script><link rel="modulepreload" href="/components/MyRouteAwareComponent/mount" as="script" type="text/javascript"/><link rel="modulepreload" href="/components/MyRouteAwareComponent/index.tsx" as="script" type="text/javascript"/><script type="text/javascript"></script><style></style></head><body><main id="fullsoak-htmlshell-main"><main><h1>NotFound</h1><a href="/app">Back</a></main></main><script type="text/javascript">window.preloadedProps = {"url":"http://localhost/bar"}</script><script defer type="module" src="/components/MyRouteAwareComponent/mount"></script></body></html>'
2525
`;

0 commit comments

Comments
 (0)