SWC Bot
97808349a2
chore: Publish crates
2022-05-11 16:17:07 +00: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
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
e4ce388632
chore: Publish crates
2022-05-06 04:10:39 +00:00
Austaras
2e74787870
fix(es/compat): Memorize computed props in logical assignment ( #4525 )
2022-05-05 02:25:37 +00:00
Donny/강동윤
a6d404a8c2
chore(repo): Configure prettier
( #4523 )
2022-05-04 14:25:28 +00:00
SWC Bot
51574d8b15
chore: Publish crates
2022-05-04 03:15:35 +00:00
Austaras
9e45882b84
fix(es/compat): Fix the position of inserted statements in class_properties
( #4511 )
2022-05-04 12:13:38 +09:00
Donny/강동윤
97e0e271d5
fix(es/compat): Revert a wrong patch about private properties
2022-05-04 12:13:07 +09:00
SWC Bot
00695f4b23
chore: Publish crates
2022-05-03 07:50:35 +00:00
SWC Bot
6cd5cfe045
chore: Publish crates
2022-05-03 02:23:15 +00:00
Austaras
c4b156ce1f
fix(es/compat): Visit default export in static_block
( #4500 )
2022-05-03 02:20:49 +00:00
Donny/강동윤
518f769ef0
chore: Publish crates
2022-05-02 15:50:14 +09:00
magic-akari
1e1d081805
fix(es/compat): Support updating a private field with bigint value ( #4136 )
2022-05-02 13:34:46 +09:00
SWC Bot
3443208810
chore: Publish crates
2022-04-30 12:35:42 +00:00
Satish Srinivasan
de53a6fa9d
feat(es/compat): Verify private property access ( #4465 )
2022-04-30 12:32:52 +00:00
Donny/강동윤
951e7b3fb9
chore: Publish crates
2022-04-30 18:21:26 +09:00
Donny/강동윤
a444726fe3
fix(es/bugfixes): Fix handling of syntax context ( #4490 )
2022-04-30 09:11:20 +00:00
Donny/강동윤
a72f436148
chore: Publish crates
2022-04-28 17:35:33 +09:00
Donny/강동윤
0bc0bae90d
fix(es/async-generator): Fix yield*
in async generators ( #4452 )
2022-04-28 04:14:17 +00:00
Donny/강동윤
27f9b30ef2
chore: Publish crates
2022-04-26 19:30:11 +09:00
Donny/강동윤
53610fdafc
feat(es/resolver): Use different syntax context for unresolved refs ( #4436 )
...
- We don't need a list of bindings to check if an identifier is unresolved.
- Checking if an identifier is unresolved is now one CPU instruction.
- Previously it was one hashmap operation.
- This PR also improves performance, by removing the hashmaps mentioned above.
2022-04-26 07:38:50 +00:00
SWC Bot
7d23492b16
chore: Publish crates
2022-04-21 10:02:50 +00:00
OJ Kwon
8419b60430
fix(plugin): Align deps to fix build ( #4377 )
2022-04-20 08:05:02 +00:00
SWC Bot
995b4367cc
chore: Publish crates
2022-04-15 07:39:50 +00:00
Donny/강동윤
7599fe7431
fix(es/parser): Enable static blocks by default ( #4334 )
2022-04-15 07:31:41 +00:00
SWC Bot
591b98df66
chore: Publish crates
2022-04-12 22:11:46 +09:00
Donny/강동윤
6c9882ec68
fix(es/compat): Fix renaming bug of block_scoping
( #4310 )
2022-04-12 22:11:34 +09:00
SWC Bot
fa880634bd
chore: Publish crates
2022-04-11 20:05:28 +00:00
SWC Bot
4a097adbf7
chore: Publish crates
2022-04-11 18:48:43 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting ( #4304 )
2022-04-11 18:45:58 +00:00
OJ Kwon
fad652f879
chore(plugin): Align version of swc_common
to include dummy comment api ( #4270 )
2022-04-07 07:21:37 +00:00
SWC Bot
5eb3d8315a
chore: Publish crates
2022-04-05 12:49:22 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw
to Num
( #4245 )
2022-04-05 12:46:35 +00:00
OJ Kwon
4093814895
chore(build): Dedup swc_common
( #4247 )
2022-04-05 14:28:07 +09:00
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action ( #4242 )
2022-04-04 20:12:03 +09:00
Donny/강동윤
7eea95be7a
fix(es/preset-env): Change order of passes
2022-04-02 06:57:17 +00:00
SWC Bot
3337777f8c
chore: Publish crates
2022-04-02 06:06:39 +00:00
Alexander Akait
e91f271873
feat(es/ast): Add raw
to BigInt
( #4218 )
2022-04-02 06:04:14 +00:00
SWC Bot
1068561800
chore: Publish crates
2022-04-01 04:29:08 +00:00
magic-akari
b793aa0200
feat(es/compat): Support more regex expressions ( #4205 )
2022-04-01 04:26:30 +00:00
SWC Bot
d19c8a8aa3
chore: Publish crates
2022-03-31 13:03:06 +00:00
magic-akari
6a27a0ce88
fix(es/compat): Hoist env in function params ( #4210 )
2022-03-31 13:00:19 +00:00
SWC Bot
cfed024514
chore: Publish crates
2022-03-30 21:19:05 +00:00
Austaras
c946236fcc
fix(es/compat): Fix label handling of block_scoping
( #4198 )
2022-03-30 21:16:34 +00:00
SWC Bot
b67c104877
chore: Publish crates
2022-03-30 12:07:14 +00:00
Austaras
3426dda4f7
fix(es/compat): Handle new.target
in getter/setter properties ( #4194 )
2022-03-30 12:04:27 +00:00