diff --git a/crates/tuono/Cargo.toml b/crates/tuono/Cargo.toml index 8dbb7921..e5d72a75 100644 --- a/crates/tuono/Cargo.toml +++ b/crates/tuono/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tuono" -version = "0.16.9" +version = "0.17.0" edition = "2021" authors = ["V. Ageno "] description = "Superfast React fullstack framework" diff --git a/crates/tuono/src/scaffold_project.rs b/crates/tuono/src/scaffold_project.rs index 32faa9a7..8f68a83f 100644 --- a/crates/tuono/src/scaffold_project.rs +++ b/crates/tuono/src/scaffold_project.rs @@ -11,7 +11,7 @@ const GITHUB_TUONO_TAGS_URL: &str = "https://api.github.com/repos/tuono-labs/tuo const GITHUB_TUONO_TAG_COMMIT_TREES_URL: &str = "https://api.github.com/repos/tuono-labs/tuono/git/trees/"; -const GITHUB_RAW_CONTENT_URL: &str = "https://raw.githubusercontent.com/tuono-labs/tuono/main/"; +const GITHUB_RAW_CONTENT_URL: &str = "https://raw.githubusercontent.com/tuono-labs/tuono"; #[derive(Deserialize, Debug)] enum GithubFileType { @@ -61,6 +61,7 @@ pub fn create_new_project(folder_name: Option, template: Option) .build() .expect("Failed to build reqwest client"); + // This string does not include the "v" version prefix let cli_version: &str = crate_version!(); let res_tag = client @@ -119,7 +120,7 @@ pub fn create_new_project(folder_name: Option, template: Option) { if let GithubFileType::Blob = element_type { let file_content = client - .get(format!("{GITHUB_RAW_CONTENT_URL}{path}")) + .get(format!("{GITHUB_RAW_CONTENT_URL}/v{cli_version}/{path}")) .send() .expect("Failed to call the folder github API") .text() diff --git a/crates/tuono_lib/Cargo.toml b/crates/tuono_lib/Cargo.toml index 40a04eb6..b576c4b0 100644 --- a/crates/tuono_lib/Cargo.toml +++ b/crates/tuono_lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tuono_lib" -version = "0.16.9" +version = "0.17.0" edition = "2021" authors = ["V. Ageno "] description = "Superfast React fullstack framework" @@ -32,7 +32,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.16.9"} +tuono_lib_macros = {path = "../tuono_lib_macros", version = "0.17.0"} # Match the same version used by axum tokio-tungstenite = "0.24.0" futures-util = { version = "0.3", default-features = false, features = ["sink", "std"] } diff --git a/crates/tuono_lib_macros/Cargo.toml b/crates/tuono_lib_macros/Cargo.toml index ddc768f6..ca6f4c88 100644 --- a/crates/tuono_lib_macros/Cargo.toml +++ b/crates/tuono_lib_macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tuono_lib_macros" -version = "0.16.9" +version = "0.17.0" edition = "2021" description = "Superfast React fullstack framework" homepage = "https://tuono.dev" diff --git a/packages/tuono-fs-router-vite-plugin/package.json b/packages/tuono-fs-router-vite-plugin/package.json index 3d4d4e4b..0fff6536 100644 --- a/packages/tuono-fs-router-vite-plugin/package.json +++ b/packages/tuono-fs-router-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "tuono-fs-router-vite-plugin", - "version": "0.16.9", + "version": "0.17.0", "description": "Plugin for the tuono's file system router. Tuono is the react/rust fullstack framework", "homepage": "https://tuono.dev", "scripts": { diff --git a/packages/tuono-lazy-fn-vite-plugin/package.json b/packages/tuono-lazy-fn-vite-plugin/package.json index 4049f49a..661595d2 100644 --- a/packages/tuono-lazy-fn-vite-plugin/package.json +++ b/packages/tuono-lazy-fn-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "tuono-lazy-fn-vite-plugin", - "version": "0.16.9", + "version": "0.17.0", "description": "Plugin for the tuono's lazy fn. Tuono is the react/rust fullstack framework", "homepage": "https://tuono.dev", "scripts": { diff --git a/packages/tuono-router/package.json b/packages/tuono-router/package.json index d46323d6..bd08e79f 100644 --- a/packages/tuono-router/package.json +++ b/packages/tuono-router/package.json @@ -1,6 +1,6 @@ { "name": "tuono-router", - "version": "0.16.9", + "version": "0.17.0", "description": "React routing component for the framework tuono. Tuono is the react/rust fullstack framework", "homepage": "https://tuono.dev", "scripts": { diff --git a/packages/tuono/package.json b/packages/tuono/package.json index 97b62303..c7439306 100644 --- a/packages/tuono/package.json +++ b/packages/tuono/package.json @@ -1,6 +1,6 @@ { "name": "tuono", - "version": "0.16.9", + "version": "0.17.0", "description": "Superfast React fullstack framework", "homepage": "https://tuono.dev", "scripts": {