Alexander Akait
c361982963
refactor(css/ast): Rename NamespacedName
to TypeSelector
( #2642 )
2021-11-06 16:01:50 +00:00
Donny
b3fd7046d7
chore: Publish crates
2021-11-06 18:35:38 +09:00
Alexander Akait
a8e4c72f33
fix(css/parser): Exclude whitespace from span ( #2659 )
2021-11-06 09:32:24 +00:00
Donny/강동윤
3dc1e765e9
feat(swc): Provide &Program
to pass creator ( #2665 )
...
swc:
- Use `impl |prorgram: &Program| -> impl Fold` instead of `impl Fold`. (Closes https://github.com/swc-project/swc/issues/2664 )
2021-11-06 18:05:10 +09:00
Donny
0240beccdf
chore: Publish crates
2021-11-05 20:48:06 +09:00
Alexander Akait
20f4e2148c
refactor(css/ast): Use names from specification for ast types ( #2643 )
...
swc_css_ast:
- Rename `AttrSelectorOp` to `AttrSelectorMatcher`.
2021-11-05 11:42:51 +00:00
Donny/강동윤
994c9655c8
feat(es/ast): Add utils ( #2657 )
...
swc_ecma_ast:
- Add `as_ident` to `PatOrExpr`.
- Add `as_ident_mut` to `PatOrExpr`.
- Replace `Is` macro for `ParOrExpr` with custom impl.
2021-11-05 16:09:08 +09:00
Donny
224972f487
chore: Publish crates
2021-11-05 05:14:56 +09:00
Sosuke Suzuki
d1523dc5e8
fix(es/transforms/compat): Fix static blocks ( #2652 )
...
swc_ecma_transforms_compat:
- `static_blocks`: Use correct name for generated private properties.
2021-11-05 05:14:24 +09:00
Donny/강동윤
a6836368a2
fix(plugin): Fix serialization and deserialization ( #2651 )
...
swc_plugin_api:
- Add `serialize_ast`.
- Add `deserialize_ast`.
2021-11-04 21:15:18 +09:00
magic-akari
b6a5656f69
fix(node/types): Add es6
to ModuleConfig
( #2648 )
2021-11-04 11:43:48 +00:00
Donny
46e32a6a72
chore: Publish crates
2021-11-04 19:59:54 +09:00
Donny/강동윤
0414c31480
feat(es/ast): Implement Take
for more types ( #2649 )
2021-11-04 19:59:28 +09:00
Donny
04befab67a
chore: Publish crates
2021-11-04 19:27:31 +09:00
Donny/강동윤
380722976a
feat(plugin): Proxy swc_common
apis ( #2646 )
...
swc_common:
- Add `Runtime` trait for plugin.
- Implement `serde` for diagnostics.
- Proxy diagnostics using `Runtime`.
- Proxy `HygieneData::with` with `Runtime`.
- Add implementation of `Runtime` with cargo feature `plugin-rt`.
- Make `Runtime` implement `StableAbi`.
swc_plugin:
- Move api code to `swc_plugin_api`.
- Depend on `swc_common/plugin-mode`.
- Configure `Runtime` before invoking custom transforms.
- Use `bincode` for serde.
swc_plugin_runner:
- Depend on `swc_common/plugin-rt`.
- Pass `Runtime` implementation to the plugins.
- Use `bincode` for serde.
2021-11-04 19:24:49 +09:00
Alexander Akait
0b76d29ae4
feat(css/ast): Add SelectorList
( #2639 )
...
swc_css_ast:
- Add `SelectorLsit`.
- Use `SelectorList` instead of `Vec<ComplexSelector>`.
2021-11-04 09:54:55 +00:00
Alexander Akait
8c61d0d609
feat(css/ast): Add RoundBracketBlock
to Value
( #2618 )
2021-11-04 12:05:29 +09:00
Donny
7403956d4a
chore: Publish crates
2021-11-03 22:46:51 +09:00
Donny/강동윤
808d57822b
fix(es/minifier): Fix for @emotion/react
and murmur2
( #2637 )
...
swc_ecma_minifier:
- Check for the operator while folding binary assignments.
- `sequences`: More check before inlining into operator assignments.
2021-11-03 22:46:25 +09:00
Donny
a973b0bed4
chore: Publish crates
2021-11-03 13:55:27 +09:00
Donny/강동윤
f4efd7ad92
fix(es/transforms): Fix detection of this
( #2634 )
...
swc_ecma_utils:
- `contains_this_expr`: Exclude `this` in object properties.
swc_ecma_transforms_compat:
- `arrow`: Exclude `this` in object properties. (https://github.com/vercel/next.js/issues/30592 )
- `parameters`: Exclude `this` in object properties.
2021-11-03 13:53:23 +09:00
Donny
1c5f75485f
chore: Publish crates
2021-11-03 13:21:40 +09:00
Donny/강동윤
550584f93c
fix(es/compat): Fix order of transforms ( #2629 )
...
swc_ecma_transforms_compat:
- Change order of `regenerator` and `destructring`. (https://github.com/vercel/next.js/issues/30683 , Closes https://github.com/swc-project/swc/issues/2413 )
2021-11-03 13:18:43 +09:00
Donny
4e003b60f7
chore: Publish crates
2021-11-03 11:25:56 +09:00
OJ Kwon
12be4b1799
fix(es/transforms/typescript): Allow (foo as any) = bar
( #2631 )
...
swc_ecma_transforms_typescript:
- `strip`: Handle paren in the LHS of assignment expressions properly. (Closes https://github.com/swc-project/swc/issues/2606 )
2021-11-03 11:25:18 +09:00
Donny/강동윤
04238d0b93
feat(swc_common): Allow dylib
( #2628 )
...
swc_common:
- Add `dylib` to `crate-type`.
2021-11-02 23:54:20 +09:00
Donny
74aa0068db
chore: Publish crates
2021-11-02 20:15:43 +09:00
Alexander Akait
cc5398b1a6
refactor(css/parser): Refactor parser for at rules ( #2617 )
...
swc_css_ast:
- Move some at-rules to own files.
swc_css_parser:
- Implement `Parse` for more types.
2021-11-02 11:13:23 +00:00
Donny
170a53a4ce
chore: Publish crates
2021-11-02 18:42:35 +09:00
Donny/강동윤
7ea4ee81c2
fix(es/minifier): Fix for react-countup
( #2625 )
...
swc_ecma_minifier:
- `analyzer`: Mark the LHS of an operator assignment as usage.
2021-11-02 18:42:05 +09:00
Donny
9a2f729322
chore: Publish crates
2021-11-02 14:53:36 +09:00
Donny
3935400a55
chore: Improve version manager script
2021-11-02 14:53:13 +09:00
OJ Kwon
d2f2409528
fix(es/transforms/strip): Strip types for typescript export equals ( #2623 )
...
swc_ecma_transforms_typescript:
- `strip`: Visit the RHS of typescript export equals.
2021-11-02 05:50:42 +00:00
Alexander Akait
c89a9ea171
fix(css/lexer): Fix some edge cases ( #2612 )
2021-11-02 05:28:19 +00:00
Donny
6644a06da6
chore: Publish crates
2021-11-02 14:00:33 +09:00
Donny
befda9752e
chore: Publish crates
2021-11-02 13:59:56 +09:00
OJ Kwon
5b141ee80a
fix(es/transforms/cjs): Allow using multiple export *
( #2598 )
...
swc_ecma_transforms_module:
- Preserve order of imports for reexports. (#2594 )
2021-11-02 13:59:33 +09:00
Pig Fang
f8c7d36ac9
chore: Update playground link in the issue form ( #2621 )
2021-11-02 13:09:35 +09:00
Donny/강동윤
9cb3bf96dc
fix(es/minifier): Fix bugs of the minifier ( #2610 )
...
swc_ecma_minifier:
- Increase max pass limit. (#2604 , #2604 )
swc:
- Change default value of `compress` and `mangle`. (#2591 )
2021-11-01 14:11:43 +00:00
Donny
fbbdeeae56
chore: Publish crates
2021-11-01 16:54:32 +09:00
Alexander Akait
b806551ade
refactor(css/lexer): Refactor lexer to follow spec ( #2593 )
2021-11-01 16:53:26 +09:00
Donny/강동윤
3280b4cd7a
refactor(es/parser): Deprecate JscTarget
( #2600 )
...
swc_ecma_parser:
- Deprecate `JscTarget`.
2021-10-31 12:25:15 +00:00
Donny/강동윤
e589d00f62
refactor: Move HANDLER
to swc_common
( #2599 )
...
swc_common:
- Add `HANDLER`.
swc_ecma_utils:
- Replace `HANDLER` with one from `swc_common`.
- Make `StmtLike` `: Send + Sync`.
2021-10-31 20:41:36 +09:00
Donny
cd2a2777d9
chore: Publish crates
2021-10-31 18:17:31 +09:00
Jeremy Grieshop
7e3fb0a0ab
fix(es/transforms/cjs): Allow mixing named exports and export stars. ( #2583 )
...
swc_ecma_transforms_module:
- `common_js`: Fix _exportNames when exporting aliases and using `export *`s . (#2548 )
2021-10-31 09:12:36 +00:00
Donny/강동윤
306cf989db
fix(es/minifier): Fix minifier ( #2597 )
...
swc_ecma_minifier:
- Fix `negate_cost`.
2021-10-31 08:43:44 +00:00
Pig Fang
c05f35d5f1
chore: Fix syntax of github issue template ( #2596 )
2021-10-31 14:32:44 +09:00
Pig Fang
a278eff5ee
chore: Use form for issues ( #2595 )
2021-10-31 13:51:30 +09:00
LongYinan
1a659d3214
ci: Sync to latest napi workflow ( #2592 )
2021-10-31 10:04:18 +09:00
Donny
e3b8e5324b
chore: Use ubuntu-18.04 for musl
2021-10-30 23:35:28 +09:00