Yuichiro Yamashita
fc4797c6f8
[fix] only use optimized 'src' handling for 'html' namespace ( #6580 )
3 years ago
Jacob Wright
6de3eb7042
[fix] attach transition/animation CSS to ownerDocument in iframes ( #6680 )
3 years ago
Shinobu Hayashi
fc9241fea9
[fix] handle undefined select value with spread ( #6687 )
3 years ago
trevyn
da816e6db7
add `BigInt` as known global ( #6671 )
3 years ago
Simon H
82419ce693
[fix] call onDestroy in SSR ( #6677 )
...
Via #6416 , lifecycle hooks became noops for SvelteKit. But onDestroy is said to be called suring SSR according to the docs.
Fixes #6676
3 years ago
Theodore Brown
8cb72d9716
[fix] set selectedIndex to -1 when no option matches bound <select> value ( #6170 )
3 years ago
tomoam
907223cc78
[fix] only rely on `element`/`svg_element` functions if a hydrating component needs them ( #6556 )
3 years ago
Tan Li Hau
f25a995f7b
collapse whitespace in class and style attributes ( #6613 )
3 years ago
Rich Harris
813096d106
[fix] better flip animation ( #6658 )
3 years ago
Vignesh
c216707c3e
add HTMLElement and SVGElement as known globals ( #6665 )
3 years ago
Hasan Altan Birler
100561c336
[fix] hydration append issue ( #6602 )
3 years ago
Tan Li Hau
ce550adef6
[feat] allow use:actions on <svelte:body> ( #6608 )
3 years ago
Tan Li Hau
64b882e3c5
[feat] improve parser errors ( #6612 )
3 years ago
Oliver Ford
f48239914d
[fix] warning on reactive use of module const ( #6606 ) ( #6607 )
3 years ago
Dominik G
e94d1f50bc
[fix] use consistent relative source filename for js sourcemaps ( #6598 )
3 years ago
Tan Li Hau
e1d0d00ebb
[feat] allow shorthand {#await ... then/catch} ( #6564 )
3 years ago
Tan Li Hau
b720f0e620
[feat] support destructured declaration of props ( #6578 )
3 years ago
Tan Li Hau
c550f604f2
[feat] enable export ... from ( #6574 )
3 years ago
Luke Rhoads
4d677d5643
[chore] add space to improve formatting in type definitions file ( #6577 )
3 years ago
Conduitry
bc1556fff3
fix lint
3 years ago
Tan Li Hau
d75ed6a003
[fix] slot data for cancelled transition ( #6314 )
3 years ago
Yuichiro Yamashita
c8732c8a27
[fix] create in transition even if intro is initialized ( #6516 )
3 years ago
Tan Li Hau
9501ac6257
[fix] destructuring store assignment ( #6529 )
3 years ago
Tan Li Hau
ee769101fc
[fix] applying :global for > combinator ( #6563 )
3 years ago
Tan Li Hau
1952ea22de
[fix] no root node for detached dom node ( #6570 )
3 years ago
Yuichiro Yamashita
fd8c5885c8
[fix] create AST node of empty string for empty attribute values ( #6539 )
...
Co-authored-by: Conduitry <git@chor.date>
3 years ago
Bjorn Lu
71c29bbf35
[fix] dynamic autofocus ( #6494 )
3 years ago
Almog Tavor
9d21aa1164
[fix] tracking whether transition has started ( #6399 )
3 years ago
Simon H
4ca2af41df
[fix] add filename to combined source map if needed ( #6089 )
3 years ago
Tan Li Hau
b23d267f1f
[fix] improper :global() style encapsulation ( #6560 )
3 years ago
Tan Li Hau
365b5e300c
[fix] store reactivity in reactive declarations ( #6559 )
3 years ago
Conduitry
d487254beb
refactor: tidy use of Set for store subscribers
...
There's no need to check that a Set has an element before trying to
remove it.
3 years ago
Noski
b2260bc2e3
refactor: migrate array to set for subscriberss ( #6295 )
3 years ago
Tan Li Hau
8c66acfa92
fix one-way <select> bind with spread ( #6512 )
3 years ago
Tan Li Hau
c54d57b0d9
don't scope :root selector ( #6514 )
3 years ago
Tan Li Hau
f906180435
fix binding when updating through accessors ( #6523 )
3 years ago
Tan Li Hau
ef14280e28
use simpler insert and append functions when not compiling with hydration ( #6525 )
3 years ago
Yuichiro Yamashita
d9da22ac04
fix AST .end index for expressions in attributes ( #6542 )
3 years ago
Hofer Ivan
5cfefeb6e7
support rendering components in a shadow dom ( #5870 )
3 years ago
Hasan Altan Birler
ecbd96af95
[fix] hydration improvements ( #6449 )
3 years ago
Tan Li Hau
cb189ad0ec
[chore] update code-red, estree-walker, is-reference ( #6551 )
...
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
3 years ago
Tan Li Hau
222a9dd2c6
[feat] get all contexts ( #6528 )
...
* get all contexts
* docs
* explicit return type
* allow specifying return type through generic parameter
* Update site/content/docs/03-run-time.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
3 years ago
Ben McCann
f6a9804275
Upgrade Periscopic ( #6549 )
3 years ago
Maxime LUCE
0cf5511ae0
[feat] Add errorMode option to compile to allow continuing on errors (and mark them as warnings) ( #6194 )
...
This PR adds a new option errorMode to CompileOptions to allow continuing the compilation process when errors occured.
When set to warn, this new option will indicate to Svelte that it should log errors as warnings and continue compilation.
This allows (notably) preprocessors to compile the markup to detect vars in markup before preprocessing (in this case: script and style tags are stripped so it can produce a lot of errors).
This PR is part of a work on the svelte-preprocess side to improve the preprocessing of TypeScript files: https://github.com/sveltejs/svelte-preprocess/issues/318
- allow compiler to pass error as warnings
- enforce stops after errors during compilation (for type-checking, TS doesn't know the error method throws)
- should review Element.ts:302
- added a test case for errorMode
- added documentation
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
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
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