Greg Johnston
9f4c480725
docs: specify form for component generics ( #2129 )
2023-12-23 07:36:28 -05:00
martin frances
34fb39c976
chore: fix lifetime on example ( #2125 )
...
```bash
cd leptos/leptos_macro/example
cargo clippy
```
warning: the following explicit lifetimes could be elided: 'a
--> src/lib.rs:41:20
|
41 | fn TestMutCallback<'a, F>(mut callback: F, value: &'a str) -> impl IntoView
| ^^ ^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
= note: `#[warn(clippy::needless_lifetimes)]` on by default
help: elide the lifetimes
|
41 - fn TestMutCallback<'a, F>(mut callback: F, value: &'a str) -> impl IntoView
41 + fn TestMutCallback<F>(mut callback: F, value: &str) -> impl IntoView
|
warning: `example` (lib) generated 1 warning (run `cargo clippy --fix --lib -p example` to apply 1 suggestion)
2023-12-20 19:10:59 -05:00
martin frances
ea80a21a54
chore: remove duplicate itertools
versions ( #2124 )
...
The root cause is the family of leptos modules requiring both versions 0.10.5 and 0.11.0
This PR will fix that. ( Also needs a bump to 0.12.0 )
```
warning: multiple versions for dependency `itertools`: 0.10.5, 0.11.0
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#multiple_crate_versions
note: the lint level is defined here
--> src/lib.rs:4:9
|
4 | #![warn(clippy::cargo)]
| ^^^^^^^^^^^^^
= note: `#[warn(clippy::multiple_crate_versions)]` implied by `#[warn(clippy::cargo)]`
```
2023-12-20 19:10:00 -05:00
Greg Johnston
33590d487b
chore: clean up warnings causing CI issues ( #2119 )
2023-12-18 08:15:46 -05:00
Rakshith Ravi
880002de31
fix: pass through doc comments for server fns ( #2099 )
2023-12-17 20:40:22 -05:00
blorbb
19711e16b6
feat: improved macro hygiene ( #2084 )
2023-11-29 07:47:18 -05:00
Greg Johnston
18a92bbfd8
fix: improved rust-analyzer support in #[component]
macro ( #2075 )
2023-11-27 19:37:43 -05:00
Greg Johnston
4e8c3accf2
fix: make prop serialization opt-in for devtools ( closes #1952 ) ( #2081 )
2023-11-27 16:35:31 -05:00
blorbb
8573f22d96
fix: re-export slice!
macro ( #2008 )
2023-11-11 06:47:15 -05:00
martin frances
d7ca5f2e96
chore: typed-builder and typed-builder-macro - bumped version numbers. ( #1958 )
2023-10-29 21:49:48 -04:00
Sadra
30370a55e1
feat: add a slice!()
macro ( #1867 )
2023-10-24 14:27:10 -04:00
Marc-Stefan Cassola
c87328f5cf
feat: add directives with use:
( #1821 )
2023-10-19 16:15:36 -04:00
safx
9a70898b09
feat: optional named arguments for #[server] macro ( #1904 )
2023-10-19 16:07:43 -04:00
Greg Johnston
be2d014f08
v0.5.1
2023-10-06 09:40:23 -04:00
Greg Johnston
1be25f0f47
fix: clippy
"needless lifetimes" warning ( closes #1825 ) ( #1852 )
2023-10-06 07:29:34 -04:00
Greg Johnston
e0d15c1a09
fix: correctly quote spread attributes in {..attrs}
syntax ( closes #1826 ) ( #1831 )
2023-10-02 18:02:49 -04:00
martin frances
fb914e1a50
chore: bump outdated dependencies in leptos_macro
( #1796 )
...
-attribute-derive = { version = "0.6", features = ["syn-full"] }
+attribute-derive = { version = "0.8", features = ["syn-full"] }
-itertools = "0.10"
+itertools = "0.11"
2023-09-29 13:05:57 -04:00
Julien Scholz
772bb1d60c
fix: improve rust-analyzer auto-completion ( #1782 )
2023-09-29 13:05:13 -04:00
Greg Johnston
c9d132f007
change: use let:
instead of bind:
( #1774 )
2023-09-25 20:33:36 -04:00
Greg Johnston
d99269afac
docs: error in view!
macro if you use cx,
( #1772 )
2023-09-22 17:29:55 -04:00
Fangdun Tsai
1d392483b4
chore(leptos_marco): enhancement of document generation ( #1768 )
2023-09-22 13:32:58 -04:00
Greg Johnston
1759a3e149
feat: correctly use_context
between islands ( #1747 )
2023-09-19 21:16:47 -04:00
Village
2c12256260
feat: allow component names to be paths ( #1725 )
2023-09-15 18:18:29 -04:00
Greg Johnston
afa67726c1
fix: document #[prop(default = ...)]
as in Optional Props ( closes #1710 ) ( #1721 )
2023-09-15 15:16:46 -04:00
Chris
7c9b118b2d
docs: update out-of-date docs for component
macro ( #1696 )
2023-09-14 13:47:04 -04:00
Greg Johnston
651356a9ec
docs: add docs for #[island]
macro ( #1691 )
2023-09-11 19:56:33 -04:00
Village
1c2327b2d6
feat: attr:
and #[prop(attrs)]
syntax for passing attributes down to components ( #1628 )
2023-09-10 15:19:53 -04:00
Greg Johnston
66dfef8729
Merge pull request #1681 from leptos-rs/docs
2023-09-08 17:11:47 -04:00
Greg Johnston
238d61ce1e
feat: experimental islands ( #1660 )
2023-09-08 16:33:00 -04:00
Greg Johnston
2fa2bf1706
docs: format
2023-09-08 16:27:50 -04:00
Greg Johnston
23d48d4c0e
docs: remove stray references to Scope
( closes #1671 )
2023-09-08 16:02:45 -04:00
blorbb
c87212f2d7
chore: remove (most) syn 1 dependencies ( #1670 )
2023-09-08 14:46:38 -04:00
Baptiste
b3a4c95dad
feat: Rc
-backed ChildrenFn
( #1669 )
2023-09-08 07:44:50 -04:00
Nya
495862e9f9
fix: custom events on components ( #1648 )
2023-09-04 13:27:33 -04:00
Village
6e008343c8
feat: add component generics ( #1636 )
2023-09-03 20:09:50 -04:00
Village
4a43983f4e
feat: implement spreading attributes onto elements ( #1619 )
2023-09-01 20:52:15 -04:00
Greg Johnston
8d3874f8a9
cargo fmt
2023-08-29 21:19:24 -04:00
Einherjar
bade16d227
docs: discuss unique paths for #[server]
functions ( #1610 )
2023-08-29 20:49:31 -04:00
Maneren
700eee6604
fix(macro/params): clippy warning ( #1612 )
2023-08-29 20:31:54 -04:00
Greg Johnston
6c3e2fe53e
feat: update to typed-builder
0.16 ( closes #1455 ) ( #1590 )
2023-08-26 10:10:42 -04:00
Greg Johnston
8f067dcde7
chore: clear release-mode warnings
2023-08-25 17:16:00 -04:00
Greg Johnston
c9cc493063
fix: fourth argument to server functions ( #1585 )
2023-08-25 10:28:54 -04:00
Greg Johnston
7306ecccbc
feat: make struct name and path optional for server functions ( #1573 )
2023-08-24 10:22:35 -04:00
Nathan Lapel
195b843840
feat: remove Clone
requirement for slots in vectors ( #1564 )
2023-08-22 21:23:38 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx
/Scope
( #918 )
2023-08-21 19:31:37 -04:00
luoxiaozero
18deb398ca
feat: tracing
support for component props ( #1531 )
2023-08-18 08:29:41 -04:00
martin frances
cddd784e8d
chore: fixed lint warning seen while running ``cargo doc
`` ( #1539 )
...
"component" is both a module and a macro and so we must
disambiguate
2023-08-15 06:18:19 -04:00
Greg Johnston
f6978217fb
docs: give a compile error when trying to put a child inside a self-closing HTML tag ( closes #1535 ) ( #1537 )
2023-08-13 12:44:45 -04:00
Greg Johnston
a88d047eff
template refactor + snapshot tests ( #1435 )
2023-08-04 07:54:03 -04:00
Greg Johnston
8847d5fc42
fix: compile-time regression for deeply-nested component trees ( #1476 )
2023-07-31 14:23:09 -04:00