0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 09:21:21 +01:00
Commit Graph

6125 Commits

Author SHA1 Message Date
Rich Harris
f792c14492 -> v3.34.0 2021-02-25 18:08:50 -05:00
Rich Harris
2925a00eff
add cssHash option (#6026)
* Allow to customize the css scope class

* Pass component name to scope class generator

* Move Stylesheet arguments into an object

* Refactor to cssHash

* Please the almighty linter

* pass hash function to cssHash

* update test

* document cssHash option

Co-authored-by: Christian Kaisermann <christian@kaisermann.me>
2021-02-25 18:06:38 -05:00
Conduitry
5c8807e523 -> v3.33.0 2021-02-25 07:38:35 -05:00
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>
2021-02-25 11:36:44 -05:00
Tan Li Hau
b764374b62
no warning on contextual-store if declaring it as a parameter / variable (#6008) 2021-02-25 10:53:23 -05:00
Conduitry
8ea4fb1106 update changelog 2021-02-25 06:23:08 -05:00
Conduitry
9a9b934a08
work around publishing issue with npm v7 (#5983) 2021-02-17 16:07:26 -05:00
Miłosz Wiśniewski
5e293f9b0f
chore: remove unnecessary indent_size from editorconfig (#5992) 2021-02-17 15:57:35 -05:00
Antony Jones
6928f9492c
Emphasis on method name 2021-02-15 22:47:20 +00:00
Antony Jones
48b56bd819
Update changelog 2021-02-15 22:46:14 +00:00
Pontus Lundin
d4f98fb63a
Call onMount when connected & clean up when disconnected for custom element (#4522)
* call onDestroy when disconnected

* lifecycle hooks and custom elements
- Call onMount in connectedCallback for customElements
- register onMount return values as on_disconnect-callbacks for customElements
- run on_disconnect callbacks in disconnectedCallback

* do not reset on_mount so that it can fire again if reinserted

* simpler isCustomElement & skip extra function call
- pass options.customElement down to mount_component
- remove expensive isCustomElement check
- only call add_render_callback if not customElement

Co-authored-by: Pontus Lundin <pontus.lundin@ica.se>
2021-02-15 22:40:17 +00:00
Conduitry
d3f3ea38d0 -> v3.32.3 2021-02-10 22:02:27 -05:00
Tan Li Hau
e8094df779
fix remove of lone :host selectors (#5984) 2021-02-10 22:01:50 -05:00
Conduitry
160a4eccd1 -> v3.32.2 2021-02-08 14:28:02 -05:00
Conduitry
341948e166 update changelog 2021-02-08 14:24:39 -05:00
pushkine
a9c1dc9b59
fix extra invalidation with component prop binding to object property (#5890) 2021-02-08 14:22:25 -05:00
Tan Li Hau
8867bc31c2
update css-tree@^1.1.2 (#5958) 2021-02-08 12:05:39 -05:00
Tan Li Hau
44f41c9edd
fix :host and :global css scoping (#5957) 2021-02-08 11:26:46 -05:00
Alexis Ménard
ebbdb4277c
Tutorial : a better explanation of component events (#4639)
* feat(tutorial): better explanation of component events

Co-Authored-By: Antony Jones <ant@enzy.org>
2021-02-04 10:10:34 +00:00
Daniel Sandoval
8db3e8d029
"What's new in Svelte" February newsletter (#5925)
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2021-02-01 14:37:25 +01:00
Shriji
c3caa29590
Change color on 404 page (#5932)
The colors on broken pages have `#da106e` and is not a part of `theme-default` in site-kit.
2021-01-31 07:01:01 +08:00
Conduitry
df191385f5 -> v3.32.1 2021-01-29 15:06:30 -05:00
Tan Li Hau
6589aa2548
warn module variables are nonreactive and make them truly nonreactive (#5847) 2021-01-29 15:05:04 -05:00
Conduitry
dd7403ade4 update changelog 2021-01-29 13:32:41 -05:00
Saurav Sahu
87417e5a7b
fix: "foreign" namespace elements should still allow binding 'this' (#5942) 2021-01-29 13:31:23 -05:00
pushkine
eeeeb49986
inline prop_values in init helper (#5909) 2021-01-29 11:51:30 -05:00
Conduitry
47baa1965d update changelog 2021-01-29 11:48:55 -05:00
J Delaney
4f05cc3e3c
don't create class update functions when dependencies aren't reactive (#5926) 2021-01-29 11:47:22 -05:00
Tan Li Hau
6207596175
fix extraneous store subscription in SSR (#5929) 2021-01-29 11:07:33 -05:00
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.
2021-01-29 10:59:57 -05:00
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
2021-01-29 10:52:19 -05:00
Conduitry
f00348c14c update changelog 2021-01-29 10:34:30 -05:00
Anders Lorentsen
acf60d88a0
error on empty name in class: directive (#5939) 2021-01-29 10:33:40 -05:00
Conduitry
b3431f9bf2 update changelog 2021-01-29 10:20:06 -05:00
Alexandre Galays
4d5fe5dea6
Swap the order of the two derived store signatures to fix inference (#5935) 2021-01-28 19:56:40 +08:00
Ben McCann
37b1a20c17
Add spaces next to infix operators (#5902) 2021-01-26 20:36:12 -08:00
Ben McCann
55b11b0664
docs: define component before demonstrating usage (#5921) 2021-01-26 09:50:53 +08:00
Conduitry
7be0b400f1 fix failing tests by restoring global.window after SSR tests 2021-01-25 19:55:25 -05:00
Conduitry
93cf65d804 Revert "work around mysterious test failure and add TODO"
This reverts commit c4419007f0.
2021-01-25 19:54:29 -05:00
Conduitry
94439ef5e7 fix changelog link 2021-01-25 17:55:36 -05:00
Conduitry
290746cfbd -> v3.32.0 2021-01-25 17:52:53 -05:00
Conduitry
c4419007f0 work around mysterious test failure and add TODO 2021-01-25 17:48:44 -05:00
halfnelson
a7eff8894f
add foreign namespace to preserve attribute case and skip HTML-specific a11y validations (#5652) 2021-01-25 16:25:10 -05:00
Conduitry
d5f2ddc417 update changelog 2021-01-25 15:59:55 -05:00
pushkine
13e3d755da
allow duplicates of the same action on an element (#5875) 2021-01-25 15:55:12 -05:00
Andreas Ehrencrona
abf11bb02b
Refactored preprocess for readability (#5763) 2021-01-23 15:36:15 -08:00
Domenik Reitzner
a49375696f
Handle new format for "who is using svelte" (#5918) 2021-01-22 12:28:01 -08:00
Simon H
8364048d95
Update unreleased 2021-01-20 09:35:34 +01:00
milahu
0d19f67ec4
Parse attached sourcemap from preprocessor (#5854) 2021-01-19 09:53:10 -08:00
Manuel B
dbd184c38c
Add a linguist configuration (#5878) 2021-01-18 11:46:51 -08:00