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 |
|---|---|---|---|---|---|---|---|
e8214babf5ad405c7be1f2391a3be01ab355178f | OJ Kwon | 2022-07-08T06:02:42 | refactor(plugin): Refactor transform executor (#5147) | diff --git a/crates/swc/src/plugin.rs b/crates/swc/src/plugin.rs
index 1ee0d40f0b..eef298f26a 100644
--- a/crates/swc/src/plugin.rs
+++ b/crates/swc/src/plugin.rs
@@ -95,8 +95,10 @@ impl RustPlugins {
inner: self.comments.clone(),
},
|| {
+ let span = tracing::s... | 10 | 171 | 147 |
4f87396b3b4ca1ec75eff77567f001ea5092598a | OJ Kwon | 2022-07-08T01:37:46 | fix(cli): Constructs config file correctly (#5146) | diff --git a/crates/swc_cli/src/commands/compile.rs b/crates/swc_cli/src/commands/compile.rs
index 26a68b4af2..c03596d143 100644
--- a/crates/swc_cli/src/commands/compile.rs
+++ b/crates/swc_cli/src/commands/compile.rs
@@ -12,7 +12,7 @@ use path_absolutize::Absolutize;
use rayon::prelude::*;
use relative_path::Relati... | 1 | 4 | 7 |
76de91146661a7b1b72e81f91787e57943040481 | Donny/๊ฐ๋์ค | 2022-07-07T08:09:38 | doc(visit): Add docs for visitors (#5137) | diff --git a/crates/swc_visit/src/lib.rs b/crates/swc_visit/src/lib.rs
index ffb671cfb2..06c64ee954 100644
--- a/crates/swc_visit/src/lib.rs
+++ b/crates/swc_visit/src/lib.rs
@@ -82,6 +82,15 @@
//! ```
//!
//! If you want to allow using path-aware visitor.
+//!
+//!
+//! # Path-aware visitor
+//!
+//! Path-aware vis... | 2 | 128 | 4 |
82fbe15a57e51ae444c3846fe6a512af297e0087 | OJ Kwon | 2022-07-07T07:46:49 | feat(plugin): Wrap serialized struct with a version (#5128) | diff --git a/crates/swc/src/plugin.rs b/crates/swc/src/plugin.rs
index b5d90245a7..1ee0d40f0b 100644
--- a/crates/swc/src/plugin.rs
+++ b/crates/swc/src/plugin.rs
@@ -80,7 +80,10 @@ impl RustPlugins {
use std::{path::PathBuf, sync::Arc};
use anyhow::Context;
- use swc_common::{plugin::PluginS... | 19 | 200 | 129 |
9d4be11f2ef0b9245a1626717f9c75e0220e5dfa | ไธไธ | 2022-07-07T07:23:21 | doc(es/parser): Typo (#5136) | diff --git a/crates/swc_ecma_parser/src/lib.rs b/crates/swc_ecma_parser/src/lib.rs
index 72c0e5a77d..adafa81dce 100644
--- a/crates/swc_ecma_parser/src/lib.rs
+++ b/crates/swc_ecma_parser/src/lib.rs
@@ -208,13 +208,13 @@ impl Syntax {
)
}
- /// Should we pare typescript?
+ /// Should we parse type... | 1 | 2 | 2 |
f26d59b7701f5d7f6cf25055c1ed0e37da6964a1 | Donny/๊ฐ๋์ค | 2022-07-07T06:16:24 | feat(visit): Implement more traits for `AstKind` (#5135) | diff --git a/crates/swc_visit_macros/src/lib.rs b/crates/swc_visit_macros/src/lib.rs
index b748aade0b..323548b34f 100644
--- a/crates/swc_visit_macros/src/lib.rs
+++ b/crates/swc_visit_macros/src/lib.rs
@@ -294,7 +294,7 @@ fn make_ast_enum(types: &[Type], is_ref: bool) -> Item {
style: AttrStyle::Outer,
... | 1 | 1 | 1 |
46b1b42c3c8ceafadfdc30973344eaded5a52bda | Donny/๊ฐ๋์ค | 2022-07-07T05:36:55 | feat(visit): Implement `Eq` for `AstKind` (#5133) | diff --git a/crates/swc_visit_macros/src/lib.rs b/crates/swc_visit_macros/src/lib.rs
index 94d86fc9a7..b748aade0b 100644
--- a/crates/swc_visit_macros/src/lib.rs
+++ b/crates/swc_visit_macros/src/lib.rs
@@ -288,6 +288,15 @@ fn make_ast_enum(types: &[Type], is_ref: bool) -> Item {
path: q!({ derive }).parse(),
... | 1 | 9 | 0 |
2d94797975ee162837b24283c8b738f282586a4d | Edwin Coronado | 2022-07-07T04:35:49 | feat(es/parser): Support `d` in regex flag for es2022 (#5127) | diff --git a/crates/swc_ecma_parser/src/parser/expr.rs b/crates/swc_ecma_parser/src/parser/expr.rs
index 50e8f04d09..63feec5b18 100644
--- a/crates/swc_ecma_parser/src/parser/expr.rs
+++ b/crates/swc_ecma_parser/src/parser/expr.rs
@@ -334,7 +334,7 @@ impl<I: Tokens> Parser<I> {
AHashMap::<c... | 6 | 18 | 2 |
528d4c5aa45f4a7445fcc7b50eb71302d3631190 | Austaras | 2022-07-05T10:49:05 | fix(es/fixer): Preserve parens in more opt calls (#5111) | diff --git a/crates/swc_ecma_transforms_base/src/fixer.rs b/crates/swc_ecma_transforms_base/src/fixer.rs
index 73284b7604..e3c02fc4ee 100644
--- a/crates/swc_ecma_transforms_base/src/fixer.rs
+++ b/crates/swc_ecma_transforms_base/src/fixer.rs
@@ -100,12 +100,9 @@ impl Fixer<'_> {
fn wrap_callee(&mut self, e: &mut ... | 1 | 25 | 20 |
3e3c44a0b64c55b4d976a4dafbb999000612d14a | magic-akari | 2022-07-05T09:55:21 | fix(es/fixer): Preserve parens in opt calls (#5110) | diff --git a/crates/swc_ecma_transforms_base/src/fixer.rs b/crates/swc_ecma_transforms_base/src/fixer.rs
index 26d7fd6c90..73284b7604 100644
--- a/crates/swc_ecma_transforms_base/src/fixer.rs
+++ b/crates/swc_ecma_transforms_base/src/fixer.rs
@@ -100,9 +100,12 @@ impl Fixer<'_> {
fn wrap_callee(&mut self, e: &mut ... | 1 | 10 | 3 |
8ea631c7669356905fb7defd6aeb0fb0602ec458 | Donny/๊ฐ๋์ค | 2022-07-05T07:26:01 | doc(visit): Generate rustdoc (#5107) | diff --git a/crates/swc_css_visit/src/lib.rs b/crates/swc_css_visit/src/lib.rs
index 72d72079ed..3a3d8336a0 100644
--- a/crates/swc_css_visit/src/lib.rs
+++ b/crates/swc_css_visit/src/lib.rs
@@ -1,3 +1,4 @@
+#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(clippy::all)]
#![allow(clippy::ptr_arg)]
diff --git a/crates/... | 4 | 21 | 18 |
97aa09eaa23b49b5c3ceae96ce2c25a9befaacde | Donny/๊ฐ๋์ค | 2022-07-05T05:17:30 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index ce91a24e6d..aa7808d78c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3089,7 +3089,7 @@ dependencies = [
[[package]]
name = "swc_common"
-version = "0.20.1"
+version = "0.20.2"
dependencies = [
"ahash",
"anyhow",
@@ -3273,7 +3273,7 @@ dependencies = [
[[package]]
na... | 7 | 20 | 20 |
60424db67b3c9bc0d36012249e16ebaa2100f299 | Donny/๊ฐ๋์ค | 2022-07-01T03:00:04 | chore: Workaround cargo mono bug | diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml
index 41d3b84ef5..8bb6e3fc0d 100644
--- a/crates/swc_ecma_transforms/Cargo.toml
+++ b/crates/swc_ecma_transforms/Cargo.toml
@@ -19,9 +19,9 @@ bench = false
[features]
compat = ["swc_ecma_transforms_compat"]
concurrent = [
- "... | 1 | 19 | 19 |
e1aa937183ca3c803be9665ec0a683b679bfc29f | OJ Kwon | 2022-06-30T01:21:12 | feat(plugin): Allow taking the inner data from versioned (#5071) | diff --git a/crates/swc_common/src/plugin.rs b/crates/swc_common/src/plugin.rs
index afc77ad33f..ff55d2c706 100644
--- a/crates/swc_common/src/plugin.rs
+++ b/crates/swc_common/src/plugin.rs
@@ -4,7 +4,7 @@
//! `swc_common`.
#![allow(unused)]
-use std::any::type_name;
+use std::{any::type_name, mem};
use anyhow:... | 2 | 31 | 2 |
34f4f5a3bc7797e2b9b192671cf68b63ea0dd25c | Donny/๊ฐ๋์ค | 2022-06-29T12:02:33 | feat(atoms): Improve atoms (#5066) | diff --git a/Cargo.lock b/Cargo.lock
index b3dc2d7b74..e494dda246 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3114,6 +3114,7 @@ dependencies = [
"siphasher",
"sourcemap",
"string_cache",
+ "swc_atoms",
"swc_eq_ignore_macros",
"swc_visit",
"termcolor",
diff --git a/crates/swc_atoms/src/lib.rs b/crates/swc_a... | 4 | 31 | 3 |
2e139f144126636a5d44ae3866cf858426a1bb8e | Donny/๊ฐ๋์ค | 2022-06-29T04:08:29 | perf(atoms): More groundwork for replacing `JsWord` with `Atom` (#5064) | diff --git a/crates/ast_node/src/lib.rs b/crates/ast_node/src/lib.rs
index 8685cc3128..0716425eef 100644
--- a/crates/ast_node/src/lib.rs
+++ b/crates/ast_node/src/lib.rs
@@ -220,7 +220,8 @@ pub fn ast_node(
#[cfg_attr(
feature = "rkyv",
archive(bound(
- ... | 8 | 48 | 20 |
e34a864390dc6a8a0d78cc60af458be37031e30f | OJ Kwon | 2022-06-29T03:35:23 | feat(plugin): Add versioned wrapper struct (#5062) | diff --git a/Cargo.lock b/Cargo.lock
index f9fad99b65..a19748f371 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2994,6 +2994,7 @@ dependencies = [
name = "swc_atoms"
version = "0.2.12"
dependencies = [
+ "bytecheck",
"once_cell",
"rkyv",
"rustc-hash",
@@ -3096,6 +3097,7 @@ dependencies = [
"ast_node",
"atty... | 22 | 169 | 14 |
374366d56ca431dc892b390efaf090ee4d116100 | OJ Kwon | 2022-06-28T18:29:00 | chore(deps): Update `rkyv` (#5057) | diff --git a/Cargo.lock b/Cargo.lock
index 677317dcc6..dd5b54f17e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -294,9 +294,9 @@ checksum = "a4a45a46ab1f2412e53d3a0ade76ffad2025804294569aae387231a0cd6e0899"
[[package]]
name = "bytecheck"
-version = "0.6.7"
+version = "0.6.8"
source = "registry+https://github.com/rus... | 6 | 30 | 26 |
a15bb485241b2a5fb2ecbbd56558dcb5915b8ff4 | Donny/๊ฐ๋์ค | 2022-06-28T06:55:59 | feat(es/minifier): Handle pure annotations on member expressions (#5050) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/misc.rs b/crates/swc_ecma_minifier/src/compress/pure/misc.rs
index e1821c5042..7dbed4ef4b 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/misc.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/misc.rs
@@ -1,4 +1,4 @@
-use std::{fmt::Write, num::FpCategor... | 1 | 15 | 1 |
70770e0fd250177e02a26dac77c6cfc1978348b4 | Donny/๊ฐ๋์ค | 2022-06-28T04:13:00 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 4c5193711a..4816a11ddd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3914,7 +3914,7 @@ dependencies = [
[[package]]
name = "swc_html"
-version = "0.21.0"
+version = "0.22.0"
dependencies = [
"swc_html_ast",
"swc_html_codegen",
@@ -3925,7 +3925,7 @@ dependencies = [
... | 7 | 27 | 27 |
f238093c3b54e5a6e9d46239c28ab936de7d68e9 | magic-akari | 2022-06-25T10:02:43 | fix(es/parser): Allow initializer of the var of for-in loop in non-strict mode (#5038) | diff --git a/crates/swc_ecma_parser/src/parser/stmt.rs b/crates/swc_ecma_parser/src/parser/stmt.rs
index b0d1b1fbb0..f73c2b39e6 100644
--- a/crates/swc_ecma_parser/src/parser/stmt.rs
+++ b/crates/swc_ecma_parser/src/parser/stmt.rs
@@ -1130,7 +1130,7 @@ impl<'a, I: Tokens> Parser<I> {
self.emit_... | 3 | 8 | 1 |
8bf924ae5f7305d1db65cf5a9b09f76cb7903e2b | Alexander Akait | 2022-06-25T05:33:22 | feat(html/codegen): Improve API (#5031) | diff --git a/crates/swc_html_codegen/src/ctx.rs b/crates/swc_html_codegen/src/ctx.rs
index 66b41d7292..d7f3ced9b1 100644
--- a/crates/swc_html_codegen/src/ctx.rs
+++ b/crates/swc_html_codegen/src/ctx.rs
@@ -2,13 +2,13 @@ use std::ops::{Deref, DerefMut};
use crate::{writer::HtmlWriter, CodeGenerator};
-impl<W> Code... | 11 | 96 | 63 |
a057183230303cc874a6f7c236cf0ea11fe24f2f | Alexander Akait | 2022-06-23T03:03:32 | perf(html/parser): Improve performance (#5028) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index f6fc055fbe..08360dba2e 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -319,13 +319,11 @@ where
#[inline(always)]
fn emit_token(&mut self, token: Token) ... | 1 | 101 | 98 |
fd73895a7be31b24a2795e38c1e7729086656023 | Donny/๊ฐ๋์ค | 2022-06-21T05:45:34 | fix(es/transforms): Add custom `Sync` + `Send` for the renamer (#5018) | diff --git a/crates/swc_ecma_transforms_base/src/rename/mod.rs b/crates/swc_ecma_transforms_base/src/rename/mod.rs
index 38300fbbf5..b27a854fa7 100644
--- a/crates/swc_ecma_transforms_base/src/rename/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/rename/mod.rs
@@ -6,6 +6,10 @@ use swc_common::collections::AHashMap;
... | 1 | 21 | 1 |
e85c0db92689d0eaf656ac869b6cb16ebec43b6f | Donny/๊ฐ๋์ค | 2022-06-18T04:24:08 | feat(es/config): Add `isModule` to `.swcrc` (#4993) | diff --git a/crates/swc/benches/bugs.rs b/crates/swc/benches/bugs.rs
index db7effc86d..03bfaf09e1 100644
--- a/crates/swc/benches/bugs.rs
+++ b/crates/swc/benches/bugs.rs
@@ -3,7 +3,7 @@ extern crate swc_node_base;
use std::{io::stderr, path::Path};
use criterion::{criterion_group, criterion_main, Bencher, Criterio... | 10 | 81 | 39 |
0782c533b55a8da177b91eb1914daa845c1ce0a1 | Donny/๊ฐ๋์ค | 2022-06-15T04:59:06 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 2cef4554c1..f947d1fe5e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3558,7 +3558,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.89.2"
+version = "0.89.3"
dependencies = [
"better_scoped_tls",
"criterion",
@@ -3637,7 +3637,7 @@ depend... | 3 | 4 | 4 |
99a474cb2d18f2741277a64b8524300d3977cc66 | Donny/๊ฐ๋์ค | 2022-06-14T16:33:38 | refactor(es/minifier): Use `Program` instead of `Module` (#4969) | diff --git a/crates/dbg-swc/src/minify/diff_options.rs b/crates/dbg-swc/src/minify/diff_options.rs
index 21b43c14ee..b7dce4e875 100644
--- a/crates/dbg-swc/src/minify/diff_options.rs
+++ b/crates/dbg-swc/src/minify/diff_options.rs
@@ -64,7 +64,7 @@ impl DiffOptionCommand {
let orig = {
let m = m.c... | 20 | 79 | 121 |
3e03ebf8bb527d3237b309c3df3a24bc9ebf7314 | Donny/๊ฐ๋์ค | 2022-06-14T07:05:35 | fix(es/parser): Don't assume the length of char (#4967) | diff --git a/crates/swc_css_parser/tests/fixture.rs b/crates/swc_css_parser/tests/fixture.rs
index bc31e420c9..480f154bf4 100644
--- a/crates/swc_css_parser/tests/fixture.rs
+++ b/crates/swc_css_parser/tests/fixture.rs
@@ -1,3 +1,4 @@
+#![deny(warnings)]
#![allow(clippy::needless_update)]
use std::path::PathBuf;
@@... | 6 | 61 | 25 |
709ad3e087e833c5bc69c887ca963e4b7a9a81f7 | Donny/๊ฐ๋์ค | 2022-06-14T05:11:47 | fix(ci): Revert malloc changes | diff --git a/Cargo.lock b/Cargo.lock
index 2e9264c0d6..5c583c7b45 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -958,6 +958,12 @@ dependencies = [
"syn",
]
+[[package]]
+name = "fs_extra"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2022715d62ab30faffd124d40b76f41... | 3 | 43 | 10 |
445d58518dc1ea5ab670f4e3d9e8b833108e1cf7 | Donny/๊ฐ๋์ค | 2022-06-13T08:10:09 | perf(es/transforms): Make rename operator parallel (#4951) | diff --git a/crates/swc_ecma_transforms_base/src/hygiene/mod.rs b/crates/swc_ecma_transforms_base/src/hygiene/mod.rs
index cd1f1bcc9a..a00154edfa 100644
--- a/crates/swc_ecma_transforms_base/src/hygiene/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/hygiene/mod.rs
@@ -126,7 +126,11 @@ pub struct Config {
}
pub fn... | 3 | 259 | 115 |
42a1d7c7a11120b8be8dbd7a29a6401d60062d70 | Alexander Akait | 2022-06-12T03:02:15 | refactor(html/parser): Remove unused code (#4949) | diff --git a/crates/swc_html_parser/src/parser/input.rs b/crates/swc_html_parser/src/parser/input.rs
index c6ae8b4fb1..ef95cdfaaf 100644
--- a/crates/swc_html_parser/src/parser/input.rs
+++ b/crates/swc_html_parser/src/parser/input.rs
@@ -26,7 +26,6 @@ where
I: ParserInput,
{
cur: Option<TokenAndSpan>,
- ... | 1 | 1 | 10 |
4ada9c7e05d1d61e061bf6af5830d10580d671eb | Donny/๊ฐ๋์ค | 2022-06-11T15:58:21 | perf(common): Add `Atom` type (#4945) | diff --git a/Cargo.lock b/Cargo.lock
index fa71ba459d..91c3a1f864 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2994,6 +2994,10 @@ dependencies = [
name = "swc_atoms"
version = "0.2.11"
dependencies = [
+ "once_cell",
+ "rkyv",
+ "rustc-hash",
+ "serde",
"string_cache",
"string_cache_codegen",
]
diff --git a/cra... | 3 | 147 | 0 |
f479951ef2f1c9eff8e020c9fc46e78e16855a24 | nils | 2022-06-11T11:16:08 | fix(common): Don't use `get_unchecked` after setting the length to 0 (#4943) | diff --git a/crates/swc_visit/src/util/move_map.rs b/crates/swc_visit/src/util/move_map.rs
index 811a4e20a3..69b85a22fc 100644
--- a/crates/swc_visit/src/util/move_map.rs
+++ b/crates/swc_visit/src/util/move_map.rs
@@ -35,12 +35,12 @@ impl<T> MoveMap<T> for Vec<T> {
while read_i < old_len {
... | 1 | 4 | 4 |
a70c7375062f828fd47dd2bc0562b18a3c9cdd6f | Donny/๊ฐ๋์ค | 2022-06-11T07:46:53 | fix(es/transforms): Fix threshold | diff --git a/crates/swc_ecma_transforms_macros/src/parallel.rs b/crates/swc_ecma_transforms_macros/src/parallel.rs
index 7210b4e8a4..96edb99bf7 100644
--- a/crates/swc_ecma_transforms_macros/src/parallel.rs
+++ b/crates/swc_ecma_transforms_macros/src/parallel.rs
@@ -29,10 +29,10 @@ pub fn expand(attr: TokenStream, mut ... | 1 | 2 | 2 |
286f265632b1af6a2b6ebdd495a0c9a5e7af6260 | Artur | 2022-06-11T06:22:26 | refactor(es/lints): Simplify `no-empty-pattern` rule (#4928) | diff --git a/crates/swc_ecma_lints/src/rules/no_empty_pattern.rs b/crates/swc_ecma_lints/src/rules/no_empty_pattern.rs
index 0e71e143d8..38d5dc4d1e 100644
--- a/crates/swc_ecma_lints/src/rules/no_empty_pattern.rs
+++ b/crates/swc_ecma_lints/src/rules/no_empty_pattern.rs
@@ -1,6 +1,6 @@
use swc_common::{errors::HANDLER... | 1 | 10 | 49 |
f993a526797ec3e2119828b129bf9aad3b1c28d8 | Alexander Akait | 2022-06-11T04:37:01 | perf(html/parser): Improve performance (#4934) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index 379b2cf4d7..738d821f83 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -1,4 +1,4 @@
-use std::{char::REPLACEMENT_CHARACTER, mem::take};
+use std::{char::REPLACEMENT_... | 2 | 11 | 12 |
b30032dd46124b476c3e0ebd94a1845120161ff1 | OJ Kwon | 2022-06-10T12:54:17 | feat(plugin): Upgrade `wasmer` (#4929) | diff --git a/Cargo.lock b/Cargo.lock
index 64bb635580..f373933516 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -18,7 +18,7 @@ version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b"
dependencies = [
- "gimli 0.26... | 8 | 187 | 85 |
5bb417ef88b545505d24ccf5dad8b72b13a58fcd | Austaras | 2022-06-10T06:11:05 | fix(es/fixer): Preserve parens in optional calls (#4923) | diff --git a/crates/swc_ecma_transforms_base/src/fixer.rs b/crates/swc_ecma_transforms_base/src/fixer.rs
index 2ddd76d360..26d7fd6c90 100644
--- a/crates/swc_ecma_transforms_base/src/fixer.rs
+++ b/crates/swc_ecma_transforms_base/src/fixer.rs
@@ -79,6 +79,37 @@ macro_rules! array {
};
}
+impl Fixer<'_> {
+ f... | 1 | 43 | 22 |
d669454157da62f9bec4b078230e4e372efd91e3 | Alexander Akait | 2022-06-10T05:45:32 | perf(html/parser): Add a benchmark for document fragment (#4920) | diff --git a/crates/swc_html_parser/benches/compare.rs b/crates/swc_html_parser/benches/compare.rs
index 35f223d591..c556308fe1 100644
--- a/crates/swc_html_parser/benches/compare.rs
+++ b/crates/swc_html_parser/benches/compare.rs
@@ -2,13 +2,13 @@ extern crate swc_node_base;
use criterion::{black_box, criterion_gro... | 3 | 166 | 20 |
299da10ff947eddc4a44d24f8e43a435b89e7b89 | Alexander Akait | 2022-06-10T03:30:40 | chore(html/parser): Remove unused dependencies (#4922) | diff --git a/Cargo.lock b/Cargo.lock
index db53e7dd13..7ba01c7342 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3952,9 +3952,7 @@ dependencies = [
name = "swc_html_parser"
version = "0.12.0"
dependencies = [
- "bitflags",
"criterion",
- "lexical",
"serde",
"serde_json",
"swc_atoms",
diff --git a/crates/swc_ht... | 2 | 0 | 4 |
f7c89c5b601e2fa71eb2f2c0ce56a717fb469c0b | Pig Fang | 2022-06-08T04:18:16 | feat(preset-env): Upgrade `browserslist-rs` (#4903) | diff --git a/Cargo.lock b/Cargo.lock
index 65f8ad1f82..fd67c0396e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -252,9 +252,9 @@ dependencies = [
[[package]]
name = "browserslist-rs"
-version = "0.10.0"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e55d9cadf66efd56... | 2 | 8 | 9 |
ce4d57735e6cfe240967c8d4c6655bfaca107eea | Alexander Akait | 2022-06-06T03:35:22 | perf(html/parser): Improve memory allocation (#4884) | diff --git a/crates/swc_html_parser/src/parser/active_formatting_element_stack.rs b/crates/swc_html_parser/src/parser/active_formatting_element_stack.rs
index b8d5ff4493..a2aae44954 100644
--- a/crates/swc_html_parser/src/parser/active_formatting_element_stack.rs
+++ b/crates/swc_html_parser/src/parser/active_formattin... | 3 | 68 | 94 |
b14719c046584878424f794a86c7a0793f7033be | Alexander Akait | 2022-06-06T03:00:14 | refactor(html/ast): Avoid `TokenAndSpan` (#4885) | diff --git a/crates/swc_html_ast/src/token.rs b/crates/swc_html_ast/src/token.rs
index e8f054ca7a..1da6af23bc 100644
--- a/crates/swc_html_ast/src/token.rs
+++ b/crates/swc_html_ast/src/token.rs
@@ -17,13 +17,11 @@ pub struct AttributeToken {
pub name: JsWord,
pub raw_name: Option<JsWord>,
pub value: Opt... | 5 | 14 | 274 |
3812fb2eb0286a94940d77442e7f7b991c6c28b7 | Donny/๊ฐ๋์ค | 2022-06-05T20:22:39 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 40fc51035d..1c5a66a82f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3279,7 +3279,7 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
-version = "0.109.0"
+version = "0.109.1"
dependencies = [
"criterion",
"memchr",
@@ -3299,7 +3299,7 @@ dependencies = [
[[p... | 3 | 5 | 5 |
6bc33cb042ee3b95010735f34ec3d30d52fb7f40 | OJ Kwon | 2022-06-05T14:40:55 | feat(es/codegen): Support other source map implementations (#4879) | diff --git a/Cargo.lock b/Cargo.lock
index 134fb6f8c4..7254177a7d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3264,6 +3264,7 @@ name = "swc_ecma_ast"
version = "0.78.1"
dependencies = [
"arbitrary",
+ "bitflags",
"is-macro",
"num-bigint",
"rkyv",
@@ -3280,7 +3281,6 @@ dependencies = [
name = "swc_ecma_codeg... | 25 | 396 | 201 |
8b67bb99fa98f2ad7299d309e30e3d6c1208232f | Alexander Akait | 2022-06-03T04:58:46 | perf(html/parser): Improve lexer performance (#4869) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index 7f79fa5891..210fa93af4 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -160,7 +160,6 @@ where
cur: Option<char>,
cur_pos: BytePos,
last_token_pos: Byt... | 1 | 180 | 173 |
fd3501bf87f4e711e72e9e8fd12f64f4cfa08157 | Donny/๊ฐ๋์ค | 2022-06-01T02:51:24 | feat(wasm): Add json error (#4853) | diff --git a/crates/binding_core_node/src/minify.rs b/crates/binding_core_node/src/minify.rs
index 26f548b655..37d3c70d83 100644
--- a/crates/binding_core_node/src/minify.rs
+++ b/crates/binding_core_node/src/minify.rs
@@ -5,7 +5,10 @@ use napi::{
Task,
};
use serde::Deserialize;
-use swc::{config::JsMinifyOptio... | 14 | 102 | 33 |
c462d4d7c6488a01416fcd7ea8759461e2c3a97a | Donny/๊ฐ๋์ค | 2022-05-28T19:00:53 | fix(node): Fix logging (#4833) | diff --git a/crates/swc_nodejs_common/Cargo.toml b/crates/swc_nodejs_common/Cargo.toml
index dcfb9639b8..fc175b88fb 100644
--- a/crates/swc_nodejs_common/Cargo.toml
+++ b/crates/swc_nodejs_common/Cargo.toml
@@ -19,6 +19,6 @@ napi = { version = "2", default-features = false, features = [
] }
serde = { version = "1", f... | 2 | 3 | 2 |
29884b0caf02d0daea73eeff47b2e6cf93ec3acd | Pig Fang | 2022-05-27T06:22:36 | feat(css/ast): Add missing `Is` derive (#4810) | diff --git a/crates/swc_css_ast/src/at_rule.rs b/crates/swc_css_ast/src/at_rule.rs
index 928394e3c8..e2c2484469 100644
--- a/crates/swc_css_ast/src/at_rule.rs
+++ b/crates/swc_css_ast/src/at_rule.rs
@@ -332,7 +332,7 @@ pub struct MediaFeatureBoolean {
pub name: MediaFeatureName,
}
-#[derive(StringEnum, Clone, C... | 5 | 9 | 8 |
a487fc1d2827b5922eed0a03227da3e7a1371502 | Donny/๊ฐ๋์ค | 2022-05-26T15:58:19 | refactor(es/transforms): Remove `concurrent` (#4808) | diff --git a/crates/swc_ecma_transforms/Cargo.toml b/crates/swc_ecma_transforms/Cargo.toml
index f8dfd2a748..12a4ceb838 100644
--- a/crates/swc_ecma_transforms/Cargo.toml
+++ b/crates/swc_ecma_transforms/Cargo.toml
@@ -18,7 +18,6 @@ bench = false
[features]
compat = ["swc_ecma_transforms_compat"]
-concurrent = []
... | 19 | 12 | 493 |
f4c6a20654ac172ce84e7fc0e0c5d7c98acbc535 | Donny/๊ฐ๋์ค | 2022-05-26T13:06:43 | fix(es/modules): Fix lazy option of common js (#4807) | diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs
index 523a8af6d2..36e7a63019 100644
--- a/crates/swc_ecma_transforms_module/src/common_js.rs
+++ b/crates/swc_ecma_transforms_module/src/common_js.rs
@@ -69,13 +69,13 @@ pub fn common_js_with_resolver(
... | 3 | 72 | 35 |
2b03047cb088b96e5c054055780b54e4f48ae486 | OJ Kwon | 2022-05-25T18:08:49 | fix(es/modules): Fix local scoped amd require (#4800) | diff --git a/crates/swc_ecma_transforms_module/src/amd.rs b/crates/swc_ecma_transforms_module/src/amd.rs
index 6041573e89..d853af8637 100644
--- a/crates/swc_ecma_transforms_module/src/amd.rs
+++ b/crates/swc_ecma_transforms_module/src/amd.rs
@@ -63,28 +63,10 @@ impl LocalScopedRequireVisitor {
}
impl Visit for Loc... | 2 | 69 | 32 |
8894e77bc15d63080c5d91048734b33a8f299369 | Alexander Akait | 2022-05-25T17:33:15 | perf(html/parser): Improve lexer (#4796) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index 4748c9de6f..837f6c2c26 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -124,7 +124,7 @@ where
state: State,
return_state: State,
errors: Vec<Error>,
-... | 3 | 9 | 18 |
6f04e846394df4bcf1e82748cd5df739b7df7a96 | Donny/๊ฐ๋์ค | 2022-05-25T08:10:44 | perf(common): Use `jemalloc` for linux (#4791) | diff --git a/crates/swc_node_base/Cargo.toml b/crates/swc_node_base/Cargo.toml
index 18aafdba38..e4c83a15c5 100644
--- a/crates/swc_node_base/Cargo.toml
+++ b/crates/swc_node_base/Cargo.toml
@@ -16,5 +16,5 @@ bench = false
[target.'cfg(not(target_os = "linux"))'.dependencies]
mimalloc-rust = { version = "0.1" }
-[t... | 2 | 2 | 6 |
a937357d47471222db4e62021ec507cd96597d9c | OJ Kwon | 2022-05-25T02:09:55 | feat(plugin): Implement `SourceMap.span_to_*` (#4781) | diff --git a/crates/swc_common/src/syntax_pos.rs b/crates/swc_common/src/syntax_pos.rs
index ccf3a7b7d3..1b791ab0fe 100644
--- a/crates/swc_common/src/syntax_pos.rs
+++ b/crates/swc_common/src/syntax_pos.rs
@@ -1146,6 +1146,10 @@ pub struct SourceFileAndBytePos {
}
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
+#[cf... | 5 | 179 | 5 |
3298cb790682524f740d3f6bff20ec4d07ed7075 | OJ Kwon | 2022-05-24T07:19:27 | feat(plugin): Implement more `SourceMap` apis (#4769) | diff --git a/crates/swc_plugin_proxy/src/source_map/plugin_source_map_proxy.rs b/crates/swc_plugin_proxy/src/source_map/plugin_source_map_proxy.rs
index 33bc23cf48..3aa2b2deac 100644
--- a/crates/swc_plugin_proxy/src/source_map/plugin_source_map_proxy.rs
+++ b/crates/swc_plugin_proxy/src/source_map/plugin_source_map_pr... | 4 | 119 | 15 |
c07780fab3bda752f43353871e5e69c5c4df0e84 | Alexander Akait | 2022-05-24T06:32:15 | feat(html/parser): Improve public api (#4762) | diff --git a/crates/swc_html_parser/Cargo.toml b/crates/swc_html_parser/Cargo.toml
index b112e456a0..4ebb9121e3 100644
--- a/crates/swc_html_parser/Cargo.toml
+++ b/crates/swc_html_parser/Cargo.toml
@@ -40,6 +40,10 @@ testing = { version = "0.20.0", path = "../testing" }
harness = false
name = "compare"
+[[bench]]
... | 8 | 196 | 188 |
65b7c4b69510d75065f79701020b8331ee3f88e4 | Austaras | 2022-05-24T05:55:45 | fix(es/fixer): Preserve the paren in a spread element (#4771) | diff --git a/crates/swc_ecma_transforms_base/src/fixer.rs b/crates/swc_ecma_transforms_base/src/fixer.rs
index b9c20de2ee..2ddd76d360 100644
--- a/crates/swc_ecma_transforms_base/src/fixer.rs
+++ b/crates/swc_ecma_transforms_base/src/fixer.rs
@@ -478,6 +478,13 @@ impl VisitMut for Fixer<'_> {
}
}
+ f... | 1 | 12 | 2 |
984d69e67b4a791922dd62050937a77f1f499927 | Alexander Akait | 2022-05-24T05:04:20 | test(html/parser): Enable error reporting tests (#4764) | diff --git a/crates/swc_html_parser/src/parser/mod.rs b/crates/swc_html_parser/src/parser/mod.rs
index e737425574..16c743c693 100644
--- a/crates/swc_html_parser/src/parser/mod.rs
+++ b/crates/swc_html_parser/src/parser/mod.rs
@@ -927,27 +927,24 @@ where
let mut node = self.open_elements_stack.items.la... | 2 | 44 | 33 |
8720f9a948687d5851cb1cfc18961ac61d6406a2 | Satish Srinivasan | 2022-05-24T04:41:34 | fix(es/compat): Fix span of `instanceof` (#4757) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/instanceof.rs b/crates/swc_ecma_transforms_compat/src/es2015/instanceof.rs
index 61549fd658..859aeaa73b 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/instanceof.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/instanceof.rs
@@ -1,4 +1,4 @@
-use ... | 1 | 8 | 2 |
995e9661cc39aaf14e8a756175624ac343283ba8 | Donny/๊ฐ๋์ค | 2022-05-24T04:15:57 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 8a05e063ce..4fa4bbee2c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3556,7 +3556,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.85.0"
+version = "0.85.1"
dependencies = [
"better_scoped_tls",
"criterion",
@@ -3633,7 +3633,7 @@ depend... | 3 | 5 | 5 |
20b724d3cd184ce6bc82e244a9e6ef1d1f21cb96 | Donny/๊ฐ๋์ค | 2022-05-23T22:09:33 | feat(es/minifier): Implement more rules (#4763) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
index a7d20d6815..368576b977 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
@@ -5,7 +5,7 @@ use swc_atoms::js_wor... | 3 | 57 | 20 |
ae39b02df3ab17b552c4f7e286bd6ebbbce0bd03 | Donny/๊ฐ๋์ค | 2022-05-23T18:13:24 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 4ffa52161a..dc759334bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3104,7 +3104,7 @@ dependencies = [
[[package]]
name = "swc_common"
-version = "0.18.6"
+version = "0.18.7"
dependencies = [
"ahash",
"anyhow",
@@ -3311,7 +3311,7 @@ dependencies = [
[[package]]
na... | 3 | 4 | 4 |
22bf5f014e35ac4994d70660ae7e25cfb4659caf | Baoshuo Ren | 2022-05-23T10:00:22 | chore(es/minifier): Add `#[doc(hidden)]` (#4751) | diff --git a/crates/swc_ecma_minifier/src/analyzer/mod.rs b/crates/swc_ecma_minifier/src/analyzer/mod.rs
index da4b1b2930..c7d2c8850d 100644
--- a/crates/swc_ecma_minifier/src/analyzer/mod.rs
+++ b/crates/swc_ecma_minifier/src/analyzer/mod.rs
@@ -1132,6 +1132,7 @@ where
}
/// This is **NOT** a public api.
+#[doc(hi... | 1 | 1 | 0 |
b7a195a1cf18763b19846b7f14efc80a0f17fd1e | Donny/๊ฐ๋์ค | 2022-05-23T09:42:29 | refactor(es/parser): Remove duplicate (#4750) | diff --git a/Cargo.lock b/Cargo.lock
index dbc913af5d..c35aeb0647 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3470,7 +3470,6 @@ dependencies = [
"testing",
"tracing",
"typed-arena",
- "unicode-id",
"walkdir",
]
diff --git a/crates/swc_ecma_ast/src/ident.rs b/crates/swc_ecma_ast/src/ident.rs
index e84076befb... | 4 | 5 | 17 |
98df64517efbc53021e4e386ad876f1f46bd17f0 | Donny/๊ฐ๋์ค | 2022-05-23T09:18:40 | perf(common): Add more methods to `Spanned` (#4749)
- Lots of code only needs `lo` or `hi`, but they call `span()`, which is inefficient in some cases.
- This PR only adds a trivial amount of optimization. I may add full optimization in future.
- This PR improves codegen performance of `ExprOrSpread` and `Option<... | diff --git a/crates/swc_common/src/pos.rs b/crates/swc_common/src/pos.rs
index e89692ba13..7e9dd9073b 100644
--- a/crates/swc_common/src/pos.rs
+++ b/crates/swc_common/src/pos.rs
@@ -12,16 +12,36 @@ pub use crate::syntax_pos::{
pub trait Spanned {
/// Get span of `self`.
fn span(&self) -> Span;
+
+ #[inli... | 9 | 142 | 36 |
03dd9de1c34ef8af66b78b03e7264e623ea81e8b | Donny/๊ฐ๋์ค | 2022-05-20T04:07:16 | fix(es/codegen): Exclude synthesized files from sourcemap (#4714) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index cf07fd794d..2dcebad955 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -604,6 +604,14 @@ impl SourceMapGenConfig for SwcSourceMapConfig<'_> {
fn emit_columns(&self, _f: &FileName) -> bool {
self.emit_columns
}
+
+ f... | 2 | 15 | 0 |
a8f156c050992ad6fde0200b65cffa1244ef728b | Donny/๊ฐ๋์ค | 2022-05-19T05:34:32 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 1de064af52..f690c28a42 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2956,7 +2956,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.181.0"
+version = "0.181.1"
dependencies = [
"ahash",
"ansi_term",
diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml
... | 2 | 2 | 2 |
e272ae0201b942c858932cb87a1dceb7c6245d13 | Donny/๊ฐ๋์ค | 2022-05-18T10:51:57 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index a84d00ccef..4f57441066 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3294,7 +3294,7 @@ dependencies = [
[[package]]
name = "swc_ecma_ast"
-version = "0.78.0"
+version = "0.78.1"
dependencies = [
"arbitrary",
"is-macro",
diff --git a/crates/swc_ecma_ast/Cargo.toml b/cra... | 2 | 2 | 2 |
809a626a990eb4edb1cf71b87c3de31a60fa1a86 | Donny/๊ฐ๋์ค | 2022-05-18T10:47:00 | fix(es/minifier): Don't create keys with negative number (#4698) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs
index 07635d5b0b..498c4eaae6 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs
@@ -71,7 +71,9 @@ impl Pure<'... | 1 | 3 | 1 |
606f7c967e908b4d70d37edbb76c11a7ea985336 | David Sherret | 2022-05-17T15:44:25 | fix(common): Don't use reserved byte position (#4690) | diff --git a/crates/swc_common/src/source_map.rs b/crates/swc_common/src/source_map.rs
index 18316e0cec..8aeab86952 100644
--- a/crates/swc_common/src/source_map.rs
+++ b/crates/swc_common/src/source_map.rs
@@ -160,7 +160,7 @@ impl SourceMap {
) -> SourceMap {
SourceMap {
files: Default::defa... | 1 | 1 | 1 |
7ce572b497d6b19231af8414616d412ac6c42264 | brightwu | 2022-05-17T11:06:03 | fix(es/modules): Fix reassignment of exported vars (#4688) | diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs
index 08c398837a..4b3d3b5891 100644
--- a/crates/swc_ecma_transforms_module/src/common_js.rs
+++ b/crates/swc_ecma_transforms_module/src/common_js.rs
@@ -12,8 +12,8 @@ use swc_common::{
use swc_ecma_ast... | 3 | 50 | 12 |
07356a5bba29572c99b53a1db79314a252faf663 | Donny/๊ฐ๋์ค | 2022-05-17T10:21:01 | fix(es/ast): Fix `EqIgnoreSpan` of `Ident` (#4689) | diff --git a/Cargo.lock b/Cargo.lock
index e403200db9..de0fcfe4fa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3300,6 +3300,7 @@ dependencies = [
"is-macro",
"num-bigint",
"rkyv",
+ "scoped-tls",
"serde",
"serde_json",
"string_enum",
diff --git a/crates/swc_ecma_ast/Cargo.toml b/crates/swc_ecma_ast/Cargo.to... | 5 | 35 | 9 |
da49f810db791ef28291f535c46f7396fec29809 | Donny/๊ฐ๋์ค | 2022-05-16T03:29:24 | feat(es): Add check for `BytePos::DUMMY` (#4675) | diff --git a/crates/jsdoc/src/input.rs b/crates/jsdoc/src/input.rs
index 8089e2fb51..619c2d3efd 100644
--- a/crates/jsdoc/src/input.rs
+++ b/crates/jsdoc/src/input.rs
@@ -25,7 +25,7 @@ impl<'a> From<&'a Comment> for Input<'a> {
impl<'i> Input<'i> {
pub const fn empty() -> Self {
- Self::new(BytePos(0), B... | 7 | 17 | 9 |
bfb6be7075a57238ffe0e8c11edcf32b115b756b | Donny/๊ฐ๋์ค | 2022-05-15T10:40:41 | doc(es/codegen): Document `ascii_only` (#4669) | diff --git a/crates/swc_ecma_codegen/src/config.rs b/crates/swc_ecma_codegen/src/config.rs
index af4cc14e7e..c7bab94092 100644
--- a/crates/swc_ecma_codegen/src/config.rs
+++ b/crates/swc_ecma_codegen/src/config.rs
@@ -13,6 +13,9 @@ pub struct Config {
/// This is because it's not a concern of the code generator.
... | 1 | 3 | 0 |
eb8508f88cf532d883bb22446195281f009863c5 | Donny/๊ฐ๋์ค | 2022-05-15T05:07:21 | feat(es/codegen): Implement ascii-only (#4660) | diff --git a/crates/binding_core_node/src/bundle.rs b/crates/binding_core_node/src/bundle.rs
index 2da828258b..16433a3bfa 100644
--- a/crates/binding_core_node/src/bundle.rs
+++ b/crates/binding_core_node/src/bundle.rs
@@ -131,6 +131,7 @@ impl Task for BundleTask {
minify,
... | 32 | 308 | 108 |
1150e842ed4f6ea4216f6b54706abffc52449c9f | Austaras | 2022-05-15T03:51:25 | refactor(es/react): Use proper ident scope for react refresh (#4649) | diff --git a/crates/swc_ecma_transforms_react/src/lib.rs b/crates/swc_ecma_transforms_react/src/lib.rs
index c582f5da68..fb18667bf9 100644
--- a/crates/swc_ecma_transforms_react/src/lib.rs
+++ b/crates/swc_ecma_transforms_react/src/lib.rs
@@ -49,7 +49,13 @@ where
chain!(
jsx_src(development, cm.clone()),
... | 5 | 81 | 186 |
f63be2fb9e7ea1bcbb7c06726ccc055847ad6be5 | Donny/๊ฐ๋์ค | 2022-05-13T10:08:09 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 85f2e3b880..3cf8b1b5d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2900,7 +2900,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.179.0"
+version = "0.179.1"
dependencies = [
"ahash",
"ansi_term",
@@ -3048,7 +3048,7 @@ dependencies = [
[[package]]
name... | 3 | 5 | 5 |
b6f904b8f0fbe8bffb25ab432006f8195d585bf7 | Hana | 2022-05-13T08:49:31 | feat(es): Add an option to omit columns from sourcemaps (#4646) | diff --git a/crates/binding_core_node/src/bundle.rs b/crates/binding_core_node/src/bundle.rs
index 5d4468bf04..2da828258b 100644
--- a/crates/binding_core_node/src/bundle.rs
+++ b/crates/binding_core_node/src/bundle.rs
@@ -130,6 +130,7 @@ impl Task for BundleTask {
None,
... | 13 | 130 | 0 |
b393773373bb1ae170004fadb8688203cabeda2a | Donny/๊ฐ๋์ค | 2022-05-13T06:05:21 | feat(debug): Inline `dbg-swc` (#4651) | diff --git a/Cargo.lock b/Cargo.lock
index 974fe4e0e9..aa980528ff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -784,6 +784,28 @@ dependencies = [
"parking_lot",
]
+[[package]]
+name = "dbg-swc"
+version = "0.12.0"
+dependencies = [
+ "anyhow",
+ "clap 3.1.0",
+ "rayon",
+ "swc_atoms",
+ "swc_common",
+ "swc_ecma_as... | 9 | 372 | 12 |
539fa4113e582d519ab1cf5a012c7702aafc42f8 | Donny/๊ฐ๋์ค | 2022-05-13T03:31:17 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 4d9f9d91bd..7cd65ebf8d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2879,7 +2879,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.178.0"
+version = "0.178.1"
dependencies = [
"ahash",
"ansi_term",
@@ -3061,7 +3061,7 @@ dependencies = [
[[package]]
name... | 3 | 5 | 5 |
84e4ca6c27034e8b965bb229115847afcfb0b5e8 | Donny/๊ฐ๋์ค | 2022-05-12T10:48:51 | fix(css/parser): Remove a wrong assertion (#4641) | diff --git a/crates/swc_css_parser/src/error.rs b/crates/swc_css_parser/src/error.rs
index a585d4d9b8..c425cb6d29 100644
--- a/crates/swc_css_parser/src/error.rs
+++ b/crates/swc_css_parser/src/error.rs
@@ -22,9 +22,6 @@ impl Error {
}
pub fn new(span: Span, kind: ErrorKind) -> Self {
- if cfg!(debug... | 1 | 0 | 3 |
5f899a03489de62cbff9aede15ea561ec601a911 | Alexander Akait | 2022-05-12T05:45:11 | refactor(html/parser): Improve parser a bit (#4627) | diff --git a/crates/swc_html_parser/src/parser/mod.rs b/crates/swc_html_parser/src/parser/mod.rs
index 4cbdda660a..d5dbc9868d 100644
--- a/crates/swc_html_parser/src/parser/mod.rs
+++ b/crates/swc_html_parser/src/parser/mod.rs
@@ -38,14 +38,6 @@ enum AdjustAttributes {
Svg,
}
-// TODO should not be public
-#[de... | 2 | 11 | 10 |
b8fa3bc4569429046494488cdab9c14b26135f6b | Alexander Akait | 2022-05-12T05:07:07 | refactor(html/parser): Improve public API (#4626) | diff --git a/crates/swc_html_parser/src/lib.rs b/crates/swc_html_parser/src/lib.rs
index fb1c3a89fb..5679eba126 100644
--- a/crates/swc_html_parser/src/lib.rs
+++ b/crates/swc_html_parser/src/lib.rs
@@ -20,40 +20,6 @@ pub mod error;
pub mod lexer;
pub mod parser;
-pub trait Parse<T> {
- fn parse(&mut self) -> PR... | 2 | 0 | 44 |
cac4f6e265ed419245e8b323dd4f18d60a16beac | Pig Fang | 2022-05-12T03:45:56 | feat(html/parser): Add a method to get error message (#4623) | diff --git a/crates/swc_css_parser/src/error.rs b/crates/swc_css_parser/src/error.rs
index 9cbbfc77a0..a585d4d9b8 100644
--- a/crates/swc_css_parser/src/error.rs
+++ b/crates/swc_css_parser/src/error.rs
@@ -30,7 +30,7 @@ impl Error {
}
}
- pub fn message(&self) -> Cow<str> {
+ pub fn message(&self... | 2 | 8 | 5 |
04dd3ddc5d2953ae9ba4b944853db57bf1ed217d | Pig Fang | 2022-05-11T02:58:20 | feat(css/parser): Add a method to get error message (#4588) | diff --git a/crates/swc_css_parser/src/error.rs b/crates/swc_css_parser/src/error.rs
index 38a11e61fd..f80dd9bc51 100644
--- a/crates/swc_css_parser/src/error.rs
+++ b/crates/swc_css_parser/src/error.rs
@@ -27,8 +27,8 @@ impl Error {
}
}
- pub fn to_diagnostics<'a>(&self, handler: &'a Handler) -> Dia... | 1 | 7 | 4 |
d611d543eaff2a017c9742137a4594835aeb67f4 | Donny/๊ฐ๋์ค | 2022-05-10T04:17:11 | fix(es/fixer): Handle `new yield` (#4598) | diff --git a/crates/swc_ecma_minifier/tests/terser_exec.rs b/crates/swc_ecma_minifier/tests/terser_exec.rs
index fb04c812b6..48fa054ff2 100644
--- a/crates/swc_ecma_minifier/tests/terser_exec.rs
+++ b/crates/swc_ecma_minifier/tests/terser_exec.rs
@@ -35,7 +35,6 @@ use testing::assert_eq;
"tests/terser/compress/**/... | 2 | 1 | 1 |
8944a3bdf54497a6ab03194b3d96ccfe902c016b | Donny/๊ฐ๋์ค | 2022-05-10T03:55:34 | fix(es/minifier): Fix switch with a unknown case (#4597) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/switches.rs b/crates/swc_ecma_minifier/src/compress/optimize/switches.rs
index 04f6ad7a9b..af65219660 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/switches.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/switches.rs
@@ -4,7 +4,7 @@ use s... | 2 | 15 | 4 |
6ac4a23aa2fdf3854f23760cec70b36249df4cdc | Donny/๊ฐ๋์ค | 2022-05-09T20:15:15 | feat(es/hygiene): Drop syntax context (#4594) | diff --git a/crates/swc_ecma_transforms_base/src/hygiene/mod.rs b/crates/swc_ecma_transforms_base/src/hygiene/mod.rs
index 927498eea8..88023fffae 100644
--- a/crates/swc_ecma_transforms_base/src/hygiene/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/hygiene/mod.rs
@@ -163,7 +163,17 @@ pub fn hygiene() -> impl Fold + ... | 1 | 11 | 1 |
af91094b2db0809f02e6f0a6f07b021d12aa1512 | LongYinan | 2022-05-09T16:59:59 | fix(node): Use `jemallocator` on linux (#4591) | diff --git a/Cargo.lock b/Cargo.lock
index b7ce27bc84..77125df725 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -952,6 +952,12 @@ dependencies = [
"syn",
]
+[[package]]
+name = "fs_extra"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2022715d62ab30faffd124d40b76f41... | 3 | 41 | 5 |
ad6b71150e7ed2cccd0cc16538d1948b45810410 | Donny/๊ฐ๋์ค | 2022-05-09T15:08:15 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 60e23a634b..ba0ef8eec4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2873,7 +2873,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.176.0"
+version = "0.176.1"
dependencies = [
"ahash",
"ansi_term",
@@ -3696,7 +3696,7 @@ dependencies = [
[[package]]
name... | 4 | 9 | 9 |
4cc247f39f53ee2c4183c3881c3b686a109a3419 | Alexander Akait | 2022-05-09T06:03:51 | refactor(html/parser): Resolve TODO (#4577) | diff --git a/crates/swc_html_parser/src/parser/mod.rs b/crates/swc_html_parser/src/parser/mod.rs
index 7bf35eb956..b1647eca9c 100644
--- a/crates/swc_html_parser/src/parser/mod.rs
+++ b/crates/swc_html_parser/src/parser/mod.rs
@@ -7681,11 +7681,10 @@ where
}
fn append_node(&self, parent: &RcNode, child: RcN... | 1 | 2 | 3 |
55d0ee6cba32d3a9d15cdb5485fb65a84bebe123 | Donny/๊ฐ๋์ค | 2022-05-08T16:02:23 | feat(es/ast): Add methods for parens (#4576) | diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs
index fc0e8b8490..ebe5bbd8e9 100644
--- a/crates/swc_ecma_ast/src/expr.rs
+++ b/crates/swc_ecma_ast/src/expr.rs
@@ -161,6 +161,32 @@ pub enum Expr {
Invalid(Invalid),
}
+impl Expr {
+ /// Normalize parenthesized expressions.
+ ... | 1 | 26 | 0 |
086840956d696816c694fc2fd96258351aab9573 | RiESAEX | 2022-05-08T09:19:26 | fix(es): Use `unresolved_mark` (#4573) | diff --git a/crates/swc/src/builder.rs b/crates/swc/src/builder.rs
index 7bbfe72646..895bebc251 100644
--- a/crates/swc/src/builder.rs
+++ b/crates/swc/src/builder.rs
@@ -253,7 +253,7 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
),
Optional::new(
... | 3 | 23 | 11 |
846a31919eba58b7b14788ccc26b0ff23e488044 | OJ Kwon | 2022-05-08T03:19:43 | refactor(plugin): Align deps (#4568) | diff --git a/Cargo.lock b/Cargo.lock
index 65d2035551..c4d14a4c83 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3937,10 +3937,8 @@ version = "0.50.1"
dependencies = [
"swc_atoms",
"swc_common",
- "swc_ecma_ast",
"swc_ecma_quote",
- "swc_ecma_utils",
- "swc_ecma_visit",
+ "swc_ecmascript",
"swc_plugin_macro",
... | 5 | 135 | 20 |
13cc2282627f852d5b114332a83816de2a47742b | Donny/๊ฐ๋์ค | 2022-05-07T08:42:46 | doc(es/resolver): Add docs for top-level mark (#4560) | diff --git a/crates/swc_ecma_transforms_base/src/resolver/mod.rs b/crates/swc_ecma_transforms_base/src/resolver/mod.rs
index c233921777..b8f6b3d2b4 100644
--- a/crates/swc_ecma_transforms_base/src/resolver/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/resolver/mod.rs
@@ -98,11 +98,36 @@ const LOG: bool = false && cf... | 1 | 25 | 0 |
b5a203399455304f3be7941b751e8a9847b0bb97 | OJ Kwon | 2022-05-07T05:23:31 | build(plugin): Update `swc_plugin_proxy` (#4551) | diff --git a/Cargo.lock b/Cargo.lock
index 5239a385b9..859d3b561f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3933,7 +3933,7 @@ dependencies = [
[[package]]
name = "swc_plugin"
-version = "0.50.0"
+version = "0.50.1"
dependencies = [
"swc_atoms",
"swc_common",
diff --git a/crates/swc_plugin/Cargo.toml b/crate... | 2 | 3 | 3 |
446172f14575b56d36ef72175c16fa05f374736c | Alexander Akait | 2022-05-06T13:28:58 | refactor(html/parser): Cleanup (#4545) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index acdae1a240..962797fb82 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -337,7 +337,7 @@ where
}
fn emit_cur_token(&mut self) {
- let token = self.... | 3 | 28 | 21 |
10f903dd3952286f84c0957d96b9c43236938de5 | OJ Kwon | 2022-05-06T07:11:00 | feat(plugin): Make plugin source map api use `SourceMapper` (#4541) | diff --git a/crates/swc_plugin/src/lib.rs b/crates/swc_plugin/src/lib.rs
index 496cf84ff2..3a4c09fe3c 100644
--- a/crates/swc_plugin/src/lib.rs
+++ b/crates/swc_plugin/src/lib.rs
@@ -12,7 +12,13 @@ pub mod comments {
}
pub mod source_map {
- pub use swc_common::source_map::{CharPos, Loc, MultiByteChar, NonNarrow... | 2 | 34 | 4 |
33f58faa0bb4f87ee13e38a704ca929efc21430b | Donny/๊ฐ๋์ค | 2022-05-04T05:22:58 | chore(repo): Fix lints (#4519) | diff --git a/crates/swc_html_parser/tests/fixture.rs b/crates/swc_html_parser/tests/fixture.rs
index 1f4e39738b..86818c64e6 100644
--- a/crates/swc_html_parser/tests/fixture.rs
+++ b/crates/swc_html_parser/tests/fixture.rs
@@ -1,3 +1,4 @@
+#![deny(warnings)]
#![allow(clippy::needless_update)]
use std::{fs, mem::tak... | 1 | 9 | 17 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.