Donny/강동윤
c918975967
fix(es/plugin): Revert rustc upgrade to workaround a bug of rkyv
( #5476 )
2022-08-13 15:38:09 +09:00
Donny/강동윤
3eb1f4b2b1
chore(ci): Fix lints ( #5462 )
2022-08-12 13:13:35 +00:00
Donny/강동윤
d298b20c7a
chore(ci): Fix bot script
2022-08-12 17:31:26 +09:00
Donny/강동윤
31bd2c8abb
chore(ci): Fix publish action ( #5443 )
2022-08-12 17:01:49 +09:00
Donny/강동윤
9d793f1cd3
doc(swc_core): Fix rustdoc, really ( #5447 )
2022-08-11 19:25:46 +09:00
Donny/강동윤
2e883a72d7
doc(swc_core): Fix rustdoc ( #5446 )
2022-08-11 19:00:43 +09:00
Donny/강동윤
4bdb6a1de4
chore(ci): Reduce CI time ( #5440 )
2022-08-11 11:04:58 +09:00
OJ Kwon
8ca736f8ee
feat(swc_core): Expose quote!
macros ( #5400 )
2022-08-05 07:37:42 +00:00
Donny/강동윤
4fdbe40c74
feat(es/minifier): Remove duplicate var
declarations ( #5373 )
2022-08-03 13:05:56 +09:00
Donny/강동윤
cf3de124d6
doc(rustdoc): FIx CI ( #5370 )
2022-08-03 11:30:17 +09:00
Donny/강동윤
4c461d1ba7
chore(ci): Fix publish action ( #5358 )
2022-08-01 21:07:28 +09:00
OJ Kwon
fbdc9af5ca
fix(es/minifier): Allow single-thread mode ( #5353 )
2022-08-01 05:16:51 +00:00
Donny/강동윤
d3ecfd36cd
chore(ci): Set MSRV to 1.60
( #5354 )
2022-08-01 04:23:26 +00:00
Alexander Akait
83e502367b
feat(xml): Add xml crates ( #5329 )
2022-08-01 03:56:12 +00:00
OJ Kwon
c16b6b7230
feat(wasm): Add interfaces for wasm bindings ( #5341 )
2022-07-30 03:44:37 +00:00
OJ Kwon
0782d25074
build(node): Include fallback binding as a dependency ( #5322 )
2022-07-28 03:10:08 +00:00
LongYinan
18d4029b33
chore(ci): Fix build for Android platforms ( #5317 )
2022-07-27 16:48:02 +09:00
Sukka
e8473eb8a8
chore(ci): Update macos runner ( #5284 )
2022-07-25 13:48:01 +09:00
Donny/강동윤
a0007e11c3
fix(es/visit): Disable serde
by default ( #5273 )
2022-07-23 13:54:39 +00:00
Donny/강동윤
66550d6e87
chore(ci): Fix publish script ( #5241 )
2022-07-18 02:03:53 +00:00
OJ Kwon
cd94f0a2e9
test(es/plugin): Build plugins for e2e testing ( #5210 )
2022-07-15 02:10:13 +00:00
Donny/강동윤
31bbf2ddbb
chore(ci): Disable plugin tests while publishing
2022-07-14 18:38:02 +09:00
OJ Kwon
6b6b582543
chore(ci): Skip plugin e2e tests for unsupported targets ( #5203 )
2022-07-14 16:38:54 +09:00
OJ Kwon
2fa51ecd78
test(plugin): Setup e2e fixture testing for plugins ( #5192 )
2022-07-13 06:39:08 +00:00
OJ Kwon
a4b14c3806
test(node): Refactor tests ( #5187 )
2022-07-12 05:35:44 +00:00
Donny/강동윤
7d4b496e9e
chore(ci): Fix benchmark action ( #5176 )
2022-07-11 07:06:28 +00:00
OJ Kwon
f167198470
feat(plugin/macros): Export new interface for getting plugin schema version ( #5166 )
2022-07-11 01:44:00 +00:00
Donny/강동윤
ac3a55a435
feat(visit): Add index to AstKind
( #5138 )
...
- Make `VisitAstPath` take `AstNodePath<AstKind, AstNodeRef>`.
- Add index to `AstKind::Vec*`.
2022-07-09 10:15:12 +00:00
Donny/강동윤
17c51fa53c
refactor(webpack-ast): Remove ( #5026 )
2022-06-22 04:25:27 +00:00
Donny/강동윤
125549b7a9
test(es/helpers): Unify code path for testing external helpers ( #5010 )
2022-06-21 23:02:12 +09:00
Devon Govett
9484cf81a1
fix(es/helpers): Use .mjs
extension in helper imports ( #4979 )
2022-06-16 16:23:02 +09:00
LongYinan
db9f7a5ad4
chore(ci): Fix publish build on Windows ( #4970 )
2022-06-14 15:58:10 +00:00
Donny/강동윤
1bf2b80f97
chore(ci): Use macos for release builds ( #4968 )
...
We need more memory
2022-06-14 19:54:34 +09:00
Donny/강동윤
1a9f93546b
chore(ci): Test concurrent
( #4955 )
2022-06-13 11:15:18 +00:00
LongYinan
52e23470e7
fix(ci): Fix android build issue caused by NDK 21 -> 23 ( #4942 )
2022-06-11 18:09:07 +09:00
Donny/강동윤
2e9ab0518a
feat(node): Split css binding ( #4831 )
2022-05-28 14:32:56 +00:00
Donny/강동윤
1c48a8c8f4
fix(es/minifier): Consider side effects while removing an object spread ( #4788 )
2022-05-26 07:37:34 +00:00
LongYinan
adf70f6c07
fix(common): Fix jemalloc ( #4794 )
2022-05-25 14:51:36 +00:00
Donny/강동윤
38a866a900
test(es): Make execution tests faster ( #4789 )
2022-05-25 06:23:35 +00:00
Donny/강동윤
49b3c2715c
refactor(es/minifier): Make rust-analyzer
fast, really ( #4746 )
2022-05-23 16:16:05 +09:00
Donny/강동윤
47e6cc5190
refactor(es/minifier): Make rust-analyzer
faster ( #4744 )
...
- We now use a separate crate for testing the minifier. This makes IDE much faster.
2022-05-23 15:53:01 +09:00
Donny/강동윤
417b2182ce
fix(es/loader): Fix jsc.paths
on windows ( #4739 )
2022-05-22 20:12:22 +00:00
Donny/강동윤
890a5ae0e6
chore: Add stale workflow
2022-05-16 09:40:46 +09:00
Donny/강동윤
7fc9bbccd9
feat(config): Make all configuration overridable ( #4575 )
2022-05-09 05:38:27 +00:00
Donny/강동윤
f23c943227
chore(ci): Improve CI scripts ( #4572 )
2022-05-08 08:55:51 +00:00
LongYinan
3d5c0fa966
fix(node): Fix tls allocation issue ( #4514 )
2022-05-04 10:04:48 +00:00
Pig Fang
1c2af932b6
feat(preset-env/base): Update "browserslist-rs" ( #4435 )
2022-04-26 01:35:43 +00:00
Donny/강동윤
b3fb0e9ceb
chore(ci): Use yarn
instead of npm
( #4432 )
2022-04-25 11:44:50 +00:00
Donny/강동윤
c216a03673
chore(ci): Improve bot script ( #4430 )
...
- It will now rebase another PR if there's a merge conflict.
- It does not update the base branch if it's already up-to-date.
2022-04-25 19:21:34 +09:00
Alexander Akait
63a6280e8f
feat(html/minifier): Initialize crate ( #4403 )
2022-04-23 03:50:59 +00:00
Donny/강동윤
234e380580
chore: Fix wasm publish script
2022-04-20 22:54:05 +09:00
Donny/강동윤
a8ed5ba357
fix(es/minifier): Apply name mangler as much as we can ( #4365 )
2022-04-19 17:20:12 +09:00
Donny/강동윤
a953455ada
chore: Fix CI script
2022-04-18 01:01:16 +09:00
Donny/강동윤
1900d3506e
chore(ci): Fix wasm publish script
2022-04-16 08:18:38 +09:00
Donny/강동윤
83a8f489ec
refactor(bindings): Rename crates ( #4337 )
2022-04-15 22:47:44 +09:00
Donny/강동윤
adea17dbe3
chore(ci): Fix CI ( #4299 )
2022-04-10 09:33:18 +00:00
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action ( #4242 )
2022-04-04 20:12:03 +09:00
Alexander Akait
3e7872c8de
feat(html): Initialize ( #4240 )
2022-04-04 04:12:45 +00:00
Donny/강동윤
06d0891e7c
chore(bench): Migrate to criterion ( #4237 )
2022-04-04 00:56:29 +09:00
Donny/강동윤
688f653323
perf(es/minifier): Add fast-path for sequences pass ( #4217 )
2022-04-01 11:06:35 +00:00
Donny/강동윤
3b1da220e2
refactor(*): Remove fastmem
( #4211 )
2022-03-31 11:40:06 +00:00
Donny/강동윤
78175473fa
refactor(css/prefixer): Rename crate ( #4159 )
2022-03-25 19:46:45 +09:00
OJ Kwon
e1d1d82fdb
fix(cli): Fix executable permission ( #4154 )
2022-03-25 05:32:04 +00:00
OJ Kwon
fefb5870c7
feat(cli): Enable plugins for swc_cli
( #4059 )
2022-03-17 15:31:20 +09:00
OJ Kwon
5c84fe525f
fix(plugin/runner): Make build pass for wasm32
( #4056 )
2022-03-17 05:07:03 +00:00
OJ Kwon
dab2002a2e
refactor(plugin/runner): Split modules and introduce feature flags ( #4035 )
2022-03-15 22:45:40 +00:00
Donny/강동윤
e19a60aad4
fix(es/compat): Change pass ordering of es2015
( #4029 )
...
**Description:**
We should apply `regenerator` after `block_scoping` because `regenerator` does not know how to handle `const`s.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/3006
2022-03-15 14:17:03 +00:00
Donny/강동윤
c27b84c3f6
chore(ci): Make bump-command check lazy ( #4018 )
2022-03-15 15:17:20 +09:00
Donny/강동윤
ee9a841f33
test(*): Print diagnostics to stderr while testing ( #4003 )
...
**Description:**
This will make debugging stack overflow and parser issues easier because it writes to stderrr right away, instead of holding a buffer for it.
2022-03-14 02:06:34 +00:00
Donny/강동윤
743a5da1e5
chore(ci): Invoke yarn
before publishing
2022-03-12 20:16:51 +09:00
Donny/강동윤
2ad0d801a2
chore: Publish v1.2.154
2022-03-12 19:18:34 +09:00
Donny/강동윤
073d847a33
test(es): Add tests for fixed issues ( #3987 )
2022-03-12 09:33:32 +00:00
OJ Kwon
485dc54d29
chore(ci): Skip unnecessary package for the benchmark ( #3980 )
2022-03-12 01:52:53 +00:00
Austaras
487273fc5b
fix(preset-env): Use core-js-compat
and @babel/compat-data
directly ( #3968 )
2022-03-11 12:49:53 +00:00
magic-akari
0181fbe63b
feat(es/lints): Support module/script mode in duplicate_bindings
( #3880 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-03-07 05:49:39 +00:00
Donny/강동윤
714e05e553
feat(es/minifier): Consider arguments
while dropping unused assignments ( #3775 )
...
swc_ecma_minifier:
- `analyze`: Track usage of `arguments`.
2022-02-28 21:57:09 +09:00
Donny/강동윤
e3c374b53b
feat(es/quote): Support variables ( #3774 )
2022-02-28 10:44:06 +00:00
Donny/강동윤
3798436201
chore: Update rustc
( #3768 )
2022-02-28 16:12:28 +09:00
Pig Fang
66c6cae8dc
feat(css/lints): Add CSS linter ( #3765 )
2022-02-27 15:31:19 +00:00
Donny/강동윤
0ff4ad37c3
chore: Skip more actions for automated commits ( #3761 )
2022-02-27 15:27:15 +09:00
William Tetlow
abc0572557
fix(es/parser) Throw a syntax error for const
without initializer in strict mode ( #3742 )
...
Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2022-02-27 06:25:05 +00:00
Donny/강동윤
6d98d146a6
chore: Skip CI for automated commits ( #3760 )
2022-02-27 14:44:35 +09:00
Donny/강동윤
76ec275c3c
chore(ci): Reduce CI time ( #3719 )
2022-02-24 06:06:03 +00:00
Donny/강동윤
f733c9c82f
chore(ci): Kill previous runs ( #3678 )
2022-02-22 23:25:40 +09:00
Donny/강동윤
b1d24702e3
refactor(preset-env): Extract common logic for browserslist
support ( #3674 )
2022-02-22 09:03:40 +00:00
Donny/강동윤
4d5ba55e8a
doc(api/rust): Fix rustdoc ( #3620 )
2022-02-18 06:18:35 +00:00
Donny/강동윤
cbe87db4df
chore(ci): Fix the script for CHANGELOG.md
2022-02-16 21:00:13 +09:00
Donny/강동윤
85caf291e2
chore(ci): Skip instead of cancel
2022-02-16 15:22:11 +09:00
Donny/강동윤
d66f701a4a
chore(ci): Fix the condition for cancel action
2022-02-16 15:18:55 +09:00
Donny/강동윤
6173bb88fd
chore(ci): Don't mark as a failure
2022-02-16 15:11:04 +09:00
Donny/강동윤
32bc17ff1a
chore(ci): Fix version of git-cliff
2022-02-16 15:04:00 +09:00
Donny/강동윤
c775674ec0
chore(ci): Fix the auto-bump scripts
2022-02-16 14:44:21 +09:00
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