Commit Graph

996 Commits (434095f0b3cae469b1fc0ddecaa32e0c5cf29a0c)

Author SHA1 Message Date
Maurício Kishi d0448aba01 Merge branch 'master' into gh-2612
7 years ago
Bryan Terce b61b92166e preserve whitespace at each block boundaries (#713)
7 years ago
Bryan Terce 0cc4b91f65 Fix each blocks not unmounting components correctly (#3056)
7 years ago
Conduitry 3bc50e0945 fix text nodes in .innerHTML-optimized output
7 years ago
Conduitry fa485165ce Merge branch 'master' into gh-2612
7 years ago
Richard Harris d21f2b4518 merge master -> init-contenteditable
7 years ago
Conduitry 348b8cde03 update tests (#1434) (#2935)
7 years ago
mrkishi 61f4d3a8f2 make eslint happy
7 years ago
Efe Küçük 52b964652f do not collapse whitespace containing nbsp (#3014)
7 years ago
mrkishi c0d9d555df deconflict more globals
7 years ago
Conduitry 0b913aa338 import globals from helpers (#2612) (#2947)
7 years ago
Richard Harris e30d7b97d0 initialise text/html bindings if necessary
7 years ago
Richard Harris 3bb160571c Merge branch 'master' of https://github.com/leporo/svelte
7 years ago
Rich Harris 358e79f762 allow empty <title> tags - fixes #2980 (#2988)
7 years ago
Rich Harris e69e891691 support once modifier on component events, fail on others (#2987)
7 years ago
Rich Harris 6cc03f873c Merge branch 'master' into master
7 years ago
James Garbutt 11ced4a257 Introduce ESLint to svelte sources (#2958)
7 years ago
Efe Küçük e73eb33b45 Render textarea binding values inside element
7 years ago
Vlad Glushchuk bf0d66175b Add bind:text and bind:html support for contenteditable elements
7 years ago
Slava Z 126d095bdb Fix for #2655 - adding introstart...outroend events to in-out transition
7 years ago
Colin Casey a2cdcfde40 Merge branch 'master' into onmount_triggers_in_reverse_order_for_siblings
7 years ago
Colin Casey 142e6fb19f Merge branch 'master' into onmount_triggers_in_reverse_order_for_siblings
7 years ago
Richard Harris 965fae7991 update folder structure - #2790
7 years ago
Rich Harris bf5b8ab777 Merge pull request #2881 from sveltejs/gh-2878
7 years ago
Rich Harris 95533b226d Merge pull request #2880 from cudr/head_html_fix
7 years ago
Richard Harris 3122decd33 dont create unknown prop warnings for $$scope etc, or if component has $$props - fixes #2878
7 years ago
Rich Harris 1176e674d0 Merge branch 'master' into less-invalidation
7 years ago
cudr 435f3993ea add tests
7 years ago
Richard Harris d0f84150bf code style
7 years ago
Richard Harris c2fa3dd30d Merge branch 'feat/2174_dev_runtime_warning_when_passing_unknown_props' of https://github.com/colincasey/svelte into colincasey-feat/2174_dev_runtime_warning_when_passing_unknown_props
7 years ago
Rich Harris c96ccf6dc6 Merge pull request #2856 from sveltejs/raf
7 years ago
Richard Harris eb8bafdf08 fix test
7 years ago
Richard Harris 181e954224 only invalidate referenced values
7 years ago
Richard Harris 0f51970ac1 fix tests
7 years ago
Benjamin Milde f56445f3a1 Allow binding of <details> open
7 years ago
Colin Casey 4f474521ec check for unknown props when creating component
7 years ago
Christian Kaisermann ab5b379c3c fix: 🐛 data attributes without value outputting as "true"
7 years ago
Colin Casey 9b74037d51 include parent component in test scenario
7 years ago
Colin Casey 684a47316f unit test for child rendering lifecycle
7 years ago
Richard Harris aa35bb5634 ensure spring works server-side = fixes #2773
7 years ago
Rich Harris eabc9ba385 Merge pull request #2754 from EmilTholin/reset-quote-mark
7 years ago
Emil Tholin c6df0df7df Set mutated const variables as reactive dependencies
7 years ago
Emil Tholin 00324b2d0e Set quote_mark to null when closing quote mark is found
7 years ago
Rich Harris e8757b9006 fix tests
7 years ago
Rich Harris b858e8db32 implement namespaced components
7 years ago
Rich Harris ceca22b26f Merge pull request #2709 from LostKobrakai/multiple-event-listeners
7 years ago
Benjamin Milde 65654b33e6 Switch test to runtime test
7 years ago
Rich Harris 580224d07d Merge pull request #2703 from EmilTholin/hoisting-injected-reactive-vars
7 years ago
Emil Tholin fb3c5f6a90 Don't hoist functions dependent on injected reactive variables
7 years ago
Rich Harris 47e6cc3935 Merge pull request #2694 from sveltejs/gh-2444
7 years ago
Richard Harris dfc06cc7a1 invalidate dependencies of reactive declarations - fixes #2444
7 years ago
Conduitry f31a155f07 fix instrumentation of auto-subscription self-assignments (#2681)
7 years ago
Rich Harris 3364ba22cf Merge pull request #2664 from EmilTholin/each-block-destructuring-rest
7 years ago
Rich Harris d9f81dcb82 Merge pull request #2618 from EmilTholin/remove_21618scope_from_spread
7 years ago
Rich Harris 394900935f Merge pull request #2619 from sveltejs/gh-2435
7 years ago
Rich Harris e17e7807d0 Merge pull request #2631 from EmilTholin/reactive-values-fixed
7 years ago
Rich Harris 7003ecc33a Merge pull request #2634 from sveltejs/gh-2625
7 years ago
Emil Tholin f1d8b480fa Add support for object-rest in each destructuring
7 years ago
Emil Tholin 151cc46574 Remove the scope key from props when calculating spread
7 years ago
Conduitry 60399950cb update tests
7 years ago
Conduitry 7b51a185a7 fix invalidating stores with UpdateExpression (#2625)
7 years ago
Emil Tholin 74d40e0510 Check 'injected' and 'fixed_reactive_declarations' independently
7 years ago
Conduitry 46092cbfb7 fix resubscriptions inside script block (#2435)
7 years ago
Richard Harris 4fcd2583b1 fix subscribe implementation, add test for unsubscribing observables
7 years ago
Rich Harris 23778f1135 Merge pull request #2518 from sveltejs/gh-2510
7 years ago
John Chesley 2d9697839c failing test for #2542
7 years ago
Conduitry df27ced1ef fix unit test under Node 12
7 years ago
Hongarc bfd2a3b903 Remove whitespace at end of line
7 years ago
Conduitry 6dad5bdc2b add test
7 years ago
Richard Harris 7bd667a6b9 update references to svelte.technology - fixes #2450
7 years ago
Richard Harris 3ec373192d Merge branch 'gh-1844' of https://github.com/aphitiel/svelte into aphitiel-gh-1844
7 years ago
Rich Harris f9f2afdd15 Merge pull request #2433 from sveltejs/gh-2430
7 years ago
Richard Harris a63cdcdf94 use maps for keyed each block lookups - fixes #2430
7 years ago
Mikhail Korepanov c904e21674 Fix creation of debugging comment for elements without children
7 years ago
Richard Harris f41e59e474 failing test for #2320
7 years ago
Rich Harris 71dc6bddda Merge pull request #2415 from sveltejs/gh-2356
7 years ago
Richard Harris 864d9f9cfb propagate scope changes across chained slots - fixes #2359
7 years ago
Rich Harris 49330b1994 Merge branch 'master' into gh-2356
7 years ago
Richard Harris 330b9ea55a wait until flush complete before unlocking bindings - fixes #2356
7 years ago
Richard Harris 3b6bada541 failing tests for #2356
7 years ago
Conduitry 09b9672336 add test
7 years ago
Richard Harris 08fab520be allow reactive declarations to reference self - fixes #2386
7 years ago
Richard Harris dda2012b4d inject lets for destructured reactive declarations - fixes #2396
7 years ago
Richard Harris 6b1067e8c1 allow reactive declarations without dependencies - fixes #2285
7 years ago
Conduitry 524f5e7331 rename `derive` to `derived`
7 years ago
Richard Harris bbe4ab7b7d apply namespace to foreignObject correctly - fixes #2340
7 years ago
Rich Harris 380f5ffaf2 Merge pull request #2349 from Panya/issue-2348
8 years ago
Rich Harris 2157430a3f Merge pull request #2351 from jches/gh/2347
8 years ago
John Chesley f10878f644 add failing test for #2278
8 years ago
John Chesley 3d5d13e4d2 add failing test for #2347
8 years ago
Mikhail Korepanov 1c5b730698 Pass block to the render of an expression in an attribute
8 years ago
Rich Harris 967596bcb6 Merge pull request #2326 from sveltejs/gh-2325
8 years ago
Lukas 597086be2a add playbackrate to runtime test
8 years ago
Conduitry b74215e185 add test
8 years ago
Rich Harris 1447064eb5 handle foreignObject correctly, default to svg namespace for top-level svg elements - fixes #2298
8 years ago
Rich Harris fa6427530f move test
8 years ago
Rich Harris 844a483011 test for conflicting slot names
8 years ago
Rich Harris a2503b2c9e Merge branch 'issue-2291' of https://github.com/Panya/svelte into Panya-issue-2291
8 years ago
Rich Harris c57ee5f8b6 Merge pull request #2309 from sveltejs/gh-2303
8 years ago
Conduitry d4f038cfa7 subscribe to global stores from script (#2139)
8 years ago
Mikhail Korepanov 0ab7077d40 Move slot names test to runtime. Allow slot names that start with a digit
8 years ago
Richard Harris 1a3b260941 play transitions in slots - fixes #2303
8 years ago
Richard Harris d26e0c4a1e invalidate correctly inside event handlers - fixes #2305
8 years ago
Conduitry 2d35095a60 find this= in <svelte:component> in presence of bind:this= (#2284)
8 years ago
John Chesley 3ee7938d34 break declaration grouping on non-declaration nodes (fixes #2022)
8 years ago
Richard Harris 1bb1294c51 failing test for #2022
8 years ago
Rich Harris f955eb28b5 Merge pull request #2258 from sveltejs/collapse-whitespace
8 years ago
Rich Harris c0d5950ef1 Merge pull request #2265 from sveltejs/gh-2119
8 years ago
Rich Harris c50d7412b9 Merge pull request #2266 from sveltejs/gh-2264
8 years ago
Conduitry b8f08008c2 add test
8 years ago
Rich Harris ccb56bba2f allow reactive declarations to only depend on $$props - fixes #2264
8 years ago
Rich Harris 15b6e84cbb handle assignments to store values in reactive declarations (#2119)
8 years ago
Conduitry 105586950f fix renamed instance exports (#2253)
8 years ago
Richard Harris 4fad86313f collapse consecutive whitespace characters in the absense of options.preserveWhitespace or a <pre>
8 years ago
Rich Harris 7e8e891d91 Tidy up (#2252)
8 years ago
Richard Harris b4268e9a67 update stores when assigning to store values - fixes #2170
8 years ago
Rich Harris ddb829568f Merge pull request #2249 from sveltejs/gh-2182
8 years ago
Richard Harris 81e9befd07 merge master -> slot-runtime-hasupdatemethod and add a test
8 years ago
Richard Harris ab20acd479 set/unset parent component correctly in SSR - fixes #2182
8 years ago
Rich Harris 5eaae1976b Merge pull request #2245 from sveltejs/gh-2236
8 years ago
Richard Harris 427d4c1c8c prevent overwriting export consts - fixes #2236
8 years ago
Rich Harris d41eec1e4e Merge pull request #2242 from sveltejs/gh-2144
8 years ago
Rich Harris b4cc6a8320 Merge pull request #2235 from sveltejs/gh-2139
8 years ago
Richard Harris ad17bd7627 default to accessors: false (#2144)
8 years ago
Richard Harris cf96cd5fa4 call deferred transition function at correct time - fixes #2159
8 years ago
Rich Harris 3322540fdf Merge pull request #2239 from sveltejs/gh-2158
8 years ago
Richard Harris 16466087ff dispatch transition events inside render callback - fixes #2158
8 years ago
Richard Harris b8462fec83 fix repeated animations (#2098)
8 years ago
Richard Harris 8b28581eab subscribe to global stores (#2139)
8 years ago
Rich Harris b272901449 Merge pull request #2232 from sveltejs/gh-2222
8 years ago
Rich Harris 44f983e54a Merge pull request #2234 from sveltejs/gh-2163
8 years ago
Richard Harris 9866bb7f61 make it a runtime test, not a js one
8 years ago
Richard Harris 7f49778c97 failing test for #2163
8 years ago
Richard Harris 566ba5b137 store prop names as $$.props, prevent leaky bindings. fixes #2222
8 years ago
Richard Harris bdefae9f74 maintain context for contextual binding handlers - fixes #2146
8 years ago
Richard Harris 45369ecaae update runtime and ssr tests
8 years ago
Rich Harris 57c9274262 Merge pull request #2187 from sveltejs/gh-2186
8 years ago
Richard Harris 428e264059 merge gh-2186 -> master
8 years ago
Richard Harris 63f1d0988f tweak semantics of reactive statements - fixes #2178
8 years ago
Rich Harris 61dce7bd6e Merge pull request #2190 from sveltejs/gh-2171
8 years ago
Richard Harris 6bb9526711 deep store bindings
8 years ago
Richard Harris d238c35701 deconflict own name against globals - fixes #2175
8 years ago
Richard Harris a4fbff1ff9 implement $$props - fixes #2186
8 years ago
John Chesley 84d9352ea2 add samples for various export syntax
8 years ago
Rich Harris 6de28ecba6 Merge pull request #2172 from jches/gh/2165
8 years ago
John Chesley 7d94ac1c1e add test for #2165
8 years ago
Conduitry 614c613a96 another test
8 years ago
Conduitry 9b6c142f37 update tests
8 years ago
Rich Harris 10b93befc4 Merge pull request #2150 from sveltejs/gh-2149
8 years ago
Richard Harris ad9949bfc5 add test for #2127
8 years ago
Richard Harris 3aca10e135 allow event handlers to come from destructured var declarations - fixes #2149
8 years ago
Richard Harris 1c800ff160 change :elseif to :else if - fixes #2137
8 years ago
Richard Harris fcf91d9b5d fix slot block lineage - fixes #2124
8 years ago
Richard Harris 6c288a26bf doh. fixes #2110
8 years ago
Richard Harris 8d85927e7d more imported store stuff
8 years ago
Richard Harris 854e012459 fix initialisation of imported stores - fixes #2108
8 years ago
Rich Harris da8579ca2e Merge pull request #2099 from sveltejs/gh-2015
8 years ago
Richard Harris 19570b6633 error on contextual stores, for now (#2016)
8 years ago
Richard Harris 1c1fb83862 unsubscribe and resubscribe when stores are reassigned - fixes #2014
8 years ago
Richard Harris ac7d3d54e1 move store subscriptions into a helper. broke a bunch of stuff, bear with me
8 years ago
Richard Harris 67c38e4088 failing test for #2015
8 years ago
Rich Harris fc7bff4205 Merge pull request #2097 from sveltejs/gh-2031-with-fix
8 years ago
Richard Harris 74d96e93ba assign elements to correct block when slots are involved - fixes #2031
8 years ago
Richard Harris cd2f04ecfc handle implicit and explicit-but-undefined props — fixes #2024
8 years ago
Rich Harris d0c123629d remove internal gubbins when using bind:props - fixes #2038
8 years ago
Rich Harris 8f730d524f update tests
8 years ago
Rich Harris 04c9ecb72a rename .html files to .svelte
8 years ago
Rich Harris db5cb2de9f enclose text/compound slot attributes in backticks - fixes #2061
8 years ago
Rich Harris 18747ad6d8 better cyclical dependency detection - fixes #2055
8 years ago
Rich Harris 9fb0ece0b4 inject lets for reactive declarations where necessary - fixes #2059
8 years ago
Richard Harris 41a98867b3 insert semicolon where necessary when initing props - fixes #2037
8 years ago
Rich Harris fddd0d9a9f better
8 years ago
Rich Harris 0122d7da83 update test
8 years ago
Rich Harris e44bba7a24 rename to tick, remove callback interface
8 years ago
Rich Harris 525bccc368 deconflict with globals referenced in module context
8 years ago
pk b20a621873 Oops
8 years ago
pk 45a017f412 Failing test for #1999
8 years ago
Rich Harris 8ba4dae8c9 get name based on filename
8 years ago
Rich Harris 387efebd6b Merge pull request #2021 from sveltejs/gh-2017
8 years ago
Richard Harris 6676b11f13 fix tests
8 years ago
Richard Harris a1267d3e09 remove debugging output
8 years ago
Richard Harris 58489d36db prevent component name from conflicting with globals
8 years ago
Conduitry 819664cbfd rename `<svelte:meta>` to `<svelte:options>` (#2017)
8 years ago
Richard Harris 2d14ecc0a1 bind to store values in simple cases - fixes #1997
8 years ago
Richard Harris 7dda23a926 failing tests for #2000
8 years ago
Rich Harris d1767bd1eb Implement local transitions — fixes #1480
8 years ago
Rich Harris 69c9422907 Better composition — implements https://github.com/sveltejs/rfcs/pull/12
8 years ago
Rich Harris 519e5c0895 Merge pull request #2007 from sveltejs/gh-2005-evschris
8 years ago
Richard Harris 6c1076c580 housekeeping
8 years ago
Chris Reeves 43742738e2 defer hoisting until after the template is walked - fixes #2005
8 years ago
Rich Harris 82d2abac4e Merge pull request #2003 from sveltejs/gh-2002
8 years ago
Chris Reeves ab263120c9 update await-block to use on_outro and check_outros - fixes #1995
8 years ago
Chris Reeves 15c22749b5 check module scope when determining if a name is contextual - fixes #2001
8 years ago
Chris Reeves 927a0fadf5 make sure a hoistable name is not also a shadowed name rendering an expression - fixes #2002
8 years ago
Rich Harris 81f7ca3895 Merge pull request #1993 from sveltejs/gh-1920
8 years ago
Richard Harris 6334140213 prevent writing to reactive values - fixes #1920
8 years ago
Richard Harris 1cb7a0a3e3 test that private state doesnt leak into parent
8 years ago
Richard Harris c464a11cdf dont use identity function to reflect props
8 years ago
Richard Harris d930ab0f92 rename afterFlush to nextTick, schedule update if necessary
8 years ago
Richard Harris 72793a3713 expose add_render_callback as afterFlush - fixes #1976
8 years ago
Rich Harris ae238382f5 Merge pull request #1986 from sveltejs/gh-1985
8 years ago
Chris Reeves e421065c5a propagate mutation change tracking upward through deps so that adjacent scopes generate proper update code - fixes #1985
8 years ago
Richard Harris 463fac37f7 set immutable option correctly - fixes #1968
8 years ago
Chris Reeves 5c306736d2 reconcile test diff
8 years ago
Rich Harris d519be3092 Merge pull request #1974 from evs-chris/gh-1916-evschris
8 years ago
Rich Harris 8d31848cfc Merge pull request #1978 from evs-chris/gh-1977-evschris
8 years ago
Richard Harris a638fe2e80 test for #1852
8 years ago
Rich Harris cc3d6e64b4 Merge pull request #1967 from sveltejs/gh-1939
8 years ago
Rich Harris c30ae9a896 Overhaul transitions - fixes #1906
8 years ago
Chris Reeves bfdcf936ea gather event listeners for slot default elements and render in a condition - fixes #1977
8 years ago
Chris Reeves 1adbf8b29e pull contextual deps through for member exprs in this bindings - fixes #1916
8 years ago
Conduitry 8ff8ff3aad replace <svelte:document> with <svelte:body> (#1846)
8 years ago
Richard Harris 542dba436a set parent correctly for children of await blocks - should fix #1939
8 years ago
Rich Harris fd36e46be5 Merge pull request #1961 from sveltejs/gh-1957
8 years ago
Rich Harris afdf32328a Merge pull request #1962 from sveltejs/gh-1960
8 years ago
Conduitry ccb8b9fe1a fix malformed code in window binding event handlers (#1963)
8 years ago
Richard Harris af39f40368 fix #1960 typo
8 years ago
Richard Harris f0206ff4b9 deconflict with implicit props - fixes #1957
8 years ago
Richard Harris 575f8ad775 render functions that close over contextual data - fixes #1938
8 years ago
Richard Harris c1d4a75a00 allow reactive store references anywhere in script - fixes #1889
8 years ago
Rich Harris 1341624d13 svelte/motion
8 years ago
Richard Harris 0c6386fc88 prevent duplicate declaration of store values - fixes #1883
8 years ago
Rich Harris e22457f613 fix hoisting of functions that reference imported values - fixes #1933
8 years ago
Rich Harris fe350b8410 Merge pull request #1932 from sveltejs/gh-1931
8 years ago
Richard Harris c1330d7b1c rewrite props after instrumentation - fixes #1931
8 years ago
Richard Harris bc10a15aa1 add process to globals whitelist
8 years ago
Rich Harris aa05f2beb4 Merge pull request #1925 from sveltejs/gh-1924
8 years ago
Richard Harris 6c89a53cab prevent parent component modifying child component state - fixes #1924
8 years ago
Richard Harris 9435878ad2 make event handler names unique across components - fixes #1919
8 years ago
Rich Harris a9d60f5647 dont lump in bind:this with everything else - fixes #1908
8 years ago
Rich Harris b584844610 remove missing prop warning false positives - fixes #1902
8 years ago
Rich Harris 25bf3f5f34 only apply aliasing logic once
8 years ago
Rich Harris 33f3fdee5c Bring svelte.technology source into main repo
8 years ago
Conduitry 19f0cff726 fix runtime tests
8 years ago
Rich Harris e78d837ffb store auto-subscriptions
8 years ago
Rich Harris c53f2af6fd implement `bind:this`
8 years ago
Rich Harris efba821c84 Implement reactive assignments (#1839)
8 years ago
Rich Harris fdfafdcab2 Merge pull request #1822 from aphitiel/gh-1743
8 years ago
Timothy Johnson 2cf3b7a535 fix transition-js-await-block test
8 years ago
Timothy Johnson b7dc37d48a added test for async block ordering (#1440)
8 years ago
pk 889351f3df Failing test for #1844
8 years ago
pk 79548aa076 Failing test for #1743
8 years ago
Pat Cavit 6fe4bf97c0 fix: add check for template store to conditional (#1829)
8 years ago
Rich Harris b06ff8ad39 Merge pull request #1813 from sveltejs/gh-1484-alt
8 years ago
Rich Harris 0a63261d5d Merge branch 'master' into gh-1434
8 years ago
Rich Harris a23169262e dont render undefined/null attributes in SSR
8 years ago
Rich Harris ef1741485b merge master -> set-undefined-attr
8 years ago
Rich Harris ad1c636273 add a <svelte:document> tag - #1484
8 years ago
Rich Harris 4c5c440a88 render server bindings
8 years ago
Rich Harris ccf54b2187 better error for missing store - fixes #1807
8 years ago