mirror of https://github.com/sveltejs/svelte
commit
67bfcfde52
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
perf: speed up $.exclude_from_object
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
chore: publish package provenance info
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: skip `is_standalone` optimisation for dynamic components
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: order of arguments for `push_element` in `svelte:element`
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: ensure event handlers referencing $host are not hoisted
|
||||
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
feat: simplify derived object destructuring
|
||||
@ -0,0 +1 @@
|
||||
<!--[--><h1>call +636-555-3226 now</h1><!--]-->
|
||||
@ -0,0 +1 @@
|
||||
<!--[--><h1>call <a href="tel:+636-555-3226">+636-555-3226</a> now</h1><!--]-->
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
const message = `call +636-555-3226 now`;
|
||||
</script>
|
||||
|
||||
<h1>{message}</h1>
|
||||
@ -0,0 +1,2 @@
|
||||
<!-- unrelated comment -->
|
||||
<!--[--><!--[-->hello<!--]--><!--]-->
|
||||
@ -1,5 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `true 1 2 baz`
|
||||
html: `true 1 2 baz 1 2 3`
|
||||
});
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
<script>
|
||||
let stuff = $state({ foo: true, bar: [1, 2, {baz: 'baz'}] });
|
||||
let { foo, bar: [a, b, { baz }]} = $derived(stuff);
|
||||
|
||||
let stuff2 = $state([1, 2, 3]);
|
||||
let [d, e, f] = $derived(stuff2);
|
||||
</script>
|
||||
|
||||
{foo} {a} {b} {baz}
|
||||
{foo} {a} {b} {baz} {d} {e} {f}
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let { id } = $props();
|
||||
</script>
|
||||
|
||||
<span>{id}</span>
|
||||
@ -0,0 +1,16 @@
|
||||
import { flushSync } from 'svelte';
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
html: `<button>flip</button> <span>0</span><span>1</span><span>2</span>`,
|
||||
|
||||
async test({ assert, target }) {
|
||||
const button = target.querySelector('button');
|
||||
|
||||
flushSync(() => button?.click());
|
||||
assert.htmlEqual(
|
||||
target.innerHTML,
|
||||
`<button>flip</button> <span>2</span><span>1</span><span>0</span>`
|
||||
);
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,13 @@
|
||||
<script>
|
||||
import Row from './Row.svelte';
|
||||
|
||||
const items = $state([{ id: 0 }, { id: 1 }, { id: 2 }]);
|
||||
|
||||
const Table = { Row };
|
||||
</script>
|
||||
|
||||
<button onclick={() => items.reverse()}> flip </button>
|
||||
|
||||
{#each items as item (item.id)}
|
||||
<Table.Row id={item.id} />
|
||||
{/each}
|
||||
@ -0,0 +1,7 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
compileOptions: {
|
||||
dev: true
|
||||
}
|
||||
});
|
||||
@ -0,0 +1 @@
|
||||
<!--[--><!----><p ><!----><p ><!----></p><!----><!----></p><!----><!--]-->
|
||||
@ -0,0 +1 @@
|
||||
<script>console.error("node_invalid_placement_ssr: `<p>` (packages/svelte/tests/server-side-rendering/samples/invalid-nested-svelte-element/main.svelte:1:0) cannot contain `<p>` (packages/svelte/tests/server-side-rendering/samples/invalid-nested-svelte-element/main.svelte:2:1)\n\nThis can cause content to shift around as the browser repairs the HTML, and will likely result in a `hydration_mismatch` warning.")</script>
|
||||
@ -0,0 +1,3 @@
|
||||
<svelte:element this={'p'}>
|
||||
<svelte:element this={'p'}></svelte:element>
|
||||
</svelte:element>
|
||||
Loading…
Reference in new issue