Donny/강동윤
b4eef53680
feat(css/ast): Make AST intuitive ( #6606 )
2022-12-09 02:27:19 +00:00
SWC Bot
da5e18e522
chore: Publish crates
2022-12-07 09:30:36 +00:00
Donny/강동윤
08b6eab010
perf(css/parser): Don't allocate for comparisons ( #6593 )
2022-12-07 09:27:06 +00:00
SWC Bot
31630ba913
chore: Publish crates
2022-12-07 03:48:23 +00:00
Alexander Akait
d8936ade5b
fix(css/parser): Avoid skipping extra whitespaces ( #6592 )
...
**Description:**
- Avoid skipping whitespaces in `[`/`(`/`{` because it is invalid. Whitespaces can be allowed and can be disallowed based on context, we can't apply this logic to any CSS context.
- Also, we already skip whitespaces where it is necessary.
- This also avoids extra actions.
2022-12-07 03:44:36 +00:00
SWC Bot
3abef05a8d
chore: Publish crates
2022-12-07 02:58:32 +00:00
Alexander Akait
4de378cb1e
fix(css/parser): Fix a small bug ( #6591 )
2022-12-07 02:53:41 +00:00
SWC Bot
d9c1c3a9bf
chore: Publish crates
2022-12-07 01:48:18 +00:00
Alexander Akait
252edb550b
perf(css/parser): Reduce number of function calls ( #6587 )
2022-12-07 01:45:03 +00:00
Alexander Akait
f383836bad
chore(css/lexer): Fix typo ( #6588 )
2022-12-07 00:59:29 +00:00
SWC Bot
29d67206ba
chore: Publish crates
2022-12-06 14:31:09 +00:00
Donny/강동윤
64796701e4
perf(css/parser): Reduce clones and allocations ( #6585 )
...
**Description:**
- We use `(BytePos, BytePos)` instead of `Box<Span>`.
- We use `Cow` for `Input`.
2022-12-06 14:27:45 +00:00
SWC Bot
6e5abdd9cc
chore: Publish crates
2022-12-06 11:51:49 +00:00
SWC Bot
866fd09bad
chore: Publish crates
2022-12-06 06:23:44 +00:00
Donny/강동윤
70ac0286e5
perf(css/minifier): Remove redundant clone ( #6579 )
2022-12-06 15:20:05 +09:00
SWC Bot
a475f61ac3
chore: Publish crates
2022-12-06 02:01:49 +00:00
Alexander Akait
8633d27df0
perf(css/ast): Reduce token size ( #6569 )
2022-12-06 01:58:29 +00:00
SWC Bot
2379fc1fd9
chore: Publish crates
2022-12-04 05:55:52 +00:00
SWC Bot
cffa11122b
chore: Publish crates
2022-12-03 00:26:38 +00:00
SWC Bot
ab2e19b601
chore: Publish crates
2022-12-02 08:01:39 +00:00
Alexander Akait
4d422b6228
test(css/parser): Move vendor tests ( #6564 )
2022-12-02 04:27:09 +00:00
SWC Bot
974406a7c5
chore: Publish crates
2022-12-02 03:56:52 +00:00
Alexander Akait
a1fe9076c2
fix(css/parser): Fix parsing of nested rules ( #6563 )
2022-12-02 03:52:54 +00:00
SWC Bot
92877096fe
chore: Publish crates
2022-12-01 06:30:18 +00:00
Alexander Akait
db1eb483fd
fix(css/parser): Fix recovery more for invalid component values in declaration value ( #6560 )
2022-12-01 06:26:47 +00:00
SWC Bot
171733e8bb
chore: Publish crates
2022-11-30 07:50:13 +00:00
SWC Bot
7bc840d3b9
chore: Publish crates
2022-11-30 05:10:51 +00:00
Alexander Akait
251e98c055
refactor(css/parser): Canonicalize only if required ( #6532 )
2022-11-30 05:07:46 +00:00
Donny/강동윤
7ee86d1d25
test: Use correct extensions for fixture tests ( #6539 )
2022-11-29 09:47:56 +00:00
SWC Bot
5a9aab2392
chore: Publish crates
2022-11-28 16:00:01 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages ( #6526 )
...
**Description:**
This PR makes the error reporter print contexts.
**Related issue:**
- https://github.com/swc-project/swc/issues/6525 .
2022-11-29 00:56:47 +09:00
SWC Bot
96a1f93e91
chore: Publish crates
2022-11-28 07:54:59 +00:00
SWC Bot
59954370cb
chore: Publish crates
2022-11-20 00:30:30 +00:00
Donny/강동윤
9600308108
feat(css/parser): Add parse_string_input
( #6441 )
2022-11-15 08:05:43 +00:00
SWC Bot
6d4dcfd18c
chore: Publish crates
2022-11-15 01:52:06 +00:00
Alexander Akait
3d7545d89b
fix(css/parser): Fix a bug with scope in block ( #6402 )
2022-11-15 01:49:05 +00:00
SWC Bot
2088dd4a84
chore: Publish crates
2022-11-11 22:50:50 +00:00
SWC Bot
6ba1f5c09f
chore: Publish crates
2022-11-11 07:31:04 +00:00
Alexander Akait
983ab91435
refactor(css/parser): Refactor parser ( #6395 )
2022-11-11 07:27:19 +00:00
SWC Bot
c39380d7a0
chore: Publish crates
2022-11-11 01:27:12 +00:00
Alexander Akait
ec2c021255
perf(css/ast): Use Atom
for raw
values ( #6401 )
2022-11-11 01:24:11 +00:00
SWC Bot
f16f93c668
chore: Publish crates
2022-11-10 03:40:39 +00:00
Alexander Akait
d18eaf1698
fix(css/parser): Fix parsing of <general-enclosed>
( #6380 )
2022-11-10 12:37:14 +09:00
SWC Bot
4035f59d7e
chore: Publish crates
2022-11-10 02:47:50 +00:00
Alexander Akait
56bc6b8794
refactor(css/parser): Skip whitespaces in correct places ( #6382 )
2022-11-10 02:44:53 +00:00
SWC Bot
10fc03ae43
chore: Publish crates
2022-11-10 02:13:01 +00:00
Alexander Akait
434a7657ed
refactor(css/parser): Union input types ( #6385 )
2022-11-10 02:10:23 +00:00
SWC Bot
68c8c33d29
chore: Publish crates
2022-11-10 01:39:43 +00:00
Alexander Akait
bea6cce0c6
perf(css): Reduce size of tokens ( #6384 )
2022-11-10 01:36:53 +00:00
SWC Bot
7fcd2b2a6c
chore: Publish crates
2022-11-09 01:53:23 +00:00
Alexander Akait
4d49b9f61f
refactor(css/parser): Avoid unnecessary checks ( #6383 )
2022-11-09 01:50:12 +00:00
SWC Bot
410ec6f6c7
chore: Publish crates
2022-11-08 01:35:42 +00:00
Alexander Akait
f4832247bc
fix(css/parser): Fix parsing of supports()
( #6333 )
2022-11-08 01:32:48 +00:00
SWC Bot
5e18ebf61c
chore: Publish crates
2022-11-03 15:12:17 +00:00
Alexander Akait
e0967efa6e
feat(css/parser): Support new nesting spec ( #6337 )
2022-11-03 15:08:23 +00:00
SWC Bot
8df5ef9d54
chore: Publish crates
2022-11-03 06:33:20 +00:00
Alexander Akait
0bc682f529
feat(css/parser): Improve error recovery ( #6336 )
2022-11-03 06:30:09 +00:00
SWC Bot
ff700d8252
chore: Publish crates
2022-10-29 08:31:56 +00:00
Alexander Akait
6cafeb2bcc
refactor(css/parser): Refactor even more ( #6288 )
2022-10-29 08:28:39 +00:00
SWC Bot
fdeb7bc4fe
chore: Publish crates
2022-10-28 04:37:31 +00:00
Alexander Akait
2813acccc2
fix(css/parser): Fix various issues ( #6281 )
2022-10-28 04:34:23 +00:00
SWC Bot
ecba41691d
chore: Publish crates
2022-10-28 03:17:00 +00:00
Alexander Akait
956d574683
feat(css/parser): Improve error reporting ( #6274 )
2022-10-28 03:14:08 +00:00
SWC Bot
a4546a4d22
chore: Publish crates
2022-10-28 01:27:37 +00:00
SWC Bot
c41fe0d261
chore: Publish crates
2022-10-27 01:58:16 +00:00
Alexander Akait
c3944ba239
fix(css/parser): Fix parsing of colors ( #6260 )
2022-10-27 01:55:06 +00:00
SWC Bot
fd4b66ea8c
chore: Publish crates
2022-10-27 01:25:04 +00:00
SWC Bot
51132f0636
chore: Publish crates
2022-10-27 00:19:24 +00:00
Alexander Akait
4c293f965b
test(css/parser): Add tests for refactoring ( #6262 )
2022-10-26 22:58:59 +00:00
SWC Bot
dcd024f866
chore: Publish crates
2022-10-26 10:25:23 +00:00
Alexander Akait
a0e4684476
refactor(css/parser): Refactor more ( #6251 )
2022-10-26 19:22:27 +09:00
SWC Bot
2f05c3fd32
chore: Publish crates
2022-10-24 03:58:37 +00:00
SWC Bot
d05deb8a07
chore: Publish crates
2022-10-24 03:14:40 +00:00
Donny/강동윤
6341554628
fix(css/parser): Add more error recovery ( #6240 )
2022-10-24 03:11:27 +00:00
SWC Bot
2dbff698b8
chore: Publish crates
2022-10-22 22:52:58 +00:00
Alexander Akait
e4fe8403d7
refactor(css/parser): Fix parsing of declarations ( #6234 )
2022-10-22 22:50:19 +00:00
SWC Bot
ac3949e34f
chore: Publish crates
2022-10-22 04:24:21 +00:00
Alexander Akait
ac619e88bf
refactor(css/parser): Use new approach for parsing invalid tokens ( #6224 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-10-22 04:21:40 +00:00
SWC Bot
3f648bdf0f
chore: Publish crates
2022-10-20 08:59:26 +00:00
SWC Bot
0c23592d14
chore: Publish crates
2022-10-20 01:50:04 +00:00
SWC Bot
b48ec880fd
chore: Publish crates
2022-10-19 04:00:51 +00:00
Alexander Akait
6c170e59c7
refactor(css/ast): Refactor dashed ident ( #6198 )
2022-10-19 03:58:16 +00:00
SWC Bot
a049ef058b
chore: Publish crates
2022-10-18 14:51:39 +00:00
SWC Bot
25df5b37af
chore: Publish crates
2022-10-18 01:44:30 +00:00
Alexander Akait
6e2e2ada4e
refactor(css/parser): Improve project structure ( #6110 )
2022-10-18 01:41:59 +00:00
SWC Bot
701c3c0367
chore: Publish crates
2022-10-17 12:42:46 +00:00
Alexander Akait
d46a19b554
feat(css/ast): Support @custom-media
at-rule ( #6152 )
2022-10-17 12:40:00 +00:00
SWC Bot
1ed0203262
chore: Publish crates
2022-10-14 14:49:13 +00:00
Alexander Akait
26aeb18c0c
fix(css/parser): Improve handling of math functions in at-rules ( #6140 )
2022-10-14 14:46:36 +00:00
SWC Bot
1affcfe8e8
chore: Publish crates
2022-10-13 06:12:56 +00:00
SWC Bot
a871b13906
chore: Publish crates
2022-10-13 05:34:51 +00:00
Alexander Akait
e63fa28008
fix(css/ast): Fix AST types for simple block ( #6131 )
2022-10-13 05:31:34 +00:00
SWC Bot
871ed71b52
chore: Publish crates
2022-10-13 04:18:02 +00:00
Alexander Akait
85b2188204
refactor(css/ast): Refactor AST types ( #6124 )
2022-10-13 04:15:29 +00:00
SWC Bot
b07a17a959
chore: Publish crates
2022-10-13 03:20:07 +00:00
Alexander Akait
39cfade7f8
fix(css/modules): Fix parsing and refactor code ( #6132 )
2022-10-13 12:17:11 +09:00
SWC Bot
56da9981bb
chore: Publish crates
2022-10-12 10:06:01 +00:00
Vincent Ricard
205a317c4d
feat(css/minifier): Compute calc
expressions ( #5966 )
2022-10-12 10:03:14 +00:00
SWC Bot
8e35f53035
chore: Publish crates
2022-10-12 03:00:58 +00:00
Alexander Akait
c765f0ff73
fix(css/ast): Fix AST types for namespace ( #6112 )
2022-10-12 02:57:43 +00:00