Commit Graph

448 Commits

Author SHA1 Message Date
Alexander Akait
b65a16c7aa
feat(css/ast): Make raw optional (#5211) 2022-07-15 11:22:59 +00:00
Alexander Akait
fa4c2de706
test(css/codegen): Add tests (#5195) 2022-07-14 04:32:00 +00:00
Donny/강동윤
b433b69263 chore: Publish crates 2022-07-12 23:58:30 +09:00
SWC Bot
e15fe530fb chore: Publish crates 2022-07-12 03:14:47 +00:00
Alexander Akait
5b70233400
fix(css/codegen): Fix sourcemap of multibyte characters (#5183) 2022-07-12 03:12:32 +00:00
Alexander Akait
dada2d7d55
feat(html/minifier): Allow specifying options for other tools (#5125) 2022-07-11 13:08:40 +00:00
SWC Bot
2bd5b4413a chore: Publish crates 2022-07-09 10:17:04 +00:00
SWC Bot
297228a690 chore: Publish crates 2022-07-07 07:48:49 +00:00
SWC Bot
9385103649 chore: Publish crates 2022-07-06 04:44:10 +00:00
Donny/강동윤
c2c923e205 chore: Publish crates 2022-07-01 11:50:45 +09:00
SWC Bot
5576c3c601 chore: Publish crates 2022-06-29 03:37:57 +00:00
Alexander Akait
3e6c0f567a
feat(html/minifier): Compress CSS (#4973) 2022-06-15 04:04:57 +00:00
LongYinan
db9f7a5ad4
chore(ci): Fix publish build on Windows (#4970) 2022-06-14 15:58:10 +00:00
SWC Bot
ddae14d256 chore: Publish crates 2022-06-12 03:31:05 +00:00
Donny/강동윤
50db276d82
build(repo): Downgrade rustc (#4674) 2022-05-15 19:28:55 +00:00
SWC Bot
97808349a2 chore: Publish crates 2022-05-11 16:17:07 +00:00
OJ Kwon
8419b60430
fix(plugin): Align deps to fix build (#4377) 2022-04-20 08:05:02 +00:00
Alexander Akait
81370d16cb
fix(css/parser): Parse legacy calcs (#4320) 2022-04-13 07:02:31 +00:00
OJ Kwon
fad652f879
chore(plugin): Align version of swc_common to include dummy comment api (#4270) 2022-04-07 07:21:37 +00:00
Alexander Akait
8b6647cf85
feat(css/parser): Improve error recovery for unknown at-rules (#4257) 2022-04-06 05:07:48 +00:00
OJ Kwon
4093814895
chore(build): Dedup swc_common (#4247) 2022-04-05 14:28:07 +09:00
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action (#4242) 2022-04-04 20:12:03 +09:00
SWC Bot
77abfef314 chore: Publish crates 2022-04-01 11:55:47 +00:00
Alexander Akait
6696a93b5c
refactor(css/ast): Union all at-rules to one at-rule in AST (#4189) 2022-04-01 20:53:23 +09:00
Donny/강동윤
533f756274
fix(api/rust): Exclude test files from rust packages (#4091) 2022-03-19 10:49:12 +00:00
LongYinan
db9b988845
feat(node-swc): Add libc field in Linux platform packages (#4046) 2022-03-16 18:58:24 +09:00
SWC Bot
9d6a57c6e5 chore: Publish crates 2022-03-14 14:32:45 +00:00
Alexander Akait
a4bc0927a0
feat(css): Supports more color notations (#4009) 2022-03-14 14:30:09 +00:00
Donny/강동윤
38c0c0faa6 chore: Publish crates 2022-03-14 04:11:07 +09:00
SWC Bot
3cfe4ccb94 chore: Publish crates 2022-03-13 18:00:19 +00:00
Alexander Akait
ece8d962f8
fix(css/codegen): Fix source maps (#3997) 2022-03-14 02:55:18 +09:00
SWC Bot
1ae67affe3 chore: Publish crates 2022-03-11 16:56:55 +00:00
Alexander Akait
516dbc65dc
feat(css/codegen): Fix source maps and ast defs (#3974) 2022-03-11 16:54:33 +00:00
Donny/강동윤
c6b5371c51
fix(es/lints): Don't visit types while collecting const (#3967) 2022-03-11 17:41:28 +09:00
SWC Bot
3014d7a876 chore: Publish crates 2022-03-11 05:23:53 +00:00
Alexander Akait
5a6ebd36ee
feat(css/codegen): Support source map (#3958) 2022-03-11 05:22:14 +00:00
SWC Bot
4c4dc6f096 chore: Publish crates 2022-03-05 12:00:25 +00:00
Alexander Akait
c84bf133a6
feat(css): Improve error recovery (#3853) 2022-03-05 11:58:40 +00:00
Alexander Akait
e3a5c142d5
fix(css/codegen): Fix the output of SimpleBlock (#3838) 2022-03-03 22:34:57 +00:00
SWC Bot
0d8adf1dde chore: Publish crates 2022-03-03 21:26:36 +00:00
Alexander Akait
3df887ca37
feat(css): Support color functions (#3836) 2022-03-04 06:24:22 +09:00
Alexander Akait
fbb98aa73c
feat(css/parser): Improve error recovery (#3828) 2022-03-03 15:05:12 +00:00
Alexander Akait
30cd29b0f0
fix(css/parser): Fix parsing of ; in values (#3821) 2022-03-02 15:51:52 +00:00
SWC Bot
895f664149 chore: Publish crates 2022-03-02 15:19:26 +00:00
Alexander Akait
7ba5861a33
fix(css/codegen): Fix codegen of preserved tokens (#3819) 2022-03-02 15:17:17 +00:00
SWC Bot
798f6c5a6d chore: Publish crates 2022-03-02 05:36:57 +00:00
SWC Bot
84ad891442 chore: Publish crates 2022-03-01 15:28:37 +00:00
Alexander Akait
3ec45a6858
feat(css/ast): Union Value and ComponentValue (#3804) 2022-03-01 15:26:17 +00:00
Alexander Akait
189707a1fd
test(css/parser): Add css files for material design (#3777) 2022-02-28 21:17:50 +09:00
SWC Bot
e475a83ebc chore: Publish crates 2022-02-27 14:54:36 +00:00
Alexander Akait
815a489dcf
refactor(css/ast): Simplify AST types (#3753) 2022-02-27 14:52:32 +00:00
SWC Bot
3c85a82052 chore: Publish crates 2022-02-27 05:20:28 +00:00
Alexander Akait
91cf965e07
feat(css/ast): Improve type definitions for unicode ranges (#3757) 2022-02-27 14:16:22 +09:00
SWC Bot
d23e19abe9 chore: Publish crates 2022-02-26 13:57:28 +00:00
Alexander Akait
f258ee4729
fix(css): Fix processing of integers (#3752) 2022-02-26 13:51:59 +00:00
SWC Bot
f1818f7be2 chore: Publish crates 2022-02-25 18:03:52 +00:00
Alexander Akait
9b92eba636
feat(css/ast): Allow more syntax for @supports at-rule (#3740) 2022-02-25 18:01:38 +00:00
SWC Bot
edc3702e5a chore: Publish crates 2022-02-25 02:07:42 +00:00
Alexander Akait
f5c5e77612
feat(css/ast): Support more selectors (#3729) 2022-02-25 02:05:12 +00:00
SWC Bot
bb47be19f8 chore: Publish crates 2022-02-23 16:23:11 +00:00
Alexander Akait
321ee756d9
refactor(css/ast): Fix the type definitions for an plus b syntax (#3682) 2022-02-23 16:20:40 +00:00
Donny/강동윤
e35d73adf4
chore(clippy): Improve config (#3691) 2022-02-23 06:07:42 +00:00
SWC Bot
0bfd894c0e chore: Publish crates 2022-02-22 19:47:48 +00:00
Alexander Akait
003a7b85a4
feat(css/ast): Improve parsing of colors (#3680) 2022-02-22 19:45:33 +00:00
SWC Bot
cfa648793f chore: Publish crates 2022-02-22 11:49:10 +00:00
Alexander Akait
fab6473183
feat(css/minifier): Compress urls (#3666) 2022-02-22 11:44:24 +00:00
SWC Bot
180ba98625 chore: Publish crates 2022-02-18 16:30:00 +00:00
Alexander Akait
8271566d21
feat(css/codegen): Improve minification of selectors (#3624) 2022-02-19 01:27:32 +09:00
Alexander Akait
b7dcccc748
fix(css/parser): Fix parsing of component values (#3611) 2022-02-17 14:20:17 +00:00
Alexander Akait
5420bccc59
fix(css): Fix recovery mode for functions (#3600) 2022-02-17 13:36:50 +09:00
Alexander Akait
b01916531f
test(css/codegen): Add tests for custom properties in at-rules (#3596) 2022-02-16 16:31:07 +00:00
SWC Bot
0d6e46167f chore: Publish crates 2022-02-16 13:51:10 +00:00
Alexander Akait
a20ed34e6b
feat(css/ast): Use SimpleBlock for @keyframes (#3577) 2022-02-16 13:49:00 +00:00
SWC Bot
60ffd039d9 chore: Publish crates 2022-02-16 12:40:38 +09:00
Alexander Akait
e97074b6c3
feat(css/ast): Use SimpleBlock in more places (#3575) 2022-02-16 12:40:16 +09:00
SWC Bot
3b7e594bc7 chore: Publish crates 2022-02-15 12:40:39 +09:00
Alexander Akait
3399702b73
feat(css/ast): Use SimpleBlock for @document at-rule (#3564) 2022-02-15 03:33:54 +00:00
Alexander Akait
08dd695c67
test(css/codegen): Add tests (#3563) 2022-02-15 01:22:36 +09:00
SWC Bot
85d7e92640 chore: Publish crates 2022-02-14 22:48:04 +09:00
Alexander Akait
aed622be2f
refactor(css/ast): Rename tokens to match spec (#3553) 2022-02-14 13:05:16 +00:00
SWC Bot
2830438663 chore: Publish crates 2022-02-14 17:38:14 +09:00
Alexander Akait
d5aee470cb
refactor(css/parser): Remove parse_values, which is not used (#3552) 2022-02-14 08:34:26 +00:00
SWC Bot
de26b88ff6 chore: Publish crates 2022-02-14 16:52:51 +09:00
SWC Bot
c79f19855a chore: Publish crates 2022-02-14 15:19:53 +09:00
Alexander Akait
b311aced89
feat(css/ast): Use correct type for calc (#3549) 2022-02-14 06:19:02 +00:00
SWC Bot
2a6b7fd4c5 chore: Publish crates 2022-02-14 01:01:02 +09:00
SWC Bot
ccf9591dad chore: Publish crates 2022-02-12 14:28:18 +09:00
Alexander Akait
cfb2248a2e
fix(css/ast): Use SimpleBlock in more types (#3535) 2022-02-12 14:28:00 +09:00
SWC Bot
9efe3c8489 chore: Publish crates 2022-02-11 22:32:15 +09:00
Alexander Akait
37c49e876c
refactor(css/ast): Unify SimpleBlock and Block completely (#3531) 2022-02-11 22:31:51 +09:00
Alexander Akait
57f6a581fa
refactor(css/ast): Unify SimpleBlock and Block (#3519) 2022-02-11 03:58:26 +00:00
Alexander Akait
69cfe395c7
feat(css/minifier): Implement more rules (#3522) 2022-02-11 12:33:08 +09:00
SWC Bot
67c508429a chore: Publish crates 2022-02-10 20:27:33 +09:00
Alexander Akait
92a3cb9609
refactor(css/ast): Remove Tokens in favor of Vec<TokenAndSpan> (#3507) 2022-02-10 11:25:19 +00:00
Alexander Akait
ebd71d565d
test(css/codegen): Add tests for multiple keyframe selectors (#3509) 2022-02-10 05:39:54 +00:00
SWC Bot
df37b4472d chore: Publish crates 2022-02-09 22:00:13 +09:00
Alexander Akait
cbe302b99d
feat(css): Support urange syntax (#3491) 2022-02-09 12:23:14 +00:00
Donny/강동윤
8dbc949cfe chore: Publish crates 2022-02-09 19:43:50 +09:00
Alexander Akait
460f846934
refactor(css/ast): Rename types to match specification (#3484) 2022-02-09 19:43:15 +09:00
Donny/강동윤
9b76783281
refactor(common): Cleanup & rustfmt (#3495)
swc_common:
 - Merge identical source codes.

swc_css_parser:
 - Deny `clippy::all`.
 - Fix lints.
2022-02-09 06:33:32 +00:00
Donny/강동윤
cd81a6ba89 chore: Publish crates 2022-02-08 21:05:12 +09:00
Alexander Akait
dc939c65af
feat(css/ast): Add types for all dimensions (#3477) 2022-02-08 11:57:57 +00:00
Donny/강동윤
f8c62b6cac chore: Publish crates 2022-02-08 20:29:10 +09:00
Alexander Akait
fd5668c32f
feat(css): Add support for @property at-rule (#3470) 2022-02-08 11:27:54 +00:00
Donny/강동윤
214dc4736b chore: Publish crates 2022-02-08 13:52:33 +09:00
Alexander Akait
e6f4fbf056
feat(css/ast): Add types for @counter-style at-rule (#3469) 2022-02-08 13:52:14 +09:00
Donny/강동윤
ec120199eb chore: Publish crates 2022-02-08 00:42:17 +09:00
Alexander Akait
df08e4cfd7
fix(css/ast): Fix type definitions for @document at-rule (#3468) 2022-02-08 00:41:56 +09:00
Donny/강동윤
0903899977 chore: Publish crates 2022-02-07 23:58:29 +09:00
Alexander Akait
0ca036a962
feat(css/codegen): Improve minification for page rules (#3467) 2022-02-07 14:54:42 +00:00
Donny/강동윤
42143f243e chore: Publish crates 2022-02-07 23:33:05 +09:00
Alexander Akait
81850c2b30
feat(css/codegen): Implement minification of identifiers (#3466) 2022-02-07 14:29:38 +00:00
Donny/강동윤
7b9379e1d1 chore: Publish crates 2022-02-07 21:35:06 +09:00
Alexander Akait
69660fd161
refactor(css/ast): Remove unused types (#3465) 2022-02-07 21:34:41 +09:00
Donny/강동윤
5276054df3 chore: Publish crates 2022-02-07 06:43:46 +09:00
Alexander Akait
4853821d00
fix(css): Fix parsing of @page at-rule (#3356) 2022-02-06 20:22:30 +00:00
Donny/강동윤
bd34a84d56 chore: Publish crates 2022-02-06 13:44:50 +09:00
Alexander Akait
cd87d965f3
refactor(css/ast): Refactor types related to selectors (#3460) 2022-02-06 04:24:51 +00:00
Donny/강동윤
be7d5cc4d5 chore: Publish crates 2022-02-05 23:23:09 +09:00
Alexander Akait
38879de8de
refactor(css/ast): Change AST for !important (#3440) 2022-02-05 23:22:47 +09:00
Donny/강동윤
dc5fe85f7d chore: Publish crates 2022-02-05 14:48:36 +09:00
Alexander Akait
eeedd71705
feat(css/codegen): Implement minification of hex colors (#3453) 2022-02-05 05:02:10 +00:00
Donny/강동윤
811ac08d32 chore: Publish crates 2022-02-04 14:12:11 +09:00
Alexander Akait
5c1b02182d
refactor(css/ast): Refactor types related to @keyframes at-rule (#3441) 2022-02-04 05:10:35 +00:00
Donny/강동윤
dc92beb038 chore: Publish crates 2022-02-04 13:06:57 +09:00
Alexander Akait
49564d9b5d
feat(css/ast): Improve types related to url tokens (#3444) 2022-02-04 04:05:44 +00:00
Alexander Akait
f1410fc09b
feat(css/lexer): Implement error recovery for functions (#3445) 2022-02-04 12:29:56 +09:00
Alexander Akait
73efd72cbe
test(css/codegen): Verify AST is not broken after minification (#3430) 2022-02-03 12:50:13 +09:00
Donny
b509341fea chore: Publish crates 2022-02-02 13:00:00 +09:00
Alexander Akait
340844ae6e
feat(css/codegen): Improve minification of numbers (#3423) 2022-02-02 12:59:39 +09:00
Donny
2504f041f7 chore: Publish crates 2022-02-01 22:37:11 +09:00
Alexander Akait
30c29a30cf
feat(css): Improve codegen where minify: true (#3414)
swc_css_codegen:
 - Improve minification.

swc_css_parser:
 - Add parsing rule for `sum`.
2022-02-01 12:30:44 +00:00
Donny
bf7f4a4b37 chore: Publish crates 2022-01-31 14:59:57 +09:00
Alexander Akait
eeedd9adf5
refactor(css/ast): Rename property to name (#3410) 2022-01-31 05:02:30 +00:00
Donny
43ca078eda chore: Publish crates 2022-01-31 13:20:27 +09:00
Alexander Akait
6b921cac02
refactor(css/ast): Use Color instead of HashValue (#3411) 2022-01-31 03:10:37 +00:00
Donny
6ec667463f chore: Publish crates 2022-01-30 22:49:41 +09:00
Alexander Akait
75a14f98b7
fix(css): Allow empty @media at-rule (#3404) 2022-01-30 22:49:09 +09:00
Donny
a143e96931 chore: Publish crates 2022-01-30 21:31:21 +09:00
Alexander Akait
1904944bf7
refactor(css/ast): Use Dimension instead of UnitValue (#3401) 2022-01-30 12:15:05 +00:00
Donny
db674354d3 chore: Publish crates 2022-01-30 14:04:12 +09:00
Alexander Akait
2dc31d9d14
feat(css/ast): Add / to the delimiters (#3402) 2022-01-30 04:49:48 +00:00
Alexander Akait
64383e385c
test(css/codegen): Add more tests (#3405) 2022-01-30 12:37:21 +09:00
Donny
c49ffc2c8b chore: Publish crates 2022-01-29 12:10:57 +09:00
Alexander Akait
b31619d48e
refactor(css/ast): Refactor delimited values (#3397) 2022-01-29 12:10:29 +09:00
Alexander Akait
c73835bfeb
feat(css/parser): Improve selector parser (#3386) 2022-01-28 01:11:26 +09:00
Donny
33d906caf3 chore: Publish crates 2022-01-27 21:45:13 +09:00
Alexander Akait
0537ef1a11
feat(css/codegen): Implement minify: true (#3369) 2022-01-27 21:44:38 +09:00
Donny
8a0ebebb08 chore: Publish crates 2022-01-26 20:37:51 +09:00
Alexander Akait
dfa0286aca
feat(css/ast): Add types for dashed identifiers and @color-profile at-rules (#3364) 2022-01-26 20:35:49 +09:00
Donny
14e87d3a95 chore: Publish crates 2022-01-26 01:31:13 +09:00
Alexander Akait
6fc7562686
refactor(css/ast): Rename PercentValue to Percent (#3363) 2022-01-25 14:44:28 +00:00
Donny
a5ba590450 chore: Publish crates 2022-01-25 22:51:07 +09:00
Alexander Akait
7787f90da0
refactor(css/ast): Fix type definitions related to @import at-rule (#3351) 2022-01-25 22:50:23 +09:00
Donny
df2ca10cb6 chore: Publish crates 2022-01-25 05:22:20 +09:00
Alexander Akait
c7e5faea5c
feat(css/ast): Add Ratio, which is defined by spec (#3335) 2022-01-24 14:27:10 +00:00
Donny
ffe793660d chore: Publish crates 2022-01-23 21:22:03 +09:00
Alexander Akait
c664eafdef
refactor(css/ast): Merge several kinds of blocks into a single type (#3336) 2022-01-22 14:10:25 +00:00
Donny
919c49b78b chore: Publish crates 2022-01-21 22:33:10 +09:00
Alexander Akait
9f3806029c
fix(css): Fix @supports at-rule (#3329) 2022-01-21 22:32:49 +09:00
Donny
29985df91d chore: Publish crates 2022-01-21 11:46:07 +09:00
Alexander Akait
f89ffa67ae
fix(css): Fix @keyframes at-rule (#3331) 2022-01-21 01:55:49 +00:00
Donny
57e79b6fce chore: Publish crates 2022-01-21 10:03:21 +09:00
Alexander Akait
34943ffa15
fix(css): Fix the type definition of @support at-rules (#3330) 2022-01-21 00:57:29 +00:00
Donny
cb50328d85 chore: Publish crates 2022-01-20 11:58:57 +09:00
Alexander Akait
0723ee2828
fix(css): Fix parsing of media queries (#3318)
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-01-20 02:57:24 +00:00
Donny/강동윤
357a350390
refactor(*): Cleanup (#3274) 2022-01-15 16:43:34 +09:00
Donny
8753f8cfc7 chore: Publish crates 2022-01-14 20:24:12 +09:00
Alexander Akait
c195335012
feat(css): Support @layer at-rule (#3258) 2022-01-14 11:21:41 +00:00
Donny/강동윤
15b604b6d6
refactor(*): Fix some clippy warnings (#3257) 2022-01-14 07:20:45 +09:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy (#3250) 2022-01-13 23:06:11 +09:00
Donny
c13bba8401 chore: Publish crates 2022-01-12 18:39:56 +09:00
Donny
781aa79b82 chore: Publish crates 2022-01-04 19:29:50 +09:00
Donny/강동윤
194b3e9b67
refactor(*): Use 2021 edition (#3151) 2021-12-30 18:59:18 +09:00
OJ Kwon
72c963662d
refactor(*): Drop unused dependencies (#3138) 2021-12-29 15:27:51 +09:00
Donny/강동윤
c8395bc74f
fix(css): Fix stylis (#2987)
swc_css_codegen:
 - Respect `minify`.

swc_stylis:
 - Process properties only if it's in a qualified rule.
2021-12-07 21:04:54 +09:00
Donny
b1a47ee971 chore: Publish crates 2021-12-07 14:34:44 +09:00
Donny
3bf751ac4a chore: Publish crates 2021-12-02 03:33:26 +09:00
Alexander Akait
8781527751
fix(css/ast): Fix type definitions related to parsing unknown at-rules (#2922)
swc_css_ast:
 - Rename `FnValue` to `Function`.
2021-12-01 17:07:49 +00:00
Donny
1fabb0381a chore: Publish crates 2021-12-01 18:36:26 +09:00
Alexander Akait
0f4ad0f8c8
fix(css/ast): Fix type definition of @namespace (#2919) 2021-12-01 09:29:25 +00:00
Donny
86d2cebd37 chore: Publish v1.2.115 2021-12-01 14:20:52 +09:00
Donny
57fb69262d chore: Publish crates 2021-11-30 11:25:38 +09:00
Donny
edc0cb0a2d chore: Publish crates 2021-11-29 19:39:11 +09:00
Alexander Akait
c77ebbeb8d
feat(css/ast): Add support for nested @at-rules (#2897) 2021-11-29 19:38:49 +09:00
Donny
2485c97317 chore: Publish crates 2021-11-28 02:04:19 +09:00
Alexander Akait
c94735e540
fix(css): Handle custom properties properly (#2869)
swc_css_codegen:
 - Fix code generation of custom properties.

swc_css_parser:
 - Fix parsing of custom properties.
2021-11-27 16:11:40 +00:00
Donny/강동윤
c6cb790cd9
feat(css/minifier): Initialize crate (#2884) 2021-11-27 14:33:33 +09:00
Donny
62a48875bd chore: Publish crates 2021-11-25 14:14:43 +09:00
Alexander Akait
ce6c7ee85d
fix(css/ast): Fix AST definitions for @keyframes (#2848) 2021-11-25 04:59:40 +00:00
Donny
e04f0867fc chore: Publish crates 2021-11-24 17:04:09 +09:00
Donny
43586d0b7c chore: Publish crates 2021-11-20 16:29:43 +09:00
Alexander Akait
4bcf3fc2ad
refactor(css/ast): Split pseudo class and pseudo element (#2675) 2021-11-20 16:29:18 +09:00
Donny
8615a64f2f chore: Publish crates 2021-11-18 22:19:10 +09:00
Donny
ee12362688 chore: Publish crates 2021-11-18 14:18:11 +09:00
Alexander Akait
c50cec1533
refactor(css/ast): Rename StyleRule to QualifiedRule (#2756) 2021-11-17 21:27:39 +00:00
Alexander Akait
6ce437d65d
feat(css/ast): Add types for An+b syntax (#2759) 2021-11-16 15:01:59 +00:00
Donny/강동윤
1d518fe381
refactor: Flatten css (#2731) 2021-11-12 19:37:05 +09:00