Commit Graph

2328 Commits (8402607a97aef3a02f500c94fcee0bc6648a7c1d)

Author SHA1 Message Date
cudr 435f3993ea add tests
7 years ago
Colin Casey 3f906bfd95 Omits readonly attributes from SSR code
7 years ago
Brian Takita 3c6acd7aa3 jsdoc: `derived` second argument
7 years ago
Brian Takita 0f493d8d78 Apply suggestions from code review
7 years ago
Brian Takita 4e0555d5b3 Additional detail to jsdocs for writable, readable, & derived
7 years ago
Harald Fassler 3aa5bc1c35 Merge remote-tracking branch 'upstream/master'
7 years ago
Harald Fassler 5af26cf37b Update animations.js
7 years ago
Richard Harris 4da1f5d05e Merge branch 'master' of github.com:sveltejs/svelte
7 years ago
Richard Harris c8abbfc3a1 always add raw property to text nodes
7 years ago
Richard Harris 32c500f987 Merge branch 'raw-entities' of https://github.com/RedHatter/svelte into RedHatter-raw-entities
7 years ago
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
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
7 years ago
Vlad Glushchuk 25b6c07816 Fix a typo
7 years ago
Vlad Glushchuk 54be0fbe44 Add bind:text and bind:html support for contenteditable elements
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
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