Ignatius Bagus
5334f4ad1b
docs: mention usage of regexp literal in text expressions ( #5640 )
4 years ago
Tan Li Hau
5f8f7ae28c
update changelog
4 years ago
Tan Li Hau
2cec6a94bc
[feat] sourcemap markup ( #6427 )
...
* sourcemap markup
* sourcemap textnode
* update test
4 years ago
Tan Li Hau
e238903846
update changelog
4 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>
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
Oscar Dominguez
6a7f3083a7
ci(workflow): add cache to workflows using actions/setup-node ( #6491 )
4 years ago
Conduitry
687492a5bc
update changelog
4 years ago
Tan Li Hau
f60cb22a9d
standalone :global() with multiple selectors shouldn't be treated as error ( #6508 )
4 years ago
Conduitry
64c162c6b7
docs: adjust formatting in compiler options table
4 years ago
Conduitry
341137285d
update changelog
4 years ago
Geoff Rich
2842227cf0
docs: fix heading level a11y issue ( #5679 )
4 years ago
Eirik Vågeskar
854a7de451
[docs] Add tutorial step for key blocks ( #6420 )
4 years ago
Ben McCann
384513e3b1
Update CHANGELOG
4 years ago
Daybrush (Younkue Choi)
201a71d8b7
fix insert function ( #6445 )
4 years ago
Simon H
b662c7fd41
[chore] move compiler warnings/errors to dedicate files ( #6503 )
4 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).
4 years ago
decaylala
8457a73cef
[docs] adjust function name ( #6495 )
4 years ago
Ben McCann
f2fa7b2186
[docs] bump site-kit version
4 years ago
Dominik G
b06474eb49
fix: add ssr.* to package files so that the exports added in #6416 work ( #6483 )
4 years ago
Ben McCann
2077a7b2a0
update changelog
4 years ago
Geoff Rich
391258aa10
Remove caption warning on <audio> ( #6054 )
4 years ago
Geoff Rich
a35506b5eb
[docs] update a11y docs ( #6487 )
4 years ago
Joakim Berglund
ecc3c08999
Trackpad and touch support in media example ( #5912 )
4 years ago
Jatin Hemnani
c4f4a3dc2e
[docs] added transition on toggling folder in tutorial ( #6453 )
4 years ago
Odee
287cccc450
[docs] Update auto-subscriptions tutorial to explicitly say that subscribe returns unsubscribe ( #6448 )
4 years ago
Daniel Sandoval
a6fbf7faf5
[docs] "What's new in Svelte" July newsletter ( #6459 )
4 years ago
Ben McCann
8d91cbc56a
Update PR template to ask for PR category ( #6475 )
4 years ago
Tan Li Hau
95f3f1c0b3
fix ci after merge conflicts ( #6473 )
4 years ago
Lukas Möller
2a9f9d7bb0
Remove unused toggle prop from example ( #5124 )
4 years ago
Geoff Rich
e73f641ca5
Remove deprecated a11y-no-onchange warning ( #6457 )
4 years ago
Tan Li Hau
fca6a6d38a
:global() with pseudo element should be considered as global ( #6470 )
4 years ago
Tan Li Hau
98ddf8b588
update periscopic ( #6471 )
4 years ago
Antony Jones
7eebe6e7d0
Add link to "good first issue" issues in Contributing Guide ( #4859 )
4 years ago
Tan Li Hau
98bec66f51
update changelog
4 years ago
Ignatius Bagus
8c3fb922d8
only check selector that are direct children of `:global` ( #6435 )
...
* failing test for i6434
* use string match to simplify regexp
* more tests
* separate test suite
* test for commas inside attributes
* stricter regex pattern
* test escaped brackets and parentheses
* change latest test selector to lists
* correct failing test for escaped parentheses
* update with proposed pattern
4 years ago
Tan Li Hau
f757de328a
update changelog
4 years ago
Tan Li Hau
e7af4d7706
expose svelte/ssr which have noop for lifecycle events ( #6416 )
4 years ago
Tan Li Hau
eadb83b934
update changelog
4 years ago
Maxime LUCE
aedf69c1cf
Add compilation variables report option to allow getting all variables (even undeclared or internal) ( #6192 )
...
* feat: add compilation variables report option
* test: add full var report test
* docs: document varsReport compile option
4 years ago
dependabot[bot]
487190fd93
Bump prismjs from 1.23.0 to 1.24.0 in /site ( #6467 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.23.0 to 1.24.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.24.0 )
---
updated-dependencies:
- dependency-name: prismjs
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 years ago
Caleb Chiesa
98ece151b3
Fix typo in stores tutorial ( #6461 )
4 years ago
Simon H
7b914a46b1
update changelog
4 years ago
Luis Confraria
554d5dd391
Fix preserveComments on ssr ( #4736 )
...
Fixes #4730
Co-authored-by: tanhauhau <lhtan93@gmail.com>
4 years ago
Simon H
40f4615cf4
update changelog
4 years ago
Anthony Le Goas
58790a9281
a11y: check if mouse events are accompanied by key events ( #5938 )
4 years ago
Tan Li Hau
50bff36407
update changelog
4 years ago
Mohammed Al-Qurafi
1b33248ead
#6299 - Throw a compile error when passing an empty directive name ( #6300 )
...
* Compile error when passing empty directive names
* Revert "Compile error when passing empty directive names"
This reverts commit ac8718b3a4
.
* Compile error when passing empty directive names
* Adjust empty-directive-name error offset
4 years ago
Ben McCann
2357e642e3
Rename menu item from API to Docs ( #6456 )
4 years ago
Tan Li Hau
e69c05a7db
Update CHANGELOG.md
4 years ago