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 |
|---|---|---|---|---|---|---|---|
542bb62ef78a999fe6c636be821427691ce0b071 | Laurent Gaucheron | 2023-02-16T05:00:49 | fix(bundler): Don't panic while finding exports (#6947) | diff --git a/crates/swc_bundler/src/bundler/export.rs b/crates/swc_bundler/src/bundler/export.rs
index 540ea7eb70..a41ce11f9f 100644
--- a/crates/swc_bundler/src/bundler/export.rs
+++ b/crates/swc_bundler/src/bundler/export.rs
@@ -165,6 +165,9 @@ where
}
return;... | 1 | 3 | 0 |
0771418dd0310a7e05bfad76baf4e16cd289351e | LongYinan | 2023-02-14T03:13:36 | chore(swc_nodejs_common): remove swc_node_base from swc_nodejs_common (#6940)
- Ref: https://github.com/vercel/turbo/pull/3772 | diff --git a/Cargo.lock b/Cargo.lock
index a17f031500..9fc28e1056 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4384,7 +4384,6 @@ dependencies = [
"napi",
"serde",
"serde_json",
- "swc_node_base",
"tracing",
"tracing-subscriber",
]
diff --git a/bindings/binding_core_node/Cargo.toml b/bindings/binding_core_nod... | 4 | 26 | 30 |
cb4436bd6ed085bdf1f0d98776f166bf2a6275c9 | Jonathan Rudenberg | 2023-02-10T18:30:00 | fix(bindings/cli): Rename `--config` to `--config-json` (#6932) | diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs
index 4cef8539c2..2f2bbc429c 100644
--- a/bindings/swc_cli/src/commands/compile.rs
+++ b/bindings/swc_cli/src/commands/compile.rs
@@ -28,11 +28,11 @@ use crate::util::trace::init_trace;
/// Configuration option for transfo... | 1 | 3 | 3 |
75376cd65cf10e9777aab5e00abf9f851a222a49 | OJ Kwon | 2023-02-10T02:27:20 | chore: Bump swc_css_* (#6924) | diff --git a/Cargo.lock b/Cargo.lock
index c4c89ddc4b..cc1194c501 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3300,7 +3300,7 @@ dependencies = [
[[package]]
name = "swc_core"
-version = "0.59.23"
+version = "0.59.24"
dependencies = [
"anyhow",
"binding_macros",
@@ -3481,7 +3481,7 @@ dependencies = [
[[pack... | 12 | 91 | 91 |
b72ee503e4a404e33042ac5c2865cc36251bffc8 | SWC Bot | 2023-02-08T07:48:41 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index ce928f9846..0ea15caae4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.66.34"
+version = "0.66.35"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
4c5d5a6fcaf49782effc6079bb92adec45ceb83c | Donny/κ°λμ€ | 2023-02-08T05:14:41 | fix(es/parser): Don't use `stacker` for armv7 (#6916) | diff --git a/crates/swc_ecma_parser/Cargo.toml b/crates/swc_ecma_parser/Cargo.toml
index 6673fa5402..441f25cb93 100644
--- a/crates/swc_ecma_parser/Cargo.toml
+++ b/crates/swc_ecma_parser/Cargo.toml
@@ -37,7 +37,7 @@ swc_ecma_visit = { version = "0.82.3", path = "../swc_ecma_visit", optional = tr
tracing = "0.1... | 2 | 9 | 7 |
951dafbc1a56b8b29fd76aaad8138e58eaadda12 | Donny/κ°λμ€ | 2023-02-08T02:10:44 | fix(es/minifier): Don't break ternary with assignment in test (#6906)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6903. | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/conditionals.rs b/crates/swc_ecma_minifier/src/compress/optimize/conditionals.rs
index 96380db322..3b108565d1 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/conditionals.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/conditionals.rs
@@ -4... | 2 | 71 | 1 |
17f1c50287c798b57a0d2ac2a95ba6c864b1c2d7 | JH.Lee | 2023-02-07T06:22:24 | chore(bindings/cli): Enable `preferUnplugged` by default for the plugins (#6912) | diff --git a/bindings/swc_cli/src/commands/plugin.rs b/bindings/swc_cli/src/commands/plugin.rs
index 3117974e1e..d4af97cb5e 100644
--- a/bindings/swc_cli/src/commands/plugin.rs
+++ b/bindings/swc_cli/src/commands/plugin.rs
@@ -217,7 +217,8 @@ build-wasm32 = "build --target wasm32-unknown-unknown"
"scripts": {{
... | 1 | 2 | 1 |
432dca647b5ab6d083d1cedbf68d6afc511f84fe | Donny/κ°λμ€ | 2023-02-07T05:14:19 | fix(es/minifier): Respect span hygiene from expr simplifier (#6899)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6896. | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs
index a3e2200f46..7aecefac5e 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/mod.rs
@@ -2408,7 +2408,7 @@ where
let ... | 3 | 277 | 6 |
d993c4def65b0bf900a6b8b8f0d0dee44ba8e0c8 | Jonathan Rudenberg | 2023-02-05T21:35:48 | feat(bindings/cli): Add `--config` (#6835) | diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs
index 59090afe6d..b53d450090 100644
--- a/bindings/swc_cli/src/commands/compile.rs
+++ b/bindings/swc_cli/src/commands/compile.rs
@@ -1,7 +1,7 @@
use std::{
fs::{self, File},
io::{self, Read, Write},
- path::{... | 3 | 37 | 8 |
d6a24a28e88ff22f6aea8169927c64d8cbe7fb95 | Donny/κ°λμ€ | 2023-01-31T05:45:37 | build(cargo): Drop dependencies on `retain_mut` (#6884) | diff --git a/Cargo.lock b/Cargo.lock
index dfd802210d..bc752c816b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2575,12 +2575,6 @@ dependencies = [
"winreg",
]
-[[package]]
-name = "retain_mut"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11000e6ba5020e53e7cc26f7... | 5 | 95 | 109 |
93017033117ff0c89d9a7a992d7a8834ee030227 | Donny/κ°λμ€ | 2023-01-31T03:21:32 | fix(es): Remove useless message (#6882) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index 0b7f13f70c..ba24f069dd 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -414,9 +414,7 @@ impl Compiler {
})?;
if error {
- return Err(anyhow::anyhow!("Syntax Error").context(
- ... | 1 | 1 | 3 |
6b7249dcde964d4cefba8531515c93b07d6dbcd9 | Daiki Nishikawa | 2023-01-29T15:31:13 | feat(es/loader): Support `node:` prefix from `NodeModulesResolver` (#6868) | diff --git a/crates/swc_ecma_loader/src/resolvers/node.rs b/crates/swc_ecma_loader/src/resolvers/node.rs
index 8b8cedcd62..51ab8a3cac 100644
--- a/crates/swc_ecma_loader/src/resolvers/node.rs
+++ b/crates/swc_ecma_loader/src/resolvers/node.rs
@@ -424,6 +424,10 @@ impl Resolve for NodeModulesResolver {
// Han... | 2 | 25 | 0 |
508267dccf479f114234f01f8d77db74b91bdb85 | HeYunfei | 2023-01-29T14:54:08 | fix(visit): Fix detection of `Option<Vec<T>>` (#6872) | diff --git a/crates/swc_visit_macros/src/lib.rs b/crates/swc_visit_macros/src/lib.rs
index 70e3b78cb7..5ef99299cf 100644
--- a/crates/swc_visit_macros/src/lib.rs
+++ b/crates/swc_visit_macros/src/lib.rs
@@ -169,7 +169,7 @@ pub fn define(tts: proc_macro::TokenStream) -> proc_macro::TokenStream {
}
fn make_field_enum... | 1 | 8 | 4 |
c4db8e42a154bd41b54354fc8c2891764fbb724f | realtimetodie | 2023-01-29T13:28:28 | feat(bindings/cli): Append `sourceMappingURL=` to the output (#6873) | diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs
index 8f7b95d7d7..59090afe6d 100644
--- a/bindings/swc_cli/src/commands/compile.rs
+++ b/bindings/swc_cli/src/commands/compile.rs
@@ -204,7 +204,7 @@ fn resolve_output_file_path(
}
fn emit_output(
- output: &Transfor... | 1 | 42 | 20 |
3babace12d9c6626bb2bc4ce545d5b3c5b548249 | SWC Bot | 2023-01-28T18:34:39 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 021c1a828e..f6f4022986 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.66.8"
+version = "0.66.9"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
420a67ac2b81a522a20788cd954a99718259714a | Donny/κ°λμ€ | 2023-01-26T08:22:40 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 3240d2d2bb..97ae4ed94c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3155,7 +3155,7 @@ dependencies = [
[[package]]
name = "swc_atoms"
-version = "0.4.33"
+version = "0.4.34"
dependencies = [
"bytecheck",
"once_cell",
diff --git a/crates/swc_atoms/Cargo.toml b/crates/s... | 2 | 2 | 2 |
00870d273ea4b24ee49c2436e8fb31060e6d84fe | Donny/κ°λμ€ | 2023-01-26T03:26:45 | chore: Publish `v1.3.29` with `swc_core` `v0.59.1` | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 85a7086523..926869c851 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -188,9 +188,9 @@ dependencies = [
[[package]]
name = "binding_macros"
-version = "0.34.0"
+version = "0.34.1"
source = "registry+https://github.com/rust-lang/crates.io-i... | 4 | 69 | 69 |
dbb3f362aa31ab838b966209aa4c5a8c1ba7406d | SWC Bot | 2023-01-26T03:09:22 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 06f8b613c4..1ef1733879 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.66.1"
+version = "0.66.2"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
7ee39c73e1286e9df36380bcc9f03f3259a27e6c | SWC Bot | 2023-01-24T07:05:16 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index e7148883af..c413904105 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.65.7"
+version = "0.65.8"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
58208ef8aee994591f05d996a8b660da6e96d681 | HeYunfei | 2023-01-24T06:16:23 | perf(es/minifier): Make pure function check `O(1)` (#6840) | diff --git a/crates/swc_ecma_minifier/src/metadata/mod.rs b/crates/swc_ecma_minifier/src/metadata/mod.rs
index 1d4b5c623a..78006273a2 100644
--- a/crates/swc_ecma_minifier/src/metadata/mod.rs
+++ b/crates/swc_ecma_minifier/src/metadata/mod.rs
@@ -1,3 +1,6 @@
+use std::hash::Hash;
+
+use rustc_hash::FxHashSet;
use swc_... | 2 | 124 | 9 |
2fcab36418b7cf0869a1a256dc927d3ccdbe35cd | Austaras | 2023-01-23T10:13:42 | refactor(es/preset-env): Use a const fn instead of a macro (#6844) | diff --git a/crates/swc_ecma_preset_env/src/corejs3/data.rs b/crates/swc_ecma_preset_env/src/corejs3/data.rs
index 69122e01c3..61582b04de 100644
--- a/crates/swc_ecma_preset_env/src/corejs3/data.rs
+++ b/crates/swc_ecma_preset_env/src/corejs3/data.rs
@@ -4,260 +4,212 @@ use swc_common::collections::AHashMap;
use cra... | 1 | 290 | 289 |
7205543d5f58e2aaa8ef8ba0820c2f05726001d1 | Alex Dixon | 2023-01-18T02:16:43 | refactor(es/typescript): Remove unused code (#6830) | diff --git a/crates/swc_ecma_transforms_typescript/src/strip.rs b/crates/swc_ecma_transforms_typescript/src/strip.rs
index 79a97c52dc..52f7c6be4c 100644
--- a/crates/swc_ecma_transforms_typescript/src/strip.rs
+++ b/crates/swc_ecma_transforms_typescript/src/strip.rs
@@ -162,7 +162,6 @@ pub fn strip_with_config(config: ... | 1 | 0 | 29 |
6f77544a10dedbbfffda9c45b8c4a53943198292 | SWC Bot | 2023-01-17T02:52:10 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index a1c679dc3c..dd0fb05502 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.65.0"
+version = "0.65.1"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
38fb70c237f122a8d8f8fdf187bd341326e39f22 | Alex Dixon | 2023-01-15T00:18:27 | fix(es/plugin): Fix starter template (#6815)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6814. | diff --git a/bindings/swc_cli/src/commands/plugin.rs b/bindings/swc_cli/src/commands/plugin.rs
index b8cfa159ee..3117974e1e 100644
--- a/bindings/swc_cli/src/commands/plugin.rs
+++ b/bindings/swc_cli/src/commands/plugin.rs
@@ -202,7 +202,7 @@ build-wasm32 = "build --target wasm32-unknown-unknown"
.context("fai... | 1 | 1 | 1 |
224eff91eb06808e2c79bb4fbe06ccf46121758f | Donny/κ°λμ€ | 2023-01-12T11:40:26 | feat(es/quote): Allow using `Str` as a var (#6797) | diff --git a/crates/swc_ecma_quote/src/lib.rs b/crates/swc_ecma_quote/src/lib.rs
index 5a9c8b36bf..a7cf6dd5e0 100644
--- a/crates/swc_ecma_quote/src/lib.rs
+++ b/crates/swc_ecma_quote/src/lib.rs
@@ -46,12 +46,13 @@ mod clone;
/// ## Typed variables
///
/// As this macro generates static AST, it can't substitute vari... | 3 | 39 | 6 |
288ec1d6e08fbc87f5b087092b2caac0daf95506 | Donny/κ°λμ€ | 2023-01-11T09:37:35 | chore: Publish v1.3.26 | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index cead6f59b0..08a0a68642 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -2752,9 +2752,9 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.162.4"
+version = "0.162.5"
source = "registry+https://github.com/rust-lang/crat... | 1 | 4 | 4 |
5496379454e6ee3aca26b4a6e311286420ab7c15 | Donny/κ°λμ€ | 2023-01-11T09:36:16 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index f5eb016482..2b400e81ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3649,7 +3649,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.162.4"
+version = "0.162.5"
dependencies = [
"ahash",
"ansi_term",
@@ -4043,7 +4043,7 @@ dependencies = [
[[p... | 3 | 5 | 5 |
d9b22b8bf7451a11f6b7ea095eac5b2b892028dc | SWC Bot | 2023-01-11T08:43:06 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 9a51ae6f31..f5eb016482 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -844,7 +844,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.62.5"
+version = "0.62.6"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
ff8facef64ffe115936cfc154b35ec08359524f8 | HeYunfei | 2023-01-11T02:58:25 | fix(es/parser): Allow parsing `import.meta` as an expression (#6783) | diff --git a/crates/swc_ecma_parser/src/lib.rs b/crates/swc_ecma_parser/src/lib.rs
index b523edfabb..3ad332067e 100644
--- a/crates/swc_ecma_parser/src/lib.rs
+++ b/crates/swc_ecma_parser/src/lib.rs
@@ -442,7 +442,11 @@ macro_rules! expose {
};
}
-expose!(parse_file_as_expr, Box<Expr>, |p| { p.parse_expr() });
... | 2 | 23 | 3 |
ae3cfa7d2d4cff7f3246691d24286bc2470792e1 | Donny/κ°λμ€ | 2023-01-10T10:19:01 | fix(es): Remove useless context (#6777) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index 305fd220a7..0b7f13f70c 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -923,7 +923,6 @@ impl Compiler {
self.process_js_inner(handler, orig.as_ref(), config)
})
- .context("failed to process input file")
... | 2 | 1 | 2 |
6d365de9e21d57c785f1634f4c19418765d9ca9b | Donny/κ°λμ€ | 2023-01-10T03:28:07 | chore(ci): Fix CI action (#6772) | diff --git a/Cargo.lock b/Cargo.lock
index 9ac694b2df..0dbdc38106 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -112,7 +112,7 @@ version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
- "hermit-a... | 2 | 296 | 216 |
2b503c16d5f338c6a786a19c7c0acbc4c06bcfee | Justin Ridgewell | 2023-01-08T04:57:26 | fix(es/codegen): Fix LineCol calculation of printed files (#6763)
**Description:**
There were several issues with the way we updated the current `LineCol` position during the printing of the generated file:
- We used `chars` and `char_indices` (UTF-32) instead of `encode_utf16` (UTF-16) chars.
- JS uses UCS-2 (... | diff --git a/crates/swc/tests/source_map.rs b/crates/swc/tests/source_map.rs
index 9a3f0331a2..212551317c 100644
--- a/crates/swc/tests/source_map.rs
+++ b/crates/swc/tests/source_map.rs
@@ -16,6 +16,7 @@ use swc::{
},
Compiler,
};
+use swc_ecma_parser::Syntax;
use testing::{assert_eq, NormalizedOutput, Std... | 4 | 157 | 52 |
8a6a1cbcf1279b805e740f4d77ebb9fb72d52d41 | HeYunfei | 2023-01-06T08:15:07 | feat(es/minifier): Handle boolean in `Evaluator` (#6756)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/5953. | diff --git a/crates/swc_ecma_minifier/src/eval.rs b/crates/swc_ecma_minifier/src/eval.rs
index ad3cb8b89b..1451b9e8ca 100644
--- a/crates/swc_ecma_minifier/src/eval.rs
+++ b/crates/swc_ecma_minifier/src/eval.rs
@@ -88,10 +88,13 @@ impl Evaluator {
match e {
Expr::Seq(s) => return self.eval(s.exprs... | 2 | 13 | 4 |
48902b60d3cd6b81f7d331064e03dbee3cf28cca | Donny/κ°λμ€ | 2023-01-06T07:41:16 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 92765c09db..f81440d7a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3134,7 +3134,7 @@ dependencies = [
[[package]]
name = "swc_atoms"
-version = "0.4.32"
+version = "0.4.33"
dependencies = [
"bytecheck",
"once_cell",
diff --git a/crates/swc_atoms/Cargo.toml b/crates/s... | 2 | 2 | 2 |
26a0c135896098e1e1a8fbb99a623311828af5b2 | Donny/κ°λμ€ | 2023-01-06T03:47:16 | fix(common): Mark `\r` as a line ending (#6752)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6694. | diff --git a/crates/swc/tests/source_map.rs b/crates/swc/tests/source_map.rs
index 0bff2b5876..9a3f0331a2 100644
--- a/crates/swc/tests/source_map.rs
+++ b/crates/swc/tests/source_map.rs
@@ -11,7 +11,9 @@ use std::{
use anyhow::{Context, Error};
use swc::{
- config::{Config, InputSourceMap, IsModule, ModuleConfi... | 2 | 23 | 163 |
b46815a684a13ff3b364b2913c18acf57afbbac7 | Donny/κ°λμ€ | 2023-01-05T10:07:45 | fix(es): Fix wasm (#6755) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 501388474a..71b020eef9 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -1309,9 +1309,11 @@ impl ModuleConfig {
available_features: FeatureFlag,
) -> Box<dyn swc_ecma_visit::Fold + 'cmt> {
... | 1 | 5 | 3 |
00764188195c63af1e5a8e34ce29dcf650b20f04 | realtimetodie | 2023-01-05T05:15:36 | fix(bindings/cli): Skip empty stdin in non tty environments (#6714) | diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs
index 84d19b49bf..8f7b95d7d7 100644
--- a/bindings/swc_cli/src/commands/compile.rs
+++ b/bindings/swc_cli/src/commands/compile.rs
@@ -1,6 +1,6 @@
use std::{
fs::{self, File},
- io::{self, BufRead, Write},
+ io::... | 1 | 9 | 9 |
36b26d3496fd9ad7e3ccb41c164600657476a8a3 | HeYunfei | 2023-01-04T14:17:01 | fix(es/react): Force refresh if code contains `@refresh reset` (#6749) | diff --git a/crates/swc_ecma_transforms_react/src/refresh/mod.rs b/crates/swc_ecma_transforms_react/src/refresh/mod.rs
index 5194bb274b..58b423c2bd 100644
--- a/crates/swc_ecma_transforms_react/src/refresh/mod.rs
+++ b/crates/swc_ecma_transforms_react/src/refresh/mod.rs
@@ -249,6 +249,12 @@ where
});
... | 2 | 44 | 2 |
62c0d7291ae25e74e86327953c743a08496f1d1e | Donny/κ°λμ€ | 2023-01-04T03:13:55 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index c7387ebca3..eb799ce5b7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "binding_macros"
-version = "0.26.4"
+version = "0.27.0"
dependencies = [
"anyhow",
"console_error_panic_hook",
@@ -2230,7 +2230,7 @@ checksum = "92... | 11 | 33 | 33 |
79afcb5d81cb5cca89c48d39b950ddc24f31d434 | RiESAEX | 2023-01-03T10:22:44 | doc(es): Fix example (#6743) | diff --git a/crates/swc/examples/minify.rs b/crates/swc/examples/minify.rs
index cbd0bae801..83ff5ebb93 100644
--- a/crates/swc/examples/minify.rs
+++ b/crates/swc/examples/minify.rs
@@ -2,46 +2,48 @@ use std::{path::Path, sync::Arc};
use anyhow::Context;
use swc::{self, config::JsMinifyOptions, try_with_handler, B... | 3 | 80 | 73 |
98da6444b6499d3b3d895d3f81941c778340cf3b | RiESAEX | 2023-01-03T03:45:25 | perf(es/preset-env): Use `VisitMut` instead of `Fold` for polyfill (#6734) | diff --git a/crates/swc_ecma_preset_env/src/corejs2/entry.rs b/crates/swc_ecma_preset_env/src/corejs2/entry.rs
index 5f8fbd8881..5e71df8534 100644
--- a/crates/swc_ecma_preset_env/src/corejs2/entry.rs
+++ b/crates/swc_ecma_preset_env/src/corejs2/entry.rs
@@ -1,9 +1,9 @@
use indexmap::IndexSet;
use preset_env_base::{v... | 3 | 26 | 50 |
082dc2101b8f3c05b103cf59484355ef87016a57 | Bernardo | 2022-12-27T07:41:30 | fix(es/plugin): Fix plugin starter template (#6723) | diff --git a/bindings/swc_cli/src/commands/plugin.rs b/bindings/swc_cli/src/commands/plugin.rs
index 51ff965311..b8cfa159ee 100644
--- a/bindings/swc_cli/src/commands/plugin.rs
+++ b/bindings/swc_cli/src/commands/plugin.rs
@@ -164,7 +164,7 @@ lto = true
[dependencies]
serde = "1"
-swc_core = {{ version = "{}", feat... | 1 | 1 | 1 |
b451fa9e88aee33368759a67913e7c6eb9c3898f | realtimetodie | 2022-12-27T00:59:54 | fix(es): Remove import statement canonicalization (#6716) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index f48ff94f63..501388474a 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -1309,10 +1309,10 @@ impl ModuleConfig {
available_features: FeatureFlag,
) -> Box<dyn swc_ecma_visit::Fold + 'cmt> {
... | 1 | 3 | 3 |
d8d9965aa474e3c57d8712d99935673bb28fb59d | Donny/κ°λμ€ | 2022-12-23T05:58:20 | chore: Publish crates | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index cd845ec99b..a9367f8264 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -2535,7 +2535,7 @@ dependencies = [
[[package]]
name = "swc_cli"
-version = "0.91.10"
+version = "0.91.11"
dependencies = [
"anyhow",
"atty",
diff --git a/bindings/s... | 2 | 2 | 2 |
24cd384c20abc9bacdc89b50cd6a9a9df243b687 | realtimetodie | 2022-12-23T05:04:36 | fix(cli): Use the `--source-maps` option (#6708) | diff --git a/bindings/swc_cli/src/commands/compile.rs b/bindings/swc_cli/src/commands/compile.rs
index fce96db1e8..84d19b49bf 100644
--- a/bindings/swc_cli/src/commands/compile.rs
+++ b/bindings/swc_cli/src/commands/compile.rs
@@ -13,7 +13,7 @@ use rayon::prelude::*;
use relative_path::RelativePath;
use swc_core::{
... | 1 | 14 | 10 |
58700f2bec696d0d2b2466ab6b4641f0a7017808 | Donny/κ°λμ€ | 2022-12-21T09:34:40 | fix(es): Preserve license comments by default (#6703)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6677. | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 60a8036f6f..f48ff94f63 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -943,7 +943,7 @@ pub struct JsMinifyFormatOptions {
#[serde(default)]
pub braces: bool,
- #[serde(default)]
+ #[serde(de... | 1 | 5 | 1 |
7e6ec8d587471dba1dde44ebcfd6af6d03247955 | Donny/κ°λμ€ | 2022-12-20T07:45:29 | fix(es/minifier): Don't inline invalid LHS into an update argument (#6680)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6641. | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
index 51e37a4c97..f463702119 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
@@ -733,6 +733,11 @@ where
... | 3 | 24 | 0 |
5fed22282971c62af3be8bf0b858684ca90ec7fc | Fy | 2022-12-19T06:41:37 | fix(es/preset-env): Align polyfills with `@babel/plugin-polyfill-corejs3` (#6673) | diff --git a/crates/swc_ecma_preset_env/src/lib.rs b/crates/swc_ecma_preset_env/src/lib.rs
index 9578379df7..501a81251c 100644
--- a/crates/swc_ecma_preset_env/src/lib.rs
+++ b/crates/swc_ecma_preset_env/src/lib.rs
@@ -388,10 +388,13 @@ impl Fold for Polyfills {
},
};
let required = requi... | 1 | 6 | 3 |
23e27a9b28b1127c69d581ba042aa9aa039761bc | Donny/κ°λμ€ | 2022-12-18T07:41:37 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 250857fa5b..54033a1f94 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3130,7 +3130,7 @@ dependencies = [
[[package]]
name = "swc_atoms"
-version = "0.4.29"
+version = "0.4.30"
dependencies = [
"bytecheck",
"once_cell",
diff --git a/crates/swc_atoms/Cargo.toml b/crates/s... | 2 | 2 | 2 |
cb4173aa73fbfd95f2411ceb97cec95e408f59ee | Donny/κ°λμ€ | 2022-12-15T09:31:09 | perf(es/minifier): Use rope-like structure for the name mangler (#6661) | diff --git a/crates/swc_ecma_transforms_base/src/rename/analyzer/mod.rs b/crates/swc_ecma_transforms_base/src/rename/analyzer/mod.rs
index 002a0ca52e..c6ad5207ea 100644
--- a/crates/swc_ecma_transforms_base/src/rename/analyzer/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/rename/analyzer/mod.rs
@@ -3,6 +3,7 @@ use s... | 3 | 75 | 18 |
d4660a4673e19d628b7720e1352fa905bdc4456a | Alexander Akait | 2022-12-15T05:20:59 | refactor(css/prefixer): Use `eq_ignore_span` (#6656) | diff --git a/crates/swc_css_prefixer/src/prefixer.rs b/crates/swc_css_prefixer/src/prefixer.rs
index 2ed01c9050..dc8ce0334c 100644
--- a/crates/swc_css_prefixer/src/prefixer.rs
+++ b/crates/swc_css_prefixer/src/prefixer.rs
@@ -1115,7 +1115,7 @@ impl VisitMut for Prefixer {
"-moz-placeholder",
... | 1 | 8 | 8 |
863f9f842493596b030f8cce63020e3236124bbb | SWC Bot | 2022-12-14T12:33:35 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 7f2d25a769..60e32784eb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -842,7 +842,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.60.1"
+version = "0.60.2"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
b13a079481802d7bc44c9b363f63c74599f11a19 | Donny/κ°λμ€ | 2022-12-14T08:41:21 | refactor(dbg-swc): Cleanup and document reducer (#6647) | diff --git a/crates/dbg-swc/src/test.rs b/crates/dbg-swc/src/es/exec_test.rs
similarity index 93%
rename from crates/dbg-swc/src/test.rs
rename to crates/dbg-swc/src/es/exec_test.rs
index edd4537f9b..71ff9ec7e0 100644
--- a/crates/dbg-swc/src/test.rs
+++ b/crates/dbg-swc/src/es/exec_test.rs
@@ -16,13 +16,14 @@ use trac... | 11 | 105 | 203 |
08ccb8384cd186c18100338db35e99cf4de52daa | HeYunfei | 2022-12-13T06:50:11 | chore(es/minifier): Expose `globals_defs` pass (#6633) | diff --git a/crates/swc_ecma_minifier/src/lib.rs b/crates/swc_ecma_minifier/src/lib.rs
index ab2e602358..83c319ec8a 100644
--- a/crates/swc_ecma_minifier/src/lib.rs
+++ b/crates/swc_ecma_minifier/src/lib.rs
@@ -45,7 +45,7 @@ use swc_ecma_usage_analyzer::marks::Marks;
use swc_ecma_visit::VisitMutWith;
use swc_timer::t... | 1 | 1 | 1 |
b3bbd742bf5a3bc51105e16cf6260b63ef9b124a | Donny/κ°λμ€ | 2022-12-12T06:27:05 | feat(css/compat): Add `Compiler` (#6626)
**Description:**
Visitor patterns are inherently slow, so I decided to merge all compatibility passes into a single pass. | diff --git a/Cargo.lock b/Cargo.lock
index eaab1cd4bf..f3aca0a545 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3372,6 +3372,7 @@ dependencies = [
name = "swc_css_compat"
version = "0.16.0"
dependencies = [
+ "bitflags",
"once_cell",
"serde",
"serde_json",
diff --git a/crates/swc_css_compat/Cargo.toml b/crates/... | 6 | 38 | 0 |
bfdafdbb898aa3429172f71c8d018689133e4fd6 | Alexander Akait | 2022-12-12T05:52:12 | perf(html/codegen): Reduce allocations (#6622) | diff --git a/crates/swc_html_codegen/src/lib.rs b/crates/swc_html_codegen/src/lib.rs
index c3d2fff4b3..22be7a1737 100644
--- a/crates/swc_html_codegen/src/lib.rs
+++ b/crates/swc_html_codegen/src/lib.rs
@@ -3,7 +3,7 @@
#![allow(clippy::match_like_matches_macro)]
pub use std::fmt::Result;
-use std::{iter::Peekable, ... | 1 | 89 | 39 |
2bf78059801d8f07bf31eab6b077d7fb723837f8 | Donny/κ°λμ€ | 2022-12-10T15:38:11 | feat(dbg-swc): Kill `creduce` on drop (#6614) | diff --git a/crates/dbg-swc/src/minify/reduce.rs b/crates/dbg-swc/src/minify/reduce.rs
index 87739b0ad4..6e75d3952a 100644
--- a/crates/dbg-swc/src/minify/reduce.rs
+++ b/crates/dbg-swc/src/minify/reduce.rs
@@ -14,7 +14,7 @@ use swc_common::{SourceMap, GLOBALS};
use tempdir::TempDir;
use crate::{
- util::{all_js... | 2 | 14 | 3 |
538d63eb800506fd8ff44d238d0cb02a1d3cf478 | Donny/κ°λμ€ | 2022-12-08T05:47:35 | perf(css/codegen): Reduce allocations (#6599) | diff --git a/crates/swc_css_codegen/src/lib.rs b/crates/swc_css_codegen/src/lib.rs
index d0648c1eca..907cd57169 100644
--- a/crates/swc_css_codegen/src/lib.rs
+++ b/crates/swc_css_codegen/src/lib.rs
@@ -2,7 +2,7 @@
#![allow(clippy::needless_update)]
pub use std::fmt::Result;
-use std::{str, str::from_utf8};
+use st... | 2 | 52 | 7 |
d8936ade5b34f682af08e01833d629a67c54f888 | Alexander Akait | 2022-12-07T03:44:36 | fix(css/parser): Avoid skipping extra whitespaces (#6592)
**Description:**
- Avoid skipping whitespaces in `[`/`(`/`{` because it is invalid. Whitespaces can be allowed and can be disallowed based on context, we can't apply this logic to any CSS context.
- Also, we already skip whitespaces where it is necessary.... | diff --git a/crates/swc_css_parser/src/parser/macros.rs b/crates/swc_css_parser/src/parser/macros.rs
index 5914f0db97..c8cccfe983 100644
--- a/crates/swc_css_parser/src/parser/macros.rs
+++ b/crates/swc_css_parser/src/parser/macros.rs
@@ -43,28 +43,6 @@ macro_rules! tok_pat {
};
}
-macro_rules! can_ignore_ws {
... | 1 | 0 | 26 |
4de378cb1e170df496b277bc141dacaa1c21738f | Alexander Akait | 2022-12-07T02:53:41 | fix(css/parser): Fix a small bug (#6591) | diff --git a/crates/swc_css_parser/src/parser/syntax/mod.rs b/crates/swc_css_parser/src/parser/syntax/mod.rs
index 1006685e59..ba67b45fbd 100644
--- a/crates/swc_css_parser/src/parser/syntax/mod.rs
+++ b/crates/swc_css_parser/src/parser/syntax/mod.rs
@@ -518,10 +518,9 @@ where
// it to the list of decl... | 1 | 1 | 2 |
f383836bad48a791c93d1f6bd5670a2d19a545d8 | Alexander Akait | 2022-12-07T00:59:29 | chore(css/lexer): Fix typo (#6588) | diff --git a/crates/swc_css_parser/benches/lexer.rs b/crates/swc_css_parser/benches/lexer.rs
index ba1c696deb..3062d30609 100644
--- a/crates/swc_css_parser/benches/lexer.rs
+++ b/crates/swc_css_parser/benches/lexer.rs
@@ -21,7 +21,7 @@ fn bench_stylesheet(b: &mut Bencher, src: &'static str) {
}
fn run(c: &mut Crit... | 1 | 1 | 1 |
78955995a2fd381a9d56a325e368aa29dcc3c7be | Donny/κ°λμ€ | 2022-12-06T13:04:34 | perf(css/minifier): Improve performance (#6583) | diff --git a/crates/swc_css_minifier/src/compressor/rules.rs b/crates/swc_css_minifier/src/compressor/rules.rs
index b5266b2676..c8b5a83c79 100644
--- a/crates/swc_css_minifier/src/compressor/rules.rs
+++ b/crates/swc_css_minifier/src/compressor/rules.rs
@@ -482,12 +482,23 @@ impl Compressor {
pub(super) fn comp... | 1 | 21 | 10 |
d8adc580110e0764686f5aea848425905605daa0 | Donny/κ°λμ€ | 2022-12-06T12:24:55 | chore(ci): Fix benchmark action (#6582) | diff --git a/crates/swc_config/Cargo.toml b/crates/swc_config/Cargo.toml
index db181678ee..d0862112a7 100644
--- a/crates/swc_config/Cargo.toml
+++ b/crates/swc_config/Cargo.toml
@@ -13,3 +13,6 @@ indexmap = "1.6.1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
swc_config... | 7 | 194 | 180 |
4171ee7fb353966c5a11e4701b2bdf28bc895ad1 | Donny/κ°λμ€ | 2022-12-06T11:48:00 | perf(css/minifier): Remove more redundant clones (#6580) | diff --git a/crates/swc_css_ast/src/base.rs b/crates/swc_css_ast/src/base.rs
index 2c8c6b8541..ce6225e09c 100644
--- a/crates/swc_css_ast/src/base.rs
+++ b/crates/swc_css_ast/src/base.rs
@@ -27,6 +27,12 @@ pub enum Rule {
ListOfComponentValues(Box<ListOfComponentValues>),
}
+impl Take for Rule {
+ fn dummy()... | 2 | 73 | 21 |
586bfd5480aa6e0d37cc50505efa61a6343b1bc8 | IWANABETHATGUY | 2022-12-05T00:14:51 | refactor(es/minifier): Remove unnecessary code (#6575) | diff --git a/crates/swc_ecma_minifier/src/lib.rs b/crates/swc_ecma_minifier/src/lib.rs
index f0418bbf9b..359e09d026 100644
--- a/crates/swc_ecma_minifier/src/lib.rs
+++ b/crates/swc_ecma_minifier/src/lib.rs
@@ -171,7 +171,7 @@ pub fn optimize(
options.compress.as_ref(),
comments,
... | 2 | 75 | 75 |
b3ea52f8637998721f6762f93f486892f7676993 | Justin Ridgewell | 2022-12-03T00:23:06 | refactor(common): Cleanup source_map.rs (#6570) | diff --git a/crates/swc_common/src/source_map.rs b/crates/swc_common/src/source_map.rs
index 054a460d9a..7fc14f8bb6 100644
--- a/crates/swc_common/src/source_map.rs
+++ b/crates/swc_common/src/source_map.rs
@@ -1249,17 +1249,13 @@ impl SourceMap {
continue;
}
- let a = match f... | 1 | 3 | 9 |
cd9a6b372ab337a27572fff83b42e7ab419f66a3 | Donny/κ°λμ€ | 2022-11-30T20:26:50 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index fabde6a4f9..f9430a8c8e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3750,7 +3750,7 @@ dependencies = [
[[package]]
name = "swc_ecma_testing"
-version = "0.20.7"
+version = "0.20.8"
dependencies = [
"anyhow",
"hex",
@@ -3977,7 +3977,7 @@ dependencies = [
[[package]]... | 3 | 5 | 5 |
9b58cce10bf5d313b6397c0366222c51db19eaca | IWANABETHATGUY | 2022-11-30T09:30:02 | chore(swc_core): Reexport more modules (#6548) | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index 0c797dd3a0..321fd1a4a1 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -99,11 +99,13 @@ ecma_utils = ["__utils", "__common"]
# Enable swc_ecma_transforms base features
ecma_transforms = ["__ecma_transforms"]
+ecma... | 2 | 13 | 0 |
251e98c05576d0495647e93ae0fe179da7435db9 | Alexander Akait | 2022-11-30T05:07:46 | refactor(css/parser): Canonicalize only if required (#6532) | diff --git a/crates/swc_css_parser/src/parser/at_rules/mod.rs b/crates/swc_css_parser/src/parser/at_rules/mod.rs
index a932854650..9d26cbca81 100644
--- a/crates/swc_css_parser/src/parser/at_rules/mod.rs
+++ b/crates/swc_css_parser/src/parser/at_rules/mod.rs
@@ -187,7 +187,6 @@ where
{
... | 5 | 85 | 285 |
81224b5d67a92c7154a870f07f28d9802be2106e | Yongwook Choi (Leo) | 2022-11-29T07:01:30 | fix(es/minifier): Don't convert a signed integer literal key to a numeric literal (#6529)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6528. | diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs
index 2a7bad6b56..2388f6debf 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs
@@ -95,7 +95,7 @@ impl Pure<'... | 2 | 21 | 1 |
b3b5526be4a7b5f85c2aea22f1ced0a9896730ed | HeYunfei | 2022-11-24T08:44:26 | perf(es/helpers): Improve fast-path for helper detection (#6502) | diff --git a/crates/swc_ecma_transforms_base/src/helpers/mod.rs b/crates/swc_ecma_transforms_base/src/helpers/mod.rs
index 2ef7ff3e0b..a96449f68f 100644
--- a/crates/swc_ecma_transforms_base/src/helpers/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/helpers/mod.rs
@@ -170,15 +170,12 @@ macro_rules! define_helpers {
... | 1 | 3 | 6 |
d957aac056bede3b813a413af49759a6ced61cb6 | OJ Kwon | 2022-11-21T01:38:25 | refactor(binding/wasm): Use binding_macro (#6487) | diff --git a/bindings/binding_core_wasm/src/lib.rs b/bindings/binding_core_wasm/src/lib.rs
index 0ecf9f981e..f83e498c0c 100644
--- a/bindings/binding_core_wasm/src/lib.rs
+++ b/bindings/binding_core_wasm/src/lib.rs
@@ -1,34 +1,10 @@
-use anyhow::Error;
-use serde::Serialize;
-use serde_wasm_bindgen::Serializer;
-use sw... | 2 | 23 | 241 |
5a3ae502bb121aa119f0d795f4bfd3d4d07dad60 | SWC Bot | 2022-11-20T06:53:28 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 1d69c34872..e964386d30 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -779,7 +779,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.130"
+version = "0.58.131"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-s... | 2 | 2 | 2 |
e2b5ac60ecd212df8afb30c4ded454be0330a994 | SWC Bot | 2022-11-16T05:46:06 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 94e4410e0c..9bba666164 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.122"
+version = "0.58.123"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-s... | 2 | 2 | 2 |
f14b156a60bd6b54b08b17e76accb5c108d27679 | OJ Kwon | 2022-11-16T02:55:03 | fix(es/plugins/proxy): Adjust import with compile time flags (#6451) | diff --git a/crates/swc_plugin_proxy/src/comments/plugin_comments_proxy.rs b/crates/swc_plugin_proxy/src/comments/plugin_comments_proxy.rs
index b3ee6f31a2..b1fb40767d 100644
--- a/crates/swc_plugin_proxy/src/comments/plugin_comments_proxy.rs
+++ b/crates/swc_plugin_proxy/src/comments/plugin_comments_proxy.rs
@@ -8,8 +... | 2 | 4 | 5 |
9600308108daa60c142a5a6fddc9c6ef94c12b80 | Donny/κ°λμ€ | 2022-11-15T08:05:43 | feat(css/parser): Add `parse_string_input` (#6441) | diff --git a/crates/swc_css_parser/src/lib.rs b/crates/swc_css_parser/src/lib.rs
index e6ac6451e7..c026f2302b 100644
--- a/crates/swc_css_parser/src/lib.rs
+++ b/crates/swc_css_parser/src/lib.rs
@@ -49,7 +49,22 @@ pub fn parse_file<'a, T>(
where
Parser<Lexer<StringInput<'a>>>: Parse<T>,
{
- let lexer = Lexer:... | 1 | 16 | 1 |
e117bc47f9fe90654e48b252e4a8f814ba8997d7 | SWC Bot | 2022-11-15T05:52:19 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 4e4284e5a5..d1649b756a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.119"
+version = "0.58.120"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-s... | 2 | 2 | 2 |
948e35bcd66b98c460d67b4d58f536ea4d3d5992 | Donny/κ°λμ€ | 2022-11-15T04:50:53 | fix(bindings): Revert #6436 (#6444) | diff --git a/Cargo.lock b/Cargo.lock
index cf513455cf..b5a6a76acc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -174,8 +174,6 @@ dependencies = [
"console_error_panic_hook",
"js-sys",
"once_cell",
- "serde",
- "serde-wasm-bindgen",
"swc",
"swc_common",
"swc_ecma_ast",
@@ -2657,9 +2655,9 @@ dependencies = [
... | 6 | 41 | 87 |
1dd8b3d9d5393fa382345dce3d6977f7d4b5aa63 | OJ Kwon | 2022-11-14T23:46:13 | refactor(bindings): Deprecate `JsValue::*_serde` (#6436) | diff --git a/Cargo.lock b/Cargo.lock
index c5378f291e..42393bdc36 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -174,6 +174,8 @@ dependencies = [
"console_error_panic_hook",
"js-sys",
"once_cell",
+ "serde",
+ "serde-wasm-bindgen",
"swc",
"swc_common",
"swc_ecma_ast",
@@ -2655,9 +2657,9 @@ dependencies = [
... | 6 | 87 | 41 |
9c9c3ebd2c9c4141e3449e19926636a77741980a | Donny/κ°λμ€ | 2022-11-14T05:30:40 | fix(es/modules): Fix `jsc.paths` of `.ts` imports (#6431)
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6432. | diff --git a/crates/swc_ecma_transforms_module/src/path.rs b/crates/swc_ecma_transforms_module/src/path.rs
index f987931f8a..f4edf5b393 100644
--- a/crates/swc_ecma_transforms_module/src/path.rs
+++ b/crates/swc_ecma_transforms_module/src/path.rs
@@ -113,12 +113,24 @@ where
{
fn resolve_import(&self, base: &FileN... | 1 | 13 | 1 |
9de2a123df7088cf8c21702130c0109a2c5fc469 | Donny/κ°λμ€ | 2022-11-14T04:09:46 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index bc7baa8444..c11237ad97 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3678,7 +3678,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.111.47"
+version = "0.111.48"
dependencies = [
"better_scoped_tls",
"bitflags",
diff --git a/crates/swc_e... | 2 | 2 | 2 |
7a1c2a1e2ca98cb897899b1a5def7dba7b6a8b5c | OJ Kwon | 2022-11-13T23:17:41 | refactor(es/plugins): Simplify `read_result_*` (#6426) | diff --git a/crates/swc_plugin_proxy/src/memory_interop/mod.rs b/crates/swc_plugin_proxy/src/memory_interop/mod.rs
index ad7e5a48b7..92cb74df9a 100644
--- a/crates/swc_plugin_proxy/src/memory_interop/mod.rs
+++ b/crates/swc_plugin_proxy/src/memory_interop/mod.rs
@@ -1,6 +1,6 @@
mod read_returned_result_from_host;
pub... | 5 | 75 | 124 |
e25b7389ff4d17ca03c7912c8f94e8c1aa3c7a5d | SWC Bot | 2022-11-13T12:33:33 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index f8c49ce283..4eb24798f1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.112"
+version = "0.58.113"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-s... | 2 | 2 | 2 |
27225a0eeb78f3c2975ec14ef51127b2b9532a84 | SWC Bot | 2022-11-12T08:26:39 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 2318f709b6..3b92df63b9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.110"
+version = "0.58.111"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-s... | 2 | 2 | 2 |
b6c1cc49e142cba6715ac2f7099c3102ffe9273c | Andreas | 2022-11-11T22:47:44 | fix(es/plugin): Print more details on pointer conversion failures (#6378) | diff --git a/crates/swc_common/src/plugin/serialized.rs b/crates/swc_common/src/plugin/serialized.rs
index 1b279ff2ec..f61bbc2fe1 100644
--- a/crates/swc_common/src/plugin/serialized.rs
+++ b/crates/swc_common/src/plugin/serialized.rs
@@ -123,7 +123,7 @@ impl PluginSerializedBytes {
#[tracing::instrument(level = "info... | 15 | 98 | 95 |
56bc6b87948a41ccf8e6e7ac2da0c19ead2b451b | Alexander Akait | 2022-11-10T02:44:53 | refactor(css/parser): Skip whitespaces in correct places (#6382) | diff --git a/crates/swc_css_parser/src/parser/at_rules/mod.rs b/crates/swc_css_parser/src/parser/at_rules/mod.rs
index 3ca096cdd7..c86164dba8 100644
--- a/crates/swc_css_parser/src/parser/at_rules/mod.rs
+++ b/crates/swc_css_parser/src/parser/at_rules/mod.rs
@@ -976,8 +976,6 @@ where
I: ParserInput,
{
fn par... | 3 | 32 | 24 |
434a7657ed7d1705c90711853b1dcdf3579528c8 | Alexander Akait | 2022-11-10T02:10:23 | refactor(css/parser): Union input types (#6385) | diff --git a/crates/swc_css_parser/src/lexer/mod.rs b/crates/swc_css_parser/src/lexer/mod.rs
index 7574eed977..36ab034c43 100644
--- a/crates/swc_css_parser/src/lexer/mod.rs
+++ b/crates/swc_css_parser/src/lexer/mod.rs
@@ -140,7 +140,7 @@ where
{
type State = LexerState;
- fn start_pos(&mut self) -> swc_comm... | 5 | 175 | 218 |
26b21b1d21e1f8d538bfb3c54dd1d528d8586ad2 | OJ Kwon | 2022-11-10T01:05:55 | feat(swc_core): Expose `swc_css_modules` (#6394) | diff --git a/Cargo.lock b/Cargo.lock
index 1a37a99cd6..953c2395d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3175,6 +3175,7 @@ dependencies = [
"swc_css_codegen",
"swc_css_compat",
"swc_css_minifier",
+ "swc_css_modules",
"swc_css_parser",
"swc_css_prefixer",
"swc_css_utils",
diff --git a/crates/swc_core/... | 3 | 9 | 0 |
4d49b9f61f226551d96e8e3210702366a5a1b885 | Alexander Akait | 2022-11-09T01:50:12 | refactor(css/parser): Avoid unnecessary checks (#6383) | diff --git a/crates/swc_css_parser/src/parser/values_and_units/mod.rs b/crates/swc_css_parser/src/parser/values_and_units/mod.rs
index 5ee22455df..72d793f060 100644
--- a/crates/swc_css_parser/src/parser/values_and_units/mod.rs
+++ b/crates/swc_css_parser/src/parser/values_and_units/mod.rs
@@ -1096,7 +1096,7 @@ where
... | 1 | 3 | 3 |
2de45fb0f7f0afbf2a15a6a27776a43faacebffc | Austaras | 2022-11-05T18:31:02 | fix(es/compat): Handle a nullish coalescing in a switch case (#6363) | diff --git a/crates/swc_ecma_transforms_compat/src/es2020/nullish_coalescing/mod.rs b/crates/swc_ecma_transforms_compat/src/es2020/nullish_coalescing/mod.rs
index 0555316843..ece24839d6 100644
--- a/crates/swc_ecma_transforms_compat/src/es2020/nullish_coalescing/mod.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2020... | 2 | 14 | 1 |
3bea6f7248826a3865a2148ce65c6cbaa9d03790 | Alexander Akait | 2022-11-02T07:06:52 | fix(es/compat): Fix destructuring of an empty array (#6314) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs b/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
index e915c3a949..d2c2669a80 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
@@ -160,8... | 2 | 27 | 2 |
06a664a1f457899457f92b0f7931a07093d2743d | SWC Bot | 2022-11-02T04:56:02 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 947ebe3de8..ed04c9556d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.91"
+version = "0.58.92"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
1024a552cf6f470cef0e971f207d6023804ea514 | Fy | 2022-10-29T07:29:37 | refactor(es): Accept custom instance of `Comments` (#6290) | diff --git a/crates/binding_macros/src/wasm.rs b/crates/binding_macros/src/wasm.rs
index cca12cd688..a5e2aff01d 100644
--- a/crates/binding_macros/src/wasm.rs
+++ b/crates/binding_macros/src/wasm.rs
@@ -327,6 +327,7 @@ macro_rules! build_transform_sync {
None,
... | 3 | 51 | 18 |
47d7fcaaedb97d1ce28727de6c22698fc2d0d11b | Justin Ridgewell | 2022-10-28T01:24:13 | fix(common): Remove `&mut` from `build_source_map_from` (#6276) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index e3c6b40cf6..66221b949e 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -495,7 +495,7 @@ impl Compiler {
self.cm
.build_source_map_with_config(
- &mut ... | 2 | 5 | 5 |
c255cfd71609ebc7aeb0bd2d0d01ede6ae5c5e08 | Alexander Akait | 2022-10-27T03:47:37 | refactor(html/parser): Refactor (#6267) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index e8049b4645..b94f8616b0 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -234,7 +234,7 @@ where
take(&mut self.errors)
}
- fn set_last_start_tag_nam... | 3 | 54 | 66 |
2f613321779cfa7a3ccb9d3fd6c7789459723f0f | Matt Brubeck | 2022-10-27T01:21:36 | chore(common): Switch to `new_debug_unreachable` (#6265) | diff --git a/Cargo.lock b/Cargo.lock
index 166148ed85..7af31fc7a7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -802,15 +802,6 @@ dependencies = [
"url",
]
-[[package]]
-name = "debug_unreachable"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a032eac705ca39214d169... | 2 | 16 | 40 |
28ec6e8fc70cf74722c93353c03e4fdedb21954a | suxin2017 | 2022-10-26T12:29:05 | fix(es/typescript): Fix stack overflow (#6250) | diff --git a/crates/swc_ecma_transforms_typescript/src/strip.rs b/crates/swc_ecma_transforms_typescript/src/strip.rs
index ea8f6d9839..923290b8ac 100644
--- a/crates/swc_ecma_transforms_typescript/src/strip.rs
+++ b/crates/swc_ecma_transforms_typescript/src/strip.rs
@@ -594,12 +594,6 @@ where
i... | 2 | 13 | 6 |
4d85006572f3ea44021a96f1ad4ecbd571c0f36c | SWC Bot | 2022-10-26T06:33:11 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index c22078db68..4abd6f1fc6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.72"
+version = "0.58.73"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
c28533f725377c2c9746ae752749e17dd37b6bed | Donny/κ°λμ€ | 2022-10-24T03:54:57 | build(bindings): Revert jemallloc bump (#6241) | diff --git a/Cargo.lock b/Cargo.lock
index ac6b435971..20f6c83e06 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4546,9 +4546,9 @@ dependencies = [
[[package]]
name = "tikv-jemalloc-sys"
-version = "0.5.2+5.3.0-patched"
+version = "0.4.3+5.2.1-patched.2"
source = "registry+https://github.com/rust-lang/crates.io-inde... | 2 | 5 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.