Richard Harris
670fadf260
update test
5 years ago
Richard Harris
6f60ed8871
Merge branch 'hmr' of https://github.com/Axelen123/svelte into Axelen123-hmr
5 years ago
Rich Harris
d8b4dd74fb
Merge pull request #3533 from sveltejs/gh-3512
...
inline $$invalidate calls
5 years ago
Rich Harris
1a9f6b4a09
Merge pull request #3530 from sveltejs/gh-3524
...
robustify bind:currentTime
5 years ago
Richard Harris
6ea7d77f68
preserve arrow function event handlers
5 years ago
Richard Harris
46bfaff1e6
inline $$invalidate calls - fixes #3512
5 years ago
Richard Harris
8d4a95c4c0
update test
5 years ago
Richard Harris
84ab1b1b8b
only update attributes with dynamic dependencies - fixes #3526
5 years ago
Richard Harris
d80bcadf3c
move tests to runtime section
5 years ago
Richard Harris
8325ca206b
Merge branch 'master' of https://github.com/bre30kra69cs/svelte into bre30kra69cs-master
5 years ago
Arpad Borsos
f41bbad6d9
prefer let bindings
5 years ago
Arpad Borsos
23b8499abb
prefer indented blocks
5 years ago
Rich Harris
bb5dc8b25f
update tests
5 years ago
Rich Harris
334323fb8b
dont generate code for non-updating if block - fixes #3447
5 years ago
Almaz
04d762d2f9
Fixed complex {#if} behaviour
5 years ago
Rich Harris
38001cec33
Merge pull request #3438 from sveltejs/gh-2355
...
more conservative if block updates
5 years ago
bre30kra69cs
323afc1e24
fix declaration assignment
5 years ago
Richard Harris
fa440fd4b5
only reevaluate if block conditions if dependencies changed
5 years ago
Almaz
012ed466d7
Fixed unnecessarily style properties update
5 years ago
Rich Harris
dcd927630e
dont set undefined input value - fixes #1233
5 years ago
Richard Harris
655701ef08
coerce tag values to string - fixes #2290
5 years ago
Richard Harris
0c9ed46196
correctly set mount anchor for HTML tags - fixes #2711
5 years ago
Richard Harris
016158b692
more robust handling of html tags - fixes #3285
5 years ago
Richard Harris
4e004fdfa3
rename misnamed test, remove obsolete ones
5 years ago
Conduitry
64094f631f
set data- attributes like regular attributes ( #3337 )
5 years ago
Conduitry
2328d5e6e8
use `change` event for `bind:files` ( #3226 )
5 years ago
Brian Takita
bbeafbafab
fixes https://github.com/sveltejs/svelte/issues/3191
...
Derived store reruns subscribers if it's value has not changed when synced.
All invalidators of subscribers are run on a derived store when invalidated.
See https://github.com/sveltejs/svelte/pull/2955
5 years ago
Richard Harris
f4ca063c85
prevent dynamic components being detached twice - fixes #3113
5 years ago
Rich Harris
7a11b7531b
on second thoughts
5 years ago
Timothy Johnson
cdd3bf0165
Pass options in component event
5 years ago
Timothy Johnson
9223f56323
Fix tests
5 years ago
Axelen123
1ca0b23d0d
Update tests
5 years ago
Axelen123
f69abde570
Add test for capture_state and inject_state
5 years ago
Axelen123
71a1d5204d
Update tests
5 years ago
Maurício Kishi
9200613352
Merge branch 'master' into gh-2612
5 years ago
Rich Harris
d9046786a1
Track which blocks are outroing to prevent duplication
...
* track whether block is already outroing
* get tests passing
* use transition_in and transition_out helpers
* fix some stuff
* fix non-existent dynamic component outros
* another fix
* another fix
* argh so close
* NAILED IT
* remove unused code
* tidy up
5 years ago
Conduitry
3a384f004d
Merge branch 'master' into gh-2612
5 years ago
Conduitry
59f04c93c5
don't grab page offsets too early
5 years ago
Conduitry
a332b648e9
update tests ( #1434 ) ( #2935 )
5 years ago
Conduitry
e5d4162092
update tests
5 years ago
mrkishi
f60ae53d76
deconflict more globals
5 years ago
Conduitry
2ac5993571
import globals from helpers ( #2612 ) ( #2947 )
5 years ago
Harald Fassler
4d47d2176b
fix #2908
6 years ago
Rich Harris
bb153681b6
Merge pull request #2881 from sveltejs/gh-2878
...
dont create unknown prop warnings for $$scope etc, or if component has $$props
6 years ago
Richard Harris
dda69dbad0
update tests
6 years ago
Rich Harris
52733f3040
Merge branch 'master' into less-invalidation
6 years ago
Richard Harris
0891495647
code style
6 years ago
Richard Harris
5e3ee4e26b
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
6 years ago
Rich Harris
bebed18a93
Merge pull request #2856 from sveltejs/raf
...
treat requestAnimationFrame as a noop on the server
6 years ago
Richard Harris
db938a4559
only invalidate referenced values
6 years ago
Richard Harris
9d53f568fa
fix tests
6 years ago
Benjamin Milde
dabc9c3e53
Allow binding of <details> open
6 years ago
Colin Casey
05fb05bfae
check for unknown props when creating component
6 years ago
Emil Tholin
9cd0b0761b
Don't get hoisted variable from ctx when using @debug
6 years ago
Richard Harris
c988457afa
use maps for keyed each block lookups - fixes #2430
6 years ago
Richard Harris
d2568aa583
skip observedAttributes where appropriate - fixes #2399
6 years ago
Richard Harris
b36d24032b
optimise certain $$invalidate calls
6 years ago
Richard Harris
30c8fe0c6e
allow reactive declarations without dependencies - fixes #2285
6 years ago
Rich Harris
a07eac432a
update API reference docs ( #2206 )
6 years ago
Lukas
1a1664341a
add playbackrate to compilation test
6 years ago
Richard Harris
6a7721b05f
replace comment anchors with empty text nodes - fixes #2280
6 years ago
Rich Harris
4348727fca
Merge pull request #2258 from sveltejs/collapse-whitespace
...
collapse consecutive whitespace characters
6 years ago
Conduitry
a8e59d7fd7
update tests
6 years ago
Rich Harris
8feef5edfc
fix
6 years ago
Rich Harris
003a56b348
implement bind:online
6 years ago
Richard Harris
2b1aa77f29
collapse consecutive whitespace characters in the absense of options.preserveWhitespace or a <pre>
6 years ago
Rich Harris
21d56c9ee3
Tidy up ( #2252 )
6 years ago
Richard Harris
83a9b6af23
default to accessors: false ( #2144 )
6 years ago
Richard Harris
bd4d561fec
update test
6 years ago
Richard Harris
b162de80ce
update JS tests
6 years ago
Richard Harris
ca0e5df0d8
update parser and js tests
6 years ago
Conduitry
a26b276c5e
update tests
6 years ago
Richard Harris
91b9917a59
generate valid code for each block array literals ( #2180 )
6 years ago
Rich Harris
b604b5223c
Merge pull request #2188 from sveltejs/gh-2180
...
optimise iteration over array literals
6 years ago
Richard Harris
180c387c8d
optimise iteration over array literals - fixes #2180
6 years ago
Rich Harris
06040d3513
Merge pull request #2185 from Panya/issue-2184
...
Don't invalidate `this`. Fixes #2184
6 years ago
Mikhail Korepanov
3ced3c1325
Don't invalidate `this`. Fixes #2184
6 years ago
Conduitry
957093e81a
update tests
6 years ago
Richard Harris
3953c2dbfc
error on invalid compiler options — closes #2094
6 years ago
Rich Harris
206a3d0131
update tests
6 years ago
Rich Harris
687e352209
rename .html files to .svelte
6 years ago
Rich Harris
bf16bb89c3
only do dirty check for writable values - fixes #2052
6 years ago
Rich Harris
aa7bcb0a8e
prevent duplicated reactive declarations - fixes #2054
6 years ago
Rich Harris
3a03485d0d
fix tests
6 years ago
Conduitry
a270661d20
rename `<svelte:meta>` to `<svelte:options>` ( #2017 )
6 years ago
Richard Harris
cdcccfb4e4
set current = true on mount as well as intro - fixes #2000
6 years ago
Rich Harris
eccc8b264d
Implement local transitions — fixes #1480
6 years ago
Rich Harris
c2e6d1bf0d
Better composition — implements https://github.com/sveltejs/rfcs/pull/12
6 years ago
Chris Reeves
c9301dc9f7
defer hoisting until after the template is walked - fixes #2005
6 years ago
Rich Harris
ff6e378fcb
Merge pull request #1993 from sveltejs/gh-1920
...
prevent writing to reactive values
6 years ago
Richard Harris
b8e0cccea8
prevent writing to reactive values - fixes #1920
6 years ago
Richard Harris
ed9df1fff3
dont use identity function to reflect props
6 years ago
Rich Harris
5be480d7ac
Merge pull request #1991 from sveltejs/gh-1952-b
...
hoist vars and lets that don't change
6 years ago
Richard Harris
81d9647517
hoist vars and lets - closes #1952
6 years ago
Richard Harris
8c3f652a01
fix scroll bindings
6 years ago
Chris Reeves
d3a7ccae4f
reconcile test diff
6 years ago
Rich Harris
f3701794be
Merge pull request #1978 from evs-chris/gh-1977-evschris
...
Render default slot content event handlers conditionally (with bonus) - #1977
6 years ago
Rich Harris
4c9a55cb66
Merge pull request #1980 from evs-chris/gh-1952-evschris
...
First pass at tracking mutation to avoid unnecessary update code - #1952
6 years ago
Rich Harris
0ea3840046
Overhaul transitions - fixes #1906
6 years ago
Chris Reeves
e85222ad84
first pass at tracking mutation to avoid unnecessary update code - #1952
...
also tracks mutation on child refs of const declarations - #1917
6 years ago
Chris Reeves
057298a79f
fix newline-before-block diffs caused by code builder adjustments
6 years ago
Richard Harris
423e4e6cbc
deconflict with implicit props - fixes #1957
6 years ago
Richard Harris
1d9ce0fff5
update tests
6 years ago
Richard Harris
a7370ce024
fix test
6 years ago
Rich Harris
c0a8e630e3
Fix media bindings, simplify others
6 years ago
Richard Harris
18c2ae715f
prevent false positive detection of events that can be made passive - fixes #1914
6 years ago
Richard Harris
468b5dc0c4
fix tests
6 years ago
Richard Harris
ef944b5713
prevent parent component modifying child component state - fixes #1924
6 years ago
Rich Harris
abdbb00d6d
fix test
6 years ago
Rich Harris
7440fa54e9
remove missing prop warning false positives - fixes #1902
6 years ago
Rich Harris
1f46e23e1b
More conservative invalidation
6 years ago
Rich Harris
29052aba7d
Bring svelte.technology source into main repo
6 years ago
Conduitry
df57e508f8
use extension-less import for svelte/internal
6 years ago
Rich Harris
f45e2b70fd
Implement reactive assignments ( #1839 )
...
This also includes elements of RFCs 2 and 3
6 years ago
Rich Harris
79ea0bd43c
Merge pull request #1822 from aphitiel/gh-1743
...
move resize handler from _beforecreate to _after.. (fixes #1743 )
6 years ago
Rich Harris
e5ae97b9c9
use helper for combining window binding props
6 years ago
pk
d27dbae51c
move resize handler from _beforecreate to _after.. ( fixes #1743 )
6 years ago
Rich Harris
54fe128cf8
Merge pull request #1819 from sveltejs/gh-1088
...
Implement event modifiers
6 years ago
Rich Harris
82b1b75afe
implement event modifiers
6 years ago
Rich Harris
e7c62e9182
only add list/index to each block context if necessary
6 years ago
Rich Harris
681de7d220
merge master -> gh-1187-b
6 years ago
Rich Harris
d6f25a6a21
redo 9e9a078d
on top of current master
6 years ago
Rich Harris
004a7a24ed
Merge branch 'master' into gh-938
6 years ago
Rich Harris
4afa133214
reinstate tests
6 years ago
Rich Harris
86fd8f3e16
merge master -> gh-938
6 years ago
Rich Harris
4a88c9ccb5
remove -bundle files
6 years ago
Rich Harris
e0fe31327a
move render logic into separate phase ( #1678 )
6 years ago
Rich Harris
f54c1ec7b8
support dynamic import in expressions
6 years ago
Josh Duff
211e0383cf
Only update inputs when the value changed
...
Fixes #1699
6 years ago
Rich Harris
a18cec0ec6
not sure where that extra blank line came from
6 years ago
Rich Harris
c2f0ca3e2e
alternative approach to #1520
6 years ago
Rich Harris
33ed2f504e
Merge branch 'master' into gh-1520
6 years ago
Rich Harris
ff6c4c7767
Merge pull request #1681 from sveltejs/gh-1666
...
correctly set select value on mount
6 years ago
Rich Harris
154ee73765
support debug tag in SSR mode - fixes #1659
6 years ago
Rich Harris
ec6360487e
correctly set select value on mount - fixes #1666
6 years ago
Jacob Wright
2c24c36120
Allows fragment updates to happen after state updates
...
Proposed fix for #1520 . Provides a starting point for discussion.
6 years ago
Rich Harris
3778431775
Merge pull request #1670 from sveltejs/init
...
Share more init work
6 years ago
Rich Harris
d323f51e6c
update tests
6 years ago
Jacob Wright
b6e51ddc32
Change actions to init on mount rather than hydrate
...
Looking at the discussion on https://github.com/sveltejs/svelte/pull/1247 it sounds like this was the intended way actions would be set up to work (which is why we didn't add a `mount` lifecycle method). I *believe* this is a fix in the original implementation.
Complaints in chat about this surfaced the issue. Some libraries expect the element to be in the DOM when initializing and these libraries cannot be used without any lifecycle hook. @PaulMaly is requesting this be looked at, and I agree with his assesment.
What's more, this change *should* be backwards compatable. Actions which work before this change should continue working after this change.
6 years ago
Rich Harris
d56b0b007e
update tests
6 years ago
Rich Harris
bcf4c59cc6
-> v2.10.0
6 years ago
Rich Harris
6b56d0494c
Merge branch 'master' of github.com:sveltejs/svelte
6 years ago
Rich Harris
b6c3749d99
tidy up
6 years ago
Rich Harris
1dc1343f00
only add debugger statements in dev mode
6 years ago
Rich Harris
be412d3605
Merge pull request #1642 from ekhaled/gh-1600-ios
...
fix #1600 for ios
6 years ago
Rich Harris
401a6fea5d
handle single identifiers in {@debug} tags
6 years ago
Rich Harris
a1264f583d
fix test
6 years ago
Rich Harris
a5967fa118
Merge branch 'debug' of https://github.com/GarrettGeorge/svelte into GarrettGeorge-debug
6 years ago
Admin
4004a569e1
Adds tests for valid and invalid debug tag usage.
6 years ago
ekhaled
b8e03dcfb8
update snapshot
6 years ago