swc/crates/swc_ecma_minifier/tests
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
..
fixture fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
full fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
mangle chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
projects fix(es/minifier): Fix switches (#4595) 2022-05-09 21:36:09 +00:00
single-pass chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
terser/compress fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
compress.rs test(es/minifier): Fix test system (#4571) 2022-05-08 08:27:14 +00:00
eval.rs fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
exec.rs fix(es/minifier): Fix skipping logic of sequential inliner (#4469) 2022-04-28 11:41:41 +00:00
golden.txt fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
mangle.rs feat(config): Make all configuration overridable (#4575) 2022-05-09 05:38:27 +00:00
postponed.txt fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
terser_exec_base.js fix(es/minifier): Fix with and NaN (#4596) 2022-05-10 03:21:43 +00:00
terser_exec.rs fix(es/minifier): Preserve more this (#4599) 2022-05-10 05:20:36 +00:00
TODO.txt fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00