From f1770ffa5dd8f5905e76d8e4aff82f58ed2fc81a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Mon, 28 Aug 2023 21:47:12 +0900 Subject: [PATCH 1/3] Update swc_core --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 62e5daa..42cf95b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ serializable = ["serde"] [dependencies] markdown = "1.0.0-alpha.10" serde = { version = "1", optional = true } -swc_core = { version = "0.79.0", features = [ +swc_core = { version = "0.82.0", features = [ "ecma_ast", "ecma_visit", "ecma_codegen", From 1c28029a2388097558d0c9800c80572c36dae0d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 29 Aug 2023 08:33:11 +0900 Subject: [PATCH 2/3] asserts => with --- src/hast_util_to_swc.rs | 2 +- src/mdx_plugin_recma_document.rs | 4 ++-- src/mdx_plugin_recma_jsx_rewrite.rs | 2 +- src/swc_util_build_jsx.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/hast_util_to_swc.rs b/src/hast_util_to_swc.rs index d656bfb..cc55c44 100644 --- a/src/hast_util_to_swc.rs +++ b/src/hast_util_to_swc.rs @@ -1373,7 +1373,7 @@ mod tests { raw: Some("\'b\'".into()), }), type_only: false, - asserts: None, + with: None, span: swc_core::common::DUMMY_SP, }))], span: swc_core::common::DUMMY_SP, diff --git a/src/mdx_plugin_recma_document.rs b/src/mdx_plugin_recma_document.rs index 2661b23..08b94f2 100644 --- a/src/mdx_plugin_recma_document.rs +++ b/src/mdx_plugin_recma_document.rs @@ -160,7 +160,7 @@ pub fn mdx_plugin_recma_document( }, )), type_only: false, - asserts: None, + with: None, span: swc_core::common::DUMMY_SP, }))); } @@ -282,7 +282,7 @@ pub fn mdx_plugin_recma_document( })], src: source, type_only: false, - asserts: None, + with: None, span: swc_core::common::DUMMY_SP, }))); } diff --git a/src/mdx_plugin_recma_jsx_rewrite.rs b/src/mdx_plugin_recma_jsx_rewrite.rs index ff2717b..bf20266 100644 --- a/src/mdx_plugin_recma_jsx_rewrite.rs +++ b/src/mdx_plugin_recma_jsx_rewrite.rs @@ -869,7 +869,7 @@ fn create_import_provider(source: &str) -> ModuleItem { })], src: Box::new(create_str(source)), type_only: false, - asserts: None, + with: None, span: DUMMY_SP, })) } diff --git a/src/swc_util_build_jsx.rs b/src/swc_util_build_jsx.rs index 7ddcac7..c93898c 100644 --- a/src/swc_util_build_jsx.rs +++ b/src/swc_util_build_jsx.rs @@ -120,7 +120,7 @@ pub fn swc_util_build_jsx( } ))), type_only: false, - asserts: None, + with: None, span: swc_core::common::DUMMY_SP, })), ); From 0169536e26476b2d978a0b3c160af1c86bb04d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Tue, 29 Aug 2023 08:37:00 +0900 Subject: [PATCH 3/3] clippy --- src/mdast_util_to_hast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mdast_util_to_hast.rs b/src/mdast_util_to_hast.rs index 304ba1e..1e6514a 100644 --- a/src/mdast_util_to_hast.rs +++ b/src/mdast_util_to_hast.rs @@ -554,7 +554,7 @@ fn transform_image(_state: &mut State, _node: &mdast::Node, image: &mdast::Image /// [`ImageReference`][mdast::ImageReference]. fn transform_image_reference( - state: &mut State, + state: &State, _node: &mdast::Node, image_reference: &mdast::ImageReference, ) -> Result {