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
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
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
Donny/강동윤
2c861bd9e5
feat(es/ast): Improve Id
APIs ( #4614 )
...
# API Changes
- `Ident` now has `to_id()`. This method is added to allow removing an import.
2022-05-11 12:02:14 +09:00
SWC Bot
9a36b216cc
chore: Publish crates
2022-05-11 03:01:34 +00:00
Pig Fang
04dd3ddc5d
feat(css/parser): Add a method to get error message ( #4588 )
2022-05-11 02:58:20 +00:00
SWC Bot
ad9daae200
chore: Publish crates
2022-05-10 10:43:10 +00:00
Artur
e65bf3d025
feat(es/lints): Implement prefer-const
rule without options ( #4584 )
2022-05-10 10:40:46 +00:00
Donny/강동윤
6918e3a4fb
test(es/minifier): Postpone tests which can be verified by execution tests ( #4600 )
2022-05-10 14:47:37 +09:00
SWC Bot
563602142c
chore: Publish crates
2022-05-10 05:23:18 +00:00
Donny/강동윤
859dc440b4
fix(es/minifier): Preserve more this
( #4599 )
2022-05-10 05:20:36 +00:00
SWC Bot
6c425d3d0a
chore: Publish crates
2022-05-10 04:19:24 +00:00
Donny/강동윤
d611d543ea
fix(es/fixer): Handle new yield
( #4598 )
2022-05-10 04:17:11 +00:00
SWC Bot
e52c06fe0d
chore: Publish crates
2022-05-10 03:57:45 +00:00
Donny/강동윤
8944a3bdf5
fix(es/minifier): Fix switch with a unknown case ( #4597 )
2022-05-10 03:55:34 +00:00
SWC Bot
20a7304267
chore: Publish crates
2022-05-10 03:24:33 +00:00
Donny/강동윤
097ff1ddc1
fix(es/minifier): Fix with
and NaN
( #4596 )
2022-05-10 03:21:43 +00:00
SWC Bot
bf2d5ff909
chore: Publish crates
2022-05-09 21:38:24 +00:00
Donny/강동윤
2ab7594b4a
fix(es/minifier): Fix switches ( #4595 )
2022-05-09 21:36:09 +00:00
SWC Bot
2482c93449
chore: Publish crates
2022-05-09 20:20:17 +00:00
Donny/강동윤
6ac4a23aa2
feat(es/hygiene): Drop syntax context ( #4594 )
2022-05-09 20:15:15 +00:00
Donny/강동윤
c68dec9448
chore: Publish v1.2.181
2022-05-10 04:52:51 +09:00
SWC Bot
cc712c7084
chore: Publish crates
2022-05-09 19:10:45 +00:00
Donny/강동윤
dd09cdf8b1
fix(es/minifier): Fix handling of NaN
( #4593 )
2022-05-09 19:08:28 +00:00
Donny/강동윤
fb17581570
chore: Publish v1.2.180
2022-05-10 02:06:22 +09:00
SWC Bot
a316e92732
chore: Publish crates
2022-05-09 17:02:34 +00:00
LongYinan
af91094b2d
fix(node): Use jemallocator
on linux ( #4591 )
2022-05-09 16:59:59 +00:00
SWC Bot
ba406f6120
chore: Publish crates
2022-05-09 16:38:56 +00:00