0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 17:00:40 +01:00
Commit Graph

166 Commits

Author SHA1 Message Date
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
2021-06-28 18:13:02 +08:00
Tan Li Hau
3acaa03f6f
fix textarea end tag parsing (#6424) 2021-06-22 09:43:51 -04:00
Bjørn
de6d0c66d3
Add a more descriptive message for the error generated by an empty shorthand attribute (#6217)
Added error message "empty-attribute-shorthand" for when the shorthand attribute is empty,
giving a more explicit error for #6086
2021-06-22 15:33:50 +02:00
Conduitry
286c60da4d
fix missing slotted elements in AST (#6148) 2021-03-29 22:55:52 -04:00
Tan Li Hau
1d6e20f2a9
implement <svelte:fragment> (#4556)
add validation and test

replace svelte:slot -> svelte:fragment

slot as a sugar syntax

fix eslint
2021-02-27 12:43:53 -05:00
Tan Li Hau
8867bc31c2
update css-tree@^1.1.2 (#5958) 2021-02-08 12:05:39 -05:00
Anders Lorentsen
acf60d88a0
error on empty name in class: directive (#5939) 2021-01-29 10:33:40 -05:00
pushkine
13e3d755da
allow duplicates of the same action on an element (#5875) 2021-01-25 15:55:12 -05:00
Andreas Ehrencrona
aa759f44fc
add missing end AST property to non-top-level <style> tags (#5487) 2020-10-02 09:30:17 -04:00
Andreas Ehrencrona
e508fb7b8b
fix indentation and remove unused variables (#5479) 2020-10-01 11:34:53 -04:00
Ben McCann
229a16d6e7
upgrade ESLint config (#5472) 2020-09-29 20:19:43 -04:00
Ben McCann
0645631b28
Use TypeScript in tests (#5433) 2020-09-29 11:19:21 -04:00
Tan Li Hau
3dad14f0e1
better error message for mismatched tags due to autoclosing (#5060) 2020-07-24 14:48:43 -04:00
Tan Li Hau
2450dd1ff0
update acorn@^7.3.1 for optional chaining support (#5013) 2020-06-27 05:58:21 -04:00
Cameron Messinides
e46e1afea5
throw parser error when :global() appears without a selector (#4936) 2020-06-08 11:20:34 -04:00
pushkin
0da70f46b9
handle line ending differences in tests (#4915) 2020-05-28 12:36:27 -04:00
Tan Li Hau
37cc5888f8
dry {#each}/{#await} destructuring (#4596) 2020-05-11 11:37:27 -04:00
Tan Li Hau
7d1e4e82ff
support destructuring in await (#4548) 2020-03-15 06:12:52 -04:00
Tan Li Hau
a66437b3c1
allow <svelte:self> to be part of a slot (#4532) 2020-03-12 07:51:59 -04:00
Conduitry
59a5d4a52c fix tests 2020-02-09 06:48:22 -05:00
Conduitry
f5f489984f
fix handling of reserved keywords when parsing (#4390) 2020-02-09 00:04:21 -05:00
Tan Li Hau
2195832ecc better error messages for else, elseif, then, catch with unclosed tag (#4136) 2020-02-08 23:59:43 -05:00
Conduitry
5076613256
disallow simultaneous foo / {foo} / bind:foo (#4343)
* disallow matching attributes/shorthands/bindings (#4325)

* add tests

* update changelog
2020-01-30 09:25:16 -05:00
Conduitry
f12340acf0
preserve js comments where possible (#4293) 2020-01-20 21:17:24 -05:00
Tan Li Hau
d8b9274697 update test snapshot with --update flag 2019-11-07 08:34:19 +08:00
Tan Li Hau
3d46405481 skip missing input files 2019-11-07 00:55:07 +08:00
Tan Li Hau
5dbb08d19b allow solo for test suite (#3747) 2019-10-23 14:52:49 -04:00
Li Hau Tan
a31fea139b then and catch block expect await, optional then block 2019-10-18 17:59:50 +08:00
Rich Harris
b9f14846b0
Structured code generation (#3539) 2019-10-16 10:57:23 -04:00
Rich Harris
961021a73b
Merge pull request #2809 from mrkishi/closing-tags
Allow end tag omission in blocks
2019-09-08 17:23:51 -04:00
Conduitry
71be8a6683 update dependencies 2019-09-03 21:12:30 -04:00
Richard Harris
506e2da680 update test 2019-08-18 20:51:02 -04:00
Richard Harris
5648269485 Merge branch 'master' of github.com:sveltejs/svelte into closing-tags 2019-08-18 20:44:36 -04:00
Thomas Ghysels
c9e3762638 Fix parsing ambiguous HTML entities (#3071)
Fixes sveltejs/sapper#759
2019-06-23 08:41:56 -04:00
Mikhail Korepanov
ea74bfec55 Allow whitespace after = in attributes (#3026) 2019-06-16 06:37:28 -04:00
Richard Harris
b7f9c9c954 always add raw property to text nodes 2019-05-26 14:48:10 +02:00
Timothy Johnson
ef59c32099 Fixes #2714 2019-05-24 16:31:01 -07:00
mrkishi
af85d14557
allow end tag omission in blocks 2019-05-17 19:25:11 -03:00
Rich Harris
5a536aafa2
Merge pull request #2658 from MikeMatrix/each-block-rest-destructuring
each-block array destructuring
2019-05-04 11:36:18 -04:00
Michael Braun
c477f50b9a Experimenting with array destructuring in each-blocks 2019-05-02 21:59:26 +02:00
Emil Tholin
7ec1bdb712 Don't show 'Empty block' warnings for non-existent await branches 2019-04-27 21:49:55 +02:00
Richard Harris
ca0e5df0d8 update parser and js tests 2019-03-15 23:51:04 -04:00
Conduitry
bee6fe7ebc require whitespace after {@html (#2154) 2019-03-06 12:42:40 -05:00
Richard Harris
6c85f6a6b5 change :elseif to :else if - fixes #2137 2019-02-27 08:17:55 -05:00
Richard Harris
3953c2dbfc error on invalid compiler options — closes #2094 2019-02-17 13:10:37 -05:00
Rich Harris
206a3d0131 update tests 2019-02-08 09:32:36 -05:00
Rich Harris
687e352209 rename .html files to .svelte 2019-02-08 08:48:10 -05:00
Conduitry
a270661d20 rename <svelte:meta> to <svelte:options> (#2017) 2019-01-29 17:59:40 -05:00
Rich Harris
b1d919f3f2
Overhaul stats — closes #1891 2019-01-29 09:10:10 -05:00
Conduitry
f8d69e296f replace <svelte:document> with <svelte:body> (#1846) 2019-01-05 14:16:43 -05:00