Compare commits

...

4 Commits

Author SHA1 Message Date
benwis
98f18e7c31 release: version 0.5.6 2024-01-16 16:57:07 -08:00
Greg Johnston
3f34d9bb23 fix: doc comments breaking server functions (closes #2190) (#2191) 2024-01-16 15:31:29 -05:00
Greg Johnston
44db400f6b chore: fix spin-sdk dependency 2024-01-15 17:11:50 -05:00
Greg Johnston
3a5730800c v0.5.5 2024-01-15 17:10:49 -05:00
7 changed files with 30 additions and 20 deletions

3
.gitignore vendored
View File

@@ -10,4 +10,5 @@ Cargo.lock
.direnv
.envrc
.vscode
.vscode
vendor

View File

@@ -26,22 +26,22 @@ members = [
exclude = ["benchmarks", "examples"]
[workspace.package]
version = "0.5.4"
version = "0.5.6"
[workspace.dependencies]
leptos = { path = "./leptos", version = "0.5.4" }
leptos_dom = { path = "./leptos_dom", version = "0.5.4" }
leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.5.4" }
leptos_macro = { path = "./leptos_macro", version = "0.5.4" }
leptos_reactive = { path = "./leptos_reactive", version = "0.5.4" }
leptos_server = { path = "./leptos_server", version = "0.5.4" }
server_fn = { path = "./server_fn", version = "0.5.4" }
server_fn_macro = { path = "./server_fn_macro", version = "0.5.4" }
server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.5.4" }
leptos_config = { path = "./leptos_config", version = "0.5.4" }
leptos_router = { path = "./router", version = "0.5.4" }
leptos_meta = { path = "./meta", version = "0.5.4" }
leptos_integration_utils = { path = "./integrations/utils", version = "0.5.4" }
leptos = { path = "./leptos", version = "0.5.6" }
leptos_dom = { path = "./leptos_dom", version = "0.5.6" }
leptos_hot_reload = { path = "./leptos_hot_reload", version = "0.5.6" }
leptos_macro = { path = "./leptos_macro", version = "0.5.6" }
leptos_reactive = { path = "./leptos_reactive", version = "0.5.6" }
leptos_server = { path = "./leptos_server", version = "0.5.6" }
server_fn = { path = "./server_fn", version = "0.5.6" }
server_fn_macro = { path = "./server_fn_macro", version = "0.5.6" }
server_fn_macro_default = { path = "./server_fn/server_fn_macro_default", version = "0.5.6" }
leptos_config = { path = "./leptos_config", version = "0.5.6" }
leptos_router = { path = "./router", version = "0.5.6" }
leptos_meta = { path = "./meta", version = "0.5.6" }
leptos_integration_utils = { path = "./integrations/utils", version = "0.5.6" }
[profile.release]
codegen-units = 1

View File

@@ -7,7 +7,7 @@
//! To run in this environment, you need to disable the default feature set and enable
//! the `wasm` feature on `leptos_axum` in your `Cargo.toml`.
//! ```toml
//! leptos_axum = { version = "0.5.4", default-features = false, features = ["wasm"] }
//! leptos_axum = { version = "", default-features = false, features = ["wasm"] }
//! ```
//!
//! ## Features

View File

@@ -26,7 +26,7 @@ bytecheck = { version = "0.7", features = [
rustc-hash = "1"
serde-wasm-bindgen = "0.5"
serde_json = "1"
spin-sdk = { git = "https://github.com/fermyon/spin", tag = "v2.0.1", optional = true }
spin-sdk = { version = "2", optional = true }
base64 = "0.21"
thiserror = "1"
tokio = { version = "1", features = [

View File

@@ -1,6 +1,6 @@
[package]
name = "leptos_meta"
version = "0.5.4"
version = "0.5.6"
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"

View File

@@ -1,6 +1,6 @@
[package]
name = "leptos_router"
version = "0.5.4"
version = "0.5.6"
edition = "2021"
authors = ["Greg Johnston"]
license = "MIT"

View File

@@ -351,6 +351,7 @@ pub fn server_macro_impl(
}
struct ServerFnName {
_attrs: Vec<Attribute>,
struct_name: Ident,
_comma: Option<Token![,]>,
prefix: Option<Literal>,
@@ -362,6 +363,7 @@ struct ServerFnName {
impl Parse for ServerFnName {
fn parse(input: ParseStream) -> syn::Result<Self> {
let _attrs: Vec<Attribute> = input.call(Attribute::parse_outer)?;
let struct_name = input.parse()?;
let _comma = input.parse()?;
let prefix = input.parse()?;
@@ -382,6 +384,7 @@ impl Parse for ServerFnName {
let fn_path = input.parse()?;
Ok(Self {
_attrs,
struct_name,
_comma,
prefix,
@@ -412,7 +415,7 @@ struct ServerFnBody {
/// The custom rusty variant of parsing rsx!
impl Parse for ServerFnBody {
fn parse(input: ParseStream) -> Result<Self> {
let attrs: Vec<Attribute> = input.call(Attribute::parse_outer)?;
let mut attrs: Vec<Attribute> = input.call(Attribute::parse_outer)?;
let vis: Visibility = input.parse()?;
let async_token = input.parse()?;
@@ -452,6 +455,12 @@ impl Parse for ServerFnBody {
Some((value.unwrap_or_default(), attr.path.span()))
})
.collect();
attrs.retain(|attr| {
let Meta::NameValue(attr) = &attr.meta else {
return true;
};
!attr.path.is_ident("doc")
});
Ok(Self {
vis,