Conduitry
10ce5c95fd
[fix] handle promise rejections for {#await} in SSR ( #6790 )
3 years ago
Conduitry
67b53bfe6d
[fix] prefer context from constructor options ( #6759 )
3 years ago
Bjorn Lu
b845307698
[fix] handle preprocess with empty sourcemaps ( #6757 )
3 years ago
Bjorn Lu
79df74b087
[fix] run else-if reactive function on re-renders ( #6727 )
3 years ago
Shinobu Hayashi
f1f7d90240
[fix] handle AssignmentPattern with ObjectPattern in rewrite_identifier ( #6715 )
3 years ago
Conduitry
6735d5422c
[chore] fix js sample test
3 years ago
Yuichiro Yamashita
fc4797c6f8
[fix] only use optimized 'src' handling for 'html' namespace ( #6580 )
3 years ago
Shinobu Hayashi
fc9241fea9
[fix] handle undefined select value with spread ( #6687 )
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
Tommy Groshong
a232d68a41
docs: small spelling fixes in docs and comments ( #6653 )
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
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
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
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
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
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
Tan Li Hau
ebaa891e69
[chore] update code-red@0.2.0 ( #6425 )
...
Co-authored-by: Conduitry <git@chor.date>
3 years ago
Tan Li Hau
2cec6a94bc
[feat] sourcemap markup ( #6427 )
...
* sourcemap markup
* sourcemap textnode
* update test
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
Tan Li Hau
f60cb22a9d
standalone :global() with multiple selectors shouldn't be treated as error ( #6508 )
3 years ago
Daybrush (Younkue Choi)
201a71d8b7
fix insert function ( #6445 )
3 years ago