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.
7 years ago
Jacob Wright
9a1d87494d
Removes date checks and simplifies NaN checks, adds tests
7 years ago
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!
7 years ago
Rich Harris
0ef8229077
Merge pull request #1155 from sveltejs/ssr-escape-attribute-values
...
escape attribute values in SSR
7 years ago
Rich Harris
5b9f254087
Merge pull request #1149 from sveltejs/gh-1138
...
remove empty style blocks in prod mode
7 years ago
Conduitry
c481c8d2b3
escape attribute values in SSR
7 years ago
Rich Harris
29a156957f
Merge pull request #1150 from sveltejs/gh-1131
...
prevent await blocks using stale state
7 years ago
Rich Harris
bf25248f9e
prevent await blocks using stale state - fixes #1131
7 years ago
Rich Harris
37d5260036
-> v1.54.1
7 years ago
Rich Harris
cfd43f4fa7
remove empty style blocks in prod mode - fixes #1138
7 years ago
Rich Harris
ca779a452d
Merge pull request #1145 from jacobmischka/fix-destructured-hoisting
...
Add destructured context container to usedContexts
7 years ago
Jacob Mischka
b5a3e2224d
Add audio video volume binding ( #1148 )
...
* Add audio/video volume binding
Fixes #1143
* Update test and add volumechange event
* Set volume on initial update
* Update test after setting volume initially
Oops.
7 years ago
Jacob Mischka
2635de84a8
Further improve a block with useless variables
7 years ago
Jacob Mischka
31de60ece6
Add destructured context container to usedContexts
...
Fixes #1139
7 years ago
Rich Harris
56e9343294
update lockfile
7 years ago
Rich Harris
7d9b89b033
-> v1.54.0
7 years ago
Rich Harris
3cd9779b37
Merge pull request #1137 from sveltejs/gh-1135
...
Fix order of `oncreate` in sibling components
7 years ago
Rich Harris
935d4a2955
Merge pull request #1134 from sveltejs/gh-1132
...
fix handling of CRs in debugging comments (#1132 )
7 years ago
Rich Harris
9f088fe259
Merge pull request #1126 from sveltejs/gh-1062-again
...
Fix attribute casing better
7 years ago
Rich Harris
6f5b6ddda9
Merge branch 'master' into gh-1135
7 years ago
Rich Harris
1bb275bc55
Merge branch 'master' into gh-1132
7 years ago
Rich Harris
c3bec8f632
Merge branch 'master' into gh-1062-again
7 years ago
Rich Harris
86a07652d8
Merge pull request #1124 from nolanlawson/patch-1
...
Add "feed" aria role
7 years ago
Rich Harris
53217bd9a9
Merge pull request #1128 from sveltejs/gh-1127
...
update jsdom; update `window.performance.now` test shim
7 years ago
Rich Harris
2d0f01e49d
change test outcome for uninitialised component bindings inside conditionals
7 years ago
Rich Harris
d411a82a32
update snapshot tests
7 years ago
Rich Harris
5e41ecb34a
run oncreate functions in sensible order ( #1135 )
7 years ago
Conduitry
7fa293ee6b
fix handling of CRs in debugging comments ( #1132 )
7 years ago
Conduitry
0a6ffb769c
update jsdom; update `window.performance.now` test shim
7 years ago
Conduitry
94da329305
another stab at #1062 ; also fix attribute case in static HTML
7 years ago
Nolan Lawson
0a0b8bf7cb
Add "feed" aria role
...
This role is defined in https://www.w3.org/TR/wai-aria-practices-1.1/#feed
7 years ago
Rich Harris
c35eb67af2
Merge pull request #1123 from sveltejs/gh-1109
...
fix handling of boolean attributes in SSR (#1109 )
7 years ago
Conduitry
57b737b3bc
fix handling of boolean attributes in SSR ( #1109 )
7 years ago
Rich Harris
a4f6fed0e2
-> v1.53.0
7 years ago
Rich Harris
050ed5d0b5
Merge pull request #1119 from sveltejs/gh-1091
...
Base stylesheet.id on CSS contents
7 years ago
Rich Harris
6b32e44819
-> v1.52.0
7 years ago
Rich Harris
f61acd06c6
fix test failure
7 years ago
Rich Harris
9fbcddf338
base stylesheet.hash on css content, and revert parsed.hash
7 years ago
Rich Harris
df5a32a577
Merge branch 'issue-1091' of https://github.com/emilos/svelte into emilos-issue-1091
7 years ago
Rich Harris
d0be845190
Merge pull request #1106 from sveltejs/gh-1083
...
Enforce valid names for computed properties
7 years ago
Rich Harris
80c55b1e51
oops
7 years ago
Rich Harris
a85b09ea97
handle wacky identifier names in templates
7 years ago
Rich Harris
66b64e254d
types
7 years ago
Rich Harris
24ea1afe78
Merge pull request #1112 from sveltejs/gh-1110
...
do not run a11y validation on child component elements
7 years ago
Rich Harris
7bf743ca96
Merge pull request #1116 from UnwrittenFun/fix/ssr-nested-store
...
Fix passing a store to nested components on server side
7 years ago
James Birtles
b180f8a67b
create store in _render, fixes #1107
7 years ago
James Birtles
6596913da3
addd failing nested store test
7 years ago
Conduitry
49135161bc
do not run a11y validation on child component elements ( #1110 )
7 years ago
Rich Harris
1833bc194f
use acorn.isIdentifierStart and isIdentifierChar to determine validity
7 years ago
Rich Harris
b19303679d
simplify test slightly, add test for reserved words
7 years ago