commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
d86f8f6a3c1f6ad5de3078ade5c8a905f7067f24 | OJ Kwon | 2023-06-22T14:24:52 | fix(estree/compat): Adjust `loc.col` (#7565) | diff --git a/crates/swc_estree_compat/src/babelify/mod.rs b/crates/swc_estree_compat/src/babelify/mod.rs
index c5713970f6..a2d17ba50f 100644
--- a/crates/swc_estree_compat/src/babelify/mod.rs
+++ b/crates/swc_estree_compat/src/babelify/mod.rs
@@ -50,7 +50,7 @@ impl Context {
Some(LineCol {
line:... | 1 | 1 | 1 |
c8d933858333209ecf786b64948ac3c88e401be6 | Donny/κ°λμ€ | 2023-06-21T06:32:39 | chore(ci): Make `cargo deny` happy (#7560) | diff --git a/Cargo.lock b/Cargo.lock
index 4673b7119b..a666326140 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2277,9 +2277,9 @@ checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575"
[[package]]
name = "openssl"
-version = "0.10.48"
+version = "0.10.55"
source = "registry+https://github.com... | 1 | 4 | 5 |
46fb4619bafd56dfa3edd9064c1fe2ae4b6b78de | Donny/κ°λμ€ | 2023-06-21T03:16:33 | feat(testing): Add `CARGO_TARGET_DIR` and use it from other crates (#7552) | diff --git a/Cargo.lock b/Cargo.lock
index 7bbf900f61..afcfca8dd0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4105,6 +4105,7 @@ dependencies = [
"anyhow",
"hex",
"sha-1",
+ "testing",
"tracing",
]
@@ -4736,7 +4737,6 @@ name = "swc_plugin_runner"
version = "0.97.2"
dependencies = [
"anyhow",
- "cargo_met... | 10 | 29 | 59 |
862f095e656edf6c0e86f1ad8065d8095e162cfa | Donny/κ°λμ€ | 2023-06-20T03:19:20 | test(es): Add one more test for a wrong issue (#7545)
**Related issue:**
- Closes #7513. | diff --git a/crates/swc/tests/projects.rs b/crates/swc/tests/projects.rs
index 0c05ab364e..94ef6f46ef 100644
--- a/crates/swc/tests/projects.rs
+++ b/crates/swc/tests/projects.rs
@@ -3,13 +3,14 @@ use std::{
path::{Path, PathBuf},
};
+use anyhow::Context;
use rayon::prelude::*;
use swc::{
config::{
... | 1 | 42 | 1 |
8cfc4f9e9ab43a5ed25c9b600b9dd7e5790c2d1e | Curtis Wilson | 2023-06-20T01:52:24 | fix(es/preset-env): Don't log `Yield` to the console (#7548)
**Description:**
When a `yield` token is encountered by the parser, the word "Yield" is unnecessarily logged to the console. This PR removes the extra logging. | diff --git a/crates/swc_ecma_preset_env/src/corejs2/mod.rs b/crates/swc_ecma_preset_env/src/corejs2/mod.rs
index 7daf8c1970..781074cf29 100644
--- a/crates/swc_ecma_preset_env/src/corejs2/mod.rs
+++ b/crates/swc_ecma_preset_env/src/corejs2/mod.rs
@@ -317,7 +317,6 @@ impl Visit for UsageVisitor {
/// - `yield*`
... | 1 | 0 | 1 |
1d84e952feefc3cd50e379455bb6648b82c42256 | Donny/κ°λμ€ | 2023-06-19T06:34:44 | fix(es): Accept `parse` option for `minify()` (#7543)
**Description:**
We don't support them. but this is to make API more compatible with `terser`.
**Related issue:**
- Closes #7455. | diff --git a/crates/swc/benches/minify.rs b/crates/swc/benches/minify.rs
index 3e8328bb67..e01780e983 100644
--- a/crates/swc/benches/minify.rs
+++ b/crates/swc/benches/minify.rs
@@ -39,17 +39,12 @@ fn bench_minify(b: &mut Bencher, filename: &str) {
&JsMinifyOptions {
compr... | 4 | 29 | 28 |
aa82e5fff3452db38599bb0bf7fef7cd72b6a09f | Donny/κ°λμ€ | 2023-06-19T05:49:45 | test(plugin/runner): Share `target` directory (#7544)
**Description:**
This will reduce CI time greatly. | diff --git a/Cargo.lock b/Cargo.lock
index 7fecec50a7..86c2b22b61 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -354,6 +354,38 @@ dependencies = [
"serde",
]
+[[package]]
+name = "camino"
+version = "1.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c530edf18f37068ac2d977409ed5cd5... | 6 | 86 | 12 |
70bc605c6769759b0e896e7e5e91bb070d719552 | Donny/κ°λμ€ | 2023-06-19T04:59:28 | test(es): Add a test for a wrong issue (#7542)
**Related issue:**
- Closes #7513. | diff --git a/crates/swc/tests/projects.rs b/crates/swc/tests/projects.rs
index 6e38952773..0c05ab364e 100644
--- a/crates/swc/tests/projects.rs
+++ b/crates/swc/tests/projects.rs
@@ -6,16 +6,17 @@ use std::{
use rayon::prelude::*;
use swc::{
config::{
- BuiltInput, Config, FileMatcher, JscConfig, ModuleCo... | 1 | 60 | 5 |
0129ad080b93a72b98aedab8b4e307b088501504 | Donny/κ°λμ€ | 2023-06-19T03:37:22 | chore: Publish `v1.3.65` with `swc_core` `v0.78.8` | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 4c3c49b2bd..f3e59b847d 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -3017,9 +3017,9 @@ dependencies = [
[[package]]
name = "swc_ecma_ast"
-version = "0.106.0"
+version = "0.106.1"
source = "registry+https://github.com/rust-lang/crates.io... | 1 | 2 | 2 |
983d2e8eb4bd3bdc186e74bbc136f94d270331ec | Donny/κ°λμ€ | 2023-06-13T02:06:58 | chore: Publish `v1.3.63` | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index d74df91042..6aa559c963 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -65,9 +65,9 @@ checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e"
[[package]]
name = "anyhow"
-version = "1.0.71"
+version = "1.0.70"
source =... | 1 | 57 | 54 |
8e933c8a9fdf8867deb7f0d108b99430949aad54 | Austaras | 2023-06-12T02:22:31 | fix(es/react): Default to empty string when emitting refresh signature (#7514)
**Related issue:**
- Closes #7471. | diff --git a/crates/swc_ecma_transforms_react/src/refresh/hook.rs b/crates/swc_ecma_transforms_react/src/refresh/hook.rs
index 668f9d0b57..065743b849 100644
--- a/crates/swc_ecma_transforms_react/src/refresh/hook.rs
+++ b/crates/swc_ecma_transforms_react/src/refresh/hook.rs
@@ -407,9 +407,7 @@ impl<'a> HookCollector<'a... | 2 | 4 | 6 |
d545df6dd951fa2f5756830c40c21ae251e4e634 | Donny/κ°λμ€ | 2023-06-08T03:26:19 | perf(css/prefixer): Convert macro to a function call to reduce binary size (#7507)
**Related issue:**
- https://github.com/vercel/next.js/pull/50365 | diff --git a/crates/swc_css_prefixer/src/prefixer.rs b/crates/swc_css_prefixer/src/prefixer.rs
index 3d3917ab9b..ff4a844373 100644
--- a/crates/swc_css_prefixer/src/prefixer.rs
+++ b/crates/swc_css_prefixer/src/prefixer.rs
@@ -808,6 +808,76 @@ impl Prefixer {
false
}
+
+ fn add_declaration2<'a>(
+ ... | 1 | 139 | 129 |
73929fc43c34fd4545bd292fbf0f6d7de35fbee9 | OJ Kwon | 2023-06-08T02:19:07 | feat(plugin/runner): Support shared wasix runtime (#7504) | diff --git a/Cargo.lock b/Cargo.lock
index 9726f7a8da..b6be51c6c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4721,6 +4721,7 @@ dependencies = [
"swc_node_base",
"swc_plugin_proxy",
"testing",
+ "tokio",
"tracing",
"wasmer",
"wasmer-cache",
@@ -5844,6 +5845,7 @@ dependencies = [
"pin-project",
"rand",
... | 13 | 102 | 256 |
a343e7ccae4e88d9e3941beedf63b61bd0512c3d | David Sherret | 2023-06-07T03:01:16 | feat(es/codegen): Add ability to set indentation string via rust api (#7494)
**Description:**
This adds the ability to set the indentation string of JsWriter via the Rust API. The motivation behind this change is to allow people to use other indentations in the emit output like tabs or two spaces via the Rust API. | diff --git a/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs b/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs
index 460e49fccf..34df0fa888 100644
--- a/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs
+++ b/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs
@@ -13,6 +13,7 @@ use super::{Result, Wri... | 1 | 32 | 4 |
abd62bc797175d783d18d162301c851eefa7ac23 | Donny/κ°λμ€ | 2023-06-05T04:44:38 | perf(es): Use `&dyn Comments` for jsx and TypeScript (#7490) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 1cf04331d0..83f42299ed 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -774,7 +774,7 @@ impl Options {
// keep_import_assertions is false.
Optional::new(import_assertions(), !keep_imp... | 2 | 5 | 5 |
2c3ac682e271dad0ab6e82c14ad14f06715d853b | Donny/κ°λμ€ | 2023-06-05T04:04:08 | perf(es): Use `&dyn Comments` to reduce binary size (#7489)
**Related issue:**
- https://github.com/vercel/next.js/pull/50365 | diff --git a/crates/swc/src/builder.rs b/crates/swc/src/builder.rs
index f9024d7fb8..1ee909e4a7 100644
--- a/crates/swc/src/builder.rs
+++ b/crates/swc/src/builder.rs
@@ -5,12 +5,8 @@ use either::Either;
use rustc_hash::FxHashMap;
use swc_atoms::JsWord;
use swc_common::{
- chain,
- comments::{Comments, SingleT... | 2 | 10 | 14 |
0e37c18c9ca0e8d011acb728ba8dcd879f15920a | Donny/κ°λμ€ | 2023-06-03T09:21:24 | chore(ci): Fix publish action (#7485) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 623b83fe5d..3747f937f0 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -65,9 +65,9 @@ checksum = "70033777eb8b5124a81a1889416543dddef2de240019b674c81285a2635a7e1e"
[[package]]
name = "anyhow"
-version = "1.0.71"
+version = "1.0.70"
source =... | 1 | 57 | 54 |
65ce5d1081271f1cb4db6d4537311fbb60a08359 | Donny/κ°λμ€ | 2023-06-02T15:22:30 | perf(es/minifier): Make minifier not overly generic (#7483)
**Description:**
Generics cause binary bloat.
**Related issue:**
- https://github.com/vercel/next.js/pull/50365 | diff --git a/crates/swc_common/src/plugin/serialized.rs b/crates/swc_common/src/plugin/serialized.rs
index f8b91d9427..83e2a00b2c 100644
--- a/crates/swc_common/src/plugin/serialized.rs
+++ b/crates/swc_common/src/plugin/serialized.rs
@@ -80,6 +80,7 @@ impl PluginSerializedBytes {
* Internal fn to constructs an i... | 22 | 57 | 146 |
56ac9eb6b3c8cc379ee4ccf55d6130e39aa641b8 | OJ Kwon | 2023-05-30T05:15:46 | feat(common): Enable bytecheck for missing structs (#7465) | diff --git a/crates/swc_common/src/comments.rs b/crates/swc_common/src/comments.rs
index e3f5760c99..b95b263e8b 100644
--- a/crates/swc_common/src/comments.rs
+++ b/crates/swc_common/src/comments.rs
@@ -546,6 +546,8 @@ impl SingleThreadedComments {
any(feature = "rkyv-impl"),
derive(rkyv::Archive, rkyv::Seria... | 9 | 52 | 42 |
1868d36cfed54e48c3439ec4547251e45731c93a | OJ Kwon | 2023-05-28T14:11:01 | fix(plugin/runner): Disable `wasi_env` cleanup (#7458) | diff --git a/crates/swc_plugin_runner/src/transform_executor.rs b/crates/swc_plugin_runner/src/transform_executor.rs
index 7010758d9c..e6164cd438 100644
--- a/crates/swc_plugin_runner/src/transform_executor.rs
+++ b/crates/swc_plugin_runner/src/transform_executor.rs
@@ -119,9 +119,13 @@ impl PluginTransformState {
... | 1 | 5 | 1 |
e83368e5744ebabab8537cb979a374ecbc2e7d95 | Donny/κ°λμ€ | 2023-05-24T07:45:40 | refactor(visit): Reduce expanded LOCs (#7442)
**Description:**
x-ref: https://vercel.slack.com/archives/C03EWR7LGEN/p1684898884673379
**Related issue:**
- https://github.com/web-infra-dev/rspack/issues/3058. | diff --git a/crates/swc_ecma_utils/Cargo.toml b/crates/swc_ecma_utils/Cargo.toml
index 8958de7517..57e8e3976a 100644
--- a/crates/swc_ecma_utils/Cargo.toml
+++ b/crates/swc_ecma_utils/Cargo.toml
@@ -8,9 +8,9 @@ name = "swc_ecma_utils"
repository = "https://github.com/swc-project/swc.git"
version = "... | 3 | 220 | 28 |
786cf3a10ffe5e2990c5473062ea42771b769124 | OJ Kwon | 2023-05-24T04:50:51 | fix(es): Init filesystem cache only if plugin exists (#7436) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 6cb23e898e..d312be2fac 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -666,16 +666,16 @@ impl Options {
{
use swc_ecma_loader::resolve::Resolve;
- // Currently s... | 1 | 4 | 4 |
558ca40b99bd3e9ac9a1742223dd9d3ef84061cb | OJ Kwon | 2023-05-22T05:27:01 | fix(swc_core): Correctly expose plugin with host (#7427)
**Description:**
Following up https://github.com/swc-project/swc/pull/7422, `swc_core::plugin` itself is not exposed to `__plugin_transform_host`, so still not able to access the inner plugin proxy. | diff --git a/crates/swc_core/src/lib.rs b/crates/swc_core/src/lib.rs
index 14f9e8a9fd..503102ab22 100644
--- a/crates/swc_core/src/lib.rs
+++ b/crates/swc_core/src/lib.rs
@@ -12,8 +12,18 @@ pub mod quote;
pub extern crate swc_ecma_quote_macros;
// Plugins
-#[cfg(feature = "__common_plugin_transform")]
-#[cfg_attr(d... | 2 | 69 | 9 |
cfdd40789673eef32a9b9365456860a7cb511000 | OJ Kwon | 2023-05-22T04:07:55 | refactor(swc_core): Make `common_plugin_transform` agnostic to mode (#7422) | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index c54eb32910..e6c0f4e418 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -239,14 +239,15 @@ __common_plugin_transform = [
"ecma_visit",
"__common",
"swc_atoms/rkyv-impl",
- "swc_common/plugin-mode",
- "swc_pl... | 1 | 6 | 2 |
c03a74c19819cb0cfc8a47cd9b2c1e558355d40d | OJ Kwon | 2023-05-20T04:46:09 | refactor(plugin/runner): Add attributes to the module bytes (#7419) | diff --git a/crates/swc_plugin_runner/src/plugin_module_bytes.rs b/crates/swc_plugin_runner/src/plugin_module_bytes.rs
index d4792601ac..594011b864 100644
--- a/crates/swc_plugin_runner/src/plugin_module_bytes.rs
+++ b/crates/swc_plugin_runner/src/plugin_module_bytes.rs
@@ -1,4 +1,5 @@
use anyhow::Error;
+use serde::{... | 1 | 31 | 7 |
f8fe365c3b888bbe49e011a616b6926c9ef24fa2 | OJ Kwon | 2023-05-20T03:58:55 | feat(plugin/runner): Enable in-memory precompiled module cache (#7420) | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index f4292dd7ab..b330067ca3 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -44,17 +44,9 @@ pub struct PluginModuleCacheInner {
fs_cache_hash_store: AHashMap<String, Hash>,
... | 1 | 22 | 15 |
95291f2c5daaf039623b4db4668a91104c0c0124 | Donny/κ°λμ€ | 2023-05-17T06:15:18 | fix(common): Disable `tracing/release_max_level_info` (#7401) | diff --git a/crates/swc_nodejs_common/Cargo.toml b/crates/swc_nodejs_common/Cargo.toml
index 75e39fbf2d..eba8b8dea7 100644
--- a/crates/swc_nodejs_common/Cargo.toml
+++ b/crates/swc_nodejs_common/Cargo.toml
@@ -19,5 +19,5 @@ napi = { version = "2", default-features = false, features = [
] }
serde = { version = "1", f... | 1 | 1 | 1 |
3a0565f3778648f2ae57043c8e1bf8c15832b61e | Donny/κ°λμ€ | 2023-05-16T05:17:12 | chore(plugin): Update `rkyv` to `v0.7.42` (#7397) | diff --git a/Cargo.lock b/Cargo.lock
index 05d29f56af..717ed279fe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -240,6 +240,18 @@ version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c70beb79cbb5ce9c4f8e20849978f34225931f665bb49efa6982875a4d5facb3"
+[[package]]
+name = "bitve... | 7 | 60 | 12 |
05b4c1149781ab1f69a93a54a462413af2603a3a | OJ Kwon | 2023-05-15T04:12:33 | feat(swc_core): Expose plugin proxy to the host env (#7391) | diff --git a/crates/swc_core/src/plugin.rs b/crates/swc_core/src/plugin.rs
index 39a07d991d..ddf7e011cf 100644
--- a/crates/swc_core/src/plugin.rs
+++ b/crates/swc_core/src/plugin.rs
@@ -33,8 +33,18 @@ pub mod metadata {
}
/// Proxy to the host's data not attached to the AST, like sourcemap / comments.
-#[cfg(any(d... | 1 | 12 | 2 |
8e6fea8519c52e1f99cde6b9f3cad7e806e4ea9a | Donny/κ°λμ€ | 2023-05-15T03:42:54 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 940e72e10d..bf6d815557 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4654,7 +4654,7 @@ dependencies = [
[[package]]
name = "swc_plugin_macro"
-version = "0.9.11"
+version = "0.9.12"
dependencies = [
"proc-macro2",
"quote",
diff --git a/bindings/Cargo.lock b/bindings/Ca... | 4 | 4 | 4 |
e3868a7e00bfb5d7a4677b8be0b64a87e9bf200d | OJ Kwon | 2023-05-14T06:06:24 | feat(swc_core): Allow native env plugin to use memory cache (#7390)
**Description:**
I just realized there could be some case who'll want plugin in native env, but without filesystem cache. If there's a custom cache implementation, it'll make a conflict to swc's caching mechanism since swc does not expose any inter... | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index f5a85a4acd..67c40cce03 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -200,6 +200,19 @@ plugin_transform_host_native = [
"__plugin_transform_host",
"__plugin_transform_host_schema_v1",
"__plugin_transform_en... | 1 | 13 | 1 |
9b3a41c57df4ead8e64c33ee247e8cd029792b16 | OJ Kwon | 2023-05-12T00:45:59 | refactor(common): Derive `ByteCheck` for `ArcString` (#7380) | diff --git a/crates/swc_common/src/syntax_pos.rs b/crates/swc_common/src/syntax_pos.rs
index 0a323ba88d..1df1e8204b 100644
--- a/crates/swc_common/src/syntax_pos.rs
+++ b/crates/swc_common/src/syntax_pos.rs
@@ -836,6 +836,8 @@ impl Sub<BytePos> for NonNarrowChar {
#[doc(hidden)]
#[cfg(feature = "rkyv-impl")]
#[deriv... | 1 | 2 | 0 |
166e77c2b39b4390bb09f3a93f58148a5de40efa | Donny/κ°λμ€ | 2023-05-11T13:59:53 | chore(es): Enable tracing spans for release builds (#7379) | diff --git a/crates/swc_ecma_codegen/src/lib.rs b/crates/swc_ecma_codegen/src/lib.rs
index 16a97b75ff..0b371a1b03 100644
--- a/crates/swc_ecma_codegen/src/lib.rs
+++ b/crates/swc_ecma_codegen/src/lib.rs
@@ -495,7 +495,7 @@ where
}
#[emitter]
- #[cfg_attr(debug_assertions, tracing::instrument(skip_all))]
... | 3 | 29 | 32 |
d8a331054330a754cb4f1fc00c9b49a62a65645e | SWC Bot | 2023-05-09T03:04:13 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index f8baa2a729..d7f92ffc8f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -891,7 +891,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.80.51"
+version = "0.80.52"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
d2c1f45f5a1a1d72fa6d6fa28bd84f242d5aff81 | OJ Kwon | 2023-05-06T03:54:25 | feat(plugin): Enable bytecheck (#7280)
**Description:**
Second attempt to enable bytecheck. This PR does not have versioned struct yet, just enabling bytecheck wherever possible. Also, it is for the ast only yet, so transform metadata and others might need this later.
PR seems to be passing all the ci, but as we... | diff --git a/Cargo.lock b/Cargo.lock
index eedea55d7e..9bd9a0d3de 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2747,15 +2747,6 @@ version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a49a831dc1e13c9392b660b162333d4cb0033bbbdfe6a1687177e59e89037c86"
-[[package]]
-name = "ren... | 22 | 156 | 71 |
4e278befcf0071619ee583ffa7c8357ea4fd5c2f | OJ Kwon | 2023-05-05T07:26:38 | build(cargo): Update `wasmer` to `v3.3` (#7352) | diff --git a/Cargo.lock b/Cargo.lock
index 486402a75d..41d1b401f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5514,9 +5514,9 @@ dependencies = [
[[package]]
name = "wai-bindgen-wasmer"
-version = "0.3.0"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "850a31a1f5434... | 6 | 49 | 67 |
91a3fbe460799ed604c2b43b4facaed60cfd6c87 | OJ Kwon | 2023-04-30T12:43:13 | refactor(plugin/runner): Refine cache location (#7346) | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index 3f48cf4505..65f776da2a 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -35,7 +35,7 @@ compile_error!(
/// however it is not gauranteed to be compatible across wasmer's
///... | 1 | 5 | 3 |
d6999ba1ac454a1617bab00c740d99f81ff1a18d | Donny/κ°λμ€ | 2023-04-29T12:58:48 | fix(plugin/runner): Revert #7341 (#7344)
**Description:**
This reverts commit 245163a77827767ab0b4df59d00597c4af62d745. | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index 2c0fb8edf2..3f48cf4505 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -35,18 +35,26 @@ compile_error!(
/// however it is not gauranteed to be compatible across wasmer's
/... | 1 | 27 | 18 |
245163a77827767ab0b4df59d00597c4af62d745 | OJ Kwon | 2023-04-29T11:14:21 | feat(plugin/runner): Improve caching (#7341)
**Description:**
Previously disabled cache (storing compiled module in memory) still doesn't work, so falling back to storing raw bytes and create new module each time. This is the same behavior to the wasm build's approach.
Also minor improved caching root to include... | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index 3f48cf4505..2c0fb8edf2 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -35,26 +35,18 @@ compile_error!(
/// however it is not gauranteed to be compatible across wasmer's
/... | 1 | 18 | 27 |
7e99e5fd2c3d15aba6bf29958bd9305e29312e6a | Samuel Eisenhandler | 2023-04-26T01:23:13 | fix(es/codegen): Emit type arguments for call expressions (#7335) | diff --git a/crates/swc_ecma_codegen/src/lib.rs b/crates/swc_ecma_codegen/src/lib.rs
index 1c3834ce01..d9649b32dd 100644
--- a/crates/swc_ecma_codegen/src/lib.rs
+++ b/crates/swc_ecma_codegen/src/lib.rs
@@ -857,6 +857,10 @@ where
emit!(node.callee);
+ if let Some(type_args) = &node.type_args {
+ ... | 2 | 14 | 0 |
577f81ec405f4f3a3e58e3f97c07d3720dd80912 | OJ Kwon | 2023-04-24T09:23:31 | fix(common): Workaround the `Arc` and `rkyv` issue (#7321)
**Description:**
Attempt to workaround #7238.
Originally I thought this is related with oom or memory layout, then realized actual deserialization error occurs in weird position - it tries to deserialize BytePos (which is obvious type) and it fails. It m... | diff --git a/crates/swc_common/src/syntax_pos.rs b/crates/swc_common/src/syntax_pos.rs
index 39dcf55c2a..775801839f 100644
--- a/crates/swc_common/src/syntax_pos.rs
+++ b/crates/swc_common/src/syntax_pos.rs
@@ -816,6 +816,55 @@ impl Sub<BytePos> for NonNarrowChar {
}
}
+/// This is not a public interface, worka... | 2 | 63 | 0 |
e7f7b01f59b622c993ee584ae825a39c390b2570 | Donny/κ°λμ€ | 2023-04-21T03:58:24 | fix(es): Fix a crash related to source map (#7307)
**Related issue:**
- Reverts #7229.
- Closes #7301. | diff --git a/Cargo.lock b/Cargo.lock
index 30697fedb7..08a1fda5c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1343,9 +1343,9 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
[[package]]
name = "h2"
-version = "0.3.15"
+version = "0.3.18"
source = "registry+https://github.com/rust-l... | 3 | 9 | 7 |
38495a9835c47ded30d07d6c961a094e22146222 | Donny/κ°λμ€ | 2023-04-20T02:10:25 | test(es/compat): Add a test for a wrong issue (#7300)
**Related issue:**
- Closes #7290. | diff --git a/crates/swc_ecma_transforms_compat/tests/es2020_nullish_coalescing.rs b/crates/swc_ecma_transforms_compat/tests/es2020_nullish_coalescing.rs
index ec7a530f2c..30198cdbd9 100644
--- a/crates/swc_ecma_transforms_compat/tests/es2020_nullish_coalescing.rs
+++ b/crates/swc_ecma_transforms_compat/tests/es2020_nul... | 1 | 59 | 1 |
3422923cb004111f8c57501bb8b222905cf6bd09 | Leah | 2023-04-19T21:52:40 | fix(testing): Fix path normalization on windows for testing diffs (#7299) | diff --git a/crates/testing/src/output.rs b/crates/testing/src/output.rs
index 787282b9dd..8b8047c804 100644
--- a/crates/testing/src/output.rs
+++ b/crates/testing/src/output.rs
@@ -53,14 +53,13 @@ impl fmt::Debug for NormalizedOutput {
}
fn normalize_input(input: String, skip_last_newline: bool) -> String {
- ... | 1 | 5 | 6 |
ffa76894fd81feb65169e22851b44cbdd8bca09b | SWC Bot | 2023-04-19T14:28:50 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index ee410fbe20..8c36cf0a85 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -891,7 +891,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.80.27"
+version = "0.80.28"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
39d415cc1623456255dc2c7b87594f7fd00ab87b | OJ Kwon | 2023-04-19T12:28:31 | build(cargo): bump up wasmer (#7294)
**Description:**
Maybe fix? https://github.com/swc-project/swc/issues/7238
https://github.com/wasmerio/wasmer/issues/3764#issuecomment-1514084441 | diff --git a/Cargo.lock b/Cargo.lock
index 0a2164ae77..f9b06a6147 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -878,13 +878,15 @@ dependencies = [
[[package]]
name = "dashmap"
-version = "5.1.0"
+version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c0834a35a3fce649144119e1... | 2 | 44 | 39 |
bc83cb2ecfcfcec0fef0e0b2f2450746ada4628c | Donny/κ°λμ€ | 2023-04-19T06:24:23 | perf(preset-env): Update static map (#7293)
**Description:**
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1681811874650839 | diff --git a/Cargo.lock b/Cargo.lock
index 5b313086b8..75c69573cc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -108,7 +108,7 @@ dependencies = [
"proc-macro2",
"quote",
"swc_macros_common",
- "syn 1.0.107",
+ "syn 1.0.109",
]
[[package]]
@@ -151,7 +151,7 @@ dependencies = [
"proc-macro-error",
"proc-macro2... | 3 | 68 | 68 |
248fd374e66bf33c3d40eff1fe2ab2d584aec507 | Donny/κ°λμ€ | 2023-04-18T02:45:08 | perf(es/react): Don't use regex (#7284)
**Description:**
It's causing a performance problem in concurrent scenarios.
x-ref: https://linear.app/vercel/issue/WEB-921
x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1681757237489689 | diff --git a/Cargo.lock b/Cargo.lock
index 7ba9ea657f..b8a566aaa0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4279,7 +4279,6 @@ dependencies = [
"indexmap",
"once_cell",
"rayon",
- "regex",
"serde",
"sha-1",
"string_enum",
diff --git a/crates/swc_ecma_transforms_react/Cargo.toml b/crates/swc_ecma_transform... | 4 | 11 | 12 |
4c06a56e52184796280d9c19975f5317f3050cc9 | Donny/κ°λμ€ | 2023-04-15T14:50:52 | fix(es/minifier): Use UTF16 length for `str.length` (#7275)
**Related issue:**
- Closes #7274. | diff --git a/crates/swc_ecma_minifier/tests/exec.rs b/crates/swc_ecma_minifier/tests/exec.rs
index 20b8fe3a8e..6acfb06d7a 100644
--- a/crates/swc_ecma_minifier/tests/exec.rs
+++ b/crates/swc_ecma_minifier/tests/exec.rs
@@ -10931,3 +10931,22 @@ fn issue_6914_3() {
false,
);
}
+
+#[test]
+fn issue_7274() {... | 2 | 20 | 1 |
c4cce127587e304b938c43059992ff0ed6bd2821 | IWANABETHATGUY | 2023-04-15T03:26:56 | build(cargo): Update `bitflags` to v2 (#7270) | diff --git a/Cargo.lock b/Cargo.lock
index bdbe128832..c6cedc7afa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -240,6 +240,12 @@ version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+[[package]]
+name = "bitfl... | 19 | 53 | 36 |
635bf8116bb002d5d737f0e9dfbf5efd3a433e7d | Cong-Cong Pan | 2023-04-15T02:17:37 | refactor(es/parser): Remove `::` token as it's not used (#7268) | diff --git a/crates/swc_ecma_parser/src/lexer/mod.rs b/crates/swc_ecma_parser/src/lexer/mod.rs
index d513df1658..7792c4dcbf 100644
--- a/crates/swc_ecma_parser/src/lexer/mod.rs
+++ b/crates/swc_ecma_parser/src/lexer/mod.rs
@@ -283,12 +283,6 @@ impl<'a> Lexer<'a> {
#[inline(never)]
fn read_token_colon(&mut sel... | 3 | 0 | 13 |
e618d4de6a2da1101f14c50592dd222c53581d33 | SWC Bot | 2023-04-13T11:12:23 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index bdb427b56d..917a970920 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -883,7 +883,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.80.13"
+version = "0.80.14"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
ff3decc7dbf7965085261b16efa1a7b251aec696 | OJ Kwon | 2023-04-13T08:39:23 | build(plugin): Update `rkyv` (#7257) | diff --git a/Cargo.lock b/Cargo.lock
index b1db62fb16..36568ef4cf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -307,19 +307,20 @@ checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba"
[[package]]
name = "bytecheck"
-version = "0.6.9"
+version = "0.6.10"
source = "registry+https://github.com/... | 7 | 21 | 14 |
f0e3b1d09a69c3eb3035e2dbc00d537576b48a08 | limerick | 2023-04-12T13:21:25 | feat(es): Provide more information when loading of input source map failed (#7249) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index 7749db597b..b297ed270e 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -339,7 +339,12 @@ impl Compiler {
filename.display()
));
... | 1 | 6 | 1 |
efad714983459393639f4b026da7793807c1b401 | OJ Kwon | 2023-04-12T12:30:38 | feat(plugin): Enable validation (#7250) | diff --git a/crates/swc_atoms/Cargo.toml b/crates/swc_atoms/Cargo.toml
index 9f6b5f2b24..a9234596b7 100644
--- a/crates/swc_atoms/Cargo.toml
+++ b/crates/swc_atoms/Cargo.toml
@@ -24,6 +24,7 @@ bytecheck = { version = "0.6.9", optional = true }
once_cell = "1"
rkyv = { package = "rkyv", version = "=0.7.40", optional =... | 13 | 73 | 118 |
2e947e7aeb1fd2989a10fb49a2ffa2ea35bc9941 | magic-akari | 2023-04-12T11:44:49 | fix(es/compat): Handle export function in `reserved_word` (#7251) | diff --git a/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs b/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs
index 7660fcced4..7df077e4b3 100644
--- a/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs
+++ b/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs
@@ -1,5 +1,6 @@
+use ... | 1 | 98 | 62 |
e35097fd8c036dfab9fcf923f01db562b003720b | Donny/κ°λμ€ | 2023-04-11T07:03:19 | fix(es/codegen): Respect `ascii_only` for identifiers (#7247)
**Related issue:**
- https://github.com/swc-project/swc/issues/7240. | diff --git a/crates/swc_ecma_codegen/src/lib.rs b/crates/swc_ecma_codegen/src/lib.rs
index d7c5e0d858..1c3834ce01 100644
--- a/crates/swc_ecma_codegen/src/lib.rs
+++ b/crates/swc_ecma_codegen/src/lib.rs
@@ -2128,8 +2128,17 @@ where
srcmap!(ident, true);
// TODO: span
- self.wr
- .w... | 2 | 180 | 3 |
70b86dbe371fafc2dffde0573bc091860aa529b3 | Donny/κ°λμ€ | 2023-04-11T03:45:49 | refactor(plugin/runner): Fix clippy warnings (#7244) | diff --git a/crates/swc_plugin_runner/src/imported_fn/comments.rs b/crates/swc_plugin_runner/src/imported_fn/comments.rs
index 9b9ad23906..27d985437b 100644
--- a/crates/swc_plugin_runner/src/imported_fn/comments.rs
+++ b/crates/swc_plugin_runner/src/imported_fn/comments.rs
@@ -113,10 +113,7 @@ where
.as_ref()... | 4 | 17 | 21 |
c6659183a616725b61733e584bbb6e540b9cbbde | Yukang | 2023-04-10T09:28:15 | fix(es): Fix a crash related to an empty source map (#7229) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index b0d1f3b224..7749db597b 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -545,7 +545,7 @@ impl Compiler {
let (code, map) = match source_map {
SourceMapsConfig::Bool(v) => {
- if v {
+ ... | 1 | 1 | 2 |
b868ed02a35904bd6063709685d1470598cdaf81 | Donny/κ°λμ€ | 2023-04-10T04:54:08 | refactor(plugin/runner): Fix publish action (#7234) | diff --git a/Cargo.lock b/Cargo.lock
index 4857dd0ba2..dec682859c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1393,7 +1393,7 @@ dependencies = [
"atomic-polyfill",
"hash32",
"rustc_version 0.4.0",
- "spin 0.9.8",
+ "spin",
"stable_deref_trait",
]
@@ -1494,19 +1494,6 @@ dependencies = [
"want",
]
-[[pac... | 2 | 9 | 121 |
e241201bf76c3ae111d815dac7dbcc169d12dc25 | Donny/κ°λμ€ | 2023-04-07T01:44:50 | fix(es/testing): Ensure that we call `fold_program` (#7222) | diff --git a/crates/swc_ecma_transforms_testing/src/lib.rs b/crates/swc_ecma_transforms_testing/src/lib.rs
index b53006c22b..cd1eca163f 100644
--- a/crates/swc_ecma_transforms_testing/src/lib.rs
+++ b/crates/swc_ecma_transforms_testing/src/lib.rs
@@ -177,11 +177,11 @@ impl<'a> Tester<'a> {
res?
};... | 1 | 2 | 2 |
3f61638cbfb1acc9fa59fa68434a182ba8bcfb2a | Donny/κ°λμ€ | 2023-04-05T05:15:50 | refactor(macros/ast-node): Drop `darling` to reduce compile time (#7214) | diff --git a/Cargo.lock b/Cargo.lock
index 4fd5ddfbcf..1e5f3e232c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -98,7 +98,6 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
name = "ast_node"
version = "0.9.1"
dependencies = [
- "darling 0.13.1",
"pmutil",
"proc-macro2",
"quote",
@... | 3 | 49 | 50 |
eb127df8cc10cda35496d32a73c47432c769696b | SWC Bot | 2023-04-04T10:29:29 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 620d0a28be..d132675035 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.79.1"
+version = "0.79.2"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
bfe654438f15d875257caf7735f11a79e51780a5 | Adam Jahn | 2023-04-04T02:22:47 | fix(swc_core): Fix a feature name (#7198) | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index f0c8cb166c..e7614abd1b 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -43,7 +43,7 @@ common_perf = ["swc_common/perf"]
# swc_ecma_loader/cache*
ecma_loader_lru = ["swc_ecma_loader/lru"]
-ecna_loader_parki... | 1 | 1 | 1 |
976667f7d98b821940c5325efc092e50c6554dc2 | OJ Kwon | 2023-04-02T00:22:58 | feat(plugin/runner): Improve cache path (#7188)
**Description:**
This PR is minor improvement, non breaking changes to cache path for the plugin. In short, it tries to combine rustc version if available to expand. `option_env!` supposed to embed build time rustc version. It'd be ideal if we could match between plug... | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index ca34ca4f16..cd315d949d 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -80,7 +80,11 @@ fn create_filesystem_cache(filesystem_cache_root: &Option<String>) -> Option<Fil
... | 1 | 5 | 1 |
23fb8c5563a8e5f79d256bb27bdbdfd56944ccbc | magic-akari | 2023-03-30T08:41:55 | fix(es/compat): Fix the position for temp var injection (#7171) | diff --git a/crates/swc_ecma_transforms_compat/src/es2021/logical_assignments.rs b/crates/swc_ecma_transforms_compat/src/es2021/logical_assignments.rs
index 0f4f19fcfd..988e0ad5fb 100644
--- a/crates/swc_ecma_transforms_compat/src/es2021/logical_assignments.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2021/logical_... | 2 | 33 | 4 |
065d11cb9bd49f36825b3b707e4e9ecfcc64e17b | magic-akari | 2023-03-30T08:38:35 | fix(es/compat): Handle import/export in `reserved_word` (#7165) | diff --git a/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs b/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs
index 2673292d0a..7660fcced4 100644
--- a/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs
+++ b/crates/swc_ecma_transforms_compat/src/es3/reserved_word.rs
@@ -30,7 +30,24 @@ st... | 1 | 39 | 6 |
6f0bf665c29abaa64c60fb43053f96e465d3e041 | Donny/κ°λμ€ | 2023-03-28T07:58:08 | fix(css/compat): Remove usage of `box_syntax` (#7153) | diff --git a/crates/swc_css_compat/src/compiler/color_hwb.rs b/crates/swc_css_compat/src/compiler/color_hwb.rs
index 91a1acc5aa..d5c95379e3 100644
--- a/crates/swc_css_compat/src/compiler/color_hwb.rs
+++ b/crates/swc_css_compat/src/compiler/color_hwb.rs
@@ -131,19 +131,19 @@ impl Compiler {
... | 2 | 12 | 13 |
b13eb4c81192a57a7e69b10a2d4530ccd91150f8 | Donny/κ°λμ€ | 2023-03-23T09:32:47 | fix(fast-graph): Use fxhash instead of ahash to make iteration order consistent (#7133)
**Description:**
Some operations of `petgraph` assumes the same iteration order. | diff --git a/Cargo.lock b/Cargo.lock
index 43417ce096..d7a34673f2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4201,9 +4201,9 @@ dependencies = [
name = "swc_fast_graph"
version = "0.17.40"
dependencies = [
- "ahash",
"indexmap",
"petgraph",
+ "rustc-hash",
"swc_common",
]
diff --git a/crates/swc_fast_graph... | 3 | 18 | 15 |
2154a3f117d9ea7cc2f12856d6e7f2b33a255d26 | Donny/κ°λμ€ | 2023-03-23T09:16:50 | refactor(macros): Reduce compile time (#7132)
**Description:**
- Reduce usage of generics in proc-macros.
- Remove needless operations like parsing tokens as an AST node. | diff --git a/crates/ast_node/src/enum_deserialize.rs b/crates/ast_node/src/enum_deserialize.rs
index def6f8706a..ca37bf03fc 100644
--- a/crates/ast_node/src/enum_deserialize.rs
+++ b/crates/ast_node/src/enum_deserialize.rs
@@ -29,7 +29,7 @@ pub fn expand(
data,
..
}: DeriveInput,
-) -> Vec<ItemIm... | 6 | 38 | 102 |
dfe1a3f4964ba58fdd676c184fdff0919fa78b26 | Donny/κ°λμ€ | 2023-03-23T05:15:59 | refactor(es): Remove needless build scripts to reduce compile time (#7129) | diff --git a/crates/ast_node/src/spanned.rs b/crates/ast_node/src/spanned.rs
index 2cf4fc1427..ceaeb03a2f 100644
--- a/crates/ast_node/src/spanned.rs
+++ b/crates/ast_node/src/spanned.rs
@@ -5,7 +5,7 @@ use pmutil::{smart_quote, Quote, ToTokensExt};
use swc_macros_common::prelude::*;
use syn::*;
-#[derive(Debug, Fr... | 5 | 6 | 10 |
08fa94fc737c2c3522227c1275e4a1d93c2a8611 | Donny/κ°λμ€ | 2023-03-23T04:37:02 | refactor(es/codegen): Extract code from generic functions to reduce compile time (#7127) | diff --git a/crates/swc_ecma_ast/src/source_map.rs b/crates/swc_ecma_ast/src/source_map.rs
index 6b71be3385..27440fea74 100644
--- a/crates/swc_ecma_ast/src/source_map.rs
+++ b/crates/swc_ecma_ast/src/source_map.rs
@@ -35,15 +35,12 @@ pub trait SourceMapperExt {
false
}
- fn should_write_separating_l... | 2 | 236 | 159 |
1e4abcb11d4c5884cc6559db8e86ecd7fbd96e5d | Crayon | 2023-03-22T12:25:17 | doc(es): Fix doc url (#7123) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index b5c2d70e25..d333fdb11d 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -13,7 +13,7 @@
//!
//! ## Testing
//!
-//! See [testing] and [swc_ecma_transform_testing](https://docs.rs/swc_ecmc_transform_testing).
+//! See [testing] and [swc_... | 1 | 1 | 1 |
d50689eab0e82a68c84fcacdd8ce5c9009a65100 | Fy | 2023-03-22T11:48:13 | fix(es/visit): Fix handling of `Program` of `AndThen` (#7120) | diff --git a/crates/swc_ecma_visit/src/lib.rs b/crates/swc_ecma_visit/src/lib.rs
index 0a1afb8ecc..ab4ff87a48 100644
--- a/crates/swc_ecma_visit/src/lib.rs
+++ b/crates/swc_ecma_visit/src/lib.rs
@@ -20,6 +20,12 @@ where
B: Fold,
{
+ #[inline(always)]
+ fn fold_program(&mut self, n: Program) -> Program {
+... | 2 | 71 | 0 |
f250f243cba49b9cdcdc920d37c92662c14941bc | Austaras | 2023-03-20T05:28:08 | refactor(es/fixer): Move comments with the insertion order (#7097) | diff --git a/Cargo.lock b/Cargo.lock
index 9dd361193a..b72851c807 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3844,6 +3844,7 @@ dependencies = [
"better_scoped_tls",
"bitflags",
"criterion",
+ "indexmap",
"once_cell",
"phf",
"rayon",
diff --git a/crates/swc_ecma_transforms_base/Cargo.toml b/crates/swc_ecma... | 3 | 9 | 4 |
1c254b1c44f72f5e66698f78d76796d5a7f66146 | Justin Ridgewell | 2023-03-16T02:18:28 | fix(testing): Ignore `non_snake_case` for generated test names (#7087) | diff --git a/crates/testing_macros/src/fixture.rs b/crates/testing_macros/src/fixture.rs
index 92fb355d35..ccd768bb05 100644
--- a/crates/testing_macros/src/fixture.rs
+++ b/crates/testing_macros/src/fixture.rs
@@ -163,6 +163,7 @@ pub fn expand(callee: &Ident, attr: Config) -> Result<Vec<ItemFn>, Error> {
... | 1 | 1 | 0 |
963c46061321fff3a2893da4953c1fd5ec649311 | Donny/κ°λμ€ | 2023-03-14T04:56:21 | refactor: Fix lints using clippy from `nightly-2023-03-13` (#6920) | diff --git a/crates/ast_node/src/spanned.rs b/crates/ast_node/src/spanned.rs
index bbb98bc2de..2cf4fc1427 100644
--- a/crates/ast_node/src/spanned.rs
+++ b/crates/ast_node/src/spanned.rs
@@ -145,11 +145,11 @@ fn make_body_for_variant(v: &VariantBinder<'_>, bindings: Vec<BindedField<'_>>)
.collect();
// ... | 43 | 74 | 92 |
7bbec92d234ddb47b51a014937d1ec7c1cb571c7 | realtimetodie | 2023-03-14T03:47:52 | fix(bindings/cli): Change order of checking inputs to workaround a Windows issue (#7077) | diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs
index f517ee19fd..ee517be4df 100644
--- a/bindings/swc_cli/src/commands/compile.rs
+++ b/bindings/swc_cli/src/commands/compile.rs
@@ -347,34 +347,7 @@ impl CompileOptions {
fn collect_inputs(&self) -> anyhow::Result<Ve... | 1 | 30 | 28 |
97945d02b8ea7936d7b30142807999da53fec96b | Donny/κ°λμ€ | 2023-03-13T03:26:07 | chore(ci): Fix CI (#7070) | diff --git a/crates/string_enum/src/lib.rs b/crates/string_enum/src/lib.rs
index a5d2efdd69..ba32648a40 100644
--- a/crates/string_enum/src/lib.rs
+++ b/crates/string_enum/src/lib.rs
@@ -75,8 +75,12 @@ pub fn derive_string_enum(input: proc_macro::TokenStream) -> proc_macro::TokenSt
make_serialize(&input).to_tokens... | 1 | 6 | 2 |
1b40689c3a754ce4a038ea98d7e9f41b1e9cf7a7 | Donny/κ°λμ€ | 2023-03-12T00:46:46 | fix(bindings/cli): Update `swc_ecma_ast` (#7060) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index e755378e4d..fa16fa5480 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -189,9 +189,9 @@ dependencies = [
[[package]]
name = "binding_macros"
-version = "0.41.2"
+version = "0.42.4"
source = "registry+https://github.com/rust-lang/crates.io-i... | 4 | 101 | 101 |
9beefaa1d5e711b63293d52a6c77e8aaf5e8f4c1 | Donny/κ°λμ€ | 2023-03-11T12:13:00 | perf(es/lexer): Use jump table for `read_token` (#7058) | diff --git a/crates/swc_ecma_parser/src/lexer/mod.rs b/crates/swc_ecma_parser/src/lexer/mod.rs
index 11efbc5d31..05b855f18a 100644
--- a/crates/swc_ecma_parser/src/lexer/mod.rs
+++ b/crates/swc_ecma_parser/src/lexer/mod.rs
@@ -9,7 +9,12 @@ use swc_atoms::{Atom, AtomGenerator};
use swc_common::{comments::Comments, inpu... | 2 | 265 | 169 |
fbb3016870cb6378743170b6833be6bbb7b4a73a | Donny/κ°λμ€ | 2023-03-11T10:42:04 | fix(es): Support stable rustc again (#7057)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7039. | diff --git a/crates/swc_ecma_transforms_base/src/fixer.rs b/crates/swc_ecma_transforms_base/src/fixer.rs
index 3410df93c1..550b9c7c46 100644
--- a/crates/swc_ecma_transforms_base/src/fixer.rs
+++ b/crates/swc_ecma_transforms_base/src/fixer.rs
@@ -907,36 +907,45 @@ impl Fixer<'_> {
Expr::Call(CallExpr {
... | 4 | 55 | 30 |
d1d0607158ab40463d1b123fed52cc526eba8385 | Donny/κ°λμ€ | 2023-03-11T03:43:06 | perf(es/lexer): Make lexer faster (#7052) | diff --git a/crates/swc_common/src/input.rs b/crates/swc_common/src/input.rs
index 4794974472..246a98b1d9 100644
--- a/crates/swc_common/src/input.rs
+++ b/crates/swc_common/src/input.rs
@@ -77,20 +77,6 @@ impl<'a> Input for StringInput<'a> {
self.iter.clone().nth(2).map(|i| i.1)
}
- #[inline]
- f... | 5 | 44 | 32 |
37304638742238c97d2c87d6ac2dc5f4347da973 | Daiki Nishikawa | 2023-03-11T02:54:09 | fix(es/preset-env): Update data for core-js3 (#7023) | diff --git a/crates/swc_ecma_preset_env/src/corejs3/data.rs b/crates/swc_ecma_preset_env/src/corejs3/data.rs
index 2204afe3f4..ce946c2ae5 100644
--- a/crates/swc_ecma_preset_env/src/corejs3/data.rs
+++ b/crates/swc_ecma_preset_env/src/corejs3/data.rs
@@ -79,25 +79,32 @@ static MAP_DEPENDENCIES: &[&str] = &concat2::<19>... | 1 | 118 | 48 |
f46933615c2f06bb77d4cd11f824fb2b4c60a24d | SWC Bot | 2023-03-10T04:55:46 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 95385a62c8..2919f71bae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.73.2"
+version = "0.73.3"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
962b0fc8af6084ade064d189ed7cd7f0e2b25ee8 | Donny/κ°λμ€ | 2023-03-10T03:52:14 | perf(es/lexer): Use string searcher for lexing line comments (#7043) | diff --git a/crates/swc_common/src/input.rs b/crates/swc_common/src/input.rs
index eea14a0626..4794974472 100644
--- a/crates/swc_common/src/input.rs
+++ b/crates/swc_common/src/input.rs
@@ -9,7 +9,7 @@ pub type SourceFileInput<'a> = StringInput<'a>;
/// Implementation of [Input].
#[derive(Clone)]
pub struct StringI... | 2 | 47 | 30 |
0314869464f59748a6a44980ade4dc1eda39ac3b | magic-akari | 2023-03-09T14:18:46 | fix(es/transforms): Handle object shorthand in `const_modules` (#7022) | diff --git a/crates/swc_ecma_transforms_optimization/src/const_modules.rs b/crates/swc_ecma_transforms_optimization/src/const_modules.rs
index 763cd5ebb2..5137c055b8 100644
--- a/crates/swc_ecma_transforms_optimization/src/const_modules.rs
+++ b/crates/swc_ecma_transforms_optimization/src/const_modules.rs
@@ -197,4 +19... | 2 | 35 | 0 |
691a8c1a5490cc6fa05ad2bb59cfc7c4d370056f | Donny/κ°λμ€ | 2023-03-09T09:33:49 | chore(ci): Fix bot | diff --git a/Cargo.lock b/Cargo.lock
index 721d1b2610..95af2cfa5f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3781,7 +3781,6 @@ version = "0.44.5"
dependencies = [
"swc_atoms",
"swc_common",
- "swc_core",
"swc_ecma_ast",
"swc_ecma_quote_macros",
"testing",
diff --git a/crates/swc_ecma_quote/Cargo.toml b/cra... | 2 | 0 | 2 |
f378a14888b5a6457ade3991e2754f235d4e3d85 | Donny/κ°λμ€ | 2023-03-09T08:07:40 | perf(es/parser): Use `SmartString` as the buffer (#7033) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index e76a9bd6f4..a0ad09365f 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -189,9 +189,9 @@ dependencies = [
[[package]]
name = "binding_macros"
-version = "0.39.5"
+version = "0.40.0"
source = "registry+https://github.com/rust-lang/crates.io-i... | 9 | 119 | 101 |
e698a348162e43b11347d2a6139910e096291f59 | Anders Kaseorg | 2023-03-09T04:10:47 | test(es/quote): Fix doctests (#7038) | diff --git a/Cargo.lock b/Cargo.lock
index 81192f8b67..26dc15d1fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3781,6 +3781,7 @@ version = "0.44.4"
dependencies = [
"swc_atoms",
"swc_common",
+ "swc_core",
"swc_ecma_ast",
"swc_ecma_quote_macros",
"testing",
diff --git a/crates/swc_ecma_quote/Cargo.toml b/cra... | 3 | 3 | 0 |
8bfef35c1be5790b32fea253f28961271fe7f619 | HeYunfei | 2023-03-08T06:49:41 | perf(es/utils): Introduce `NodeIgnoringSpan` (#7030) | diff --git a/Cargo.lock b/Cargo.lock
index 87a67d8653..f4eed514e9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4104,6 +4104,7 @@ dependencies = [
"swc_ecma_ast",
"swc_ecma_parser",
"swc_ecma_visit",
+ "testing",
"tracing",
"unicode-id",
]
diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.... | 8 | 184 | 151 |
30546a28f21eb90bbbaef33ce4bc0448cd062a72 | Donny/κ°λμ€ | 2023-03-08T04:54:28 | perf(es/parser): Use Cow for `_` in numeric literals (#7031) | diff --git a/Cargo.lock b/Cargo.lock
index b1c3ea377e..8ec4d558e1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2902,6 +2902,17 @@ version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83"
+[[package]]
+name = "sma... | 3 | 29 | 10 |
9841f0b5d14736d780c9864eb9bf7609f9ff2840 | Yoni Feng | 2023-03-08T02:47:42 | perf(atoms): Update `string-cache` for per-bucket mutex (#6980) | diff --git a/Cargo.lock b/Cargo.lock
index c94fe00988..8ad6058727 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3041,9 +3041,9 @@ checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0"
[[package]]
name = "string_cache"
-version = "0.8.4"
+version = "0.8.7"
source = "registry+https://github.co... | 3 | 4 | 4 |
81495f5f21d56df7a187847337c9fdd2ff8ee73b | Donny/κ°λμ€ | 2023-03-07T14:47:21 | feat(common): Add an API to create a `SourceFile` without allocation (#7029) | diff --git a/crates/swc_common/src/source_map.rs b/crates/swc_common/src/source_map.rs
index 8029b6c57c..25780e6316 100644
--- a/crates/swc_common/src/source_map.rs
+++ b/crates/swc_common/src/source_map.rs
@@ -202,7 +202,17 @@ impl SourceMap {
/// Creates a new source_file.
/// This does not ensure that on... | 2 | 33 | 6 |
5c7c8e073634ff6347194fa0e3fae8c83b64718c | magic-akari | 2023-03-07T04:10:06 | fix(es/transforms): Handle member object in missing else branch (#7027)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/7025. | diff --git a/crates/swc_ecma_transforms_optimization/src/const_modules.rs b/crates/swc_ecma_transforms_optimization/src/const_modules.rs
index a47500cacf..763cd5ebb2 100644
--- a/crates/swc_ecma_transforms_optimization/src/const_modules.rs
+++ b/crates/swc_ecma_transforms_optimization/src/const_modules.rs
@@ -161,11 +1... | 2 | 27 | 7 |
3cb03d5299d3c6be56f8b7f8c42ba86122640424 | magic-akari | 2023-03-06T03:33:52 | feat(es/transforms): Support namespace imports from `const_modules` (#7013) | diff --git a/crates/swc_ecma_transforms_optimization/src/const_modules.rs b/crates/swc_ecma_transforms_optimization/src/const_modules.rs
index fe0b8aad85..a47500cacf 100644
--- a/crates/swc_ecma_transforms_optimization/src/const_modules.rs
+++ b/crates/swc_ecma_transforms_optimization/src/const_modules.rs
@@ -1,20 +1,2... | 2 | 142 | 56 |
a431a3a204faebd283cb7db8359b048d9fcc9a87 | Donny/κ°λμ€ | 2023-03-05T06:40:35 | chore(ci): Fix CI (#7014) | diff --git a/Cargo.lock b/Cargo.lock
index 8e2e7ee5c1..bd9f2ee057 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -309,9 +309,9 @@ dependencies = [
[[package]]
name = "cc"
-version = "1.0.78"
+version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a20104e2335ce8a659d6dd92a51a7... | 5 | 109 | 97 |
367ac825f6bfab65cf8bcb21e68500daef8ad177 | Donny/κ°λμ€ | 2023-02-28T08:20:29 | refactor(es/parser): Make lexer not generic over `Input` (#6993)
**Description:**
Currently, it uses `StringInput` as the input type, but I'll refactor it to use `String` or `Vec<u8>` directly to optimize it further.
**Related issue:**
- https://github.com/swc-project/swc/discussions/6991 | diff --git a/crates/swc/tests/serde.rs b/crates/swc/tests/serde.rs
index 32b888f867..aacc8aa4ec 100644
--- a/crates/swc/tests/serde.rs
+++ b/crates/swc/tests/serde.rs
@@ -1,13 +1,12 @@
use std::path::Path;
-use swc_common::input::StringInput;
use swc_ecma_ast::Module;
use swc_ecma_parser::{lexer::Lexer, PResult, P... | 22 | 50 | 51 |
3e3e41a1756519515df193db903f6992995420e9 | realtimetodie | 2023-02-27T02:37:32 | fix(bindings/cli): Implement `source-file-name` and `source-root` options (#6973) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index d574a4430d..c1e528a6d6 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -714,6 +714,12 @@ dependencies = [
"parking_lot_core",
]
+[[package]]
+name = "data-encoding"
+version = "2.3.3"
+source = "registry+https://github.com/rust-lang/crates.... | 4 | 81 | 19 |
f1e7a2a9cc74b19597e9d7105852daf4672514a2 | IWANABETHATGUY | 2023-02-22T14:17:45 | chore(es/parser): Reduce pre-allocation to reduce memory usage (#6979)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6966. | diff --git a/crates/swc_ecma_parser/src/parser/expr.rs b/crates/swc_ecma_parser/src/parser/expr.rs
index 62986026b2..0689f2c480 100644
--- a/crates/swc_ecma_parser/src/parser/expr.rs
+++ b/crates/swc_ecma_parser/src/parser/expr.rs
@@ -712,7 +712,7 @@ impl<I: Tokens> Parser<I> {
expect!(p, '(');
... | 1 | 1 | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.