swc/scripts
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
..
bot fix(es/utils): Fix wrong apis (#4604) 2022-05-11 04:36:22 +00:00
cargo chore: Publish crates 2022-03-24 12:05:47 +09:00
crev chore(*): Typo + fomatting (#4304) 2022-04-11 18:45:58 +00:00
github chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
npm feat(node-swc): Add libc field in Linux platform packages (#4046) 2022-03-16 18:58:24 +09:00
repo refactor(bundler): Improve test suite (#3144) 2021-12-29 19:19:44 +09:00
sourcemap chore(repo): Configure prettier (#4523) 2022-05-04 14:25:28 +00:00
.gitignore security(repo): Fix crev integration (#3210) 2022-01-07 20:03:03 +09:00
bench-node.sh chore(es/minifier): Add full benchmark for .minify() (#4341) 2022-04-15 22:31:15 +00:00
cli_artifacts.sh feat(node/core): Include noop swc binaries (#3088) 2021-12-21 20:20:20 +00:00
cli.sh feat(plugin/api): Determine plugin api (#2199) 2021-10-09 17:47:42 +09:00
doc.sh ECMAScript parser (#1) 2018-01-12 16:53:06 +09:00
link.sh fix(es/minifier): Fix usage via yarn resolution (#2158) 2021-08-26 06:18:59 +00:00
setup-env.sh Migrate to napi (#1009) 2020-08-30 15:29:42 +09:00
test.sh fix(es/transforms/base): Optimize hygiene (#2193) 2021-09-01 13:11:55 +00:00
update-all.sh feat(es/minifier): Implement rules for optimizing loops (#4157) 2022-03-25 12:08:14 +00:00