Donny/강동윤
7ddd5886f3
chore(ci): Fix the auto-bump scripts
2022-02-16 14:42:33 +09:00
Donny/강동윤
2d9735b9a9
chore(ci): Fix the auto-bump scripts
2022-02-16 14:36:45 +09:00
Donny/강동윤
55250e4428
chore(ci): Make CI faster
2022-02-16 14:12:22 +09:00
Donny/강동윤
786d016174
fix(es/lints): Fix duplicate-bindings
for typescript ( #3583 )
2022-02-16 05:00:55 +00:00
Donny/강동윤
1bce557851
chore(ci): Don't run pr check for pushes
2022-02-15 20:26:30 +09:00
Donny/강동윤
bfb51f382e
chore(bot): Fix permission issue
2022-02-15 19:47:47 +09:00
Donny/강동윤
a1e45c4b86
feat(bot): Add auto-bump script ( #3573 )
2022-02-15 19:35:59 +09:00
Donny/강동윤
59233d5082
chore: Fix CLA issue of auto-rebase script
2022-02-15 02:18:29 +09:00
Donny/강동윤
1c6e9efeb4
chore: Use GITHUB_TOKEN
for auto-rebasing
2022-02-15 02:13:15 +09:00
Donny/강동윤
d0557117ce
chore: Fix auto-rebase script
2022-02-15 01:31:46 +09:00
Donny/강동윤
47a81bdb95
chore(ci): Remove useless tests from the matrix ( #3561 )
2022-02-14 21:13:25 +09:00
Donny/강동윤
b1fc7a9e34
chore(ci): Add a bot for auto-rebasing ( #3560 )
2022-02-14 19:49:21 +09:00
Donny/강동윤
a7f0e84bbf
feat(es/minifier): Drop useless assignments ( #3528 )
...
testing:
- Allow skipping diff using an environment variable `DIFF`.
swc_ecma_minifier:
- `pure`: Drop useless assignemnts.
2022-02-11 08:43:48 +00:00
Donny/강동윤
80ed69d67d
chore(build): Disable LTO for local builds ( #3514 )
2022-02-10 17:35:15 +09:00
Donny/강동윤
74b433080b
refactor(es/minifier): Remove unused crates ( #3395 )
2022-01-28 20:17:08 +09:00
Donny/강동윤
839d0ac480
refactor(es/parser): Flatten tests to make git
faster ( #3393 )
2022-01-28 19:11:30 +09:00
LongYinan
464c15b775
chore(ci): Fix FreeBSD build ( #3379 )
2022-01-27 17:10:03 +09:00
Donny/강동윤
4f23d651d1
fix(es/minifier): Consider capturing while inlining ( #3322 )
...
swc_ecma_minifier:
- Don't inline functions if it captures the environment.
2022-01-21 10:24:41 +09:00
LongYinan
c069c78b21
build(node-swc): Fix Windows arm64 build OOM ( #3324 )
2022-01-20 17:11:56 +09:00
LongYinan
9608605772
build(node-swc): Fix GLIBC < 2.18 compatible issues and android arm binary loading issue ( #3314 )
2022-01-20 02:21:24 +00:00
OJ Kwon
a4c497464d
feat(plugin/runnner): Support wasm32-wasi
targets ( #3271 )
2022-01-15 04:40:00 +00:00
LongYinan
214427157d
build(node): Fix glibc issue on linux gnu arm ( #3255 )
2022-01-13 14:36:54 +00:00
Donny/강동윤
978de5943e
chore(ci): Configure clippy
( #3250 )
2022-01-13 23:06:11 +09:00
Donny/강동윤
70c2f3b3a5
security(repo): Fix crev integration ( #3210 )
2022-01-07 20:03:03 +09:00
OJ Kwon
92de2c7884
feat(plugin): Pass serialized ast to a wasm file ( #3199 )
...
swc_common:
- Use correct cargo feature for plugin apis.
swc_plugin:
- Add hidden functions required for memory operations from host.
swc_plugin_runner:
- Pass serialized AST to a wasm file.
2022-01-07 15:13:46 +09:00
Donny/강동윤
c34f1a977f
chore(ci): Fix publish script ( #3197 )
...
swc_plugin_runner:
- Use patched version of `cranelift-codegen`.
2022-01-06 17:03:28 +09:00
Donny
fef844954b
chore(ci): Fix musl
2022-01-05 16:15:31 +09:00
Donny
bf0acd13da
chore(ci): Use more RUSTFLAGS
2022-01-05 16:12:53 +09:00
Donny
4cbe8d18bb
chore(ci): Use RUSTFLAGS
for linux
2022-01-05 16:05:26 +09:00
Donny
ef4ea2fc7b
chore(ci): Use --cargo-flags
in correct place
2022-01-05 15:16:05 +09:00
Donny
a20f5d9a7c
chore(ci): Fix --cargo-flags
2022-01-05 15:04:21 +09:00
Donny
b292126b38
chore(ci): Fix publish scripts again
2022-01-05 14:51:02 +09:00
Donny
3458e9f1d3
chore(ci): Fix publish scripts
2022-01-05 14:45:02 +09:00
OJ Kwon
32d3342283
refactor(plugin): Remove codes related to the plugin system based on abi_stable
( #3188 )
2022-01-04 10:26:17 +00:00
Donny/강동윤
c758997180
refactor(dbg-swc): Rename esdiff
to dbg-swc
( #3189 )
2022-01-04 18:39:43 +09:00
Donny/강동윤
46949d39eb
chore(ci): Split cargo docs ( #3187 )
2022-01-04 16:53:29 +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
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
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
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
Donny/강동윤
7e29685a17
chore: Fix failing tests and improve CI scripts ( #2563 )
2021-10-28 02:55:49 +00:00
Donny
ac02f3f3fa
chore: Fix publish scripts
2021-10-28 10:40:32 +09:00
Donny
a6fcfe1ddd
chore: Fix ci script
2021-10-28 09:57:17 +09:00
Donny
e3869f1d27
chore: Disable freebsd build to publish
2021-10-27 18:39:15 +09:00
Iha Shin
edc97ef540
ci: Limit number of runs in graph ( #2540 )
2021-10-26 16:23:34 +09:00
LongYinan
1b91d55277
ci: Re-enable FreeBSD build ( #2497 )
2021-10-21 15:15:52 +09:00
Donny/강동윤
eef63ca6db
chore(ci): Prevent benchmark from marking PR as failed ( #2488 )
2021-10-19 19:01:30 +00:00
Donny/강동윤
01e171a4b4
test(es): Freeze as es2015
to verify base transforms ( #2468 )
2021-10-19 05:31:12 +00:00
Iha Shin
8c0c250249
chore: Add CI steps for combined benchmark data ( #2458 )
2021-10-18 16:54:23 +09:00
Donny/강동윤
3d204b44f0
perf(es/transforms): Make transforms parallel ( #2449 )
...
swc_ecma_utils:
- `collect_decls`: More parallel.
swc_ecma_transforms_macros:
- Add `Parallel`, which is helper for `#[parallel]`.
- Add `ParExplode`, which is helper for `#[parallel(explode)]`.
swc_ecma_transforms_macros:
- Add `#[parllel]`.
swc_ecma_transforms_compat:
- `sticky_regex`: Parallel.
- `typeof_symbol`: Parallel.
- `for_of`: Remove exponential visit.
- `regenerator`: Remove exponential visit.
- `object_spread`: Parallel.
- `instance_of`: Parallel.
- `duplicate_keys`: Parallel.
- `logical_assignments`: Parallel.
- `template_literal`: Parallel.
- `block_scoped_functions`: Migrate to `VisitMut`.
- `for_of`: Migrate to `VisitMut`.
- `destructuring`: Reduce `Visit`.
- `arrow`: Migrate to `VisitMut`.
- `function_name`: Parallel.
- `reserved_words`: Parallel.
- `for_of`: Parallel.
swc_ecma_transforms_module:
- `import_analyzer`: Migrate to `VisitMut`.
swc_ecma_transforms_react:
- `jsx_src`: Parallel.
- `jsx_self`: Migrate to `VisitMut`.
- `jsx_self`: Parallel.
swc_ecma_transforms_proposal:
- `export_default_from`: Migrate to `VisitMut`.
swc_ecma_transforms_optimization:
- `inline_globals`: Parallel.
- `json_parse`: Migrate to `VisitMut`.
- `json_parse`: Parallel.
2021-10-18 00:03:30 +09:00
Donny/강동윤
1645bb30b7
perf(es/transforms): Reduce usage of #[fast_path]
( #2442 )
...
swc_ecma_ast:
- Implement `Take` for `ObjectLit`.
- Implement `Take` for `ArrayLit`.
swc_ecma_transforms_compat:
- `nullish_coalescing`: Remove exponential visit.
- `nullish_coalescing`: Migrate to `VisitMut`.
- `optional_chaining`: Reduce exponential visit. (But it's not removed)
- `class_properties`: Remove exponential visit.
- `jsx_src`: Migrate to `VisitMut`.
- `optional_chaining`: Mae it parallel.
- `async_to_generator`: Remove `#[fast_path]`.
- `arrow`: Remove `#[fast_path]`.
- `destructuring`: Remove `#[fast_path]`.
- `block_scoped_functions`: Remove `#[fast_path]`.
- `classes`: Remove `#[fast_path]`.
2021-10-16 08:12:02 +00:00
Donny
267d639c2e
chore: Disable freebsd to publish
2021-10-14 12:06:24 +09:00
Donny
5fb5a7058f
chore: Fix CI script for publising
2021-10-14 00:15:16 +09:00
Donny
eb402d8c6f
chore: Publish
2021-10-13 23:32:42 +09:00
Donny/강동윤
8074c72ce9
fix(es/transforms/base): Fix hyigiene
( #2421 )
...
swc_ecma_transforms_base:
- `hygiene`: Considering scoping of `var`.
- `hygiene`: Avoid creating too many `JsWord` by caching index.
2021-10-13 17:32:37 +09:00
Donny/강동윤
897f4b670e
fix(dev/cli): Remove CLI from main swc repositoy ( #2393 )
2021-10-10 11:17:12 +00:00
Donny/강동윤
7a31a3f530
feat(plugin/api): Determine plugin api ( #2199 )
2021-10-09 17:47:42 +09:00
Donny/강동윤
ac3fbd91ac
perf(bundler): Improve performance ( #2384 )
...
*:
- Use `ahash` instread of `rustc-hash`.
swc_ecma_transforms_optimization:
- Make `dce` parallel.
2021-10-09 08:08:13 +00:00
Donny/강동윤
d0342a5a58
feat(swcpack): Enable concurrent mode ( #2356 )
...
swc_common:
- Use `Mutex` from `parking_lot` instead of it from std.
swc_bundler:
- Use `fxhash` if possible.
- Don't `clone()` all modules if the entry has only one item.
swc_ecma_loader:
- `NodeModulesResolver`: Use `path-clean` instead of `canonicalize`.
swc_ecma_transforms_optimization:
- Reimplement `dce`
node_bundler:
- Enable `concurrent` of `swc_bundler`.
2021-10-08 16:47:01 +09:00
Donny/강동윤
e2a0edd49d
chore: Setup workfllow to bump version ( #2368 )
2021-10-07 16:07:55 +09:00