Commit Graph

2181 Commits (bf5b8ab777d8199abcd8e7665abc4dbb732272a3)

Author SHA1 Message Date
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
7 years ago
Richard Harris aac1f74d58 only use explicit namespace for top-level elements
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
7 years ago
Rich Harris 2157430a3f Merge pull request #2351 from jches/gh/2347
7 years ago
Rich Harris ed983c1e88 Merge pull request #2357 from sveltejs/conditional-text-updates-2
7 years ago
Rich Harris 5cd5f36cce only coerce once
7 years ago
John Chesley a26c7824ac hoist all hoistable top-level functions
7 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
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