Maximiliano Ruani
8ffc8fd77b
[fix] Fix hydration duplicate `svelte:head` tag issue with `@html` expressions and nested components ( #7745 )
...
* Fix hydration duplicate `svelte:head` tag issue with `@html` and nested components #7444 #6463
* - Changed comment style to HEAD_${head_id}_START and HEAD_${head_id}_END
- Improved claim logic
- Changed tests accordingly
2 years ago
Yuichiro Yamashita
895b4c6721
[fix] hydrate correct elements when using `@html` ( #6946 )
3 years ago
Conduitry
10ce5c95fd
[fix] handle promise rejections for {#await} in SSR ( #6790 )
3 years ago
Hasan Altan Birler
ecbd96af95
[fix] hydration improvements ( #6449 )
3 years ago
Hasan Altan Birler
04bc37de31
Improve hydration by reordering optimally ( #6395 )
...
* Implement new hydration optimization
During hydration, greedily pick nodes that exist in the original HTML that should not be detached.
Detach the rest.
* Implement optimal reordering during hydration
During hydration we track the order in which children are claimed.
Afterwards, rather than reordering them greedily one-by-one, we reorder all claimed children during the first append optimally.
The optimal reordering first finds the longest subsequence of children that have been claimed in order.
These children will not be moved.
The rest of the children are reordered to where they have to go.
This algorithm is guaranteed to be optimal in the number of reorderings.
The hydration/head-meta-hydrate-duplicate test sample has been modified slightly.
The order in which the <title> tag is being generated changed, which does not affect correctness.
* Fix issue potentially causing extra reorders
Not sorting children before executing the `insertBefore` calls in `init_hydrate` potentially caused extra `insertBefore` calls in `append`
* Simplify`init_hydrate` sorting logic
3 years ago
Conduitry
6d16e92606
Revert hydration optimisation ( #6290 )
...
Co-authored-by: haveyaseen <haveyaread@gmail.com>
3 years ago
Tan Li Hau
94bfeae5d5
fix claim_text ( #6275 )
3 years ago
Ben McCann
7ea6a2994a
Curly braces linting fixes ( #5585 )
4 years ago
Andreas Ehrencrona
ddf13211af
Updated to ESLint config 5.4.0 ( #5541 )
4 years ago
Ben McCann
229a16d6e7
upgrade ESLint config ( #5472 )
4 years ago
Ben McCann
0645631b28
Use TypeScript in tests ( #5433 )
4 years ago
Antony Jones
82dc26a31c
Fix lint warnings ( #5263 )
4 years ago
Tan Li Hau
ec3589e314
fix hydration of top-level content ( #4550 )
5 years ago
Conduitry
455a5cc754
fix hydration of <title> ( #4311 )
5 years ago
Conduitry
33c3a02ee4
failing test
5 years ago
Tan Li Hau
b3582c7fb2
fix hydrating <head> ( #4082 )
5 years ago
Tan Li Hau
7c3e34c00b
fix hydrating each else ( #4253 )
5 years ago
Tan Li Hau
d8b9274697
update test snapshot with --update flag
5 years ago
Tan Li Hau
8d722ae1aa
look for test folder name for solo mode as well
5 years ago
Tan Li Hau
5dbb08d19b
allow solo for test suite ( #3747 )
5 years ago
Richard Harris
3f33d35573
handle special null case when hydrating
5 years ago
Sebastian Silbermann
12c667f898
Add failing test for null hydration
5 years ago
Richard Harris
d67ffcd3d3
fix hydration tests
5 years ago
Richard Harris
aa653558d0
only create fallback content if no slot is provided - fixes #2354
5 years ago
Richard Harris
83a9b6af23
default to accessors: false ( #2144 )
6 years ago
Richard Harris
ca0e5df0d8
update parser and js tests
6 years ago
Richard Harris
be0a3aafbd
update hydration tests
6 years ago
Richard Harris
3953c2dbfc
error on invalid compiler options — closes #2094
6 years ago
Rich Harris
206a3d0131
update tests
6 years ago
Rich Harris
687e352209
rename .html files to .svelte
6 years ago
Rich Harris
722e1fd383
get name based on filename
6 years ago
Rich Harris
48f1f6b4d0
implement `bind:this`
6 years ago
Rich Harris
f45e2b70fd
Implement reactive assignments ( #1839 )
...
This also includes elements of RFCs 2 and 3
6 years ago
Rich Harris
39d0b862d4
update hydration tests
6 years ago
Rich Harris
a3add04e7c
remove code, map and cssMap from svelte.compile output
6 years ago
Rich Harris
2f86bd339d
update tests to account for removal of observe
6 years ago
esarbanis
9218f20330
Use a block scoped unique name for the context
7 years ago
Rich Harris
8020fe53fc
remove babel etc
7 years ago
Rich Harris
65e484b6ae
remove reify
7 years ago
Rich Harris
46cb2a4da3
update jsdom
7 years ago
Rich Harris
b47e2527b3
test with hydratable: true and hydratable: false
7 years ago
Rich Harris
d10ddc0c51
fix most non-hydration tests
7 years ago
Rich Harris
97b70bccc5
events, bindings, if block fixes
7 years ago
Rich Harris
dc29b2d466
fix component hydration
7 years ago
Rich Harris
0bbd917442
more hydration
7 years ago
Rich Harris
14fe89eae8
hydration working with elements, text nodes, tags and if blocks
7 years ago
Rich Harris
dceb2b533b
first, very incorrect stab at hydration
7 years ago
Rich Harris
f361d4287a
add hydration tests
7 years ago