Skip to content

Commit

Permalink
release 0.1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Strehle committed Sep 30, 2024
1 parent 420b6de commit 2252334
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "jusix"
version = "0.1.11"
version = "0.1.12"
edition = "2021"
description = "An SWC plugin that enables embedded JSX reactivity and $() shortcut function for UIX"
license = "MIT"
Expand Down
Binary file modified jusix.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jusix",
"version": "0.1.11",
"version": "0.1.12",
"description": "",
"author": "",
"license": "ISC",
Expand Down
4 changes: 2 additions & 2 deletions src/visitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use swc_core::{
common::{util::take::Take, SyntaxContext, DUMMY_SP},
ecma::{
ast::{
ArrowExpr, BlockStmt, BlockStmtOrExpr, CallExpr, Callee, Expr, ExprOrSpread, ExprStmt, FnDecl, Ident, IdentName, JSXAttr, JSXAttrName, JSXAttrValue, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, JSXSpreadChild, Lit, MemberExpr, MemberProp, Null, ObjectPatProp, Pat, PropName, ReturnStmt, Stmt, Str, VarDecl
ArrowExpr, BlockStmt, BlockStmtOrExpr, CallExpr, Callee, Expr, ExprOrSpread, ExprStmt, FnDecl, Ident, JSXAttr, JSXAttrName, JSXAttrValue, JSXElement, JSXElementChild, JSXElementName, JSXEmptyExpr, JSXExpr, JSXExprContainer, JSXSpreadChild, Lit, MemberProp, Null, ObjectPatProp, Pat, ReturnStmt, Stmt, Str, VarDecl
},
visit::{Fold, FoldWith, Visit, VisitWith},
},
Expand All @@ -25,7 +25,7 @@ impl VariableCollector {

impl Visit for VariableCollector {

fn visit_jsx_element_name(&mut self, name: &JSXElementName) {
fn visit_jsx_element_name(&mut self, _name: &JSXElementName) {
// ignore jsx name as identifier
}

Expand Down
13 changes: 6 additions & 7 deletions uix-tests/common/tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default {
},

'/test12': () => {
const showDialog = $$(false);
const showDialog = $(false);
globalThis.showDialog = showDialog;
return <div>
<div>My Div</div>
Expand All @@ -193,7 +193,7 @@ export default {
},

'/test13': () => {
const showDialog = $$(false);
const showDialog = $(false);
globalThis.showDialog = showDialog;
return <div>
<div>My Div</div>
Expand All @@ -202,7 +202,7 @@ export default {
},

'/test14': () => {
const showDialog = $$(true);
const showDialog = $(true);
globalThis.showDialog = showDialog;
return <div>
<div>My Div</div>
Expand All @@ -211,7 +211,7 @@ export default {
},

'/test15': () => {
const showDialog = $$(false);
const showDialog = $(false);
globalThis.showDialog = showDialog;
return <div>
<div>My Div</div>
Expand All @@ -220,7 +220,7 @@ export default {
},

'/test16': () => {
const showDialog = $$(false);
const showDialog = $(false);
globalThis.showDialog = showDialog;
return <div>
<div>My Div</div>
Expand All @@ -232,8 +232,7 @@ export default {
type="button"
value="Hello"
onclick:frontend={async () => {
const { BaseComponent } = await import("backend/state.tsx");
useImport(BaseComponent);
const { BaseComponent } = await import("common/BaseComponent.tsx");

const x = <BaseComponent title="x" color="red"/>;
console.log(x);
Expand Down
7 changes: 2 additions & 5 deletions uix-tests/deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2252334

Please sign in to comment.