Commit Graph

2052 Commits (3e5b9968b5dc24e1d60a006c2a7a2820f1264541)

Author SHA1 Message Date
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