0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 08:56:14 +01:00
Commit Graph

103 Commits

Author SHA1 Message Date
Rich Harris
a18cec0ec6 not sure where that extra blank line came from 2018-08-25 07:08:08 -04:00
Rich Harris
c2f0ca3e2e alternative approach to #1520 2018-08-25 06:58:31 -04:00
Jacob Wright
2c24c36120 Allows fragment updates to happen after state updates
Proposed fix for #1520. Provides a starting point for discussion.
2018-08-23 11:56:11 -06:00
Rich Harris
d323f51e6c update tests 2018-08-21 07:30:07 -04:00
Rich Harris
b94d7adfec replace appendNode(node, parent) with append(parent, node) - easier to follow 2018-08-05 15:35:52 -04:00
Conduitry
e66d9ffae7
in .fire always set calling flag back to false (#1587)
* in .fire always set calling flag back to false (#1573)

* update expected bundles
2018-07-09 13:00:58 -04:00
Pavel Malyshev
52ece0b5f0 Fix for #1538 2018-06-20 18:10:48 +03:00
Rich Harris
c4937d271f fix skipped intros 2018-05-12 21:55:07 -04:00
Rich Harris
042ec54f7f nested component transitions 2018-05-12 16:48:05 -04:00
Rich Harris
44bb2da29b add skipIntroByDefault compiler option (#547) 2018-05-12 12:11:46 -04:00
Rich Harris
103f278cfc update tests 2018-05-05 16:48:49 -04:00
Rich Harris
a29e2733cd update tests 2018-04-29 20:07:24 -04:00
Rich Harris
86d3476b55 minor fixes, update various tests 2018-04-28 13:41:30 -04:00
Rich Harris
f8b076b2f3 set state to blank object on destroy, not null - fixes #1354 2018-04-22 10:58:53 -04:00
Rich Harris
ab79cc6608 remove v1 snapshot tests 2018-04-15 21:13:39 -04:00
Rich Harris
df4e3678dc update snapshot tests 2018-04-15 19:17:11 -04:00
Rich Harris
daa2635cd3 update snapshot tests 2018-04-15 18:27:38 -04:00
Rich Harris
c1573dbf2c implement onstate and onupdate 2018-04-15 13:09:59 -04:00
Rich Harris
94a7ffb9a5 fix debugging comments 2018-04-13 12:01:16 -04:00
Rich Harris
bb61e6e911 v2 js tests 2018-04-13 11:45:03 -04:00
Luke Edwards
a412f11907 update test samples’ expectants 2018-03-27 12:59:56 -07:00
Rich Harris
0c66e9e2f7 merge 2018-03-07 20:43:13 -05:00
ekhaled
2e9cd4742c fix snapshots for the actual mounting code 2018-03-06 18:49:49 +00:00
ekhaled
270be984ac fix bundle snapshots 2018-03-06 18:46:42 +00:00
ekhaled
2e3724f7d3 fix snapshots 2018-03-06 17:07:49 +00:00
Rich Harris
94c76308a1 update deps to get tests to pass again 2018-03-05 11:14:27 -05:00
Conduitry
a2873df711 update js if-block-no-update test 2018-03-02 16:01:02 -05:00
Rich Harris
d162ce9968 Merge branch 'master' into gh-1122 2018-02-11 17:33:10 -05:00
Rich Harris
1b599bd57b put _differs on prototype, remove runtime option 2018-02-11 17:32:48 -05:00
Rich Harris
c0292cbca1 update tests 2018-02-11 08:24:55 -05:00
Jacob Wright
405c4f6371 Adding compiler option for immutable back in
This will keep existing code smaller and _mostly_ only add size when using the `immutable` compiler option.
2018-02-10 23:54:33 -07:00
Jacob Wright
9e877d9da1 Makes immutable a component option rather than a compile option
This allows components to opt in (or out) of using immutable data checking for greater flexibility in app design. It also removes the compiler option.
2018-02-10 12:37:33 -07:00
Jacob Wright
9a1d87494d Removes date checks and simplifies NaN checks, adds tests 2018-02-10 10:23:58 -07:00
Jacob Wright
d2f8e472a5 Add support to computed and store for immutable structures
Adds optional performance support for apps using an immutable data structure such as redux. Adds the `immutable` boolean option for compile and an `immutable` option to store as well. When these options are used, computed will not recompute if the object has not changed. If your data structure is not immutable you should not use this as svelte cannot know if a mutation was made on objects.

This PR also adds support for Dates and NaN values so computed properties will not recompute if a date has not changed or a value did not change from NaN.

This closes out these issues:
* https://github.com/sveltejs/svelte/issues/1146
* https://github.com/sveltejs/svelte/issues/1161

This is my first PR for Svelte. Any feedback would be appreciated!
2018-02-08 21:04:29 -07:00
Rich Harris
d411a82a32 update snapshot tests 2018-01-26 13:29:21 -05:00
Rich Harris
ca7e90083e can just use options here 2017-12-15 19:55:48 -05:00
Emil Ajdyna
d398b34a41 Add state() method handling for components 2017-12-15 01:47:42 +01:00
Rich Harris
394dec9f11
Merge pull request #1024 from sveltejs/gh-1013
update SSR render method, and introduce <:Head>
2017-12-13 21:20:03 -05:00
Rich Harris
8a3898c6cb fix unrelated bug that was causing tests to fail 2017-12-13 21:05:59 -05:00
Emil Ajdyna
fadeeaf177 Expose root as a public property 2017-12-13 10:50:19 +01:00
Rich Harris
75e911b05a update snapshot tests 2017-11-24 14:23:45 -05:00
Rich Harris
fb675fd5e3 update snapshot tests 2017-11-12 16:42:02 -05:00
Rich Harris
f659fd8391 remove unused _yield property 2017-10-28 11:32:53 -04:00
Conduitry
2800b5cacc update tests 2017-10-15 16:17:48 -04:00
Rich Harris
d27e4734d5 Merge branch 'master' into short-method-names 2017-09-20 12:47:21 -04:00
Rich Harris
94e280e430 merge master -> gh-23 2017-09-19 11:11:40 -04:00
Rich Harris
dabc2d1fdf dont wrap ESM in IIFE 2017-09-19 11:00:55 -04:00
Rich Harris
2b2a1b40ce use short method names 2017-09-18 22:00:28 -04:00
Rich Harris
1f9fc04d27 simplify module wrapping 2017-09-18 21:30:05 -04:00
Rich Harris
66ae0d9c94 use textContent and innerHTML where appropriate (#23) 2017-09-18 17:24:31 -04:00