Commit Graph

187 Commits

Author SHA1 Message Date
Sosuke Suzuki
360ad7b41c
chore: Add enhancement label to feature_request template (#3164) 2022-01-01 23:36:39 +09:00
Linda_pp
5a3bdc9ed3
chore(ci): Update github-action-benchmark (#3148) 2021-12-30 01:12:15 +09:00
Donny/강동윤
cec325be63
security(repo): Configure cargo-crev (#3124) 2021-12-28 18:49:33 +09:00
Donny/강동윤
61cd7da265
chore(ci): Reduce CI time (#3128) 2021-12-27 17:32:47 +09:00
Donny
e0e7f74955 chore(xi): Fix publishing script 2021-12-26 16:44:52 +09:00
LongYinan
206da128a1
feat(node): Upgrade napi to v2 (#2958) 2021-12-24 02:21:24 +00:00
Donny/강동윤
ff0b55b778 feat(es/diff): Initialize a diff tool for ecmascript (#3101)
swc_ecma_diff:
 - Initialize the project.
2021-12-23 22:01:56 +09:00
Sosuke Suzuki
047219932f
chore(repo): Add section for the actual behavior to the issue template (#3100) 2021-12-22 17:07:49 +09:00
OJ Kwon
42046e104d
feat(node/core): Include noop swc binaries (#3088) 2021-12-21 20:20:20 +00:00
Donny/강동윤
7236a2213e
refactor(es/parser): Make some verification logic optional (#3024)
swc_ecma_parser:
 - Make dependency on `swc_ecma_visit` optional.
2021-12-13 11:39:17 +09:00
Donny/강동윤
017392aa5b
feat(node-swc): Add cargo feature for v2 (#3019)
swc_node_bundler:
 - Add cargo features for versioned apis.

node-swc:
 - Add cargo features for versioned apis.
2021-12-12 22:52:58 +09:00
OJ Kwon
aab3326b3e
chore: Add changelog and pr template (#3017)
Co-authored-by: Donny <kdy1997.dev@gmail.com>
2021-12-12 20:41:01 +09:00
OJ Kwon
69123ddc28
chore(ci): Setup yarn cache (#3015) 2021-12-12 16:16:20 +09:00
OJ Kwon
00d22b8fde
build: Use mocha for exec_ test instead of jest (#3009) 2021-12-11 07:59:21 +00:00
Donny/강동윤
e48263b2f3
refactor(visit): Remove &dyn Node from Visit (#2984)
swc_visit_macros:
 - Remove `&dyn Node` from `Visit`.
 - Implement `VisitWith<V>` for `[T]`.
2021-12-07 14:34:16 +09:00
Donny/강동윤
f052a65bf3
fix(es/compat): Preserve constructor parameters (#2975)
swc_ecma_visit:
 - Add cargo feature `debug`.
 - Add more context for `tracing` when `debug` is enabled.

swc_ecma_utils:
 - Add some logging.

swc_ecma_transforms_compat:
 - Add some logging.
 - `destructuring`: Don't drop patterns. (Closes #2139)

testing:
 - Enable logging by default.
 - Configure logging for `Tester`.
2021-12-06 20:08:50 +09:00
Donny/강동윤
a93f1111f9
fix(ci): Fix freebsd builds (#2944) 2021-12-02 12:57:27 +09:00
Donny
82c8694f4b chore: Drop freebsd for publishing 2021-12-02 11:37:40 +09:00
Donny/강동윤
91ef3cc16e
feat(plugin): Enable plugin support under experimental flag (#2894)
swc_plugin_runner:
 - Add plugin resolver.
 - Implement cache for resolver.
 - Add some integration tests.

swc:
 - Add a cargo feature named `plugin`.
 - Add an experimental option for plugins.

node:
 - Enable `plugin`.
 - Add some integration tests.
2021-11-28 17:02:14 +09:00
Donny/강동윤
ffcb357010
feat(plugin): Rename Plugin to JsPlugin (#2893)
swc_js_plugin_api:
 - Rename to js plugin.
 - Use rplugin and plugin ast instead of json.
2021-11-27 22:21:25 +09:00
Donny/강동윤
c2bbdbe9d6
feat(webpack): Add ast reducer (#2875)
swc_estree_compat:
 - Fix stack overflow related to object patterns.

swc_webpack_}ast:
 - Implement AST reducer.
2021-11-26 15:04:41 +09:00
Donny/강동윤
cdef843369
feat(es/estree): Allow emitting acorn ast (#2859)
swc_estree_ast:
 - Add `Flavor`.
 - Adjust serialization based on `Flavor`.

swc_estree_visit:
 - Remove.

testing:
 - Add `diff_json`.

testing_macros:
 - `#[fixture]`: Print input.
2021-11-25 20:16:46 +09:00
Donny/강동윤
790a262c07
refactor(es/estree): Rename: babel => estree (#2846)
swc_babel_ast:
 - Rename as `swc_estree_ast`.

swc_babel_compat:
 - Rename as `swc_estree_compat`.

swc_babel_visit:
 - Rename as `swc_estree_visit`.
2021-11-24 05:34:41 +09:00
Donny/강동윤
020b4a554d
fix(graph_analyzer): Allow invoking load multiple time (#2823)
swc_graph_analyzer:
 - Make `load` work correctly even if it's called multiple time.
2021-11-21 14:55:59 +09:00
Donny/강동윤
1368981f19
fix(wasm): Fix wasm-web (#2803) 2021-11-19 15:04:01 +09:00
Donny/강동윤
af420eab4b
fix(es/utils): Fix collect_decls (#2792)
swc_ecma_utils:
 - `collect_decls`: Handle assignment pattern property. (Closes #2785)
2021-11-18 15:05:26 +09:00
Donny/강동윤
54bc4054a9
chore: Fix benchmark github action (#2755) 2021-11-16 00:38:03 +09:00
Donny/강동윤
6b70fb5afe
chore: Rename the default branch from master to main (#2750) 2021-11-15 16:52:45 +09:00
Donny/강동윤
b869c81888
refactor(swc_bundler): Extract logic for analyzing cycles (#2733) 2021-11-12 23:33:32 +09:00
Donny/강동윤
2b2f6955f2
refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
Donny/강동윤
a90fae5696
fix(swc): Fix tests (#2707) 2021-11-10 18:08:45 +09:00
Donny/강동윤
4f70ee6d98
refactor: Flatten more packages (#2706) 2021-11-10 16:39:01 +09:00
Donny/강동윤
687305f280
refactor: Flatten crates (#2697) 2021-11-09 20:42:49 +09:00
Donny/강동윤
0414c31480
feat(es/ast): Implement Take for more types (#2649) 2021-11-04 19:59:28 +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
Pig Fang
f8c7d36ac9
chore: Update playground link in the issue form (#2621) 2021-11-02 13:09:35 +09: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
Donny
dfd8d1ad61 chore: Fix musl target 2021-10-30 23:29:44 +09:00
Donny
344daefd16 chore: Publish 2021-10-30 23:22:05 +09:00
Donny/강동윤
db09bce687
perf(node/swc): Parse input using worker thread (#2590)
node_swc:
 - Make `transform` parse the options in background.
 - Make `transform` analyze the input file in background.
 - Make `minify` parse the options in background.
 - Make `minify` deserialize the input in background.
 - Make `parse` parse the options in background.
 - Make `parse` analyze the input file in background.
 - Make `print` parse the options in background.
 - Make `print` deserialize the input file in background.
2021-10-30 12:31:28 +00:00
Donny
b197eb65af chore(ci): Don't use push action 2021-10-30 18:29:33 +09:00
Donny
ceb025b735 chore: Fix permission issue 2021-10-30 17:50:44 +09:00
Donny
bab638c5e8 chore: Fix crate manager script 2021-10-30 16:38:44 +09:00
Donny/강동윤
d63553e5d7
chore: Fix script for managing crates (#2588) 2021-10-30 16:23:30 +09:00
Donny/강동윤
f997bc4889
chore: Manage crate version using github action (#2587) 2021-10-30 15:47:14 +09:00
Donny/강동윤
a6af0ab30f
chore: Fix CI script for PRs (#2575) 2021-10-29 06:11:00 +00:00
Donny/강동윤
0364f9a2ae
feat(es/transforms/testing): Reduce CI time by caching execution result (#2565)
swc_ecma_transforms_testing:
 - Cache execution test result on CI.
2021-10-28 04:00:25 +00:00