Bart Toersche
73b8c7872e
Fix: Small fix for location hash/fragment ( #2464 )
2024-03-27 06:45:29 +00:00
martin frances
0b70949118
Bumped base64 to 0.22. ( #2457 )
2024-03-22 15:07:04 -07:00
battmdpkq
4faf3fa894
chore: fix types in some comments ( #2413 )
...
Signed-off-by: battmdpkq <cmaker@163.com>
2024-03-09 07:38:25 -05:00
Álvaro Mondéjar
7928f61401
chore: add lint to disallow prints to stdout ( #2404 )
2024-03-08 13:18:37 -05:00
Giovanni
2b4f5e0f58
docs: runtime error if setting the same event listener 2x rather than silent failure ( #2383 )
...
Delegated event listeners do not support adding more than one event listener of the same type. This can cause confusion if two listeners are added, as one is silently dropped.
2024-03-07 16:49:23 -05:00
Giovanni
943a992570
fix: re-throw errors in delegated event listeners ( #2382 )
2024-03-07 16:48:21 -05:00
Paul Hansen
6a83161368
chore: add MSRV ( #2360 )
2024-02-28 07:19:09 -05:00
rjmac
47abe00993
fix: don't leak canceled timeouts ( #2331 )
...
Instead of using `Closure::once_into_js`, this uses `into_js_value`,
which uses weak references to clean up the closure when Javascript no
longer has need of it.
It would be nice to make this (and the similar interval function) drop
the callback promptly when cancelled, but I don't think that's
possible while keeping the handles Copy.
Fixes #2330
Co-authored-by: Robert Macomber <robertm@mox>
2024-02-19 21:17:26 -05:00
Greg Johnston
701e3077fb
chore: cargo fmt
2024-02-05 06:38:02 -05:00
Sam Judelson
66ea072bc0
docs: a note to HtmlElement<El>
about Deref
( #2218 )
2024-02-04 15:34:39 -05:00
Greg Johnston
c84c6ee8cd
Merge pull request #2158 from leptos-rs/leptos_v0.6
2024-01-20 15:58:25 -05:00
Chris
d746f83387
docs: View::render_to_string
panic ( #2200 )
...
Co-authored-by: chrisp60 <gh@cperry.me>
2024-01-19 17:07:39 -08:00
Ari Seyhun
1777a4057a
fix!: remove clone in Cow<'static, str>
IntoView
impl ( #1946 )
2024-01-19 14:16:58 -05:00
Greg Johnston
5cacb57283
chore: new clippy warnings
2024-01-19 11:14:36 -05:00
Greg Johnston
d71feada7e
change: change all tracing levels to trace
to reduce verbosity ( #2176 )
2024-01-13 08:19:12 -08:00
SleeplessOne1917
16cf3c4eaf
feat: make IntoAttribute
more flexible for Option<T: IntoAttribute>
( #2130 )
2023-12-30 13:10:07 -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
NKID00
8122941c3c
fix: let mount_to_body
accept FnOnce
closures ( closes #2115 ) ( #2116 )
2023-12-17 20:28:18 -05:00
Greg Johnston
4e8c3accf2
fix: make prop serialization opt-in for devtools ( closes #1952 ) ( #2081 )
2023-11-27 16:35:31 -05:00
Greg Johnston
0ce4ee8a7a
docs: add warning for nested Fn
in attribute (see #2023 ) ( #2045 )
2023-11-22 07:35:20 -05:00
martin frances
362e3bc603
chore: stop using std::fmt, instead used core::fmt. ( #2033 )
2023-11-17 15:36:13 -05:00
Greg Johnston
68c91a732d
fix: allow nested functions in Attribute
( closes #2023 ) ( #2027 )
2023-11-15 11:00:15 -05:00
SleeplessOne1917
4029de2d42
feat: impl IntoAttribute
for TextProp
( #1925 )
2023-10-27 17:10:09 -04:00
Ari Seyhun
4b0437394c
feat: impl IntoAttribute
for Cow<'static, str>
( #1945 )
2023-10-27 13:48:43 -04:00
Ari Seyhun
a2bef05a4b
perf: IntoView
and IntoAttribute
for std::fmt::Arguments
improvements ( #1947 )
...
* fix: use static str when possible in `std::fmt::Arguments` in views
* feat: impl `IntoAttribute` for `std::fmt::Arguments`
2023-10-27 13:42:27 -04:00
Greg Johnston
db1113e5b3
fix: use separate key in hydration ID for router outlets ( closes #1909 ) ( #1939 )
2023-10-24 15:42:30 -04:00
martin frances
d999ff857d
chore: remove cargo doc
lint warnings ( #1936 )
2023-10-24 14:28:01 -04:00
Greg Johnston
12b0295906
chore: please clippy ( #1924 )
2023-10-21 18:33:21 -04:00
Greg Johnston
2756327f12
fix: add missing IntoView
implementation for Oco<'static, str>
2023-10-21 16:02:14 -04:00
Marc-Stefan Cassola
c87328f5cf
feat: add directives with use:
( #1821 )
2023-10-19 16:15:36 -04:00
Ari Seyhun
72ad1d7c68
feat: add new
method to NodeRef
( #1896 )
2023-10-15 19:56:23 -04:00
Greg Johnston
c6f51e6a09
docs: add some missing #[must_use]
to avoid accidental ()
rendering ( #1885 )
2023-10-11 15:00:27 -04:00
Markus Kohlhase
c080c2cbca
fix: use placeholder in comments for empty component names ( #1850 )
2023-10-09 16:17:46 -04:00
hiraginoyuki
c7607f6fcc
fix: documentation in leptos_reactive::Trigger
( #1844 )
2023-10-07 10:45:27 -04:00
Greg Johnston
6f9c40b0a8
fix: correctly handle Suspense
with local resources during hydration ( closes #1823 ) ( #1824 )
2023-10-02 18:02:35 -04:00
Antonin Peronnet
bd4d2202ea
feat: standardize on a Callback
type that is Copy
( #1795 )
2023-09-29 13:04:53 -04:00
Danik Vitek
baa5ea83fa
fix: reimplement Oco
cloning ( #1749 )
2023-09-22 13:31:04 -04:00
Lukas Potthast
7d3e2a41b9
fix: Callback clone impls missing a generic ( #1744 )
2023-09-18 13:47:29 -04:00
Lukas Potthast
dc1ba24470
fix: manual Clone and Debug impl for Callbacks ( #1703 )
2023-09-13 19:59:23 -04:00
jquesada2016
946f9ff3e1
feat: impl From<HtmlElement<El>> for HtmlElement<AnyElement>
( #1700 )
2023-09-13 19:55:48 -04:00
Baptiste
8d690ac146
fix: IntoView impl for Rc<dyn Fn() -> impl IntoView> ( #1698 )
2023-09-13 19:55:08 -04:00
Greg Johnston
59c7684568
fix: warnings on hydrating ()
2023-09-13 12:01:05 -04:00
Greg Johnston
a158e7f8bd
fix: remove erroneous log
2023-09-13 12:00:56 -04:00
Greg Johnston
a317874f93
change: run effects after a tick ( #1680 )
2023-09-11 21:01:35 -04:00
Greg Johnston
bb78f64cd5
fix: broken mount_to_body
in CSR mode ( #1688 )
2023-09-10 13:23:32 -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
a07984be9e
docs: add runtime warnings for mixing view!
and builder in SSR mode ( closes #1645 )
2023-09-08 16:27:29 -04:00