Commit Graph

4031 Commits

Author SHA1 Message Date
David Sherret
2745cb7949
fix(es/resolver): Ensure that a parameter type is resolved to parent (#4645) 2022-05-13 06:31:52 +00:00
SWC Bot
d9d3585732 chore: Publish crates 2022-05-13 06:07:50 +00:00
Donny/강동윤
b393773373
feat(debug): Inline dbg-swc (#4651) 2022-05-13 06:05:21 +00:00
SWC Bot
f0639c9de4 chore: Publish crates 2022-05-13 05:09:53 +00:00
Alexander Akait
af9c8c6b4c
fix(html): Fix parsing of template (#4647) 2022-05-13 05:07:24 +00:00
SWC Bot
3ac649138a chore: Publish crates 2022-05-13 04:48:12 +00:00
Alexander Akait
fa4a60a318
fix(html/codegen): Fix codegen (#4629) 2022-05-13 04:45:40 +00:00
Donny/강동윤
539fa4113e chore: Publish crates 2022-05-13 12:31:17 +09:00
SWC Bot
46c1add60e chore: Publish crates 2022-05-12 20:21:46 +00:00
Artur
f45dd72033
feat(es/lints): Implement no-compare-neg-zero rule (#4643) 2022-05-12 20:19:18 +00:00
SWC Bot
0b35b047bf chore: Publish crates 2022-05-12 19:59:27 +00:00
Alexander Akait
a19db2992b
fix(html/parser): Fix newlines (#4633) 2022-05-12 19:56:47 +00:00
SWC Bot
783917fd91 chore: Publish crates 2022-05-12 19:35:16 +00:00
Alexander Akait
c41aca6b24
feat(html/minifier): Compress application/ld+json (#4628) 2022-05-12 19:32:49 +00:00
SWC Bot
e21a40e55e chore: Publish crates 2022-05-12 10:53:44 +00:00
Donny/강동윤
84e4ca6c27
fix(css/parser): Remove a wrong assertion (#4641) 2022-05-12 19:48:51 +09:00
SWC Bot
073ca87012 chore: Publish crates 2022-05-12 09:23:46 +00:00
Donny/강동윤
9c190f0a8e
fix(es/minifier): Fix optimization of spread (#4639) 2022-05-12 09:20:44 +00:00
SWC Bot
b11840a637 chore: Publish crates 2022-05-12 07:31:44 +00:00
Donny/강동윤
79f87e03db
test(es/minifier): Execute more tests (#4636) 2022-05-12 16:28:52 +09:00
SWC Bot
cb5ca547aa chore: Publish crates 2022-05-12 15:14:28 +09:00
Donny/강동윤
56a227ad9d fix(es/minifier): Don't create direct eval (#4634)
- `expr_simplifier`: Preserve `this`.
 - `ExprReplacer`: Inject `0` after inlining eval.
 - `MultiReplacer`: Inject `0` after inlining eval.
2022-05-12 15:14:18 +09:00
SWC Bot
dca5bf8b2f chore: Publish crates 2022-05-12 05:50:05 +00:00
Alexander Akait
5f899a0348
refactor(html/parser): Improve parser a bit (#4627) 2022-05-12 05:45:11 +00:00
SWC Bot
67de03579f chore: Publish crates 2022-05-12 05:09:22 +00:00
Alexander Akait
b8fa3bc456
refactor(html/parser): Improve public API (#4626) 2022-05-12 05:07:07 +00:00
SWC Bot
c1e7dd7326 chore: Publish crates 2022-05-12 04:43:48 +00:00
Alexander Akait
5679b69600
feat(html/minifier): Improve minification of attributes (#4625) 2022-05-12 04:40:47 +00:00
SWC Bot
5a53bb771d chore: Publish crates 2022-05-12 04:18:10 +00:00
Donny/강동윤
20692cdff1
fix(es/modules): Fix jsc.paths (#4620) 2022-05-12 04:14:51 +00:00
SWC Bot
8fa7ce974e chore: Publish crates 2022-05-12 03:48:36 +00:00
Pig Fang
cac4f6e265
feat(html/parser): Add a method to get error message (#4623) 2022-05-12 03:45:56 +00:00
SWC Bot
ede955391b chore: Publish crates 2022-05-12 03:01:25 +00:00
Alexander Akait
4e577d7f45
test(html/parser): Add dom visualizer for regular tests (#4622) 2022-05-12 02:58:51 +00:00
SWC Bot
97808349a2 chore: Publish crates 2022-05-11 16:17:07 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0) for dummy spans (#4616) 2022-05-11 16:14:42 +00:00
SWC Bot
86f698efe3 chore: Publish crates 2022-05-11 07:12:43 +00:00
Donny/강동윤
53ff81ccd6
test(es): Add a test for merging configurations (#4617) 2022-05-11 07:08:52 +00:00
SWC Bot
1dd23594b2 chore: Publish crates 2022-05-11 06:00:07 +00:00
Alexander Akait
a378e1e041
refactor(html/parser): Remove unused code (#4613) 2022-05-11 05:57:33 +00:00
Donny/강동윤
4b0df044bd chore: Publish v1.2.182 2022-05-11 14:37:30 +09:00
SWC Bot
d768200e10 chore: Publish crates 2022-05-11 05:36:57 +00:00
Donny/강동윤
3b2b8c4512
fix(es/config): Merge jsc.transform correctly (#4615) 2022-05-11 14:28:40 +09:00
SWC Bot
90569d4673 chore: Publish crates 2022-05-11 04:38:52 +00:00
Donny/강동윤
6a97c7bef8
fix(es/utils): Fix wrong apis (#4604)
# API Changes

## `swc_ecma_utils`

### Renames

 - `find_ids` => `find_pat_ids`
 - `prepend` => `prepend_stmt`
 - `as_bool` => `cast_to_bool`
 - `as_number` => `as_pure_number`
 - `as_string` => `cast_to_string`
 - (`as_pure_bool`, `cast_to_number` is not renamed)
 - `UsageFinder` => `IdentUsageFinder`.
 - `IdentFinder` => `IdentRefFinder`.

## Changes

 - Re-export of `HANDLER` from `swc_common::errors` is removed. Use `swc_common::error::HANDLER` instead.
 - Re-export of `Id` from `swc_ecma_ast` is removed. Use `swc_ecma_ast::Id` instead.
 - `ExprCtx` is used for apis related to `Expr`.
 - `preserve_effects` is now a method of `ExprCtx`. It was a top-level function.
 - `extract_side_effects_to` is now a method of `ExprCtx`. It was a top-level function.
 - `IdentUsageFinder` (previously `UsageFinder`) now takes `Id` instead of `Ident`.
 - `IdentRefFinder` (previously `IdentFinder`) now takes `Id` instead of `Ident`.
 - `ExprExt::is_ident_ref_to` is removed.
 - `Expr::is_global_ref_to` is added.
 - `:🆔:id` is removed. Use `Ident::to_id()` instead.
2022-05-11 04:36:22 +00:00
SWC Bot
74ffa5ab9c chore: Publish crates 2022-05-11 03:59:37 +00:00
Alexander Akait
7c6627fc21
refactor(html): Refactor parser and codegen (#4611) 2022-05-11 03:55:46 +00:00
SWC Bot
7f67b0e6ac chore: Publish crates 2022-05-11 03:35:17 +00:00
Alexander Akait
7166dbf5a6
fix(html/parser): Fix bugs (#4592) 2022-05-11 03:31:49 +00:00
SWC Bot
d424bc3894 chore: Publish crates 2022-05-11 03:06:33 +00:00