-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent dynamic fn replacement when not imported by tuono (#57)
* fix: prevent dynamic fn replacement when not imported by tuono * feat: update version to v0.10.3 * Revert "fix(deps): update dependency zustand to v5 (#55)" This reverts commit d7a086d. * Revert "fix(deps): update dependency zustand to v4.5.5 (#37)" This reverts commit b36dc0b. * Revert "chore(deps): update dependency @testing-library/react to v16 (#38)" This reverts commit 1a1b626. * Revert "chore(deps): update dependency @tanstack/config to ^0.13.0 (#32)" This reverts commit 6c7cc62. * revert pnpm update * Revert "chore(deps): update dependency vitest to v2 (#45)" This reverts commit c5b5f6a. * Revert "chore(deps): update dependency node to v20.18.0 (#33)" This reverts commit 588326c.
- Loading branch information
1 parent
d7a086d
commit 002733c
Showing
16 changed files
with
121 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20.18.0 | ||
v20.10.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tuono" | ||
version = "0.10.2" | ||
version = "0.10.3" | ||
edition = "2021" | ||
authors = ["V. Ageno <[email protected]>"] | ||
description = "The react/rust fullstack framework" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "tuono_lib" | ||
version = "0.10.2" | ||
version = "0.10.3" | ||
edition = "2021" | ||
authors = ["V. Ageno <[email protected]>"] | ||
description = "The react/rust fullstack framework" | ||
|
@@ -33,7 +33,7 @@ either = "1.13.0" | |
tower-http = {version = "0.6.0", features = ["fs"]} | ||
colored = "2.1.0" | ||
|
||
tuono_lib_macros = {path = "../tuono_lib_macros", version = "0.10.2"} | ||
tuono_lib_macros = {path = "../tuono_lib_macros", version = "0.10.3"} | ||
# Match the same version used by axum | ||
tokio-tungstenite = "0.24.0" | ||
futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { TUONO_MAIN_PACKAGE, TUONO_DYNAMIC_FN_ID } from './constants' | ||
import type * as t from '@babel/types' | ||
|
||
import type { Identifier, ImportDeclaration } from '@babel/types' | ||
|
||
export const isTuonoDynamicFnImported = ( | ||
path: babel.NodePath<t.ImportSpecifier>, | ||
): boolean => { | ||
if ((path.node.imported as Identifier).name !== TUONO_DYNAMIC_FN_ID) { | ||
return false | ||
} | ||
if ( | ||
(path.parentPath.node as ImportDeclaration).source.value !== | ||
TUONO_MAIN_PACKAGE | ||
) { | ||
return false | ||
} | ||
return true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.