Conduitry
48934c8cd0
fix changelog
4 years ago
Conduitry
aaa543a070
-> v3.40.0
4 years ago
Conduitry
6d9c2ea057
update changelog
4 years ago
Conduitry
0d3e105915
update changelog
4 years ago
Conduitry
68a1b4977c
update changelog
4 years ago
Conduitry
c8cdc73464
update changelog
4 years ago
Conduitry
33307a54c8
update changelog
4 years ago
Conduitry
8b09e6181a
update changelog
4 years ago
Conduitry
a6448185d6
update changelog
4 years ago
Conduitry
b2a082a48f
-> v3.39.0
4 years ago
Conduitry
d01dc9b2eb
update changelog
4 years ago
Tan Li Hau
c78a3af019
Update CHANGELOG.md
4 years ago
Simon H
5534b911ea
update changelog
4 years ago
Simon H
5dd1e6e232
update changelog
4 years ago
Simon H
a8c35daa9a
[fix] be able to silence more warnings ( #6504 )
...
including css-unused-selector, unused-export-let, module-script-reactive-declaration
Fixes #5954
Related to #5281
4 years ago
Ben McCann
ff50bfba6f
update changelog
4 years ago
Tan Li Hau
8f1ae80a99
update changelog
4 years ago
Tan Li Hau
5f8f7ae28c
update changelog
4 years ago
Tan Li Hau
e238903846
update changelog
4 years ago
Simon H
ce43bd67c7
[fix] relax store derived function signature ( #6509 )
...
With this fix, doing
```
const stores= [writable(0), writable(1)]
derived(stores, ([a,b,c]) => {});
```
works without type errors. The propblem with the previous type signature was that it's too strict for TypeScript's suboptimal inference of the value `stores` in that example, which is `Array<Readable<any>>`, which does not convey the info "at least one element", which the old Stores signature required.
Runtime-wise, it's no problem passing an empty array to derived.
The new signature is only appended to, not replaced, because the old signature is able to correctly infer the values of each array entry: For `derived([writable(0), writable('foo')], ([a, b]) => {});` the parameters `a` and `b` are correctly inferred as `number` and `string`. If the type would be changed to `type Stores = Readable<any> | Array<Readable<any>>` that would be no longer the case.
Fixes #6178
4 years ago
Conduitry
687492a5bc
update changelog
4 years ago
Conduitry
341137285d
update changelog
4 years ago
Ben McCann
384513e3b1
Update CHANGELOG
4 years ago
Ben McCann
2077a7b2a0
update changelog
4 years ago
Tan Li Hau
98bec66f51
update changelog
4 years ago
Tan Li Hau
f757de328a
update changelog
4 years ago
Tan Li Hau
eadb83b934
update changelog
4 years ago
Simon H
7b914a46b1
update changelog
4 years ago
Simon H
40f4615cf4
update changelog
4 years ago
Tan Li Hau
50bff36407
update changelog
4 years ago
Tan Li Hau
e69c05a7db
Update CHANGELOG.md
4 years ago
Simon H
5f584d165a
update unreleased
4 years ago
Conduitry
716d54571e
-> v3.38.3
4 years ago
Conduitry
1741699957
update changelog
4 years ago
Conduitry
3c889da6b7
update changelog
4 years ago
Conduitry
96b5669572
update changelog
4 years ago
Conduitry
7e4112d184
update changelog
4 years ago
Conduitry
dd58bf9c05
update changelog
4 years ago
Conduitry
b9e19004cb
update changelog
4 years ago
Conduitry
cba92ad2a9
update changelog
4 years ago
Conduitry
3f87ff7c56
update changelog
4 years ago
Conduitry
6f81c230ae
update changelog
4 years ago
Simon H
c5f588ee50
Fix generic props relationship in SvelteComponentTyped ( #6400 )
...
A recent refactoring commit where the constructor definition was moved to an interface disconnected the props relationship of the props that are passed in the constructor and the instance props
4 years ago
Ignatius Bagus
b295d68ec6
fix types: allow writable/readable empty initialization ( #6293 )
...
Fixes #6291
Fixes #6345
Both writable and readable initialized without any arguments are already valid, but TS complains about it. This makes both allowed to be emptily initialized. It's also possible to invoke readable with one argument only.
4 years ago
Ben McCann
086cff2272
Add issue number to changelog
4 years ago
Conduitry
5975b2dbd2
-> v3.38.2
4 years ago
Conduitry
6d16e92606
Revert hydration optimisation ( #6290 )
...
Co-authored-by: haveyaseen <haveyaread@gmail.com>
4 years ago
Conduitry
166a61aa26
-> v3.38.1
4 years ago
Conduitry
b3a642c3d3
-> v3.38.0
4 years ago
Conduitry
1b4c83c41f
update changelog
4 years ago
Conduitry
7ef869fc76
update changelog
4 years ago
Conduitry
20cb78377d
update changelog
4 years ago
Conduitry
c8632a9b53
update changelog
4 years ago
Conduitry
f0f8fae114
update changelog
4 years ago
Conduitry
ce55e10df5
update changelog
4 years ago
Conduitry
0e8ed759a0
update changelog
4 years ago
Conduitry
6d5a200e04
update changelog
4 years ago
Mohammed Al-Qurafi
a39fc8de72
Add "context" typing to SvelteComponent constructor options ( #6236 )
4 years ago
Ben McCann
10e3e3dae8
Improve SSR hydration performance ( #6204 )
...
* Improve SSR hydration performance
- Fixes #4308 by avoiding de- and reattaching nodes during hydration
- Turns existing append, insert and detach methods into "upserts"
The new "hydration mode" was added in order to maintain the detach by
default behavior during hydration. By tracking which nodes are claimed
during hydration unclaimed nodes can then removed from the DOM at the
end of hydration without touching the remaining nodes.
Co-authored-by: Jonatan Svennberg <jonatan.svennberg@gmail.com>
4 years ago
Simon H
dafbdc286e
Update unreleased
4 years ago
Simon H
52d6a5905d
Update unreleased
4 years ago
Conduitry
26d006591d
-> v3.37.0
4 years ago
Tan Li Hau
6c5257beb2
allow passing in context in constructor ( #6032 )
...
Co-authored-by: Conduitry <git@chor.date>
4 years ago
Conduitry
ed01d16a8e
-> v3.36.0
4 years ago
Conduitry
286c60da4d
fix missing slotted elements in AST ( #6148 )
4 years ago
Conduitry
32f58b9d41
update changelog
4 years ago
Simon H
ff0ccb8755
Update unreleased
4 years ago
Simon H
4e346b9970
Update unreleased
4 years ago
Conduitry
c56653dfd6
-> v3.35.0
4 years ago
Conduitry
2853be1ff2
update changelog
4 years ago
Rich Harris
f792c14492
-> v3.34.0
4 years ago
Conduitry
5c8807e523
-> v3.33.0
4 years ago
Tan Li Hau
d17a90cc44
allow destructured defaults to refer to variables ( #5986 )
...
Co-authored-by: M. Habib Rosyad <habib@volantis.io>
Co-authored-by: Conduitry <git@chor.date>
4 years ago
Tan Li Hau
b764374b62
no warning on contextual-store if declaring it as a parameter / variable ( #6008 )
4 years ago
Conduitry
8ea4fb1106
update changelog
4 years ago
Antony Jones
6928f9492c
Emphasis on method name
4 years ago
Antony Jones
48b56bd819
Update changelog
4 years ago
Conduitry
d3f3ea38d0
-> v3.32.3
4 years ago
Tan Li Hau
e8094df779
fix remove of lone :host selectors ( #5984 )
4 years ago
Conduitry
160a4eccd1
-> v3.32.2
4 years ago
Conduitry
341948e166
update changelog
4 years ago
Tan Li Hau
44f41c9edd
fix :host and :global css scoping ( #5957 )
4 years ago
Conduitry
df191385f5
-> v3.32.1
4 years ago
Tan Li Hau
6589aa2548
warn module variables are nonreactive and make them truly nonreactive ( #5847 )
4 years ago
Conduitry
dd7403ade4
update changelog
4 years ago
Conduitry
47baa1965d
update changelog
4 years ago
Tan Li Hau
6207596175
fix extraneous store subscription in SSR ( #5929 )
4 years ago
Simon H
0f3264e205
make `SvelteComponentDev` typings more forgiving ( #5937 )
...
Add `$$events_def` and `$$slot_def` so that users can do
```
let el: SvelteComponent;
<SomeComponent bind:this={el} />
```
without type errors.
4 years ago
Simon H
842a0b1a07
make animation/transition params optional ( #5936 )
...
They are not needed for most of the functions and should be marked as optional accordingly to make TypeScript users happy.
Fixes sveltejs/language-tools#785
4 years ago
Conduitry
f00348c14c
update changelog
4 years ago
Conduitry
b3431f9bf2
update changelog
4 years ago
Conduitry
94439ef5e7
fix changelog link
4 years ago
Conduitry
290746cfbd
-> v3.32.0
4 years ago
halfnelson
a7eff8894f
add `foreign` namespace to preserve attribute case and skip HTML-specific a11y validations ( #5652 )
4 years ago
Conduitry
d5f2ddc417
update changelog
4 years ago
Simon H
8364048d95
Update unreleased
4 years ago
Conduitry
8180c5dd6c
fix issue link in changelog
4 years ago
Conduitry
c758028cde
-> v3.31.2
4 years ago
Tan Li Hau
734257001d
deconflict conextual action variable ( #5839 )
4 years ago
Tan Li Hau
5949c4a594
fix await outro race condition ( #5850 )
4 years ago
Tan Li Hau
9cc21e3c09
fix removing elements that are currently transitioning out ( #5849 )
4 years ago
Tan Li Hau
82fcdfc2fa
rework SSR store autosubscription ( #5419 )
4 years ago
Conduitry
2eda5b0bf3
fix issue link in changelog
4 years ago
Conduitry
60ac0a4174
-> v3.31.1
4 years ago
Conduitry
77438e1740
update changelog
4 years ago
Tan Li Hau
1da4105d65
fix deep object property as action ( #5845 )
4 years ago
Tan Li Hau
08cb3142e9
keep each block value ( #5841 )
4 years ago
Tan Li Hau
63669330f6
maintain context for keyed each ( #5840 )
4 years ago
Tan Li Hau
a41c7644e6
shift injected declarations to the top ( #5837 )
4 years ago
Tan Li Hau
2d5d6b05ed
warn if React attributes are used ( #5836 )
4 years ago
Tan Li Hau
662d9b44e6
fix checkbox bind:group when index depends on another context ( #5835 )
4 years ago
Conduitry
2d697a38c5
update changelog
4 years ago
Conduitry
e02c291050
-> v3.31.0
4 years ago
Conduitry
cf23eb08c2
-> v3.30.1
4 years ago
Conduitry
f029559855
update changelog
4 years ago
Tan Li Hau
ccc61a71d8
add missing export for hasContext ( #5727 )
4 years ago
Conduitry
505eba84b9
-> v3.30.0
4 years ago
Tan Li Hau
9331398299
support spread into slot props ( #5616 )
4 years ago
Simon H
99000ef42e
typed SvelteComponent(Dev) interface ( #5431 )
4 years ago
Conduitry
666b7aefa8
update changelog
4 years ago
Tan Li Hau
1cc5bdb9ca
reactive dependency not referenced can't set to undefined initially ( #5600 )
4 years ago
Tan Li Hau
24c44b9177
fix order of html tags with {#if} in {#key} block ( #5685 )
4 years ago
Conduitry
342c1e427c
update changelog
4 years ago
Conduitry
0aa8cc1c9f
update changelog
4 years ago
Conduitry
4524566fda
-> v3.29.7
4 years ago
Conduitry
ed4288fe43
-> v3.29.6
4 years ago
Ben McCann
627aae8c5c
Add package.json to exports map ( #5660 )
4 years ago
Conduitry
b135055c5c
-> v3.29.5
4 years ago
Tan Li Hau
41d16c02be
add export map ( #5566 )
4 years ago
Tan Li Hau
7949d8efac
support $$slots in custom elements ( #5619 )
4 years ago
Tan Li Hau
f7bddb23d3
add extension to request to support webpack 5 ( #5624 )
4 years ago
Tan Li Hau
148b6105ed
fix else block transition update ( #5591 )
4 years ago
Tan Li Hau
5d7ffdb8a7
fix function slot props based on context ( #5607 )
4 years ago
Tan Li Hau
6fa3e91b5d
support $$props and $$restProps for custom elements ( #5608 )
4 years ago
Conduitry
a47ca4498a
update changelog
4 years ago
Conduitry
65104e8b2a
-> v3.29.4
4 years ago
Conduitry
040e9cc6fa
fix code generation error with nullish coalescing operator and logical operators ( #5564 )
4 years ago
Conduitry
5cbc8c80b1
-> v3.29.3
4 years ago
Conduitry
a6040d6e73
-> v3.29.2
4 years ago
Conduitry
ae1f9e5f9a
-> v3.29.1
4 years ago
Conduitry
b9ac8c9e47
update changelog
4 years ago
Conduitry
f038cf75fa
update changelog
4 years ago
Conduitry
0ec928324f
update changelog
4 years ago
Conduitry
377c7647ed
update changelog
4 years ago
Conduitry
a28d776c06
update changelog
4 years ago
Conduitry
c24b313b1a
-> v3.29.0
4 years ago
Tan Li Hau
2d88dc460e
warn for possible use of component without uppercase tag name ( #5302 )
4 years ago
Conduitry
99e2cfca11
update changelog
4 years ago
Tan Li Hau
2c5f1c466e
add typings to `get_store_value` ( #5269 )
...
Co-authored-by: Julian Laubstein <contact@julianlaubstein.de>
4 years ago
Tan Li Hau
8056829a91
allow <slot> to be part of a slot ( #4295 )
4 years ago
Tan Li Hau
3970def5eb
fix sibling combinators with spread attributes ( #5467 )
4 years ago
Tan Li Hau
296e81af4d
add EventSource to the known globals ( #5468 )
4 years ago
Conduitry
46a83a50e3
-> v3.28.0
4 years ago
Tan Li Hau
fa7c780bad
{#key} block ( #5397 )
...
Co-authored-by: Conduitry <git@chor.date>
4 years ago
Conduitry
0ca1dcd33c
-> v3.27.0
4 years ago
Tan Li Hau
967b88186b
scope CSS sibling combinators ( #5427 )
4 years ago
Tan Li Hau
a1651ca271
add nonpassive event modifier ( #5442 )
...
Co-authored-by: filipot <filipot@stud.ntnu.no>
4 years ago
Tan Li Hau
41d1656458
update keyed each when key expression changes ( #5447 )
4 years ago
Tan Li Hau
c3b56a164e
handle destructuring to a store value ( #5452 )
4 years ago
Tan Li Hau
6e0cd9bcbf
fix missing-declaration warning for use:obj.method ( #5454 )
4 years ago
Conduitry
e867a4de33
-> v3.26.0
4 years ago
Tan Li Hau
b5b02f8561
whitelist [open] attribute selector for <details> ( #5425 )
4 years ago
Tan Li Hau
254096d320
support methods as actions ( #5398 )
4 years ago
Tan Li Hau
b3f54bd2cf
fix store direct property assignment ( #5416 )
4 years ago
Tan Li Hau
aef5671411
update acorn and parse expression as module script ( #5423 )
4 years ago
Conduitry
6601143255
-> v3.25.1
4 years ago
Tan Li Hau
87ed0b2f42
fix await stuck indefinitely without catch ( #5402 )
4 years ago
Tan Li Hau
1ce6ac5d48
fix destructuring to get multiple stores ( #5390 )
4 years ago
Tan Li Hau
338cf877bc
maintain context for transition ( #5392 )
4 years ago
Tan Li Hau
46d423d9db
fix css specificity for child combinator ( #5399 )
4 years ago
Tan Li Hau
7900e3eafa
fix style scoping with > * ( #5400 )
4 years ago
Conduitry
5bf2d6fadf
-> v3.25.0
4 years ago
Conduitry
daa1c390d5
update changelog
4 years ago
Conduitry
b7710b93bc
update changelog
4 years ago
Tan Li Hau
8a28d1bb38
valid XHTML syntax in innerHTML for static elements ( #5317 )
4 years ago
Tan Li Hau
51e2626f42
fix $$props reactivity in fallback of a slot ( #5375 )
4 years ago
Tan Li Hau
8148a7a334
each binding with store props ( #5289 )
4 years ago
Tan Li Hau
c752ed3527
handle undefined input value with spread ( #5291 )
4 years ago
Conduitry
1d9e2a13f2
update changelog
4 years ago
Tan Li Hau
0ac341d2c6
expose which slots are present in $$slots ( #4602 )
4 years ago
Tan Li Hau
e879cb5a4c
fix not passing child_ctx for catch block ( #5261 )
4 years ago
Conduitry
76b7196a1b
update changelog
4 years ago
Conduitry
6ebe7f8210
update changelog
4 years ago
Tan Li Hau
7aae362bcb
fix reference for namespaced component ( #5256 )
4 years ago
Tan Li Hau
5194f596f7
do not declare variable for member assignment in reactive declaration in SSR ( #5251 )
4 years ago
Conduitry
a62d736215
-> v3.24.1
5 years ago
Conduitry
0f3bbb441e
update changelog
5 years ago
Conduitry
308f3c284d
update changelog
5 years ago
Conduitry
f0d586f4a4
update changelog
5 years ago
Tan Li Hau
02e10b1159
fix bind:group contextual reference ( #5199 )
5 years ago
Tan Li Hau
3dad14f0e1
better error message for mismatched tags due to autoclosing ( #5060 )
5 years ago
Tan Li Hau
ec0f79c5af
add updating guard to binding callback ( #5126 )
5 years ago
Tan Li Hau
d472bd2f5e
invalidate $$props and $$restProps only when there are changes ( #5123 )
5 years ago
Tan Li Hau
fc7e99e9f0
fix $$props reactive for slots ( #5125 )
5 years ago
Conduitry
87aeb1d609
-> v3.24.0
5 years ago
Tan Li Hau
4021063305
spread condition for input element ( #5004 )
5 years ago
Conduitry
d6392ad6b2
update changelog
5 years ago
Tan Li Hau
62345432ac
html anchor in head ( #5071 )
5 years ago
Tan Li Hau
f739b4772a
error on expression scope store ( #5079 )
5 years ago
Conduitry
e6026fe6f5
update changelog
5 years ago