Commit Graph

251 Commits (ce550adef65a7e04c381b11c24f07a2ae1c25783)

Author SHA1 Message Date
Tan Li Hau c752ed3527
handle undefined input value with spread (#5291)
5 years ago
Antony Jones 82dc26a31c
Fix lint warnings (#5263)
5 years ago
Irshad PI e0e434234d
Await: re-throw error when there is no catch block and promise is rejected (#5149)
5 years ago
Tan Li Hau 0ac341d2c6
expose which slots are present in $$slots (#4602)
5 years ago
Tan Li Hau e879cb5a4c
fix not passing child_ctx for catch block (#5261)
5 years ago
Tan Li Hau 7aae362bcb
fix reference for namespaced component (#5256)
5 years ago
Carlos Roso fdf3ab88be
Fix transitions for each-else blocks (#5179)
5 years ago
Tan Li Hau 02e10b1159
fix bind:group contextual reference (#5199)
5 years ago
Tan Li Hau d472bd2f5e
invalidate $$props and $$restProps only when there are changes (#5123)
5 years ago
Tan Li Hau fc7e99e9f0
fix $$props reactive for slots (#5125)
5 years ago
Tan Li Hau 4021063305
spread condition for input element (#5004)
5 years ago
Tan Li Hau 62345432ac
html anchor in head (#5071)
5 years ago
Tan Li Hau 55c809624d
fix collapsing HTML with static content (#5059)
5 years ago
Tan Li Hau 1a71e04079
fix bind:this, skip checking before adding to binding_callbacks (#5072)
5 years ago
Tan Li Hau e1b55f0fc3
add further cases where {@html} uses an anchor (#5061)
5 years ago
Tan Li Hau 6289dfcdcd
fix <select> one-way bind when options change (#5054)
5 years ago
Tan Li Hau 7dfd9e9653
deconflict bind:this variable (#4949)
5 years ago
Tan Li Hau 38de3b2e9f
fix bind:group in each (#4868)
5 years ago
Tan Li Hau 787ece66a4
fix bind:group with duplicated values (#4877)
5 years ago
Tan Li Hau bf6c74fb17
fix binding for each block local variable (#4861)
5 years ago
Ben McCann e606a0c878
Use namespaces.svg constant (#4952)
5 years ago
Rich Harris b0377cc4e4
fix `{@html}` assuming it lives inside a <div> (#4863)
5 years ago
Tan Li Hau 24ef4e1181
set select multiple value with spread (#4894)
5 years ago
Tan Li Hau e34f208843
reselect <select> when the option values change (#4885)
5 years ago
Tan Li Hau 7834ca3c5b
fix slot with context overflow + without let (#4862)
5 years ago
Robert Hall 7fe1384f43
Property "muted" for <audio> and <video> (#4690)
5 years ago
Daniel Imfeld 81ade59797
fix check for uninitialized `condition` (#4841)
5 years ago
Tan Li Hau 37cc5888f8
dry {#each}/{#await} destructuring (#4596)
5 years ago
Th0rN13 a73be39a80
fix contextual dynamic bind:this in {#each} (#4759)
5 years ago
Conduitry f111cf6881
deconflict `anchor` variable name (#4769)
5 years ago
pushkin 3ed11fa29d
add if_block existence check in block.p (#4633)
5 years ago
pushkin 8d8db4e836
ensure if_block dependency is dirty to cancel outro (#4634)
5 years ago
pushkin 7ac3e6021a
use value check instead of guard for number inputs (#4689)
5 years ago
pushkin 51c6aaff0b
fix parent in slot wrapper (#4705)
5 years ago
Maurício Kishi ff5f25249e
support dimension bindings in cross-origin mode (#2989)
5 years ago
Tan Li Hau cc1f2c6c9e
remove unneeded fragment block (#4568)
6 years ago
Tan Li Hau a0749f6adb
fix creating debugging comment for HTML comment (#4567)
6 years ago
Tan Li Hau cdc0270ef1
fix deconflicting variable name for slot fallback (#4564)
6 years ago
Tan Li Hau 7d1e4e82ff
support destructuring in await (#4548)
6 years ago
Tan Li Hau 82dce0c8fc
do not initialise slot fallback fragment unless necessary (#4514)
6 years ago
Tan Li Hau 404ed3dbfe
fix else-block update in keyed each-block (#4558)
6 years ago
Tan Li Hau 345d5f27ee fix lazy code breaks in build
6 years ago
Conduitry a8291227ce
fit bitmask overflow initial dirty value in 'if' blocks (#4507)
6 years ago
Tan Li Hau 926a2aebd8
fix render fallback slot content due to whitespace (#4500)
6 years ago
Tan Li Hau d802c3b266
in spread, distinguish never-updating and always-updating props (#4487)
6 years ago
Conduitry 3bfa0e5cd6
deconflict `value` parameter in contextual bindings (#4452)
6 years ago
swyx 3fbafe33c2
implement Dev mode validation of {#each} block argument (#4419)
6 years ago
Tan Li Hau fdc89ebb62
warn if component is expected to be reactive (#4409)
6 years ago
Tan Li Hau 6250046c05
perform dirty check before updating keyed each blocks (#4413)
6 years ago
Conduitry b6d80f485a
fix indirect bindings on elements with spreads (#4398)
6 years ago
Conduitry d78f32ee5a
fix arrow function precedence (#4385)
6 years ago
Conduitry 1a343b165c
disallow duplicate each keys in dev mode (#4303)
6 years ago
Conduitry b39282a918
apply event modifiers to <svelte:body> events (#4279)
6 years ago
Tan Li Hau b3582c7fb2 fix hydrating <head> (#4082)
6 years ago
Tan Li Hau 7c3e34c00b fix hydrating each else (#4253)
6 years ago
Tan Li Hau 7fb35dd0dc fix safari input jumping
6 years ago
David Kondrad 8a596936d2 dynamic events: validate handler before executing (#4105)
6 years ago
Tan Li Hau 52dbc882a7 feat order attributes + actions too (#4156)
6 years ago
David Kondrad f287736ee8 compiler: text util: preserve space after svg <tspan> tags (#4107)
6 years ago
Tan Li Hau 75b8d3fb21 fix destructuring in slot let binding
6 years ago
Colin Casey abe88f3b3a FIX #2446: apply bindings and event handlers in order
6 years ago
Tan Li Hau a8b306f0a1 revert remove contextual overflow (#4102)
6 years ago
Timothy Johnson 2cd5c2934b propagate changes through slots with props (#4091)
6 years ago
Tan Li Hau f9a9484e39 fix dirtybit (#4095)
6 years ago
Rich Harris b43762d3a8 ci failures. clutching at straws
6 years ago
Rich Harris 46e6559153 handle slot updates when parent component has a bitmask overflow
6 years ago
Tan Li Hau 468938c573 fix: if inside bind await block contextual dependencies
6 years ago
Conduitry 185ff4ae04 fix child context in await blocks with no `then` variable (#4022)
6 years ago
das 2b0762f930 Tidy up (#4005)
6 years ago
Timothy Johnson ce0a169689 Fix listen_dev argument order
6 years ago
Rich Harris cd21acfb3c
Bitmask-based change tracking (#3945)
6 years ago
Mattias Buelens f2f87d126c Add bindings for HTMLVideoElement.videoHeight and videoWidth
6 years ago
Mattias Buelens 79d3763e92 Rename internal resize event for dimension bindings
6 years ago
Rich Harris 004faf67f4
Merge pull request #3650 from MattiasBuelens/more-media-bindings
6 years ago
Tan Li Hau 8237db4422 fix text content escape html (#3916)
6 years ago
Mattias Buelens ed4f89d7fa Add mount condition for playbackRate and volume
6 years ago
Mattias Buelens 92710f8280 Refactor mount code rendering for bindings
6 years ago
Mattias Buelens 39c009499e Add binding for HTMLMediaElement.ended
6 years ago
Mattias Buelens 5658d94545 Add binding for HTMLMediaElement.seeking
6 years ago
PaulMaly 3b148b6635
User `let` instead `var` for loop index
6 years ago
Rich Harris 9500282c7a
Merge pull request #3886 from AlbertLucianto/fix/bind-out-of-sync
6 years ago
Rich Harris 5c08465cfa
Merge pull request #3871 from AlbertLucianto/fix/bind-value-fails-range-max
6 years ago
AlbertLucianto b934fba544 fix binding out of sync on reactive update
6 years ago
Rich Harris 1b454bad4a
Merge pull request #3884 from sveltejs/gh-3882
6 years ago
Richard Harris 11b030b101 neaten up hydration code - fixes #3882
6 years ago
Richard Harris e3b1d467ce revert #3723, add special case for src attributes
6 years ago
AlbertLucianto 149929b92d reorder add attributes to fix value validation
6 years ago
Tan Li Hau b22abc7936 fix undefined class with scoped-css
6 years ago
Tan Li Hau 105919e7ba feat dynamic event handler
6 years ago
Rich Harris f7833ac53e
Merge pull request #3831 from tanhauhau/tanhauhau/no-create-fragment-if-not-needed
6 years ago
Tan Li Hau 6d8fc8646f escape html quotes
6 years ago
Tan Li Hau a3cc276a90 use changed(dependencies)
6 years ago
Tan Li Hau 0c8cb44d01 fix window bindings to store (#3835)
6 years ago
Tan Li Hau aa0341c9ca Don't create a fragment at all for DOM-less components
6 years ago
Tan Li Hau 2b2f40d32a use textContent instead of innerHtml, preventing XSS
6 years ago
Tan Li Hau 464868bb6c feat: allow innerHtml if no dynamic dependencies
6 years ago
Conduitry 85692cbd5a
fix handling of style scoping and `class:` with spread scopes (#3792)
6 years ago
Conduitry 0419039d26
Don't lose `class:` directive classes on an element with `{...spread}` attributes when updating (#3781)
6 years ago
Conduitry f68b3a3b8c
Fix boolean attributes in presence of spread attributes (#3775)
6 years ago
Conduitry 8ef32d766a
produce better code for <slot/> (#3631)
6 years ago