Donny/강동윤
eb0acc3859
chore: Publish crates
2022-06-06 04:54:19 +09:00
Donny/강동윤
f847709787
chore(common): Update rustc ( #4828 )
2022-05-28 07:07:58 +00:00
SWC Bot
af31b15e70
chore: Publish crates
2022-05-27 05:15:50 +00:00
Donny/강동윤
dc911dcae6
feat(es/compat): Don't create vars for computed class methods if possible ( #4805 )
2022-05-27 05:12:57 +00:00
SWC Bot
424e62e663
chore: Publish crates
2022-05-26 16:01:22 +00:00
Donny/강동윤
a487fc1d28
refactor(es/transforms): Remove concurrent
( #4808 )
2022-05-26 15:58:19 +00:00
SWC Bot
a163279c88
chore: Publish crates
2022-05-26 11:35:19 +00:00
Austaras
573bcb5b49
fix(es/compat): Use define for non-spread props ( #4754 )
2022-05-26 20:32:41 +09:00
SWC Bot
3d496d6408
chore: Publish crates
2022-05-24 13:32:27 +00:00
Shinobu Hayashi
a3e4c201de
fix(es/compat): Escape keywords in class method names ( #4775 )
2022-05-24 13:29:59 +00:00
SWC Bot
f4d828feaf
chore: Publish crates
2022-05-24 12:34:23 +00:00
Austaras
db1698e012
fix(es/compat): Handle nested break
/continue
in block_scoping
( #4778 )
2022-05-24 12:31:50 +00:00
SWC Bot
9857b2f4ca
chore: Publish crates
2022-05-24 11:35:40 +00:00
Austaras
4f00914c1a
fix(es/compat): Handle nested for loops with break
/continue
( #4777 )
2022-05-24 11:32:49 +00:00
SWC Bot
fd8a08a7e7
chore: Publish crates
2022-05-24 04:43:53 +00:00
Satish Srinivasan
8720f9a948
fix(es/compat): Fix span of instanceof
( #4757 )
2022-05-24 04:41:34 +00:00
SWC Bot
b509ca0c7b
chore: Publish crates
2022-05-18 22:09:14 +00:00
magic-akari
100c0b58c9
fix(es/compat): Fix break
in for await loop ( #4705 )
2022-05-18 22:06:48 +00:00
SWC Bot
ead25ee153
chore: Publish crates
2022-05-15 05:09:48 +00:00
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