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

51 Commits

Author SHA1 Message Date
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
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
1dc4882183 merge master -> no-template-iife 2017-09-20 13:03:49 -04:00
Rich Harris
d27e4734d5 Merge branch 'master' into short-method-names 2017-09-20 12:47:21 -04:00
Rich Harris
4dbfc65e74 fix indentation, update snapshot tests 2017-09-20 11:06:23 -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
5cd76be290 various fixes 2017-09-18 15:12:40 -04:00
Rich Harris
6b70825ac3 Merge pull request #856 from sveltejs/remove-is-initial
remove isInitial check on recompute
2017-09-17 13:34:23 -04:00
Rich Harris
bd282df921 remove version numbers from snapshot tests 2017-09-17 13:01:47 -04:00
Rich Harris
4d6e95d799 update snapshot tests 2017-09-17 12:29:11 -04:00
Rich Harris
33dbc18a10 merge master -> shared-init 2017-09-17 12:12:12 -04:00
Rich Harris
0b71a93779 update tests 2017-09-16 15:20:43 -04:00
Rich Harris
bd002f94bc extract some shared init logic 2017-09-16 15:09:38 -04:00
Rich Harris
1d34bd886e put version comment above imports 2017-09-16 14:27:59 -04:00
Rich Harris
6e57fa3ced add debugging comments 2017-09-16 14:24:55 -04:00
Rich Harris
fbbaff5404 typo 2017-09-16 11:08:41 -04:00
Rich Harris
e993ae0748 more consistent style for generated code 2017-09-03 11:52:00 -04:00
Rich Harris
2380109f15 handly directly instantiated custom elements, and slots 2017-09-03 09:45:10 -04:00
Rich Harris
824998fdaa update tests 2017-09-02 20:12:14 -04:00
Rich Harris
f5f35b5a50 scoped styles 2017-09-02 18:41:45 -04:00
Rich Harris
f5958584d9 dont noop set/get until after component is destroyed (fixes #788) 2017-08-31 13:26:12 -04:00
Rich Harris
5f5f09b94e update snapshot tests 2017-08-29 08:43:11 -04:00
Andrew Worcester
caa67b5325 updated tests to reflect anchor change 2017-08-25 13:24:08 -04:00
Rich Harris
8818357fc4 tidy up 2017-08-15 15:15:22 -04:00
Rich Harris
3daa7aa6b3 we can now do changed.foo instead of "foo" in changed - is faster and smaller 2017-08-14 12:35:45 -04:00
Rich Harris
427a0b5925 update tests 2017-08-13 22:36:39 -04:00
Rich Harris
fd3792bd60 replace destroy with noop on destroy 2017-08-06 14:26:19 -04:00
Rich Harris
44b73191c7 update tests 2017-08-05 22:24:31 -04:00
Rich Harris
86fb0e4ced handle set after destroy, and move destroy into shared helpers 2017-08-05 22:16:47 -04:00
Hunter Perrin
ba74297a19 Changed from this keyword to argument in setup method. 2017-08-05 12:41:37 -07:00