Bassam Ismail
c663104937
[fix] prevent cursor jump for all text inputs ( #6941 )
2021-12-13 14:30:53 -05:00
Vaibhav Rai
b6b7f5c8a4
[fix] properly respect sveltePath when rewriting user imports ( #6842 )
2021-10-12 16:13:44 -04:00
Conduitry
6735d5422c
[chore] fix js sample test
2021-08-27 15:16:27 -04:00
Yuichiro Yamashita
fc4797c6f8
[fix] only use optimized 'src' handling for 'html' namespace ( #6580 )
2021-08-27 15:08:38 -04:00
tomoam
907223cc78
[fix] only rely on element
/svg_element
functions if a hydrating component needs them ( #6556 )
2021-08-20 12:20:00 -04:00
Tan Li Hau
f25a995f7b
collapse whitespace in class and style attributes ( #6613 )
2021-08-20 12:05:58 -04:00
Tan Li Hau
c550f604f2
[feat] enable export ... from ( #6574 )
2021-07-27 09:37:37 -04:00
Tan Li Hau
ef14280e28
use simpler insert and append functions when not compiling with hydration ( #6525 )
2021-07-21 16:21:06 -04:00
Hofer Ivan
5cfefeb6e7
support rendering components in a shadow dom ( #5870 )
2021-07-21 15:51:31 -04:00
Hasan Altan Birler
ecbd96af95
[fix] hydration improvements ( #6449 )
2021-07-21 12:28:44 -04:00
Tan Li Hau
ebaa891e69
[chore] update code-red@0.2.0 ( #6425 )
...
Co-authored-by: Conduitry <git@chor.date>
2021-07-10 06:15:44 -07:00
Luis Confraria
554d5dd391
Fix preserveComments on ssr ( #4736 )
...
Fixes #4730
Co-authored-by: tanhauhau <lhtan93@gmail.com>
2021-06-28 12:56:12 +02:00
zerdox
0df9233fb1
Fix wrong "slot" property warning (runtime) ( #6065 )
...
* updated: condition for warning about unknown prop
* test are updated
2021-06-28 14:45:22 +08:00
Tan Li Hau
3f990a96ba
Use SSR rendered as initial html for runtime hydration test ( #4444 )
2021-06-18 19:06:01 -07:00
Pontus Lundin
d4f98fb63a
Call onMount when connected & clean up when disconnected for custom element ( #4522 )
...
* call onDestroy when disconnected
* lifecycle hooks and custom elements
- Call onMount in connectedCallback for customElements
- register onMount return values as on_disconnect-callbacks for customElements
- run on_disconnect callbacks in disconnectedCallback
* do not reset on_mount so that it can fire again if reinserted
* simpler isCustomElement & skip extra function call
- pass options.customElement down to mount_component
- remove expensive isCustomElement check
- only call add_render_callback if not customElement
Co-authored-by: Pontus Lundin <pontus.lundin@ica.se>
2021-02-15 22:40:17 +00:00
Tan Li Hau
6589aa2548
warn module variables are nonreactive and make them truly nonreactive ( #5847 )
2021-01-29 15:05:04 -05:00
J Delaney
4f05cc3e3c
don't create class update functions when dependencies aren't reactive ( #5926 )
2021-01-29 11:47:22 -05:00
Tan Li Hau
08cb3142e9
keep each block value ( #5841 )
2021-01-01 20:41:31 -05:00
Tan Li Hau
63669330f6
maintain context for keyed each ( #5840 )
2021-01-01 20:28:11 -05:00
Tan Li Hau
a41c7644e6
shift injected declarations to the top ( #5837 )
2021-01-01 19:59:35 -05:00
Tan Li Hau
1cc5bdb9ca
reactive dependency not referenced can't set to undefined initially ( #5600 )
2020-11-23 11:57:44 -05:00
Tan Li Hau
6fa3e91b5d
support $$props and $$restProps for custom elements ( #5608 )
2020-10-28 15:33:03 -04:00
Andreas Ehrencrona
ddf13211af
Updated to ESLint config 5.4.0 ( #5541 )
2020-10-21 15:23:08 -07:00
Ben McCann
229a16d6e7
upgrade ESLint config ( #5472 )
2020-09-29 20:19:43 -04:00
Ben McCann
0645631b28
Use TypeScript in tests ( #5433 )
2020-09-29 11:19:21 -04:00
Tan Li Hau
a1651ca271
add nonpassive event modifier ( #5442 )
...
Co-authored-by: filipot <filipot@stud.ntnu.no>
2020-09-24 15:54:54 -04:00
Tan Li Hau
aef5671411
update acorn and parse expression as module script ( #5423 )
2020-09-18 12:09:44 -04:00
Tan Li Hau
8a28d1bb38
valid XHTML syntax in innerHTML for static elements ( #5317 )
2020-09-10 15:28:22 -04:00
Antony Jones
82dc26a31c
Fix lint warnings ( #5263 )
2020-08-20 08:51:28 -07:00
Tan Li Hau
0ac341d2c6
expose which slots are present in $$slots ( #4602 )
2020-08-13 10:20:55 -04:00
Tan Li Hau
ec0f79c5af
add updating guard to binding callback ( #5126 )
2020-07-17 16:12:26 -04:00
Tan Li Hau
2450dd1ff0
update acorn@^7.3.1 for optional chaining support ( #5013 )
2020-06-27 05:58:21 -04:00
Tan Li Hau
55c809624d
fix collapsing HTML with static content ( #5059 )
2020-06-25 13:42:16 -04:00
Tan Li Hau
6289dfcdcd
fix <select> one-way bind when options change ( #5054 )
2020-06-23 15:55:33 -04:00
Tan Li Hau
7dfd9e9653
deconflict bind:this variable ( #4949 )
2020-06-10 13:17:46 -04:00
Tan Li Hau
c21a42edbf
remove unreferenced variable from initial context ( #4941 )
2020-06-08 10:50:32 -04:00
Tan Li Hau
bf6c74fb17
fix binding for each block local variable ( #4861 )
2020-06-08 09:26:42 -04:00
pushkin
0da70f46b9
handle line ending differences in tests ( #4915 )
2020-05-28 12:36:27 -04:00
Rich Harris
b0377cc4e4
fix {@html}
assuming it lives inside a <div> ( #4863 )
2020-05-26 19:25:19 -04:00
Rich Harris
3330c3fbab
only add event listeners when a block is first mounted ( #4860 )
2020-05-26 18:56:15 -04:00
Tan Li Hau
24ef4e1181
set select multiple value with spread ( #4894 )
2020-05-26 18:31:19 -04:00
Robert Hall
7fe1384f43
Property "muted" for <audio> and <video> ( #4690 )
...
* Audio two-way `muted` bind property
Loosely based on a37ee81676
* Documentation
* fix test
* dont bother coercing muted, it happens automatically
Co-authored-by: Richard Harris <richard.a.harris@gmail.com>
2020-05-18 21:37:03 -04:00
pushkin
8d8db4e836
ensure if_block dependency is dirty to cancel outro ( #4634 )
2020-04-23 19:40:19 -04:00
Maurício Kishi
ff5f25249e
support dimension bindings in cross-origin mode ( #2989 )
2020-04-20 09:05:37 -04:00
Tan Li Hau
b4b57c39a2
clean up event handlers on re-mount ( #4493 )
2020-03-15 10:18:41 -04:00
Conduitry
f2ee7efb94
add dev runtime warning for unknown slot names ( #4501 )
2020-03-04 19:56:13 -05:00
pushkin
b6aaa44880
check for unknown props even if component doesn't have writable props ( #4454 )
2020-02-29 12:43:53 -05:00
rixo
0786d2858d
exclude global variables from $capture_state ( #4475 )
2020-02-26 17:05:33 -05:00
rixo
cb64fb2ac9
make $capture_state/$inject_state act on entire state ( #3822 )
...
Previously, these methods only applied to exported props.
Also, add $$inject option to constructor, which injects state before
running the update loop.
2020-02-23 08:13:59 -05:00
swyx
3fbafe33c2
implement Dev mode validation of {#each} block argument ( #4419 )
2020-02-18 04:49:40 -05:00