Commit Graph

2920 Commits (2b0b900226fd965a01c7a8befe81f25c8e0e74d7)

Author SHA1 Message Date
Richard Harris cb04297b8a merge master -> zxbodya-ts
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 8507ac2663 Merge branch 'master' into improve-typings
7 years ago
Rich Harris c96ccf6dc6 Merge pull request #2856 from sveltejs/raf
7 years ago
cudr c7e3e26940 works correct
7 years ago
Richard Harris 181e954224 only invalidate referenced values
7 years ago
Richard Harris 0f51970ac1 fix tests
7 years ago
Timothy Johnson 5a87705a38 Fixes #2714
7 years ago
Rich Harris 47dcd385fe treat requestAnimationFrame as a noop on the server
7 years ago
Benjamin Milde f56445f3a1 Allow binding of <details> open
7 years ago
Bogdan Savluk 83114b29c8 fix case sensitive import name, improve tsconfig
7 years ago
Bogdan Savluk 70a9cec0f7 convert everything to TypeScript
7 years ago
Colin Casey 4f474521ec check for unknown props when creating component
7 years ago
Bogdan Savluk 4c08e93f58 cleanup, improve comments
7 years ago
Bogdan Savluk 762a9c2bea workarond for estree-walker related typings conflict
7 years ago
Bogdan Savluk fef6dff347 compile/render-dom and other remaining typings
7 years ago
Bogdan Savluk 7d68f2e934 fix compile/render-ssr typings
7 years ago
Bogdan Savluk e9ff062e41 fix compile/nodes typings
7 years ago
Bogdan Savluk aee3dcae4d improve parser typings
7 years ago
Rich Harris 6d6685c4ca Merge pull request #2829 from colincasey/bugfix/2821_custom_elements_with_no_svelte_options
7 years ago
Rich Harris 4c9c04fc44 Merge pull request #2795 from sanderhahn/master
7 years ago
Rich Harris 9c911462c4 Update store.ts
7 years ago
Colin Casey a21afe8b5e Allow custom element to be declared with no tag and no options
7 years ago
mrkishi a01b1986bd allow end tag omission in blocks
7 years ago
Christian Kaisermann ab5b379c3c fix: 🐛 data attributes without value outputting as "true"
7 years ago
Sander Hahn 701fe15ebc add docstrings to store
7 years ago
Rich Harris 6c2f7347fa Merge pull request #2784 from clarkdo/refactor
7 years ago
Clark Du 29586f0d83 fix: add super.render back
7 years ago
Clark Du e694fc36b2 refactor: remove unnecessary super.render in style attribute
7 years ago
Rich Harris ce3a49520a Merge pull request #2781 from sveltejs/gh-2780
7 years ago
Richard Harris aa35bb5634 ensure spring works server-side = fixes #2773
7 years ago
Richard Harris 5c172504c0 handle non-falsy non-function deriver return values - fixes #2780
7 years ago
Rich Harris 960e0be017 Merge pull request #2733 from sanderhahn/master
7 years ago
Rich Harris 103e56410f Merge pull request #2749 from colincasey/custom_elements_without_tags
7 years ago
Rich Harris eabc9ba385 Merge pull request #2754 from EmilTholin/reset-quote-mark
7 years ago
Rich Harris 902b7dbae1 Merge pull request #2755 from EmilTholin/mutated-const-reative-dependency
7 years ago
Rich Harris d060af034e Merge pull request #2766 from EmilTholin/debug-hoisted-variable
7 years ago
Emil Tholin 3b163fe341 Add error for missing equals after attribute name
7 years ago
Emil Tholin 093bf15cb9 Don't get hoisted variable from ctx when using @debug
7 years ago
Emil Tholin c6df0df7df Set mutated const variables as reactive dependencies
7 years ago
Sander Hahn cabd8ad3a5 advanced type for derived
7 years ago
Emil Tholin 00324b2d0e Set quote_mark to null when closing quote mark is found
7 years ago
Colin Casey 5d1aece2ab FIX: #2281 - trigger onMount callbacks in same order as child components
7 years ago
Colin Casey 6481c4cd61 FIX #2417: allows custom element to be defined without a tag
7 years ago
Sander Hahn 05c26d789e typescript version of store
7 years ago
Rich Harris 3cb1ef8e23 fix vars/warnings
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 85b256432a Implement suggestions
7 years ago
Rich Harris f84e46e227 Merge pull request #2696 from PaulMaly/patch-1
7 years ago
Rich Harris 1652548ca2 Merge pull request #2698 from jacobmischka/fix-get-slot-changes
7 years ago
Rich Harris 580224d07d Merge pull request #2703 from EmilTholin/hoisting-injected-reactive-vars
7 years ago
Julien Mourer fef58ba8bb Add `window` and `document` to globals
7 years ago
Emil Tholin fb3c5f6a90 Don't hoist functions dependent on injected reactive variables
7 years ago
Jacob Mischka 39e7487cec Initialize `get_slot_changes` to null when not needed
7 years ago
PaulMaly 1ca1148dcd Use special blank_object() for component.$$.dirty
7 years ago
PaulMaly 498049f368 Make component.$$.dirty just a dictionary
7 years ago
Rich Harris 47e6cc3935 Merge pull request #2694 from sveltejs/gh-2444
7 years ago
Rich Harris ccf90f6e36 Merge pull request #2683 from sveltejs/gh-2681
7 years ago
Rich Harris a74df4a149 Merge pull request #2679 from EmilTholin/reactive-declaration-warnings
7 years ago
Richard Harris dfc06cc7a1 invalidate dependencies of reactive declarations - fixes #2444
7 years ago
Benjamin Milde 73cbb4ce74 Allow multiple event listeners on a single node
7 years ago
Emil Tholin 9d237f9f4b Warn on improper use of reactive declarations
7 years ago
Conduitry 6c56ea204b some linting and tidying
7 years ago
Conduitry f31a155f07 fix instrumentation of auto-subscription self-assignments (#2681)
7 years ago
Richard Harris bdb9d8a859 lint
7 years ago
Rich Harris 094f6733cd Merge pull request #2627 from lorenbrichter/spring-verlet
7 years ago
Rich Harris 50ee4efac4 Merge pull request #2658 from MikeMatrix/each-block-rest-destructuring
7 years ago
Rich Harris 3364ba22cf Merge pull request #2664 from EmilTholin/each-block-destructuring-rest
7 years ago
Rich Harris 6524cbb8ad Merge pull request #2670 from MikeMatrix/fix-readonly-form-attribute
7 years ago
Rich Harris cb3eb33952 Merge pull request #2672 from sveltejs/gh-2661
7 years ago
Rich Harris acc4dfd293 Merge pull request #2607 from EmilTholin/figcaption_figure_first_element_ancestor
7 years ago
Rich Harris d81e453a0f Merge branch 'master' into feat/abstract-block-class
7 years ago
Rich Harris 06436eb029 Merge pull request #2596 from EmilTholin/await-empty-block-warnings
7 years ago
Conduitry 31df69581d expose svelte.walk (#2661)
7 years ago
Michael Braun 3626d8ebbd Applying read only property form onto elements using `attr` instead
7 years ago
Clemens Akens 6652a16c7a expose parse to the public
7 years ago
Rich Harris c54ad3d7aa Merge pull request #2616 from EmilTholin/insertBefore_null_default_anchor
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
Rich Harris a3f2ae95ee Merge pull request #2637 from sveltejs/gh-2635
7 years ago
Rich Harris bd06e13dc0 Merge pull request #2649 from EmilTholin/alert-global
7 years ago
Emil Tholin f1d8b480fa Add support for object-rest in each destructuring
7 years ago
Michael Braun 5bcba3b388 Fix NPE on pattern check
7 years ago
Michael Braun aa6e612bf0 Experimenting with array destructuring in each-blocks
7 years ago
Emil Tholin 80d5c1442f Remove v1 each key parsing
7 years ago
Emil Tholin de6e4588fb Add alert, confirm, and prompt to globals
7 years ago
Emil Tholin 151cc46574 Remove the scope key from props when calculating spread
7 years ago
Conduitry 2efaf79503 fix determining which variables are initialised (#2635)
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
Loren Brichter 448479902d Subtle tweaks to spring animations
7 years ago
Conduitry 46092cbfb7 fix resubscriptions inside script block (#2435)
7 years ago
Emil Tholin 698a14b58f Make null the default anchor of insertBefore
7 years ago
thollander c8bf81f274 Create a new abstraction level to handle `Block`
7 years ago
Emil Tholin 7da6ef68bc Check if a figcaption's first element ancestor is a figure
7 years ago
thollander be13b56643 Use the already defined type for AppendTarget
7 years ago
Emil Tholin 227a08fc59 Don't show 'Empty block' warnings for non-existent await branches
7 years ago
Richard Harris 4fcd2583b1 fix subscribe implementation, add test for unsubscribing observables
7 years ago
Richard Harris 89fe6a132e Merge branch 'rxjs-support' of https://github.com/benlesh/svelte into benlesh-rxjs-support
7 years ago
Rich Harris 8513d9527f RxJS always returns a Subscription object with an unsubscribe.
7 years ago
Ben Lesh ce209dd0ee fix: Ensure RxJS users don't create memory leaks
7 years ago
Rich Harris 72d665ba72 Merge pull request #2511 from atomAltera/fix/2506
7 years ago
Rich Harris 23778f1135 Merge pull request #2518 from sveltejs/gh-2510
7 years ago
Rich Harris f3a725176b Merge pull request #2543 from jches/gh/2542
7 years ago
Ben Lesh f2ee6458e0 perf: Reuse the same promise instance in the scheduler
7 years ago
John Chesley b2e5becb12 fix cycle check for exported functions
7 years ago
Conduitry 9e9ea411f7 handle unknown nodes in extract_identifiers (#2510) (#2514)
7 years ago
Konstantin Alikhanov d808d9ee5d Fixing issue with cursor jumping in Safari #2506
7 years ago
Richard Harris 70e4a1ba34 Merge branch 'master' of https://github.com/leporo/svelte into leporo-master
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 a1d35d868d disallow duplicate slot="xxx" elements - fixes second half of #2320
7 years ago
Richard Harris e44293aa64 remove renderer.slots
7 years ago
Richard Harris c08cfc2bf8 sanitize names
7 years ago
Richard Harris 0cf04988c6 remove unused code
7 years ago
Richard Harris 394556941a fix
7 years ago
Richard Harris b6ca514188 inherit default slot values in named slots in SSR mode
7 years ago
Richard Harris cf2bf05812 receive default slot values in named slots
7 years ago
Richard Harris 4c86701f92 pass default slot values through to named slots
7 years ago
Rich Harris 71dc6bddda Merge pull request #2415 from sveltejs/gh-2356
7 years ago
Richard Harris 017cbc6bd3 oops, messed up the merge
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 cc50321f95 only fire binding callbacks when values change
7 years ago
Conduitry f328f219e5 deconflict `value` argument in component bindings (#2395)
7 years ago
Rich Harris c610e83a00 Merge pull request #2409 from sveltejs/gh-2354
7 years ago
Rich Harris 92fc5da0a5 Merge pull request #2406 from sveltejs/gh-2399
7 years ago
Richard Harris 48ac4ed1f1 only create fallback content if no slot is provided - fixes #2354
7 years ago
Richard Harris 3201e717df better error for bindings to let: values - fixes #2301
7 years ago
Richard Harris 04900e90cd skip observedAttributes where appropriate - fixes #2399
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 7823bb7134 optimise certain $$invalidate calls
7 years ago
Richard Harris 6b1067e8c1 allow reactive declarations without dependencies - fixes #2285
7 years ago
nhducit 21db6acf3b Fĩ type
8 years ago
Vlad Glushchuk 25b6c07816 Fix a typo
8 years ago
Vlad Glushchuk 54be0fbe44 Add bind:text and bind:html support for contenteditable elements
8 years ago
Richard Harris aac1f74d58 only use explicit namespace for top-level elements
8 years ago
Richard Harris bbe4ab7b7d apply namespace to foreignObject correctly - fixes #2340
8 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
Rich Harris ed983c1e88 Merge pull request #2357 from sveltejs/conditional-text-updates-2
8 years ago
Rich Harris 5cd5f36cce only coerce once
8 years ago
John Chesley a26c7824ac hoist all hoistable top-level functions
8 years ago
Jacob Wright 82baceb8ac Update text.data only when necessary
8 years ago
John Chesley 25f3f39ca6 do not hoist declaration if it is exported (fixes #2347)
8 years ago
Mikhail Korepanov 1c5b730698 Pass block to the render of an expression in an attribute
8 years ago
Rich Harris 8efa51519d update API reference docs (#2206)
8 years ago
Rich Harris 967596bcb6 Merge pull request #2326 from sveltejs/gh-2325
8 years ago
Richard Harris 50b0cf2d3e Merge branch 'master' of github.com:sveltejs/svelte
8 years ago
Conduitry 6b7ba8de79 don't preprocess tags whose names begin with script/style
8 years ago
Lukas 00a1d5a225 add playbackrate as binding for mediaelements (#2202)
8 years ago
Conduitry a0bbc13678 skip array literal length optimization in presence of spread (#2325)
8 years ago
Rich Harris 686384d50e Merge pull request #2321 from sveltejs/gh-2295
8 years ago
Conduitry 7208a07023 warn on template references to global variables (#2295)
8 years ago
Conduitry 5c97df6b84 disallow bindings to global variables (#2295)
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 91d92c1e8a remove unused import
8 years ago
Rich Harris 0c7151c502 handle arbitrary slot names
8 years ago
Rich Harris 7c4ae2c859 simplify some slot_name stuff
8 years ago
Rich Harris 0d02a84f33 DRY out
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
Rich Harris 0f7715e5f8 Merge pull request #2312 from sveltejs/gh-2294
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
Mikhail Korepanov 658d235350 Add an error for a slot name starts with a digit
8 years ago
Mikhail Korepanov e85138f3e3 Don't remove digits and _ from slot names
8 years ago
Conduitry 392cec1070 note action/etc. references even when hoistable (#2294)
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
Rich Harris 03de79ebc8 Merge pull request #2283 from sveltejs/gh-2280
8 years ago
Richard Harris cd93506fbb remove comment
8 years ago
Rich Harris 7a0175a0c1 Merge pull request #2286 from sveltejs/gh-2284
8 years ago
Conduitry f63fc5166f tidy some binding validation messages (#2300)
8 years ago
Conduitry 2d35095a60 find this= in <svelte:component> in presence of bind:this= (#2284)
8 years ago
Richard Harris 3c1dae08b0 replace comment anchors with empty text nodes - fixes #2280
8 years ago
John Chesley 3ee7938d34 break declaration grouping on non-declaration nodes (fixes #2022)
8 years ago
Rich Harris 7a1e2de8bb suppress $$props is not defined warning
8 years ago
Rich Harris 558cefa2c7 linting
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
Rich Harris ccb56bba2f allow reactive declarations to only depend on $$props - fixes #2264
8 years ago
Rich Harris 6a9c206e47 same but for SSR
8 years ago
Rich Harris 15b6e84cbb handle assignments to store values in reactive declarations (#2119)
8 years ago
Conduitry e4e2772086 fix logic for inclusion of getters/setters on components (32262)
8 years ago
Rich Harris 69eeefbac1 Merge pull request #2261 from sveltejs/gh-2253
8 years ago
Rich Harris f362a92b40 fix
8 years ago
Conduitry 105586950f fix renamed instance exports (#2253)
8 years ago
Rich Harris 43bf63448d implement bind:online
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
Rich Harris 05223f26e0 Merge pull request #2251 from sveltejs/gh-2025-alt
8 years ago
Richard Harris 348491a0c1 update valid_options
8 years ago
Richard Harris 319f591dc0 make customElement a boolean option (#2025)
8 years ago
Richard Harris e970b8fdfc Merge branch 'master' into gh-2025
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 1e55b97bed put callbacks with the other discardable items
8 years ago
Richard Harris ab20acd479 set/unset parent component correctly in SSR - fixes #2182
8 years ago
Richard Harris 0f6cc667ea allow transition functions to return nothing
8 years ago
Rich Harris 5eaae1976b Merge pull request #2245 from sveltejs/gh-2236
8 years ago
Rich Harris 9a0b750855 Merge pull request #2244 from sveltejs/gh-2167
8 years ago
Richard Harris 427d4c1c8c prevent overwriting export consts - fixes #2236
8 years ago
Richard Harris 7c70cb0d58 various spring fixes, including #2167
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
Rich Harris dd94551b22 Merge pull request #2238 from sveltejs/gh-2098
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 7bdaa1e2de only clear out stylesheet after removing a specific animation - fixes #2053
8 years ago
Richard Harris 1d890623be same but for SSR
8 years ago
Richard Harris 8b28581eab subscribe to global stores (#2139)
8 years ago
Richard Harris 69680f58e7 Merge branch 'subscribable' of https://github.com/thgh/svelte into thgh-subscribable
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 24b8645079 report changes correctly
8 years ago
Richard Harris e62c3c4588 remove some update false positives
8 years ago
Mikhail Korepanov 5d70e4c07b Add test case for #2115 and possible fix
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 83520fbb3a augment warnings to help people figure out they need to add a <script>
8 years ago
Richard Harris 8d5ac176c8 remove some more unused code
8 years ago
Richard Harris a401071247 remove some unused code
8 years ago
Richard Harris e59d40f885 remove support for logic-less components with vars
8 years ago
Rich Harris 61ca7d40ad Merge pull request #2213 from sveltejs/gh-2212
8 years ago
Rich Harris 060973227d Merge pull request #2225 from sveltejs/gh-2214
8 years ago
Conduitry c39a3f6d58 skip non-writable vars in reactive declaration deps (#2173)
8 years ago
Conduitry 97d698ccfc temporarily disallow `export ... from` statements (#2214)
8 years ago
Thomas Ghysels 688ce68c33 Throw descriptive error when 'subscribable' of undefined
8 years ago
Conduitry 5161bf0a18 deconflict fragment method aliases with other identifiers (#2212)
8 years ago
Richard Harris 20a944ce14 generate valid code for each block array literals (#2180)
8 years ago
Richard Harris 65d8871d91 fix svelte:self
8 years ago
Richard Harris 4cef016654 make foo += 1 equivalent to foo = foo + 1 in reactive statements
8 years ago
Rich Harris 893a1876a1 Add a tutorial (#2132)
8 years ago
Conduitry 597baa49c0 update options.customElement/<svelte:options tag='...'> handling (#2025)
8 years ago
Rich Harris 57c9274262 Merge pull request #2187 from sveltejs/gh-2186
8 years ago
Richard Harris 563efabd0a generalise pattern of treating $foo as a store value but $$foo as internal
8 years ago
Richard Harris 2047f9831d add test for $$props vars output
8 years ago
Richard Harris 428e264059 merge gh-2186 -> master
8 years ago
Richard Harris 1455c554ff use add_var mechanism to create implicit $$props var
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
Rich Harris ac21b69c54 Merge pull request #2189 from sveltejs/gh-2175
8 years ago
Rich Harris 921b082591 Merge pull request #2188 from sveltejs/gh-2180
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 68dd337074 optimise iteration over array literals - fixes #2180
8 years ago
Richard Harris a4fbff1ff9 implement $$props - fixes #2186
8 years ago
Rich Harris a21f3d4ec1 Merge pull request #2185 from Panya/issue-2184
8 years ago
Mikhail Korepanov 666c9645c3 Don't invalidate `this`. Fixes #2184
8 years ago
John Chesley dba2574d2d tabs
8 years ago
John Chesley 63b5ff96cf add support for various export syntax
8 years ago
Rich Harris 73611e0fbd Merge pull request #2153 from bsssshhhhhhh/patch-2
8 years ago
Rich Harris 6de28ecba6 Merge pull request #2172 from jches/gh/2165
8 years ago
Rich Harris 134697bfb0 Merge pull request #2161 from sveltejs/gh-2129
8 years ago
John Chesley 9b9a1a5d2a woops, this is redundant
8 years ago
John Chesley c9e815fdb8 create a new declaration for non-exported variables that follow an exported one (#2165)
8 years ago
Conduitry c3c07b676e require whitespace after `{@html` (#2154)
8 years ago
Conduitry 33b52692a8 prevent reactive declaration assignees from being dependencies (#2129)
8 years ago
Brian S 9b5c0c4069 Update Element.ts
8 years ago
Rich Harris 10b93befc4 Merge pull request #2150 from sveltejs/gh-2149
8 years ago
Richard Harris 3aca10e135 allow event handlers to come from destructured var declarations - fixes #2149
8 years ago
John Chesley dd383db941 subscribable declarations trigger a new group (#2127)
8 years ago
Rich Harris deee70cc1a Merge pull request #2138 from sveltejs/gh-2137
8 years ago
Rich Harris 50b5ae4f71 Merge pull request #2141 from sveltejs/remove-cli
8 years ago
Richard Harris 1c800ff160 change :elseif to :else if - fixes #2137
8 years ago
Conduitry 31bc07bcad note references to actions/animations/transitions (#2133)
8 years ago
Iván Sánchez Ortega e9537d40a7 Check if slotted component has an update function during runtime
8 years ago
Rich Harris 9278a52eea Merge pull request #2126 from sveltejs/repl-props
8 years ago
Conduitry 5d0184c628 expose implicit vars in script-less components
8 years ago
Richard Harris fcf91d9b5d fix slot block lineage - fixes #2124
8 years ago
Conduitry 20a5bf06c4 remove CLI
8 years ago
Richard Harris 6c288a26bf doh. fixes #2110
8 years ago
Rich Harris c47fd03969 Merge pull request #2111 from sveltejs/gh-2108
8 years ago
Richard Harris 449c908e4a remove unused argument
8 years ago
Richard Harris 8d85927e7d more imported store stuff
8 years ago
Conduitry c8cf73f608 cli: don't pass invalid `sourceMap` option, and display warnings (#2112)
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
Rich Harris 67a272e667 Merge pull request #2101 from sveltejs/gh-2018
8 years ago
Rich Harris d3a4b2c5c7 Merge pull request #2102 from sveltejs/warnings-and-vars
8 years ago
Richard Harris 19570b6633 error on contextual stores, for now (#2016)
8 years ago
Richard Harris 58f2807001 move vars out of stats
8 years ago
Richard Harris 5ceff3bb97 move warnings out of stats
8 years ago
Richard Harris 83968d2991 use event.initCustomEvent instead of new CustomEvent - fixes #2018
8 years ago
Richard Harris 1c1fb83862 unsubscribe and resubscribe when stores are reassigned - fixes #2014
8 years ago
Richard Harris c3f7f81dbf update stores before committing in SSR mode
8 years ago
Richard Harris 6afaeed066 init store values in situ - fixes #2015
8 years ago
Richard Harris 9af2017315 pick error code
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 dd3e8e41d6 declare $vars up top
8 years ago
Richard Harris bfbab276f3 pedantic code generation stuff
8 years ago
Rich Harris fc7bff4205 Merge pull request #2097 from sveltejs/gh-2031-with-fix
8 years ago
Rich Harris 1237f0eb0d Merge pull request #2096 from sveltejs/gh-2024
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
Richard Harris 02dc8f36ea error on invalid compiler options — closes #2094
8 years ago
Richard Harris 1146df5595 remove onwarn option, just use stats.warnings instead
8 years ago
Richard Harris af7d4332a5 always warn on empty block - fixes #2042
8 years ago
Richard Harris 625d416423 remove eval format - closes #2084
8 years ago
Rich Harris 4a5098290a Merge pull request #2082 from sveltejs/gh-2076
8 years ago
Rich Harris d0c123629d remove internal gubbins when using bind:props - fixes #2038
8 years ago
Rich Harris a4ba217698 fix #2076
8 years ago
Rich Harris 1bc34c5541 Merge pull request #2065 from sveltejs/gh-2061
8 years ago
Rich Harris 54c0a3b656 only escape attribute values when rendering HTML
8 years ago
Rich Harris f8a46ab5cd only do dirty check for writable values - fixes #2052
8 years ago
Rich Harris db5cb2de9f enclose text/compound slot attributes in backticks - fixes #2061
8 years ago
Rich Harris b0ae684b1d Merge pull request #2064 from sveltejs/gh-2054
8 years ago
Rich Harris 4871395bf4 prevent duplicated reactive declarations - fixes #2054
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
Rich Harris e0b4d2d9cc Merge pull request #2044 from sveltejs/gh-2036
8 years ago
Richard Harris 41a98867b3 insert semicolon where necessary when initing props - fixes #2037
8 years ago
Richard Harris 26b388c710 remove unnecessary dupe check - fixes #2036
8 years ago
Rich Harris fddd0d9a9f better
8 years ago
Rich Harris e44bba7a24 rename to tick, remove callback interface
8 years ago
Rich Harris 7976b7990b make callback optional
8 years ago
Rich Harris c430dc2395 return promise from nextTick
8 years ago
Rich Harris 525bccc368 deconflict with globals referenced in module context
8 years ago
Rich Harris fd2cee5a8c doh
8 years ago
Rich Harris 8b7850209a avoid spread pattern, it causes some problems with some setups somehow???
8 years ago
Rich Harris 916603fc01 sanitize
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
Rich Harris bf951cdecb Merge pull request #2023 from sveltejs/component-name-conflict
8 years ago
Richard Harris 6676b11f13 fix tests
8 years ago
Richard Harris 58489d36db prevent component name from conflicting with globals
8 years ago
Conduitry 824b85ffac rename properties to component.compileOptions and .componentOptions
8 years ago
Conduitry 819664cbfd rename `<svelte:meta>` to `<svelte:options>` (#2017)
8 years ago
Conduitry 72f95daa55 disallow `slot` as a prop name in inline components (#2019)
8 years ago
Rich Harris 4d25d93ea0 Overhaul stats — closes #1891
8 years ago
Richard Harris 2d14ecc0a1 bind to store values in simple cases - fixes #1997
8 years ago
Richard Harris 5f6509bfbf set current = true on mount as well as intro - fixes #2000
8 years ago
Rich Harris d1767bd1eb Implement local transitions — fixes #1480
8 years ago
Richard Harris fa5f2c381d update rollup-plugin-sucrase
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 c464a11cdf dont use identity function to reflect props
8 years ago
Rich Harris 27def9722f Merge pull request #1991 from sveltejs/gh-1952-b
8 years ago
Rich Harris ae330538c8 Merge pull request #1988 from sveltejs/gh-1976
8 years ago
Richard Harris 21a4d1f1c4 hoist vars and lets - closes #1952
8 years ago
Richard Harris 80ba415093 fix scroll bindings
8 years ago
Richard Harris d930ab0f92 rename afterFlush to nextTick, schedule update if necessary
8 years ago
Rich Harris ae238382f5 Merge pull request #1986 from sveltejs/gh-1985
8 years ago
Conduitry 68920bb508 typos
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
Richard Harris c7d3ef23fc support multiple preprocessors, handle dependencies - fixes #1973
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
Rich Harris 3966d5b5f5 Merge pull request #1980 from evs-chris/gh-1952-evschris
8 years ago
Rich Harris 773bca8e78 Merge pull request #1966 from sveltejs/gh-1945
8 years ago
Richard Harris c1f34aefc5 Merge branch 'master' into gh-1852
8 years ago
Rich Harris ab88764728 Merge branch 'master' into gh-1945
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 bb16fea37e first pass at tracking mutation to avoid unnecessary update code - #1952
8 years ago
Chris Reeves 4f4577aef3 use statement tree for code builder instead of strings to avoid conditional interference
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
Conduitry 0d9339ffdb better handling of bare attribute names in DOM mode (#1852)
8 years ago
Richard Harris 542dba436a set parent correctly for children of await blocks - should fix #1939
8 years ago
Richard Harris 64a718eaf6 nicer
8 years ago
Richard Harris 75d5425483 fix dynamic component event code generation - fixes #1945
8 years ago
Richard Harris 0fba94b8bc oops
8 years ago
Richard Harris e38874f236 Merge branch 'master' into gh-1948
8 years ago
Richard Harris f5694432da prevent invalid svelte: tags - fixes #1948
8 years ago
Rich Harris 97d8d50702 Merge pull request #1958 from sveltejs/gh-1949
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 4b04b1a926 upgrade Acorn - fixes #1949
8 years ago
Conduitry 7f0f6b287d preserve attributes during preprocess (#1873)
8 years ago
Richard Harris 79cc6815d3 oops. fixes #1946
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
Richard Harris 1d035ecc7d remove unused import
8 years ago
Richard Harris 2a20553fbc remove unused line
8 years ago
Richard Harris a7e9e66307 dont pass around reference to component
8 years ago
Richard Harris 88315451d9 tidy up
8 years ago
Richard Harris 291bf895f9 dont call transition functions with component context
8 years ago
Richard Harris ef33a912cf start refactoring transitions
8 years ago
Richard Harris 42d61012a8 tidy up
8 years ago
Richard Harris e50926faf9 simplify
8 years ago
Richard Harris ec9982f2ee minor tidy up
8 years ago
Richard Harris 5be148d9b1 start simplifying animations
8 years ago
Richard Harris 69cf2882a6 refactor some stuff
8 years ago
Richard Harris 7ac112da40 shuffle things around a bit
8 years ago
Richard Harris a4b9f497e3 start centralising rAF stuff
8 years ago
Richard Harris 57efc92f66 move tweened and spring into separate modules
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 543218c57a Fix media bindings, simplify others
8 years ago
Rich Harris fe350b8410 Merge pull request #1932 from sveltejs/gh-1931
8 years ago
Rich Harris aa98a88b05 Merge pull request #1930 from sveltejs/gh-1894
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
Richard Harris 827c4b46e7 prevent false positive detection of events that can be made passive - fixes #1914
8 years ago
Rich Harris aa05f2beb4 Merge pull request #1925 from sveltejs/gh-1924
8 years ago
Rich Harris fae70b59f7 Merge pull request #1923 from sveltejs/gh-1919
8 years ago
Richard Harris 31bf48f652 simplify option normalization
8 years ago
Richard Harris 7c0413bd2c always use stats.warn instead of options.onwarn - fixes #1918
8 years ago
Richard Harris b306c785b0 cut out the middleman
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 6adec40d13 Merge pull request #1910 from sveltejs/gh-1908
8 years ago
Rich Harris a9d60f5647 dont lump in bind:this with everything else - fixes #1908
8 years ago
Rich Harris 6b6eb46020 use correct context for resize handler - fixes #1898
8 years ago
Rich Harris b584844610 remove missing prop warning false positives - fixes #1902
8 years ago
Rich Harris bfa5f66351 Merge pull request #1905 from sveltejs/hash-in-dynamic-attribute
8 years ago
Rich Harris 25bf3f5f34 only apply aliasing logic once
8 years ago
Rich Harris 708965d495 fix transitions in dev mode
8 years ago
Rich Harris b30f2cdbf1 More conservative invalidation
8 years ago
Rich Harris 33f3fdee5c Bring svelte.technology source into main repo
8 years ago
Conduitry b84f1fb308 use extension-less import for svelte/internal
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 f5ff2d4274 Merge pull request #1810 from sveltejs/gh-1809
8 years ago
Rich Harris fdfafdcab2 Merge pull request #1822 from aphitiel/gh-1743
8 years ago
Rich Harris 415089a801 Merge pull request #1843 from openpixel/cli-custom-element
8 years ago
Rich Harris 6667172d9c rely in setAttribute behaviour inside setCustomElementData
8 years ago
Rich Harris 33fec11123 Merge branch 'patch-1' of https://github.com/domin1101/svelte into domin1101-patch-1
8 years ago
Rich Harris 1e806df357 remove redundant if statement
8 years ago
Rich Harris c5ac16ecb5 Merge branch 'await-then-catch-order' of https://github.com/RedHatter/svelte into RedHatter-await-then-catch-order
8 years ago
Rich Harris f385e829b7 use helper for combining window binding props
8 years ago
Noah 9314938a62 fix: #1859 (multiple window bindings not supported)
8 years ago
Jonathan Greenemeier 10aebcdae2 Small update to allow class directives to work in IE11 where second argument of classList.toggle is not respected
8 years ago
Timothy Johnson 3cc31f77ab fixes #1440
8 years ago
Dominik Winkelbauer e4b630c72b Fixes setting custom element data to zero
8 years ago
Cameron Stitt 477decc15c Update cli spec to include --customElement option
8 years ago
Rich Harris 1be1106477 dont mutate AST
8 years ago
Rich Harris 858fc22bfb expose stats.props
8 years ago
pk 940599bb2f Merge branch 'test-gh-1743' into gh-1743
8 years ago
Pat Cavit 6fe4bf97c0 fix: add check for template store to conditional (#1829)
8 years ago
pk 1a4ea738eb move resize handler from _beforecreate to _after.. (fixes #1743)
8 years ago
Conduitry cbfd2011dc make svelte.preprocess run on all matching tags
8 years ago
Conduitry 247d220355 add replaceAsync util function
8 years ago
Rich Harris c5bc080cbc Merge pull request #1819 from sveltejs/gh-1088
8 years ago
Rich Harris 5b997d2f85 remove unused code
8 years ago
Rich Harris c7ede66dc1 hoist these
8 years ago
Rich Harris 28610747b9 remove unused code
8 years ago
Rich Harris 3f3954102f disallow passive|preventDefault combo
8 years ago
Rich Harris 4082cdefe7 implement event modifiers
8 years ago
Rich Harris 6c92d9955f disallow once/passive in legacy mode, for now
8 years ago
Rich Harris 4784ff02d6 add some more modifier validation tests
8 years ago
Rich Harris 5fd4c94270 merge master -> gh-1088
8 years ago
Rich Harris f55121a1d3 only add list/index to each block context if necessary
8 years ago
Rich Harris c1efada88e Merge branch 'master' of github.com:sveltejs/svelte
8 years ago
Rich Harris 041b6ff079 remove some unused code
8 years ago
Rich Harris b06ff8ad39 Merge pull request #1813 from sveltejs/gh-1484-alt
8 years ago
Rich Harris eb347bf2e6 Merge pull request #1815 from sveltejs/gh-1434
8 years ago
Rich Harris 5885506f81 redo 9e9a078d on top of current master
8 years ago
Rich Harris d081e830c8 reinstate tests
8 years ago
Rich Harris 1855ca18fc fixes
8 years ago
Rich Harris 62fdae5b35 import helper
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
Rich Harris 94c3381980 Merge pull request #1797 from sveltejs/gh-1793
8 years ago
Rich Harris 0f25c560bc Merge pull request #1798 from sveltejs/gh-1795
8 years ago
Rich Harris 4003b3fd82 detach each block iterations with no update method - fixes #1795
8 years ago
Rich Harris 5deb460d8b extend dependency tracking to all directives
8 years ago
Rich Harris 00e87b2356 recognise dependencies in class directives - fixes #1793
8 years ago
Yury Zhuravlev 72939812c1 fix #1780 just start use parent instead parent.parent in IfBlock wrapper
8 years ago
Rich Harris d0d9295f1c repair linked list
8 years ago
Rich Harris bcc736384f Merge branch 'fix-lost-anchor-if-if-block-first' of https://github.com/stalkerg/svelte into stalkerg-fix-lost-anchor-if-if-block-first
8 years ago
Rich Harris b59adb2613 Merge pull request #1776 from sveltejs/gh-1772
8 years ago
Rich Harris 1c1a062ed7 Merge pull request #1775 from sveltejs/gh-1774
8 years ago
Yury Zhuravlev 0c47bd485c small fix for if-else code style
8 years ago
Yury Zhuravlev e3e50855ed Fix removing next link during strip whitespaces for first element.
8 years ago
Conduitry dcffcc2da7 adjust parsing of directives to preserve line/column info
8 years ago
Rich Harris decb5f965d include solidus in attribute values - fixes #1772
8 years ago
Rich Harris 83ff84cc57 fix blocks inside <svelte:head> - closes #1774
8 years ago
Rich Harris 3c58fe208a Merge pull request #1759 from sveltejs/gh-1745
8 years ago
Rich Harris b009e501e7 Merge pull request #1760 from ekhaled/gh-1653-followup
8 years ago
Rich Harris 48f825e2d5 Merge pull request #1770 from arggh/fix-scroll-binding
8 years ago
Rich Harris 07a85eb790 handle elseif blocks with no else
8 years ago
arggh 0250405dee Add missing check for update lock
8 years ago
ekhaled bcc1ea7c15 followup fix to #1653
8 years ago
Rich Harris f134494615 deprecate onerror - fixes #1745
8 years ago
Rich Harris 9b8b779ee9 move render logic into separate phase (#1678)
8 years ago
Jacob Wright 36ffdcd0a6 Fixes shorthand class directives which do not have classes
8 years ago
Rich Harris 4a01c1a2fe warn on unused helpers - fixes #1704
8 years ago
Rich Harris 3d7a15ec9a [WIP] Refactor, change where validation occurs (#1721)
8 years ago
Rich Harris 7ab0410f1f Merge branch 'fix_bind_with_event_in_each' of https://github.com/stalkerg/svelte into stalkerg-fix_bind_with_event_in_each
8 years ago
Yury Zhuravlev 1d731ad56b Small cleanup event handler in bindings to avoid TS errors.
8 years ago
Yury Zhuravlev edf26fde24 Fix binding input with event in each and add test case.
8 years ago
Rich Harris e682676be2 Merge pull request #1715 from sveltejs/dynamic-import
8 years ago
Rich Harris 82082fd6d1 support dynamic import in expressions
8 years ago
Jacob Wright 36adf33829 Fixes keyed each blocks for outro
8 years ago
Rich Harris 08bf21dbb3 Merge pull request #1693 from sveltejs/gh-1617
8 years ago
Rich Harris 777d95b218 Merge pull request #1695 from sveltejs/class-shortcut
8 years ago
Jacob Wright 7311c99d89 Use existing property quoting function
8 years ago
Josh Duff 2658c168a7 Only update inputs when the value changed
8 years ago
Jacob Wright 586f806c26 Remove camel-casing, but account for dashed parameters still.
8 years ago
Jacob Wright 9e9cff2d78 Encapsulate class directives in the stylesheet.
8 years ago
Jacob Wright 848066a472 Adds class directive shortcut
8 years ago
Jacob Wright 53befe6b30 Fix for each-blocks preventing outros from completing
8 years ago
Rich Harris 840ecf6142 not sure where that extra blank line came from
8 years ago
Rich Harris 8fe75716a4 alternative approach to #1520
8 years ago
Rich Harris 5cb9279265 Merge branch 'master' into gh-1520
8 years ago
Rich Harris beea4a5995 coerce toggle argument
8 years ago
Rich Harris 86afd90c1c Update dom.js
8 years ago
Rich Harris f7e3aa9fe6 Merge branch 'master' into gh-890
8 years ago
Rich Harris 4ded5d7b7f Merge pull request #1681 from sveltejs/gh-1666
8 years ago
Rich Harris 2af86b6e3b Merge pull request #1682 from sveltejs/gh-1659
8 years ago
Rich Harris d0e94cc320 Merge pull request #1683 from sveltejs/gh-1658
8 years ago
Rich Harris e1d081b36e Merge pull request #1684 from kaisermann/spread-attr-style
8 years ago
Jacob Wright d6bdf5e3a1 Fixes an error with outros and elseifs
8 years ago
Jacob Wright 4fe7e81146 Adds the class directive
8 years ago
Christian Kaisermann bf8a0f7cbe Set style attribute correctly when spread attr present
8 years ago
Rich Harris 96e61bc9ac dont warn on empty block for nbsp - fixes #1658
8 years ago
Rich Harris e9e9198d5c support debug tag in SSR mode - fixes #1659
8 years ago
Rich Harris b687387b51 correctly set select value on mount - fixes #1666
8 years ago
Rich Harris 91b620ef0d run transitions in context of component - fixes #1675
8 years ago
Jacob Wright a669faca84 Allows actions to use any expression type
8 years ago
Jacob Wright 8aaf9119b0 Allows fragment updates to happen after state updates
8 years ago
Rich Harris 6d0c5bb680 allow non-existent dynamic components to be destroyed (#1660)
8 years ago
Rich Harris 4b9e264a5f Merge pull request #1670 from sveltejs/init
8 years ago
Rich Harris 66c4285055 Merge pull request #1653 from sveltejs/actions-onmount
8 years ago
Rich Harris 66813c6283 Merge pull request #1672 from blittle/master
8 years ago
Rich Harris a6f8d7485c Merge pull request #1673 from UnwrittenFun/fix/missing-ObjectPattern-props
8 years ago
James Birtles be66a278f5 add end position to object and array patterns
8 years ago
James Birtles 31250868ae better shorthand detection
8 years ago
James Birtles 49555b4b63 add some missing ObjectPattern properties
8 years ago
Bret Little c55bf8a92d Properly propagate amdId to the compiler
8 years ago
Rich Harris 6619a72a1b move stuff into init/flush functions
8 years ago
Christian Kaisermann c0e7047aca Also check for null-valued attributes
8 years ago
Christian Kaisermann cb57973392 Remove an undefined attribute instead of setting it to "undefined" (string)
8 years ago
Rich Harris a007000f09 Merge pull request #1652 from sveltejs/gh-1544-computed-whole-state
8 years ago
Rich Harris dc23bcf3e3 Merge pull request #1649 from aphitiel/cli-shared
8 years ago
Rich Harris 56f5e5f998 Merge pull request #1530 from sveltejs/gh-1522
8 years ago
Jacob Wright f39d026137 Change actions to init on mount rather than hydrate
8 years ago
Conduitry 59c0e3377f exclude current prop in computed properties using entire state #1544
8 years ago
pk e574c77308 cli: Add option --shared
8 years ago
Admin c65f06a610 Changes stop and prevent to stopPropagation and preventDefault
8 years ago
Rich Harris 961f9c2f54 add sourcemaps to debug tags
8 years ago
Rich Harris 4ba610e8aa Merge branch 'master' of github.com:sveltejs/svelte
8 years ago
Rich Harris 91ba205942 tidy up
8 years ago
Rich Harris 165343056f only add debugger statements in dev mode
8 years ago
Rich Harris c07b2e4419 Merge pull request #1642 from ekhaled/gh-1600-ios
8 years ago
Rich Harris 9d3ed61516 handle single identifiers in {@debug} tags
8 years ago
Rich Harris c2294ffa0f Merge branch 'debug' of https://github.com/GarrettGeorge/svelte into GarrettGeorge-debug
8 years ago
Admin 868eb7b0af Adds tests for valid and invalid debug tag usage.
8 years ago
Admin 8d133bf3af Adds invalid test for event-modifiers.
8 years ago
ekhaled 4e2163a798 fix resize listener bug for ios re: #1600
8 years ago
Admin 9f7e650acb Adds event modifiers using | character
8 years ago
Admin 9f3d64dd25 Changes {@debug _ } to {@debug}
8 years ago
Rich Harris 4b293ed6db Merge pull request #1637 from sveltejs/list-whitespace
8 years ago
Rich Harris b2540e1c57 Merge pull request #1636 from sveltejs/gh-875
8 years ago
Admin 7a0577206c Fixes small issue with Element's booleanAttributes
8 years ago
Admin 7c8396c030 Merge remote-tracking branch 'upstream/master' into debug
8 years ago
Admin cadaca24c7 Adds debug all option to debug tag
8 years ago
Admin 9de67ce320 Adds DebugTag
8 years ago
Rich Harris 65112181e7 preserve whitespace inside lists
8 years ago
Rich Harris 6df0aa7a18 replace appendNode(node, parent) with append(parent, node) - easier to follow
8 years ago
Rich Harris 011a6a207c use props when passing data to custom elements (#875)
8 years ago
Rich Harris 130ab0ccb9 pass `attribute` straight to `validator.error`
8 years ago
Rich Harris f79b4c7204 pass `attribute` straight to `validator.error`
8 years ago
Admin d1e3489f22 Adds validation check to checkComponent function and removes console.logs.
8 years ago
Admin ad3bc077e5 Adds validation for invalid reference names like foo-bar.
8 years ago
Rich Harris 65aa0691eb Merge pull request #1628 from sveltejs/gh-1540
8 years ago
Rich Harris 50b78ae044 Merge pull request #1631 from sveltejs/gh-1618
8 years ago
Rich Harris a1513f61a9 encapsulate local styles inside global ones - fixes #1618
8 years ago
Rich Harris 34df2de822 fix #1621
8 years ago
Rich Harris ed9a7250f2 handle rest elements in computed properties - fixes #1540
8 years ago
Rich Harris 45b3b4132a stringify values before setting text data - fixes #1598
8 years ago
Rich Harris a0c8bcef2e fix rollup config etc
8 years ago
Rich Harris a12af959e0 update/remove deps
8 years ago
Rich Harris c2abd63e4f -> v2.9.9
8 years ago
Rich Harris 87b9566101 remove console log
8 years ago
Rich Harris 6030ea0f5c sanitize spread attributes and disallow invalid attribute names
8 years ago
Rich Harris e037cc4bee Merge pull request #1612 from ekhaled/gh-1589
8 years ago
Rich Harris 26ec91e224 Merge pull request #1610 from ekhaled/gh-1600
8 years ago
ekhaled 8380b6f9f9 closes #1589
8 years ago
ekhaled 832ad0aa1f closes #1600
8 years ago
Curtis Maloney 8e8d8ef7b5 [Fixed #1608] Allow binding of input files
8 years ago
Rich Harris 42579d4d64 provide more helpful error if SSR component tries to render non-SSR component
8 years ago
Rich Harris 661bbe2c24 dont generate nonsensical code
8 years ago
Rich Harris 86c2e847b2 null out refs to dynamic components - fixes #1596
8 years ago
Rich Harris f74733d43d Merge branch 'master' of github.com:sveltejs/svelte
8 years ago
Rich Harris 38b7f7c714 Merge pull request #1588 from sveltejs/gh-1507
8 years ago
Rich Harris 5bff87c11a alternative fix for #1575 - return to 2.8 behaviour
8 years ago
Conduitry fe1908ee84 tidying
8 years ago
Conduitry 0dcea4128b allow {:then}/{:catch} to have no bound identifier (#1507)
8 years ago
Conduitry cd5ebd2a3c in each-else, use mount/intro according to that branch's contents (#1586)
8 years ago
Conduitry 15299e7be0 in .fire always set calling flag back to false (#1587)
8 years ago
Yury Zhuravlev 13230096dd Merge branch 'master' into fix_outro_timeout
8 years ago
Conduitry 3f334171ce unique name for select_block_type in IfBlock#buildCompoundWithOutros
8 years ago
Conduitry 8e95c29a77 fix determing whether an attribute should prevent innerHTML optimization
8 years ago
Conduitry d0f8a37424 🇺🇸
8 years ago
Yury Zhuravlev 2bfc369951 Fix race condition for if block
8 years ago
Rich Harris 61266fb225 use template.content in place of template where appropriate - fixes #1571
8 years ago
Rich Harris f70073720a Merge pull request #1572 from sveltejs/gh-1561
8 years ago
Rich Harris e19bddb8be Merge pull request #1555 from fjorgemota/patch-1
8 years ago
Rich Harris f96aadf46a remove unused import
8 years ago
Rich Harris dddad36b77 abort transition on detach - alternative fix for #1561
8 years ago
Rich Harris 877e408781 separate groupOutros from transitionsManager
8 years ago
Rich Harris d6b4ab1770 outro when <svelte:component> switches - #1568
8 years ago
Fernando Jorge Mota a27160c5fa Support invalid JS attributes when passing data to components and on binding attributes, too
8 years ago
Rich Harris 152dd63f8f Revert "Fix for #1553"
8 years ago
Rich Harris a9447e8668 Merge pull request #1557 from PaulMaly/1553-return-from-custom-event-handler
8 years ago
Pavel Malyshev a777312c8d Fix for #1553
8 years ago
Christian Kaisermann 6545b94c54 Fix prefixed animation name replacement
8 years ago
Fernando Jorge Mota cd59ed6184 Quote name of attribute to nested components
8 years ago
Pavel Malyshev c3835c08d3 Fix for #1538
8 years ago
Rich Harris c730cc9f4e Merge pull request #1533 from sveltejs/gh-1532
8 years ago
Rich Harris b2126ac620 Merge pull request #1529 from sveltejs/gh-1527
8 years ago
Rich Harris d708dde42b call outrocallback immediately for empty each block
8 years ago
Rich Harris 909015a34e fix for #1522... maybe?
8 years ago
Rich Harris f02f4cf6fc Merge pull request #1526 from kaisermann/refs-callee-warn
8 years ago
Rich Harris 82cc81b183 fix the bugs
8 years ago
Rich Harris d2f8b8a5f0 avoid double intro
8 years ago
Christian Kaisermann b5ff260353 Add refs.* to valid event handler callees warning message
8 years ago
Conduitry 95377be635 fix spread when an attribute or prop has multiple dependencies (#1515)
8 years ago
Rich Harris 6e21fa87f6 Merge pull request #1501 from sveltejs/gh-1499
8 years ago
Rich Harris 1b6cef0873 prevent possibility of conflicts with __file
8 years ago
Rich Harris 5b7d28dcfe change __svelte_meta to __svelte_meta.loc
8 years ago
Rich Harris 19d257f630 Merge pull request #1503 from sveltejs/gh-1502
8 years ago
Rich Harris 721f8b6bc6 Merge pull request #1505 from kaisermann/transform-prefixed-keyframes
8 years ago
Conduitry 141f4a052b update some stray references to v1 syntax
8 years ago
Christian Kaisermann cb62b47d4f Make the compiler also transform prefixed @keyframes
8 years ago
Conduitry 4af6c63f49 fix bind:online in dev mode (#1502)
8 years ago
Rich Harris ad27d5471e add location info to nodes - fixes #1499
8 years ago
Rich Harris 327c38fd5f Merge pull request #1498 from sveltejs/gh-1497
8 years ago
Rich Harris 9398528525 fix nested outro transitions
8 years ago
Rich Harris ba9fc59da5 Merge pull request #1494 from sveltejs/gh-1230
8 years ago
Rich Harris 50f10fabc2 fix #1497
8 years ago
Conduitry fccbcc74ae use CSS classes for ref:* selectors (#1230)
8 years ago
Rich Harris 4c8e0922a9 separate hasOutros from hasOutroMethod - fixes #1492
8 years ago
Rich Harris 0b4d7ea587 Merge pull request #1491 from sveltejs/gh-1487
8 years ago
Rich Harris e88171e1ab replace window with self - fixes #1487
8 years ago
Rich Harris b444c96c38 fix dynamic component bindings (#1489)
8 years ago
Rich Harris 3974584c9e Merge pull request #1479 from sveltejs/gh-1470
8 years ago
Rich Harris f067d76495 always create outro method for top-level block - fixes #1470
8 years ago
Rich Harris 54a72c1a57 nested components skip intro on initial render - fixes #1460
8 years ago
Rich Harris 4f89adeaaf Merge pull request #1468 from sveltejs/gh-1458
8 years ago
Rich Harris d0ffb5d81a add test, tweak codegen
8 years ago
Kiho c0049d49eb Don't set null to switch_instance_changes
8 years ago
Rich Harris 8e2f8fd16d support parameterised animations
8 years ago
Rich Harris b2433574f4 allow animations to be aborted - fixes #1458
8 years ago
Rich Harris 152aff3a23 quote slot names if necessary - fixes #1461
8 years ago
Rich Harris d0f8f1741c pass in destroy method
8 years ago
Rich Harris 8e676ddd50 position nodes absolutely when outroing, if animations are present
8 years ago
Rich Harris 01f572120c use unique name for rects
8 years ago
Rich Harris f3475cd4fd add animation validation tests
8 years ago
Rich Harris d81bcdefe2 complete js animations
8 years ago
Rich Harris 27e5331a98 css animations
8 years ago
Rich Harris f19b826289 end animation
8 years ago
Rich Harris d6b897b16b implement js transitions, albeit messily
8 years ago
Rich Harris 96d67b274d groundwork for animations (#1431)
8 years ago
Rich Harris 3d8aad2f6c fix skipped intros
8 years ago
Rich Harris f0a36373f6 allow transition functions to return a function (#1431)
8 years ago
Rich Harris a1c810f870 supply 1 - t as second argument to transition tick/css functions (#1431)
8 years ago
Rich Harris f9db67edbb nested component transitions
8 years ago
Rich Harris 1b2ced7bf1 nested await block outros
8 years ago
Rich Harris de93e49c68 outroing each blocks
8 years ago
Rich Harris 721af8fc64 WIP towards nested transitions
8 years ago
Rich Harris 0e43507660 add skipIntroByDefault compiler option (#547)
8 years ago
Conduitry a9fb844dcd allow spaces around reserved words used in tags in attributes (#1445)
8 years ago
Rich Harris d43d60ad0c Merge pull request #1444 from acstll/global-whitelist-promise
8 years ago
Arturo 7a43943a9f add _Promise_ to whitelisted globals
8 years ago
Max Milton 16184e9125 Add new ARIA 1.1 attributes and roles
8 years ago
Rich Harris 0e793011a8 allow spread props on elements with tests for static attributes
8 years ago
Rich Harris 0e0e7bebc8 Abort outro if block is recreated — fixes #1425
8 years ago
Rich Harris ead5aec41b Group outro callbacks — fixes #648
8 years ago
Conduitry 816060283d fix handling of shorthand event handler in dynamic components
8 years ago
Rich Harris fa9e2be6ef Merge pull request #1422 from sveltejs/each-object-create
8 years ago
Rich Harris 74ca51e492 Merge pull request #1424 from sveltejs/single-outrocallback
8 years ago
Rich Harris 075ba53254 simpler code for case where there is only one outro in a block
8 years ago
Rich Harris 393d1df33b fix duplicate events on range input bindings (#1419)
8 years ago
Rich Harris 3b82f90db2 use Object.create for each block child contexts
8 years ago
Rich Harris 1fad00ab10 simplify handling of html blocks
8 years ago
Rich Harris a344afaa86 update tests
8 years ago
Rich Harris 97c260104f do unmount work in destroy method
8 years ago
Rich Harris 1c7c6ba7b7 null out blocks when outroed
8 years ago
Rich Harris e4546ec39c remove now-misplaced comment
8 years ago
Rich Harris 42346c2015 support transitions in await blocks - fixes #956
8 years ago
Rich Harris 3e8e589616 fix #1417
8 years ago
Rich Harris a2e47e2b8e simplify
8 years ago
Rich Harris e92735d0fd tidy up
8 years ago
Rich Harris b1a03920c9 handle await block promises in a shared helper
8 years ago
Rich Harris 9bde4729fd add missing Block property
8 years ago
Rich Harris a0ca55bd25 fix #1413
8 years ago
Conduitry 0413e7d63d mark elements with refs as ineligible for innerhtml (#1407)
8 years ago
Rich Harris df8cf577bf Merge pull request #1402 from sveltejs/gh-1397
8 years ago
Rich Harris cacec0c63a create key before testing for the existence of key. doh
8 years ago
Rich Harris 53c596ca85 only update component props if they are dynamic - fixes #1394
8 years ago
Rich Harris c7bd87bd83 evaluate each block key in child scope - fixes #1397
8 years ago
Rich Harris 3d39095e78 Merge pull request #1393 from sveltejs/bind-width-etc
8 years ago
Rich Harris 7263e08173 Merge pull request #1392 from sveltejs/gh-1390
8 years ago
Rich Harris d8ca9676e4 allow destruction of components with bind:offsetWidth etc
8 years ago
Rich Harris 7ea5b0f0c6 only overwrite this in event handlers for custom events - fixes #1390
8 years ago
Conduitry d1bdb62be9 fix svelte-cli references
8 years ago
Rich Harris 21c23aca60 Merge pull request #1386 from sveltejs/gh-984
8 years ago
Rich Harris 2e79826b30 Merge branch 'master' into gh-984
8 years ago
Rich Harris 4e044ef391 Merge branch 'master' into gh-1360
8 years ago
Rich Harris 619c6b9bec prevent bind:offsetWidth etc on void elements
8 years ago
Rich Harris b6beef00ef keep ES5 function names in dev mode
8 years ago
Rich Harris ab466b9bcf just use normal promises
8 years ago
Rich Harris 6b30a97185 use TypeScript for CLI
8 years ago
Rich Harris 489c843a90 integrate CLI - fixes #1360
8 years ago
Rich Harris 239793f1df collapse hydrate logic
8 years ago
Rich Harris 14b6f8bb67 add validation logic, error on dimension bindings for SVG elements
8 years ago
Rich Harris 01dc4a7b85 bind to dimensions
8 years ago
Rich Harris e4e84a1261 Merge branch 'master' into gh-984
8 years ago
Rich Harris fd73fadf98 WIP towards #984
8 years ago
Rich Harris b767227a2f bind to destructured properties
8 years ago
Rich Harris 4d1e71fdd5 sparse array patterns
8 years ago
Rich Harris 58f481d2e4 destructuring
8 years ago
Rich Harris 364921ee8a deduplicate each block context generation for keyed blocks
8 years ago
Rich Harris 1deafca304 Merge branch 'master' into gh-1287
8 years ago
Rich Harris 93148ee808 deduplicate each block context generation (#1287)
8 years ago
Rich Harris 70b01fe960 allow arbitrary expressions in each block keys - fixes #703
8 years ago
Rich Harris ee522dc7e0 Merge pull request #1374 from sveltejs/gh-1368
8 years ago
Rich Harris cf48355bee Merge pull request #1375 from sveltejs/gh-1369
8 years ago
Rich Harris c563cfa83d Merge pull request #1376 from sveltejs/gh-1297
8 years ago
Rich Harris 91cd2cfef1 Merge pull request #1377 from sveltejs/gh-1303
8 years ago
Rich Harris 170ca172e4 Merge pull request #1378 from sveltejs/gh-1286
8 years ago
Rich Harris c0366c7b0f preserve outer context for await blocks - fixes #1251
8 years ago
Rich Harris fc6fd787d2 recalculate each block values lazily - fixes #1286
8 years ago
Rich Harris 51651ebce5 implement full-state computed properties - fixes #1303
8 years ago
Rich Harris 21c4d9ce55 overwrite this in custom event handlers - fixes #1297
8 years ago
Rich Harris a19aec1ea9 assign custom methods to custom element prototype - fixes #1369
8 years ago
Rich Harris 7ced1d4e74 fix #1368
8 years ago
Rich Harris 7afc730cd6 move some more ssr files
8 years ago
Rich Harris 44f92b1616 fix gitignore, move ssr files
8 years ago
Rich Harris fa68cbb58c oops i did it again
8 years ago
Rich Harris 30bb85041d remove files that mysteriously reappeared
8 years ago
Rich Harris eada701414 remove unused import
8 years ago
Rich Harris 8bcb0f2bf1 rename Generator -> Compiler
8 years ago
Rich Harris 83ca33c2e5 move ssr/dom-specific logic into new Target classes, instead of subclassing Generator
8 years ago
Rich Harris 1c9d546587 update gitignore
8 years ago
Rich Harris 37186494be shuffle some stuff around
8 years ago
Rich Harris 452d9485fd simplify ssr
8 years ago
Rich Harris 2cfa578aaf replace all ssr __helpers
8 years ago
Rich Harris fd239a45ed use same shared helpers mechanism for SSR compiler
8 years ago
Rich Harris 183225cafe move SSR logic into nodes
8 years ago
Rich Harris 9df6de9fea more tidying up
8 years ago
Rich Harris d883905337 more tidying up
8 years ago
Rich Harris 3da2f7f1c9 more tidying up
8 years ago
Rich Harris ea3621ef1d remove more unnecessary stuff
8 years ago
Rich Harris f7a7d266d5 remove some unnecessary code
8 years ago
Rich Harris ef09ca5d23 remove some unused Block properties
8 years ago
Rich Harris ebfab2c7cc no need to clone ast
8 years ago
Rich Harris b68e9f5596 put precedence logic on expression
8 years ago
Rich Harris 09468dfb47 all tests passing
8 years ago
Rich Harris d6d3af8e03 minor fixes
8 years ago
Rich Harris dd61ceba66 minor fixes, update various tests
8 years ago
Rich Harris 442945f9c9 fix bindings in ssr
8 years ago
Rich Harris 191c9ee5bd fix stringification of attributes in ssr
8 years ago
Rich Harris 800af889a9 sourcemap fix
8 years ago
Rich Harris 13731bf432 parse <slot> as element in custom element mode
8 years ago
Rich Harris d67234b5d9 validate <title> elements
8 years ago
Rich Harris 373fad6ea8 validate components
8 years ago
Rich Harris d582ea5bf4 attribute stringification
8 years ago
Rich Harris 39dc0b9c7d ref selectors
8 years ago
Rich Harris 4f7c67db13 fix css expression analysis
8 years ago
Rich Harris a5a415cf1d fix indirect dependencies
8 years ago
Rich Harris 3bdb9492cc prevent double editing of synthetic attributes
8 years ago
Rich Harris 8661216b39 more event handler stuff
8 years ago
Rich Harris b28d7e643a use context in event handlers regardless of dependencies
8 years ago
Rich Harris 8ec64c9d6f each block indexes
8 years ago
Rich Harris 0c21b6a220 destructuring
8 years ago
Rich Harris 4ca1e4d62c maintain context for component events
8 years ago
Rich Harris 14b0dc5274 handle shorthand properties in expressions
8 years ago
Rich Harris de4aba73da css fix
8 years ago
Rich Harris d9fd64d731 component event shorthand
8 years ago
Rich Harris e54757a620 fix contextual component bindings
8 years ago
Rich Harris 3dee388e90 named slots and event context
8 years ago
Rich Harris d2e7b1abcb hmm. work around weird code generation glitch
8 years ago
Rich Harris fa343aefef fix one way select binding
8 years ago
Rich Harris 1ba1020875 handle value-less <option> elements
8 years ago