Simon H
5dd1e6e232
update changelog
3 years ago
Tan Li Hau
fd031105aa
[fix] do not warn if module variables are not the only dependencies in reactive statements ( #6510 )
...
The warning was too strict, since there are valid use cases for having non-reactive variables inside reactive statements
Fixes #5954
3 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
3 years ago
Ben McCann
52b67a0497
[chore] fix duplicate import of periscopic ( #6527 )
3 years ago
Ben McCann
ff50bfba6f
update changelog
3 years ago
Tan Li Hau
2818567925
fix input value 0 for ssr ( #6458 )
3 years ago
Tan Li Hau
23f8f4ba6d
[feat] centralise parse errors ( #6519 )
...
Co-authored-by: pngwn <hello@pngwn.io>
3 years ago
Antony Jones
fdd3d4b448
be a bit smarter about building the site locally ( #5262 )
...
Co-authored-by: Antony Jones <antony@beyonk.com>
3 years ago
Tan Li Hau
8f1ae80a99
update changelog
3 years ago
Tan Li Hau
6a582af839
[fix] script style end parsing ( #6511 )
...
* update script end tag parsing to allow whitespace after tagname
* update style end tag parsing to allow for whitespace after tag name
* handle no closing match for script and style for eof and non-eof failures
* cleaning up script and style end tag parsing
Co-authored-by: pngwn <hello@pngwn.io>
3 years ago
Aleksander Szołowicz
999032835b
fix typos, use shorthanded imports ( #5993 )
...
* fix(typo): existance -> existence
* fix(typo): seperate -> separate
* refactor(imports): use shorthand for periscopic
3 years ago
Simon H
53e0754d3b
[docs] remove unnecessary immutable option from App.svelte
...
Closes #5976
3 years ago
Simon H
937c7c9c4a
[docs] document $store behavior more explicitely
...
Closes #4677
3 years ago
David Dawkins
e7cbea64e0
[docs] fix padding in svg bar chart example ( #5945 )
...
Fixes #5941
3 years ago
Simon H
9467e4a780
[chore] adjust stale bot settings
...
Give more time until marked as stale, currently too soon. Also exempt bug, bugs don't go stale.
3 years ago
Tan Li Hau
ebaa891e69
[chore] update code-red@0.2.0 ( #6425 )
...
Co-authored-by: Conduitry <git@chor.date>
3 years ago
Ignatius Bagus
5334f4ad1b
docs: mention usage of regexp literal in text expressions ( #5640 )
3 years ago
Tan Li Hau
5f8f7ae28c
update changelog
3 years ago
Tan Li Hau
2cec6a94bc
[feat] sourcemap markup ( #6427 )
...
* sourcemap markup
* sourcemap textnode
* update test
3 years ago
Tan Li Hau
e238903846
update changelog
3 years ago
Jonnie
7bcbe67939
add ssr for group bindings ( #4621 )
...
* add ssr for group bindings
* remove unnecessary chunk length check
* check if checkbox or radio
Co-authored-by: tanhauhau <lhtan93@gmail.com>
3 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
3 years ago
Oscar Dominguez
6a7f3083a7
ci(workflow): add cache to workflows using actions/setup-node ( #6491 )
3 years ago
Conduitry
687492a5bc
update changelog
3 years ago
Tan Li Hau
f60cb22a9d
standalone :global() with multiple selectors shouldn't be treated as error ( #6508 )
3 years ago
Conduitry
64c162c6b7
docs: adjust formatting in compiler options table
3 years ago
Conduitry
341137285d
update changelog
3 years ago
Geoff Rich
2842227cf0
docs: fix heading level a11y issue ( #5679 )
3 years ago
Eirik Vågeskar
854a7de451
[docs] Add tutorial step for key blocks ( #6420 )
3 years ago
Ben McCann
384513e3b1
Update CHANGELOG
3 years ago
Daybrush (Younkue Choi)
201a71d8b7
fix insert function ( #6445 )
3 years ago
Simon H
b662c7fd41
[chore] move compiler warnings/errors to dedicate files ( #6503 )
3 years ago
Adam Bates
f2ca8bc64b
[docs] Fixed typo 'site-repl' -> 'svelte-repl', with minor change to a sentence's structure ( #6498 )
...
(used to look like a list of 4, when really it's a list of 2).
3 years ago
decaylala
8457a73cef
[docs] adjust function name ( #6495 )
3 years ago
Ben McCann
f2fa7b2186
[docs] bump site-kit version
3 years ago
Dominik G
b06474eb49
fix: add ssr.* to package files so that the exports added in #6416 work ( #6483 )
3 years ago
Ben McCann
2077a7b2a0
update changelog
3 years ago
Geoff Rich
391258aa10
Remove caption warning on <audio> ( #6054 )
3 years ago
Geoff Rich
a35506b5eb
[docs] update a11y docs ( #6487 )
3 years ago
Joakim Berglund
ecc3c08999
Trackpad and touch support in media example ( #5912 )
3 years ago
Jatin Hemnani
c4f4a3dc2e
[docs] added transition on toggling folder in tutorial ( #6453 )
3 years ago
Odee
287cccc450
[docs] Update auto-subscriptions tutorial to explicitly say that subscribe returns unsubscribe ( #6448 )
3 years ago
Daniel Sandoval
a6fbf7faf5
[docs] "What's new in Svelte" July newsletter ( #6459 )
3 years ago
Ben McCann
8d91cbc56a
Update PR template to ask for PR category ( #6475 )
3 years ago
Tan Li Hau
95f3f1c0b3
fix ci after merge conflicts ( #6473 )
3 years ago
Lukas Möller
2a9f9d7bb0
Remove unused toggle prop from example ( #5124 )
3 years ago
Geoff Rich
e73f641ca5
Remove deprecated a11y-no-onchange warning ( #6457 )
3 years ago
Tan Li Hau
fca6a6d38a
:global() with pseudo element should be considered as global ( #6470 )
3 years ago
Tan Li Hau
98ddf8b588
update periscopic ( #6471 )
3 years ago
Antony Jones
7eebe6e7d0
Add link to "good first issue" issues in Contributing Guide ( #4859 )
3 years ago