Greg Johnston
595013579c
0.6.4
2024-01-30 09:17:52 -05:00
Greg Johnston
8b1bd1ae9e
Merge pull request #2240 from leptos-rs/err-serialization
...
fix: serialization error during SSR on ServerFnError
2024-01-29 16:32:55 -05:00
Greg Johnston
6ef1531059
example: file upload with streaming progress bar ( #2242 )
2024-01-29 15:20:19 -05:00
Greg Johnston
9f1406250e
chore: update deprecated .remove() method on IndexSet
2024-01-29 11:32:15 -05:00
Greg Johnston
1f6a892291
fix: serialization error during SSR on ServerFnError
2024-01-29 10:36:08 -05:00
Greg Johnston
0ff1e279a2
fix: correctly track source in create_local_resource ( #2238 )
2024-01-28 10:09:03 -08:00
Chris
c6096cc2a0
chore: define edtion = "2021" in rustfmt.toml ( #2235 )
2024-01-27 16:04:25 -08:00
Greg Johnston
8a2ae7fc7c
\v0.6.3\
2024-01-26 21:00:21 -05:00
Greg Johnston
9de34b74cf
0.6.2
2024-01-26 18:07:04 -05:00
Greg Johnston
1b5961edaa
fix: fix type inference on extract() functions ( #2233 )
2024-01-26 17:54:42 -05:00
Greg Johnston
26d1aee9ad
Update README.md framework comparisons ( #2232 )
2024-01-26 17:01:26 -05:00
benwis
2bf09384df
0.6.1
...
Signed-off-by: benwis <ben@celcyon.com >
2024-01-26 12:32:14 -08:00
benwis
ac12e1a411
0.6.0
...
Signed-off-by: benwis <ben@celcyon.com >
2024-01-26 11:54:07 -08:00
Greg Johnston
b367b68a43
fix: use #[server(default)] to pass use default values for a field ( #2231 )
2024-01-26 14:46:31 -05:00
Greg Johnston
1f9dad421f
fix: allow paths to ServerFnError type ( #2230 )
2024-01-26 11:32:43 -08:00
Greg Johnston
4648fb2cfc
Update README.md
2024-01-25 20:34:15 -05:00
Saber Haj Rabiee
817ec045f7
chore: fix import of quote::quote ( #2227 )
2024-01-25 17:48:41 -05:00
Greg Johnston
ca3806e6bc
v0.6.0-rc1
2024-01-24 21:35:14 -05:00
Greg Johnston
936c2077c3
Merge pull request #2222 from leptos-rs/2221
...
fix: `.refetch()` should not include any tracked reads
2024-01-24 20:44:51 -05:00
Greg Johnston
b3b18875c6
chore: allow unknown lints
2024-01-24 19:43:28 -05:00
Greg Johnston
5cbab48713
chore: avoid possible false positive in cargo check
2024-01-24 19:38:16 -05:00
Greg Johnston
5a8880dd2e
fix: correctly track in the effect that creates the resource
2024-01-24 16:18:45 -05:00
Greg Johnston
ea6c957f3d
fix: .refetch() should not track any reads ( closes #2221 )
2024-01-23 11:08:50 -05:00
Greg Johnston
694e5f1cb3
fix: cast to correct type on Memo::try_with_untracked
2024-01-23 11:08:33 -05:00
Greg Johnston
fce2c727ab
feat: add support for custom encodings to #[server] macro ( #2216 ) ( closes #2210 )
2024-01-21 16:14:02 -05:00
Greg Johnston
7d1ce45a57
chore: minimize features activated with leptos_axum's default feature ( #1846 ) ( #2213 )
...
- `leptos_axum` default feature:
- remove `tokio/full`, `axum/macros`
- add `tokio/fs`, `tokio/sync`
- example `leptos-tailwind-axum`:
- enable `tokio`'s `rt-multi-thread` and `macros` features
- example `ssr_modes_axum`:
- enable `tokio`'s `rt-multi-thread` and `macros` features
Co-authored-by: Paul Nettleton <paulnett7@hotmail.com >
2024-01-21 15:22:46 -05:00
Niklas Eicker
997b99081b
change: for static routes, remove .static and provide additional context for static_params closures ( #2207 )
2024-01-21 13:33:05 -05:00
Chris
d33e57d4b7
feat: Default for LeptosOptions, ConfFile ( #2208 )
...
Co-authored-by: chrisp60 <gh@cperry.me >
2024-01-21 13:26:10 -05:00
Greg Johnston
b450f0fd10
fix: don't enable tracing feature on leptos by default ( #2211 )
2024-01-20 17:58:22 -05:00
Greg Johnston
c84c6ee8cd
Merge pull request #2158 from leptos-rs/leptos_v0.6
2024-01-20 15:58:25 -05:00
Greg Johnston
567644df8f
clarify docs here
2024-01-20 14:29:22 -05:00
Greg Johnston
39f5481b8c
clean up in docs and rename Axum extract() to match Actix extract()
2024-01-20 14:29:08 -05:00
Greg Johnston
c88bfbe0a0
tweak sets of features for CI
2024-01-20 14:18:25 -05:00
Greg Johnston
40da1fe94e
clippy
2024-01-20 14:16:13 -05:00
Greg Johnston
8df46fcdb9
examples: use old Axum version of hackernews_js_fetch until supported by axum-js-fetch
2024-01-20 12:39:16 -05:00
Greg Johnston
b4a1d90327
clean up for CI
2024-01-20 12:32:51 -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
Greg Johnston
2092c40bc7
missing derives
2024-01-19 18:21:57 -05:00
Greg Johnston
70ec0c2d0a
update sso example
2024-01-19 18:02:22 -05:00
Greg Johnston
eb45d05f3b
clippy
2024-01-19 17:43:05 -05:00
Greg Johnston
f19def9541
clippy
2024-01-19 16:55:16 -05:00
Greg Johnston
ddda785045
fix multipart support
2024-01-19 16:52:41 -05:00
Greg Johnston
26d9d75cf2
cargo fmt
2024-01-19 15:56:57 -05:00
Greg Johnston
46e7abf9ba
allow custom req/res/client types
2024-01-19 15:48:14 -05:00
Greg Johnston
1b1e02729e
clean up examples
2024-01-19 15:17:17 -05:00
Greg Johnston
fdd576535a
clean up examples
2024-01-19 15:14:39 -05:00
Greg Johnston
2a9e502893
fix rkyv deserialization
2024-01-19 15:03:21 -05:00
Greg Johnston
a519859a66
Revert "use &[u8] instead of Bytes for requests"
...
This reverts commit e179db1d42 .
2024-01-19 14:37:03 -05:00
Greg Johnston
25120c0e9f
fix streaming requests and clarify in docs
2024-01-19 14:17:26 -05:00
Greg Johnston
94cb4c0ec3
remove pavex work (now in pavex branch)
2024-01-19 14:17:26 -05:00
Greg Johnston
f9cd8539e4
add missing PartialEq/Eq implementations on ServerFnError ( closes #2198 )
2024-01-19 14:17:26 -05:00
Greg Johnston
14072457d0
clean up docs ( closes #2197 )
2024-01-19 14:17:26 -05:00
Greg Johnston
e179db1d42
use &[u8] instead of Bytes for requests
2024-01-19 14:17:26 -05:00
Greg Johnston
2fa60103b4
share inventory collect across types
2024-01-19 14:17:26 -05:00
Greg Johnston
a3a15f244d
expose all fields of ServerFnTraitObj via methods
2024-01-19 14:17:26 -05:00
Greg Johnston
0df5dfeaf8
weak dependency on Cargo.toml
2024-01-19 14:17:26 -05:00
Greg Johnston
3f22906053
fix warning
2024-01-19 14:17:26 -05:00
Greg Johnston
33ad30515d
serde-lite support should be enabled directly on server_fn
2024-01-19 14:17:26 -05:00
Greg Johnston
c5bab09423
partial support for streaming requests (doesn't actually work in the browser)
2024-01-19 14:17:26 -05:00
Greg Johnston
320179bc04
remove misleading warning
2024-01-19 14:17:26 -05:00
Greg Johnston
5065bed594
example of middleware that can run before and/or after server fn
2024-01-19 14:17:26 -05:00
Greg Johnston
22b4537f27
fix version numbers
2024-01-19 14:17:26 -05:00
Greg Johnston
8d23d5136a
add package metadata
2024-01-19 14:17:25 -05:00
Greg Johnston
c7fac64054
fix merge error
2024-01-19 14:17:25 -05:00
Greg Johnston
047235e7c1
clippy
2024-01-19 14:17:25 -05:00
Greg Johnston
7a086ad159
update version number
2024-01-19 14:17:25 -05:00
Greg Johnston
bb923b3f9b
erroneous hyphen
2024-01-19 14:16:59 -05:00
Greg Johnston
6a8c26a820
streaming example with filesystem watcher
2024-01-19 14:16:59 -05:00
Greg Johnston
21f8085851
add streaming/file watcher example
2024-01-19 14:16:59 -05:00
Greg Johnston
9a5a102ce3
add middleware to kitchen-sink example
2024-01-19 14:16:59 -05:00
Greg Johnston
4d602c21f8
example with custom errors
2024-01-19 14:16:59 -05:00
Greg Johnston
7d114c7414
file upload example
2024-01-19 14:16:58 -05:00
Greg Johnston
1f017a2ade
hm custom encodings have orphan rule issues
2024-01-19 14:16:58 -05:00
Greg Johnston
35e8e74dcf
get rkyv working and work on custom encoding example
2024-01-19 14:16:58 -05:00
Markus Kohlhase
4366d786ac
Update login example (CSR only) ( #2155 )
2024-01-19 14:16:58 -05:00
Ari Seyhun
1777a4057a
fix!: remove clone in Cow<'static, str> IntoView impl ( #1946 )
2024-01-19 14:16:58 -05:00
Greg Johnston
0571ebbc36
working on example
2024-01-19 14:16:58 -05:00
Greg Johnston
06c478b7cb
feature-gate the form redirect stuff, and clear old errors from query
2024-01-19 14:16:58 -05:00
Greg Johnston
90ba3529e9
working on Axum version
2024-01-19 14:16:58 -05:00
Greg Johnston
13a2691806
working on server fn example
2024-01-19 14:16:58 -05:00
Greg Johnston
1ad7ee8a03
generalize error redirect behavior across integrations
2024-01-19 14:16:58 -05:00
Greg Johnston
88fee243a8
support setting server URL on either platform
2024-01-19 14:16:58 -05:00
Greg Johnston
5e08253521
get both client and server side working
2024-01-19 14:16:58 -05:00
Greg Johnston
cc6f65cd83
initial version of server action error handling without JS
2024-01-19 14:16:58 -05:00
Greg Johnston
9488114801
docs
2024-01-19 14:16:58 -05:00
Greg Johnston
b0cdeab906
remove old code
2024-01-19 14:16:58 -05:00
Greg Johnston
def4be80b2
docs
2024-01-19 14:16:58 -05:00
Greg Johnston
15b04a8a85
more docs
2024-01-19 14:16:58 -05:00
Greg Johnston
0a9cdba22e
getting started on docs
2024-01-19 14:16:58 -05:00
Greg Johnston
1d1de4ac38
remove cfg-if from all examples
2024-01-19 14:16:58 -05:00
Greg Johnston
31b2b9e94c
remove explicit handle_server_fns in most cases because it's now included in .leptos_routes()
2024-01-19 14:16:58 -05:00
Greg Johnston
8f07818687
nicer formatting, remove cfg-if
2024-01-19 14:16:58 -05:00
Greg Johnston
a5cbfa0aad
remove viz integration (see #2177 )
2024-01-19 14:16:58 -05:00
Greg Johnston
6c8e704fb3
smh
2024-01-19 14:16:58 -05:00
Greg Johnston
81fb5160e5
missing makefiles
2024-01-19 14:16:58 -05:00
Greg Johnston
2af0d3d781
update session_auth_axum
2024-01-19 14:16:58 -05:00
Greg Johnston
7f532cda70
update todo_app_sqlite_csrs
2024-01-19 14:16:58 -05:00
Greg Johnston
c7941f7639
clippy
2024-01-19 14:16:58 -05:00
Greg Johnston
61148026d1
allow type paths for input/output, and properly namespace built-in encodings
2024-01-19 14:16:58 -05:00
Greg Johnston
738eeefe73
chore: clear warnings
2024-01-19 14:16:18 -05:00
Greg Johnston
be084a5d1d
remove list of magic identifiers, use rust-analyzer to help with imports instead
2024-01-19 14:16:18 -05:00
Greg Johnston
f5c007df7b
use server fns directly in ActionForm and MultiActionForm
2024-01-19 14:16:18 -05:00
Rakshith Ravi
a1bd84f3dc
feat: add serde-lite codec for server functions ( #2168 )
2024-01-19 14:16:18 -05:00
Rakshith Ravi
f6ce82c9d1
Fixed tests for server_fn ( #2167 )
...
* Fixed server_fn tests
* Changed type_name to TypeId
* Fixed handling of leading slashes for server_fn endpoint
2024-01-19 14:16:18 -05:00
Greg Johnston
853c080707
add missing server fn registration
2024-01-19 14:16:18 -05:00
Greg Johnston
f6b95e40f4
make sure endpoint names begin with a /
2024-01-19 14:16:18 -05:00
Greg Johnston
db1497b9c2
set version, input, etc. correctly
2024-01-19 14:16:18 -05:00
Greg Johnston
f53ac1a4ae
remove unused var
2024-01-19 14:16:18 -05:00
Greg Johnston
5e6f4403ca
set up redirects in Actix
2024-01-19 14:16:18 -05:00
Greg Johnston
4e3f1c834c
handle client-side and server-side redirects correctly (in Axum)
2024-01-19 14:16:18 -05:00
Greg Johnston
566df034ff
actually use server functions in ActionForm
2024-01-19 14:16:17 -05:00
Greg Johnston
fd97e2e027
Restore the previous full functionality of Form
2024-01-19 14:16:17 -05:00
Greg Johnston
c8fbee18c8
finished Actix support?
2024-01-19 14:16:17 -05:00
Greg Johnston
e1a9856ca9
more Actix work
2024-01-19 14:16:17 -05:00
Greg Johnston
60efaefff4
start Actix work
2024-01-19 14:16:17 -05:00
Greg Johnston
db4158f5c3
clear up warnings
2024-01-19 14:16:17 -05:00
Greg Johnston
af62d2e900
automatically include server function handler in .leptos_router()
2024-01-19 14:16:17 -05:00
Greg Johnston
c3e3ce7878
changes to get todo_app_sqlite_axum example working
2024-01-19 14:16:17 -05:00
Greg Johnston
dec17fc65b
fix server actions and server multi actions
2024-01-19 14:16:03 -05:00
Greg Johnston
2dbc5899f3
cargo fmt
2024-01-19 14:16:03 -05:00
Greg Johnston
dd368a845c
@ealmloff changes to reexport actix/axum
2024-01-19 14:16:03 -05:00
Greg Johnston
9c258219dd
fix Actix implementation with middleware
2024-01-19 14:16:03 -05:00
Greg Johnston
6a1685936b
fix rkyv
2024-01-19 14:16:03 -05:00
Greg Johnston
7d45e6bb13
clean up my mistake
2024-01-19 14:16:03 -05:00
Greg Johnston
8fae76828e
FromStr-based lightweight ServerFnError deserialization
2024-01-19 14:16:03 -05:00
Greg Johnston
d5b9e84f36
properly gate inventory
2024-01-19 14:16:03 -05:00
benwis
197edebd51
Made some progress, started work on pavex integration as well
2024-01-19 14:16:03 -05:00
benwis
2a5c855595
It starts to compile!
2024-01-19 14:16:03 -05:00
benwis
c9627bfeb4
Setup folder structure as before. Got a cyclical dependency though
2024-01-19 14:16:03 -05:00
benwis
c7422cd96e
First commit, checkpoint for cyclical dependency error
2024-01-19 14:15:51 -05:00
Daniel Santana
cadd217078
Update integration with support for axum 0.7 ( #2082 )
...
* chore: update to axum 0.7
Removed http, since it's included in axum, and replaced hyper by http-body-util, which is a smaller.
* chore: update samples to work with nre axum
Missing sessions_axum_auth, pending PR merge.
* chore: all dependencies update to axum 0.7
* chore: cargo fmt
* chore: fix doctests
* chore: Fix example that in reality doesn't use axum.
Fixed anyway.
* chore: more examples support for axum 0.7
* Small tweak
2024-01-19 14:13:55 -05:00
Greg Johnston
0c4cf5471d
v0.5.7
2024-01-19 13:03:44 -05:00
Greg Johnston
dd0c349554
examples: update axum-session because old version was yanked ( #2205 )
2024-01-19 12:54:08 -05:00
Greg Johnston
dd5a0ae094
Merge pull request #2203 from leptos-rs/2201
...
fix: routing regressions caused by `trailing_slash` support
2024-01-19 12:14:20 -05:00
Greg Johnston
5cacb57283
chore: new clippy warnings
2024-01-19 11:14:36 -05:00
Greg Johnston
b356d3cd28
ci: add regression test for #2190
2024-01-19 10:29:30 -05:00
Greg Johnston
ae1de88916
Revert "Better handling for trailing slashes. ( #2154 ) ( #2172 )"
...
This reverts commit 1eaf886481 .
2024-01-19 10:27:38 -05:00
Greg Johnston
67dd188358
ci: add regression test for matching main page correctly in router example
2024-01-19 10:26:58 -05:00
Joseph Cruz
1d4772251a
fix: ci stopped detecting leptos or example changes ( #2194 )
2024-01-17 18:58:21 -05:00
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
Sam Judelson
041b86e6e5
sso_auth_session example ( #2117 )
...
* example draft
* fmt
* db delete
* db
* oops clippy
* clippy 2
* - nightly ?
* fmt
* - cargo all features?
2024-01-15 10:48:22 -08:00
Greg Johnston
d71feada7e
change: change all tracing levels to trace to reduce verbosity ( #2176 )
2024-01-13 08:19:12 -08:00
Cody Casterline
1eaf886481
Better handling for trailing slashes. ( #2154 ) ( #2172 )
...
* retain trailing slashes in paths but leave matching trail-slash-insensitive
* fix: Allow trailing slashes to remain in leptos_path.
* Better handling for trailing slashes. (#2154 )
This adds a trailing_slash option to <Router> and <Route>.
By default, this option is backward compatible with current Leptos
behavior, but users can opt into two new modes for handling trailing
slashes.
* cargo fmt
* Fix redirect routes for wildcard patterns.
* Clippy fixies
* (Re)Reduce the scope of PossibleBranchContext's internals.
* Test real code, not copied code.
* Test TrailingSlash redirects.
* Fixes and more tests for matching "" && "/".
This path is the exception to the rule and *should* be treated
as equivalent regardless of its trailing slash.
* cargo fmt
---------
Co-authored-by: Tadas Dailyda <tadas@dailyda.com >
2024-01-11 13:51:31 -08:00
dependabot[bot]
c7da3998ba
chore(deps): bump tj-actions/changed-files in /.github/workflows ( #2180 )
...
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files ) from 39 to 41.
- [Release notes](https://github.com/tj-actions/changed-files/releases )
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md )
- [Commits](https://github.com/tj-actions/changed-files/compare/v39...v41 )
---
updated-dependencies:
- dependency-name: tj-actions/changed-files
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-11 16:04:21 -05:00
Luxalpa
10bbeea697
fix: remember router state ( fixes #2164 ) ( #2165 )
2024-01-10 19:51:37 -05:00
webmstk
2d70229608
chore: add rust-toolchain.toml to examples ( closes #2151 ) ( #2161 )
2024-01-07 15:29:54 -05:00
Paul Hansen
bbcef811f4
chore: remove dead code in actix tailwind example ( #2160 )
2024-01-07 15:29:15 -05:00
Simon Bihel
f5bf539148
fix: allow multiple SSRed Leptos apps on same server ( closes #1806 ) ( #2135 )
2024-01-07 15:28:50 -05:00
Greg Johnston
855a3c65c0
chore: remove newly-detected unused tuple fields ( #2169 )
2024-01-06 18:25:20 -05:00
SleeplessOne1917
16cf3c4eaf
feat: make IntoAttribute more flexible for Option<T: IntoAttribute> ( #2130 )
2023-12-30 13:10:07 -05:00
Greg Johnston
da533ad4e0
chore: clarify cargo-make and examples (see #2141 ) ( #2150 )
2023-12-30 08:14:23 -05:00
JackSpagnoli
b4a9db51be
chore: fix broken tailwind example repo link ( #2138 )
2023-12-28 20:07:49 -05:00
Greg Johnston
15946c6136
fix: emit original token stream when there are syntax errors in #[component] or #[island] function signature ( closes #2133 ) ( #2134 )
2023-12-25 14:30:31 -05:00
Greg Johnston
9f4c480725
docs: specify form for component generics ( #2129 )
2023-12-23 07:36:28 -05:00
Greg Johnston
74f9c3cd82
fix: <Transition/> fallback should show if client-rendered ( closes #2123 ) ( #2128 )
2023-12-22 17:10:09 -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
Niklas Eicker
fb0a62f3f6
fix: support additional context for route generation ( #2113 )
2023-12-17 20:37:27 -05:00
Greg Johnston
a4bd7c4274
chore: don't warn when stabilized features are used ( #2118 )
2023-12-17 20:34:32 -05:00
NKID00
8122941c3c
fix: let mount_to_body accept FnOnce closures ( closes #2115 ) ( #2116 )
2023-12-17 20:28:18 -05:00
Gentle
21f4c27cfb
chore: add nix-darwin support, update flake ( #2106 )
...
Co-authored-by: Gentle <ramon.klass@gmail.com >
2023-12-14 09:42:07 -05:00
Simon Richard
b578ec82d7
examples: change output names to clarify Tailwind examples ( #2102 )
2023-12-11 20:25:10 -05:00
jo!
50432e2651
examples: ergonomic improvements to session_auth_axum ( #2057 )
...
I've always hated the get_todos function and I
wanted to change it badly. Added a .env file
containing the db url for sqlx-cli, and cleaned
up with leptosfmt
Co-authored-by: j0lol <me@j0.lol >
2023-12-10 14:28:42 -05:00
Niclas Åhdén
fcc9242a63
docs: minor documentation corrections ( #2098 )
...
* Docs: Fix Body docs incorrectly referring to html
* Docs: Correct X/Z/Z to X/Y/Z in CONTRIBUTING
2023-12-10 14:24:16 -05:00
Greg Johnston
6014a70d0d
fix: support complete URLs in <A/> and <Form/> ( closes #2076 ) ( #2096 )
2023-12-01 19:20:43 -05:00
Trey Lowerison
ed61ea9dd2
feat: add support for placing attributes on server functions ( #2093 )
...
* fix: add support for placing attributes on server functions
Adding instrumentation to server functions is not straightforward (requires calling out to another ssr-only function which is instrumented). This commit adds all attributes on the server function to both the generated front end and back end functions. If those attributes are only desirable on the backend say, a user can always wrap their attribute in `#[cfg_attr(feature = "ssr", ..)]`.
* nit: formatting in example cargo
2023-12-01 15:36:52 -05:00
itowlson
9bbd881757
feat: support spawn_local on Spin WASI ( #2066 )
...
Signed-off-by: itowlson <ivan.towlson@fermyon.com >
2023-12-01 15:34:29 -05:00
Greg Johnston
8d68c34796
docs: point the book toward its new location with redirects ( #2095 )
2023-12-01 15:20:44 -05:00
Daniel Mantei
e8025705a4
docs: book restructuring and updates ( #2052 )
...
* move DX page under "Getting Started" section; add leptosfmt to DX page
* add a "community and leptos-* crates" page
* create folder for "getting_started"
* updates to 'getting started' chapter (feedback-based)
* clarify book structure + add necessary explanations
* address PR comments by @reedwoodruff
* update "getting started"
* address gbj's comments
* remove the term "universal" from book
* minor update
* formatting
* address reedwoodruff comment
2023-11-30 19:24:18 -05:00
blorbb
19711e16b6
feat: improved macro hygiene ( #2084 )
2023-11-29 07:47:18 -05:00
Alex Lazar
1272bd12f0
docs: use with!() macro in book and update formatting on Effect page ( #2054 )
2023-11-29 07:41:13 -05:00
martin frances
731b028b11
chore: Bump http from 0.2.8 to 0.2.11. ( #2068 )
2023-11-29 07:36:03 -05:00
sdutwsl
1a295bb3d6
docs: correct titile level for 04b_iteration.md ( #2080 )
2023-11-28 19:53:41 -05:00
Rockie Guo
9c44da2594
docs: minor fixes for some code examples in the book ( #2077 )
2023-11-28 19:53:26 -05:00
Alex Lazar
75c27e0b85
docs: fix book chapter 3.9 #3 ( #2053 )
...
* Fix book chapter 3.9 #3
* Add note about Layout and Content
2023-11-28 19:52:01 -05:00
Greg Johnston
b95a79240e
v0.5.4
2023-11-28 18:46:51 -05:00
Alexis Fontaine
8e374efe8d
fix: invalid attribute value for aria-current ( #2089 )
2023-11-28 15:23:16 -05:00
Greg Johnston
b578660624
docs: make it easy to see how to run each example in its README ( #2085 )
2023-11-28 11:47:56 -05:00
Greg Johnston
d6ee2a37f4
v0.5.3
2023-11-27 19:38:33 -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
Joseph Cruz
a8e25af523
ci(leptos): run ci on change instead of check ( #2061 )
...
* ci: run ci examples on leptos change
* chore(ci): simulate leptos source change
* ci(todo_app_sqlite_csr): increase retries
* ci: delete check examples workflow
* ci: rename ci examples workflow
* ci: run ci examples with stable toolchain
* chore(ci): remove simulated change
* ci: delete check stable workflow
2023-11-24 14:59:13 -05:00
Greg Johnston
d531848db5
fix: dispose previous route or outlet before rendering new one ( closes #2070 ) ( #2071 )
2023-11-24 14:51:51 -05:00
hpepper
670f415565
docs: add instruction to install trunk to examples/README.md ( #2064 )
...
Co-authored-by: Henry Pepper <henry>
2023-11-24 14:06:02 -05:00
Greg Johnston
061213ca78
fix: correctly mark Trigger as clean when it is re-tracked ( closes #1948 , #2048 ) ( #2059 )
2023-11-22 09:29:25 -05:00
Greg Johnston
0ce4ee8a7a
docs: add warning for nested Fn in attribute (see #2023 ) ( #2045 )
2023-11-22 07:35:20 -05:00
Greg Johnston
1cd6603da0
ci(examples): fix portal test ( #2051 )
2023-11-20 20:39:19 -05:00
Andrew Wheeler(Genusis)
453911e6fc
examples: updated axum session to latest 0.9 in examples ( #2049 )
...
* updated axum_database_sessions to axum_session along with axum_sessions_auth to axum_session_auth
* updated to axum session 0.9
2023-11-20 20:33:31 -05:00
Greg Johnston
cb6267ad08
feat: <Provider/> component to fix context shadowing ( closes #2038 ) ( #2040 )
2023-11-19 20:24:36 -05:00
Ken
4518d3c89f
Have fetch example conform to docs guidance around using <ErrorBoundary> and <Transition> in conjunction ( #2035 )
...
* put `<ErrorBoundary>` inside `<Transition>`
* fix indentation
2023-11-18 08:24:30 -05:00
Greg Johnston
e47a619556
examples: add CSR with server functions example ( closes #1975 ) ( #2031 )
2023-11-18 08:24:15 -05:00
Daniel Mantei
414f5fc393
docs: reorganize deployment section ( #2036 )
...
* Update mdbook-admonish book dependency
* Move "Optimizing Binary Size" to Deploy.. chapter
* Minor text updates to the Deployment section
2023-11-17 15:40:20 -05:00
martin frances
362e3bc603
chore: stop using std::fmt, instead used core::fmt. ( #2033 )
2023-11-17 15:36:13 -05:00
taohua
4d549f70c9
docs: fix misnamed form field in <Form/> example ( #2024 )
...
Co-authored-by: datewu <>
2023-11-17 15:27:06 -05:00
Chris
85dd726d43
docs: ActionForm examples for indexing into struct fields ( #2017 )
...
Co-authored-by: chrisp60 <gh@cperry.me >
2023-11-17 15:22:11 -05:00
blorbb
24febe11f3
feat: impl Default for TextProp ( #2016 )
2023-11-17 15:20:03 -05:00
Greg Johnston
64b1e9bed3
fix: use create_effect for <Portal/> to avoid hydration issues ( closes #2010 ) ( #2029 )
2023-11-17 15:19:07 -05:00
Greg Johnston
68c91a732d
fix: allow nested functions in Attribute ( closes #2023 ) ( #2027 )
2023-11-15 11:00:15 -05:00
blorbb
8573f22d96
fix: re-export slice! macro ( #2008 )
2023-11-11 06:47:15 -05:00
Greg Johnston
61c7ff4256
docs: add note about context shadowing ( closes #1986 ) ( #2015 )
2023-11-10 18:04:22 -05:00
Greg Johnston
860d887931
chore: remove duplicate benchmarks in leptos_reactive ( #2014 )
2023-11-10 15:53:32 -05:00
Chris
5e929a75fa
feat: Action::new and Action::server ( #1998 )
2023-11-10 15:53:20 -05:00
Greg Johnston
d82cf0b76a
docs: remove outdated APP_ENVIRONMENT variable ( #2013 )
2023-11-10 14:27:45 -05:00
Greg Johnston
cb7e07496a
docs: fix CodeSandbox for resources ( #2002 )
2023-11-07 20:11:30 -05:00
Greg Johnston
17881c5c6e
docs: fix chapter 10 CodeSandbox
2023-11-07 20:07:38 -05:00
Greg Johnston
2e816b26aa
benchmarks: get benchmarks directory working with updated tachys
2023-11-07 20:03:35 -05:00
Gabriel Hansson
68d67c9e92
book: Fix <Body/> link in metadata.md ( #1999 )
2023-11-07 16:16:47 -05:00
Greg Johnston
0dea6fdcea
fix: correctly reset island/not-island state of SSRed Suspense streaming into island ( closes #1996 ) ( #2000 )
2023-11-07 16:16:27 -05:00
Greg Johnston
530dcff86a
examples: remove incorrect CSR information for hackernews_js_fetch example ( #1997 )
2023-11-06 14:45:26 -05:00
Greg Johnston
9d9a4932b3
fix: run <ErrorBoundary/> in a child so siblings don't collide ( closes #1987 ) ( #1991 )
2023-11-05 21:29:35 -05:00
Greg Johnston
bfb67d45e8
examples: fix style.css path ( closes #1992 ) ( #1994 )
2023-11-05 21:29:17 -05:00
Greg Johnston
b1e8105442
fix: treat Suspense as containing a Set of resources, not a counter (closes Suspense only working with a single Resource ( closes #1805 , closes #1905 ) ( #1985 )
2023-11-04 11:03:36 -04:00
Greg Johnston
7aced17976
docs: clarify need to provide context to both rendering and server function handler ( #1983 )
2023-11-03 18:34:50 -04:00
Gabriel Hansson
191b40b2ac
docs: point leptos_server docs.rs url to latest version. ( #1982 )
2023-11-03 17:05:42 -04:00
Gabriel Hansson
15ca5bec61
docs: fix <Transition/> url in 12_transition.md ( #1980 )
2023-11-03 17:00:26 -04:00
Gabriel Hansson
ba4d226004
docs: Fix 08_parent_child.md callback example code. ( #1976 )
2023-11-03 16:58:45 -04:00
Chris
3adfd334df
fix: leptos_router::params_map! ( #1973 )
...
Fixing implementation comes with the benefit of knocking a crate out of
the deps tree (`common_macros`).
2023-11-02 16:29:50 -04:00
martin frances
d7ca5f2e96
chore: typed-builder and typed-builder-macro - bumped version numbers. ( #1958 )
2023-10-29 21:49:48 -04:00
Chris
67bdb3498f
docs: switch feature flag stable to nightly ( #1959 )
2023-10-29 21:48:53 -04:00
Greg Johnston
9e9386b223
does this make clippy happy in CI? ( #1965 )
2023-10-29 21:48:33 -04:00
SleeplessOne1917
4029de2d42
feat: impl IntoAttribute for TextProp ( #1925 )
2023-10-27 17:10:09 -04:00
Greg Johnston
777095670e
fix: add leptos_axum::build_static_routes ( closes #1843 ) ( #1855 )
2023-10-27 17:09:52 -04:00
koopa
a11c6303e2
feat: allow arbitrary attributes for <A/> component ( #1953 )
2023-10-27 15:30:30 -04:00
Daniél Kerkmann
3394e316b7
docs: add ignoring #[server] macro for helix as well ( #1951 )
...
Update helix configuration for the newest version.
To be consistent, adding the `server` ignore entry to helix as well.
Also sorting the parameters alphabetically.
2023-10-27 13:55:00 -04:00
Ari Seyhun
4b0437394c
feat: impl IntoAttribute for Cow<'static, str> ( #1945 )
2023-10-27 13:48:43 -04:00
Ari Seyhun
d10a566e48
feat: add new method to Trigger ( #1935 )
2023-10-27 13:48:15 -04:00
martin frances
e0cca3e7a3
workflows: bumped tj-actions/changed-files to @39. ( #1942 )
2023-10-27 13:47:56 -04:00
martin frances
0c8ab7c725
workflows: bump setup-node to version 4. ( #1944 )
2023-10-27 13:47:33 -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
6361985fb1
fix: relax 'static bound on as_child_of_current_owner ( #1955 )
2023-10-27 13:20:34 -04:00
Greg Johnston
ad290f5ed2
chore: update README.md to remove note about 0.5
2023-10-24 22:12:12 -04:00
Greg Johnston
5f53a1459e
v0.5.2
2023-10-24 21:03:29 -04:00
Greg Johnston
379623d548
chore: fix SSR tests ( #1943 )
2023-10-24 17:53:45 -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
Greg Johnston
d943a50df1
fix: misaligned </head> tags in streaming responses ( closes #1930 ) ( #1932 )
2023-10-24 15:42:07 -04:00
Greg Johnston
eb86899e08
chore: remove wee_alloc to make Dependabot happy ( #1938 )
2023-10-24 15:41:03 -04:00
Greg Johnston
e2842ede44
chore: fix broken doctests in leptos_reactive
2023-10-24 15:35:16 -04:00
Greg Johnston
fdd4b3d919
chore: cargo fmt
2023-10-24 15:01:33 -04:00
nikhilraojl
7771052db8
docs: clarify docs on resource source signal ( #1918 )
2023-10-24 14:29:09 -04:00
martin frances
d999ff857d
chore: remove cargo doc lint warnings ( #1936 )
2023-10-24 14:28:01 -04:00
Sadra
30370a55e1
feat: add a slice!() macro ( #1867 )
2023-10-24 14:27:10 -04:00
koopa
a7330d61b6
feat: add replace prop to Form component ( #1923 )
2023-10-24 14:24:23 -04:00
Marc-Stefan Cassola
e2f6780de4
docs: added Callback to documentation and examples. ( #1926 )
...
* added Callback to documentation and examples.
Also reduced code duplication in Callback implementation.
* added back the closure event callback example
2023-10-24 14:14:51 -04:00
martin frances
05b4f8e617
chore: use .first() [not .get(0)] ( #1929 )
2023-10-23 21:02:42 -04:00
Greg Johnston
eb888029d1
docs: fix potential panic in 04b_iteration.md
2023-10-22 07:28:06 -04:00
Daniél Kerkmann
3e08486385
feat: Add local attribute for Await ( #1922 )
...
This PR adds the ability to use `create_local_resource` instead of
`create_resource`. This will run the create resource locally on the
system and therefore its result type does not need to be `Seriaziable`.
Closes #1567
2023-10-21 18:34:02 -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
Greg Johnston
b8ca8b7849
docs: add chapter on nested reactivity and iteration ( #1920 )
2023-10-20 15:18:38 -04:00
Greg Johnston
6abdca0597
docs: better document default and wasm features on leptos_axum ( closes #1872 ) ( #1883 )
2023-10-20 14:57:53 -04:00
Greg Johnston
bf14999eb2
fix: router should still scroll to hash even if path didn't change ( closes #1907 ) ( #1917 )
2023-10-20 14:57:35 -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
4a83ffca6f
fix: try_update() and try_set() on Resource should not panic ( closes #1915 ) ( #1916 )
2023-10-19 15:56:57 -04:00
Saikat Das
319017f03f
docs: fix typo ( #1910 )
2023-10-19 09:00:30 -04:00
Greg Johnston
33e166a462
allow construction by making data public
2023-10-18 19:16:08 -04:00
Greg Johnston
8994154b23
fix: maintain hash when setting query signal ( closes #1902 ) ( #1908 )
2023-10-17 20:28:57 -04:00
luoxiaozero
7b88df32d1
feat: add a target prop to the <A/> component ( #1906 )
2023-10-17 20:28:37 -04:00
PianoPrinter
0d6ddfb71e
fix: properly handle trailing / in more routes ( #1900 )
2023-10-17 12:45:22 -04:00
Greg Johnston
4a4e16c206
chore: tweak tracing levels ( #1901 )
2023-10-17 12:44:37 -04:00
Henry Rovnyak
11f6a5d341
fix: remove Clone bound for SignalWith for Resource ( #1895 )
2023-10-16 14:37:38 -04:00
Greg Johnston
ad208ec473
fix: bug with client-side routing no longer working due to different origin ( #1899 )
2023-10-15 20:39:03 -04:00
Ari Seyhun
72ad1d7c68
feat: add new method to NodeRef ( #1896 )
2023-10-15 19:56:23 -04:00
Quan Hua
d6a9d2efdf
docs: update deployment.md ( #1898 )
...
cargo-leptos@0.2.0 changes the file structure under target folder
2023-10-15 19:55:36 -04:00
Greg Johnston
8eed999611
fix: properly handle trailing / in splat routes ( closes #1764 ) ( #1890 )
2023-10-14 08:37:31 -04:00
Azzam S.A
07f2cbfbba
examples: rename Tailwind examples ( #1875 )
2023-10-13 16:20:26 -04:00
ymijorski
fc4dea6839
feat: allow custom attributes on leptos_meta components ( #1874 )
2023-10-13 15:30:48 -04:00
Greg Johnston
17b3300351
fix: ensure there's no reactive tracking in an on_cleanup ( closes #1882 ) ( #1889 )
2023-10-12 07:36:07 -04:00
Greg Johnston
f3508cef36
feat: add reasonable fallback behavior for ActionForm in an island ( #1888 )
2023-10-11 18:59:49 -04:00
Greg Johnston
5c41d20421
Merge pull request #1887 from leptos-rs/1886
...
Fix failing `cargo make lint` for `hackernews_js_fetch`
2023-10-11 18:59:22 -04:00
Greg Johnston
53e16751a7
chore: clean up style and bring into line with other hackernews examples
2023-10-11 16:45:48 -04:00
Greg Johnston
18f7b56c03
fix: do not force target wasm32 for CI purposes
2023-10-11 16:45:36 -04:00
Greg Johnston
c6f51e6a09
docs: add some missing #[must_use] to avoid accidental () rendering ( #1885 )
2023-10-11 15:00:27 -04:00
dandante
971fb734de
docs: fix Markdown in 02_getting_started.md ( #1873 )
2023-10-11 12:06:16 -04:00
luoxiaozero
200304402f
feat: implement Default for RwSignal and StoredValue ( #1877 )
2023-10-11 12:05:05 -04:00
Greg Johnston
4baa75ccf0
fix: correctly untrack in .try_with_untracked ( closes #1880 ) ( #1881 )
2023-10-11 12:04:16 -04:00
Greg Johnston
9af1c7e1a3
fix: hydration ID clash with Suspense > Outlet > Suspense ( closes #1863 ) ( #1864 )
2023-10-09 16:22:43 -04:00
obioma
a302257129
docs: improvements in book - closes #1845 ( #1856 )
2023-10-09 16:21:09 -04:00
Marc-Stefan Cassola
4251f6c0f4
feat: add Portal component ( #1820 )
2023-10-09 16:18:52 -04:00
Markus Kohlhase
c080c2cbca
fix: use placeholder in comments for empty component names ( #1850 )
2023-10-09 16:17:46 -04:00
Tyrone Tudehope
0676348bd4
docs: fix Prop-drilling example in Parent-Child Communication section ( #1865 )
2023-10-09 16:17:26 -04:00
Tyrone Tudehope
18ad7cde20
docs: Add missing argument name to WrapsChildren component ( #1866 )
2023-10-09 16:16:59 -04:00
Jesse He
b61d0553a0
docs: remove extra "```rust" and add closing bracket to Testing docs ( #1870 )
2023-10-09 16:16:43 -04:00
Greg Johnston
2a3b613230
docs: add islands guide/demo to the docs ( #1861 )
2023-10-07 13:10:49 -04:00
Greg Johnston
0d4862b238
feat: add extractor functions with better API than extract ( closes #1755 ) ( #1859 )
2023-10-07 13:10:30 -04:00
hiraginoyuki
c7607f6fcc
fix: documentation in leptos_reactive::Trigger ( #1844 )
2023-10-07 10:45:27 -04:00
Artur Corrêa Souza
29216b226f
docs: clarify what "once per signal change" means ( #1858 )
2023-10-07 10:44:06 -04:00
Greg Johnston
32ba0ce4fb
add awesome-leptos to README
2023-10-07 10:43:21 -04:00
Greg Johnston
c781b4e1c7
docs: update CodeSandboxes to 0.5
2023-10-06 14:20:01 -04:00
Greg Johnston
be2d014f08
v0.5.1
2023-10-06 09:40:23 -04:00
Jesse He
18cdf70864
docs: fix hidden #two
2023-10-06 07:31:23 -04:00
Greg Johnston
1be25f0f47
fix: clippy "needless lifetimes" warning ( closes #1825 ) ( #1852 )
2023-10-06 07:29:34 -04:00
Greg Johnston
cc93651bc9
fix: panic during generate_route_list if you immediately dispatch an action ( #1853 )
2023-10-06 07:29:10 -04:00
Kevin Old
a7a1559e01
fix: update log debug to use get_untracked for logged in user to resolve client side error ( #1834 )
2023-10-05 21:34:58 -04:00
martin frances
15f08aaa30
chore: removed warning in build artefacts. ( #1840 )
...
```
The following actions uses node12 which is deprecated and will be forced to run
on node16: actions-rs/toolchain@v1. For more info:
https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
```
In other places @3 was being used, so for consitency I have bumped everything up to @4
- uses: actions/checkout@v3
+ uses: actions/checkout@v4
2023-10-05 21:15:01 -04:00
blorbb
d0295bae01
feat: support stored values in with! and update! ( #1836 )
2023-10-05 21:14:33 -04:00
Ben Wishovich
5220c37edd
fix: make Async Mode return Content-Type header in Response ( #1851 )
2023-10-05 21:13:33 -04:00
Paul Wagener
4f649e020c
feat: allow disposing of Signal & StoredValue ( #1849 )
2023-10-05 21:02:50 -04:00
Greg Johnston
e0d15c1a09
fix: correctly quote spread attributes in {..attrs} syntax ( closes #1826 ) ( #1831 )
2023-10-02 18:02:49 -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
Daniel Santana
a946a0181d
fix: don't overwrite <Html/> props ( closes #1828 )
2023-10-02 13:46:20 -04:00
Marc-Stefan Cassola
6d44540ab3
feat: optional fallbacks for Show, Suspense, and Transition ( #1817 )
2023-10-02 08:29:21 -04:00
Sebastian Dobe
6a547cb9db
docs: DX improvements: add section about jetbrains intellij-rust ( #1804 )
2023-10-02 08:26:35 -04:00
Tanguy
ac8dd7af67
fix: template! cfg condition ( #1822 )
2023-10-02 07:52:54 -04:00
Greg Johnston
0962f699e4
Merge pull request #1818 from leptos-rs/1816
...
Missing docs and `Copy` impl for `Callback`
2023-10-01 08:27:29 -04:00
Greg Johnston
fcd1028fb7
docs: missing module-level docs for Callback
2023-09-30 15:52:47 -04:00
Greg Johnston
dc429e33ff
fix: missing Copy impl on Callback
2023-09-30 15:52:11 -04:00
Greg Johnston
6b40ca36a5
docs: fix For view prop name ( closes #1813 ) ( #1814 )
2023-09-30 15:49:26 -04:00
Greg Johnston
d869bc6675
chore: clippy
2023-09-29 20:36:15 -04:00
Greg Johnston
d8aeb82949
cargo fmt
2023-09-29 20:35:39 -04:00
Greg Johnston
32e8213ebf
v0.5.0
2023-09-29 17:13:56 -04:00
Greg Johnston
fa2be59895
feat: better error handling for ScopedFuture ( #1810 )
2023-09-29 17:12:56 -04:00
Sirius902
321c522fa5
fix: extra set of brackets in generate_head_metadata ( #1811 )
2023-09-29 17:12:46 -04:00
Greg Johnston
7378b8581a
fix: broken Suspense when a resource loads immediately ( closes #1805 ) ( #1809 )
2023-09-29 14:44:49 -04:00
Ben Wishovich
2d634364a9
feat: set Content-Type header for all Responses to text/html;charset="utf-8" ( #1803 )
2023-09-29 13:51:15 -04:00
Greg Johnston
f7adf6f73d
examples: fix hackernews examples oops
2023-09-29 13:36:13 -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
Antonin Peronnet
bd4d2202ea
feat: standardize on a Callback type that is Copy ( #1795 )
2023-09-29 13:04:53 -04:00
Greg Johnston
870808e63f
feat: implement From<Fn() -> T> for Signal<T> ( #1801 )
2023-09-29 09:13:27 -04:00
Ben Wishovich
d7fff5a8ab
fix: render_route error message and matching of non standard routes ( #1799 )
2023-09-29 09:10:59 -04:00
jquesada2016
609afce544
feat: Scoped Futures ( #1761 )
2023-09-28 15:20:18 -04:00
messense
181bcadbe2
feat(leptos_config): only enable toml feature for the config dependency ( #1788 )
2023-09-27 19:42:25 -04:00
Greg Johnston
3f2a9facf8
change: enable inline children for For by switching to children and bind: ( #1773 )
2023-09-26 14:24:02 -04:00
Saeed Andalib
c5c79234f1
docs: update working_with_signals.md ( #1785 )
...
Pulled the option number 2 out of the blockquote
2023-09-26 14:23:47 -04:00
Fangdun Tsai
de9fb5e382
chore(leptos_meta): enhance links in docs ( #1783 )
2023-09-25 20:34:11 -04:00
Greg Johnston
c9d132f007
change: use let: instead of bind: ( #1774 )
2023-09-25 20:33:36 -04:00
Greg Johnston
a1a9d41a7a
updating SSR benchmarks to include tachys
2023-09-25 15:45:52 -04:00
Greg Johnston
73112c9faa
Merge pull request #1779 from leptos-rs/docs-show
...
docs: fix `Show` docs reference to scope
2023-09-25 07:54:38 -04:00
Sean Aye
50678dafe1
feat: add JS Fetch integration support ( #1554 )
2023-09-25 07:51:25 -04:00
Greg Johnston
b1363a16ab
docs: fix Show docs reference to scope
2023-09-23 12:46:41 -04:00
Greg Johnston
ae986e71fa
change: only run create_local_resource in the browser ( #1777 )
2023-09-23 11:10:50 -04:00
Antonin Peronnet
0531831fe8
chore: add cargo-make and trunk in nix flake ( #1763 )
...
* add `cargo-make` dependency for nix
* add `trunk` dependency for nix
2023-09-23 11:10:24 -04:00
Greg Johnston
18eeee8e1f
0.5.0-rc3
2023-09-22 17:38:54 -04:00
Greg Johnston
d99269afac
docs: error in view! macro if you use cx, ( #1772 )
2023-09-22 17:29:55 -04:00
Nico Burniske
38d1727e9c
change: generate_route_list no longer async in any integration ( #1485 )
2023-09-22 15:42:58 -04:00
Greg Johnston
e0265252d7
fix: broken benchmarks ( closes #1763 ) ( #1771 )
2023-09-22 15:41:44 -04:00
Fangdun Tsai
6cc92cee8d
chore(leptos_hot_reload): apply lints suggestions ( #1735 )
2023-09-22 13:48:23 -04:00
Fangdun Tsai
1d392483b4
chore(leptos_marco): enhancement of document generation ( #1768 )
2023-09-22 13:32:58 -04:00
Village
3b864ac1a0
feat: Static Site Generation ( #1649 )
2023-09-22 13:32:09 -04:00
Danik Vitek
baa5ea83fa
fix: reimplement Oco cloning ( #1749 )
2023-09-22 13:31:04 -04:00
Gabriel de Perthuis
d651400fa2
docs: better document the interaction of SsrModes with blocking resources ( #1765 )
...
Meant to address users making the same mistake as
https://github.com/leptos-rs/leptos/issues/1119
2023-09-22 12:58:28 -04:00
Fangdun Tsai
b729a658df
chore(leptos_router): improve docs ( #1769 )
2023-09-22 12:56:49 -04:00
Gabriel de Perthuis
2c8f46466b
feat: support default values for annotated server_fn arguments with #[server(default)] ( #1762 )
...
This allows form submission with checkbox inputs to work.
For example:
let doit = create_server_action::<DoItSFn>();
<ActionForm action=doit>
<input type="checkbox" name="is_good" value="true"/>
<input type="submit"/>
</ActionForm>
#[server(DoItSFn, "/api")]
pub async fn doit(#[server(default)] is_good: bool) -> Result<(), ServerFnError> {}
If is_good is absent in the request to the server API,
`Default::default()` is used instead.
2023-09-20 20:43:20 -04:00
Greg Johnston
f2117b1186
fix: restore missing run_as_child
2023-09-20 19:37:39 -04:00
Greg Johnston
726cf47f17
Merge pull request #1758 from leptos-rs/sus2
...
Fix Suspense issues on subsequent navigations
2023-09-20 13:32:35 -04:00
Greg Johnston
1759a3e149
feat: correctly use_context between islands ( #1747 )
2023-09-19 21:16:47 -04:00
Fangdun Tsai
2374439cd8
chore(server_fn): improve docs in server_fn ( #1734 )
2023-09-19 21:16:30 -04:00
Greg Johnston
f85bfd31db
fix: Transition double-rendering
2023-09-19 21:04:41 -04:00
Greg Johnston
43b58bfba9
Revert "fix: #1742 part 2 (Suspense running children a second time => extra animations)"
...
This reverts commit fafb6c01da .
2023-09-19 21:04:02 -04:00
Greg Johnston
fafb6c01da
fix : #1742 part 2 (Suspense running children a second time => extra animations)
2023-09-19 10:32:25 -04:00
Greg Johnston
1bd47f34e5
feat: make Transition set_pending use #[prop(into)] ( #1746 )
2023-09-18 22:46:03 -04:00
Greg Johnston
661a038780
fix: Resource::with() (pt. 3!) — closes #1751 without breaking #1742 or #1711 ( #1752 )
2023-09-18 22:45:50 -04:00
Fangdun Tsai
e706a69139
chore(server_fn_macro): improve docs ( #1733 )
2023-09-18 20:48:47 -04:00
Greg Johnston
2b59ae18bc
fix: Resource::with() pt. 2 — ( closes #1742 without reopening #1711 ) ( #1750 )
2023-09-18 16:13:48 -04:00
Lukas Potthast
7d3e2a41b9
fix: Callback clone impls missing a generic ( #1744 )
2023-09-18 13:47:29 -04:00
Joseph Cruz
7ef57345ca
fix(examples/error_boundary): ci error ( #1739 )
...
* fix(examples/build): maybe spawn client process
* docs(examples/error_boundary): add testing note
2023-09-17 20:38:03 -04:00
Greg Johnston
7e5169e66d
0.5.0-rc2
2023-09-15 20:06:56 -04:00
Greg Johnston
73a85b4955
feat: use attr: syntax rather than AdditionalAttributes ( #1728 )
2023-09-15 18:36:54 -04:00
Village
2c12256260
feat: allow component names to be paths ( #1725 )
2023-09-15 18:18:29 -04:00
Chris
a821abfb11
fix: relax bounds on LeptosRoutes ( #1729 )
2023-09-15 18:17:55 -04:00
Greg Johnston
20e5db22b8
fix: replace uses of create_effect internally with create_isomorphic_effect ( closes #1709 ) ( #1723 )
2023-09-15 17:23:36 -04:00
Greg Johnston
54e8a536c4
fix: correctly register Resource::with() ( closes #1711 ) ( #1726 )
2023-09-15 16:49:28 -04:00
Greg Johnston
afa67726c1
fix: document #[prop(default = ...)] as in Optional Props ( closes #1710 ) ( #1721 )
2023-09-15 15:16:46 -04:00
Greg Johnston
1db3e9c686
feat: implement Serialize and Deserialize for Oco<_> ( #1720 )
2023-09-15 15:16:35 -04:00
blorbb
2fd6e0a2a8
feat: support move on with! macros ( #1717 )
2023-09-15 12:58:30 -04:00
Gabriel de Perthuis
af454c7643
docs: typo in table of contents ( #1719 )
2023-09-15 12:58:09 -04:00
Joseph Cruz
1a589fcf32
fix(examples/build): do not require stop to end trunk ( #1713 )
...
* fix(examples/build): let ctrl-c stop trunk
* doc(examples/build): add stop server hints
2023-09-14 17:07:16 -04:00
Joseph Cruz
af215d6ce8
fix: exclude markdown files from examples lists ( #1716 )
...
* fix(examples/gen-members): exclude markdown files
* fix(ci): exclude markdown files from examples list
* test(ci): simulate leptos change
* chore(ci) :remove simulated change
2023-09-14 16:58:46 -04:00
Greg Johnston
e9fef73f53
docs: note about 0.5 in book
2023-09-14 15:53:27 -04:00
Chris
7c9b118b2d
docs: update out-of-date docs for component macro ( #1696 )
2023-09-14 13:47:04 -04:00
Cosmo Brain
5db2590bc6
feat: implement LeptosRoutes for &mut ServiceConfig in leptos_actix ( #1706 )
2023-09-13 20:56:03 -04:00
Lukas Potthast
dc1ba24470
fix: manual Clone and Debug impl for Callbacks ( #1703 )
2023-09-13 19:59:23 -04:00
Joseph Cruz
e384d53996
doc(examples): reference run instructions ( #1705 )
2023-09-13 19:57:50 -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
8245d77738
Merge pull request #1704 from leptos-rs/rc1-fixes
...
A few fixes to rc1
2023-09-13 16:51:19 -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
Joseph Cruz
c11c4b0e3e
build(examples): make it easier to run examples ( #1697 )
...
* build(examples): support process management
* build(examples): manage trunk
* build(examples): manage cargo leptos
* doc(examples): add run instructions
2023-09-12 10:46:16 -04:00
Greg Johnston
fe42ac11a8
0.5.0-rc1
2023-09-11 21:08:14 -04:00
blorbb
00f8c9583d
feat: with! macros ( #1693 )
2023-09-11 21:01:50 -04:00
Greg Johnston
a317874f93
change: run effects after a tick ( #1680 )
2023-09-11 21:01:35 -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
Michael Jarvis
8c3e0f23b0
docs: fix interlude_projecting_children.md ( #1690 )
2023-09-10 15:18:11 -04:00
martin frances
1719c0d352
chore: cleared "cargo doc" issue. ( #1687 )
...
warning: Rust code block is empty
--> leptos_reactive/src/memo.rs:209:9
|
209 | /// ```
| ^^^
|
= note: `#[warn(rustdoc::invalid_rust_codeblocks)]` on by default
help: mark blocks that do not contain Rust code as text
|
209 | /// ```text
| ++++
2023-09-10 15:17:36 -04:00
Greg Johnston
bb78f64cd5
fix: broken mount_to_body in CSR mode ( #1688 )
2023-09-10 13:23:32 -04:00
Greg Johnston
2fe5be2483
fix: restore deleted extract_with_state function ( #1683 )
2023-09-10 07:55:13 -04:00
martin frances
929fe08525
chore: remove ambiguity surrounding serde version numbers. ( #1685 )
...
These lint warnings.
warning: /home/martin/build/leptos/leptos/Cargo.toml: dependency (serde) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
warning: /home/martin/build/leptos/leptos/Cargo.toml: dependency (serde_json) specified without providing a local path, Git repository, version, or workspace dependency to use. This will be considered an error in future versions
2023-09-09 16:15:34 -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
Greg Johnston
e8a7086546
docs: add section on small DX wins ( closes #1310 )
2023-09-08 16:12:27 -04:00
Greg Johnston
23d48d4c0e
docs: remove stray references to Scope ( closes #1671 )
2023-09-08 16:02:45 -04:00
Greg Johnston
3342faa039
docs: discuss #[component(transparent)] in router docs ( closes #1627 )
2023-09-08 15:57:02 -04:00
Greg Johnston
6c24061c82
docs: emphasize that you should only render <Routes/> once ( closes #1552 , #1620 )
2023-09-08 15:48:41 -04:00
Greg Johnston
b9a1fb7743
examples: add note about potential for memory leaks with nested signals ( #1675 )
2023-09-08 15:28:18 -04:00
martin frances
3c3fc969ac
chore: removed resolver link warning in example ( #1677 )
2023-09-08 14:47:14 -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
Greg Johnston
de44b1f91f
Merge pull request #1673 from martinfrances107/router_version_bump
...
Router version bump
2023-09-08 07:43:47 -04:00
Greg Johnston
689022661d
change: move logging macros into a logging module to avoid name conflicts with log and tracing ( #1658 )
2023-09-08 07:42:58 -04:00
Joseph Cruz
905d46a09d
refactor(examples): extract client process tasks ( #1665 ) ( #1666 )
...
* doc(test-report): report trunk and node
* refactor(examples): extract client process tasks
* chore(exaples): force ci
2023-09-08 07:31:55 -04:00
martinfrances107
5585f20940
chore: Bumped a few outdated packages.
...
-cached = { version = "0.44.0", optional = true }
+cached = { version = "0.45.0", optional = true }
-lru = { version = "0.10", optional = true }
+lru = { version = "0.11", optional = true }
2023-09-08 09:30:13 +01:00
martinfrances107
5c3ed3f018
Chore: Bump to actions/checkout@v4
2023-09-08 08:28:01 +01:00
Greg Johnston
03cabf6ea3
chore: create SECURITY.md
2023-09-06 21:19:33 -04:00
SleeplessOne1917
2798dc455f
examples: use cargo-leptos Tailwind support in Tailwind examples ( #1625 )
2023-09-06 07:25:00 -04:00
Florian Wickert
db20be5576
fix: compare path components to detect active link in router ( #1656 )
2023-09-06 06:49:10 -04:00
Nya
495862e9f9
fix: custom events on components ( #1648 )
2023-09-04 13:27:33 -04:00
Joseph Cruz
2ca1c51fdc
test(error_boundary): add e2e testing ( #1651 )
...
* test(error_boundary): open app
* test(error_boundary): click up arrow
* test(error_boundary): click down arrow
* test(error_boundary): type number
* test(error_boundary): clear number
* fix(build): clean trunk directories
* fix(test-report): detect unit tests
* ci(build): echo stop trunk
2023-09-04 13:25:44 -04:00
Greg Johnston
70e1ad41e2
Merge pull request #1579 from leptos-rs/rusty
...
feat: start adding some Rustier interfaces for reactive types
2023-09-04 13:23:18 -04:00
Greg Johnston
53ec7ed272
feat: add Effect::with_value_mut()
2023-09-04 11:14:07 -04:00
Greg Johnston
d98a577740
feat: add Rustier interfaces for reactive system types
2023-09-04 11:05:23 -04:00
jquesada2016
fd834f48c2
change: rename .derived_signal() and .mapped_signal_setter() methods ( #1637 )
2023-09-04 08:41:41 -04:00
Greg Johnston
7be65a37c6
fix: versioned resources never decrement Suspense ( closes #1640 ) ( #1641 )
2023-09-03 20:21:16 -04:00
Banzobotic
3b5e2d86fb
docs: clean up messy spacing left over from cx replacements ( #1626 )
2023-09-03 20:21:05 -04:00
jquesada2016
716b9fb50b
feat: add .into_X_boxed() for classes, properties, and styles as for attributes
2023-09-03 20:18:49 -04:00
jquesada2016
006ca13797
chore: hide get_property ( #1638 )
2023-09-03 20:15:15 -04:00
Village
6e008343c8
feat: add component generics ( #1636 )
2023-09-03 20:09:50 -04:00
Greg Johnston
2ca24883ac
fix: memoize Suspense readiness to avoid rerendering children/fallback ( #1642 )
2023-09-03 20:07:20 -04:00
Village
4a43983f4e
feat: implement spreading attributes onto elements ( #1619 )
2023-09-01 20:52:15 -04:00
IcosaHedron
d9e83121c1
feat: add reload websocket configuration and enable env configuration ( #1613 )
2023-09-01 20:51:46 -04:00
Antonin Peronnet
f5b4b97c9b
feat: Callback types to make it easier to accept (optional) callback props ( #1596 )
2023-09-01 20:51:32 -04:00
Gareth
bcfa430a40
docs: fix incorrect variable name ( #1623 )
2023-09-01 07:39:41 -04:00
Lawrence Qupty
7c51815cf5
docs: remove extra space ( #1622 )
2023-09-01 07:39:05 -04:00
Dmitry Pytaylo
fee2fb953b
docs: fix typo ( #1618 )
2023-09-01 07:37:52 -04:00
Sadra M
8ecb7f59c4
docs: update references to server binary in dockerfile ( #1617 )
2023-09-01 07:37:24 -04:00
martin frances
b85cb9fb3b
docs: clarify how many times derived signals are called ( #1614 )
2023-09-01 07:36:15 -04:00
Joseph Cruz
a631c5ca1c
doc(examples): report fantoccini use ( #1616 )
2023-09-01 07:35:29 -04:00
Greg Johnston
bee9bd8f67
0.5.0-beta2
2023-08-29 21:23:59 -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
Jon Cahill
e0a132bde3
fix: don't try to parse as JSON the result from a server function redirect ( #1604 )
2023-08-29 20:42:19 -04:00
Daniel Oliveira
4d7e1f4d26
feat: improve server function client side error handling ( #1597 )
...
Handle all error codes 401-499 in addition to the
400 and 500-599 that were already handled.
In addition, handle them all in the same way
and improve the error message.
2023-08-29 20:40:03 -04:00
Maneren
700eee6604
fix(macro/params): clippy warning ( #1612 )
2023-08-29 20:31:54 -04:00
Joseph Cruz
694ed61e4c
fix(ci): add new webkit dependency ( #1607 ) ( #1608 )
2023-08-28 11:08:47 -04:00
Joseph Cruz
d7330097ba
chore(examples): improve cucumber support #1598 ( #1599 )
...
* chore(examples): add cucumber runner
* chore(examples): clean cargo recursively
2023-08-28 11:08:22 -04:00
Greg Johnston
c65a3a6ca3
docs: add docs for builder syntax ( #1603 )
2023-08-28 11:08:07 -04:00
Danik Vitek
793c191619
feat: Oco (Owned Clones Once) smart pointer ( #1480 )
2023-08-26 11:43:51 -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
08c419e3ee
fix: broken test with untrack in tracing props ( #1593 )
2023-08-26 09:20:14 -04:00
Greg Johnston
736f4185b5
Merge pull request #1588 from leptos-rs/1457
...
Some resource and transition fixes
2023-08-26 07:34:21 -04:00
Greg Johnston
9cc0fc8c49
fix: adjust tracing properties
2023-08-26 07:24:52 -04:00
Greg Johnston
8f067dcde7
chore: clear release-mode warnings
2023-08-25 17:16:00 -04:00
Greg Johnston
ad6eb58fe1
fix: <Transition/> fallback in CSR
2023-08-25 17:12:01 -04:00
Greg Johnston
3f3ab1c3c8
remove unnecessary parens
2023-08-25 16:49:26 -04:00
Greg Johnston
9adae32847
examples: improve hackernews behavior
2023-08-25 16:00:47 -04:00
Greg Johnston
b8098e7992
fix: <Transition/> fallback on non-initial page loads
2023-08-25 16:00:47 -04:00
Greg Johnston
bef4d0dd3b
fix: resource loading signal pattern for subsequent hydration page loads
2023-08-25 16:00:47 -04:00
Matt Cuneo
a789100e22
feat: allow autoreload websocket connection to work outside of localhost ( #1548 )
...
* Updated client reloading to use window.location.protocol/host to determine websocket connection. Added optional config reload_external_port to provide further control of the client websocket connection. These changes allow reloading while accessing the served site from outside of localhost.
2023-08-25 15:54:22 -04:00
Greg Johnston
abeca70625
fix: correct logic for resource loading signal when read outside suspense ( #1586 )
2023-08-25 11:46:54 -04:00
rkuklik
cc293b1170
feat: generic event handler types to make it easier to create collections of event handlers ( #1444 )
2023-08-25 11:41:16 -04:00
Greg Johnston
8ab62c17c6
feat: add Fn traits for resources on nightly ( #1587 )
2023-08-25 11:20:29 -04:00
Joseph Cruz
cf14e857ca
refactor(check-stable): use matrix ( #1543 ) ( #1583 )
...
* refactor(check-stable): use matrix
* chore: simulate leptos change
* chore: remove simulated change
2023-08-25 10:30:00 -04:00
Greg Johnston
c322ef38fd
feat: signal traits should take associated types instead of generics ( #1578 )
2023-08-25 10:29:24 -04:00
Greg Johnston
c9cc493063
fix: fourth argument to server functions ( #1585 )
2023-08-25 10:28:54 -04:00
Joseph Cruz
fb48f7f117
fix(counters_stable): restore wasm tests ( #1581 ) ( #1582 )
2023-08-24 16:33:01 -04:00
尹吉峰
c344e54cf6
feat: return an Effect from create_effect that can be disposed ( #1571 )
2023-08-24 10:24:10 -04:00
Greg Johnston
7306ecccbc
feat: make struct name and path optional for server functions ( #1573 )
2023-08-24 10:22:35 -04:00
Greg Johnston
b98174db7a
feat: support passing signals directly as attributes, classes, styles, and props on stable ( #1577 )
2023-08-24 10:22:14 -04:00
Greg Johnston
e48f66694d
fix: runtime disposal time in render_to_string_async ( #1574 )
2023-08-24 10:22:00 -04:00
Mark Catley
533fccd1d3
fix: nightly warning in server macro for lifetime ( #1580 )
...
On the latest lifetime we're getting the following warning in the server
macro:
warning: `&` without an explicit lifetime name cannot be used here
--> src/login.rs:19:1
|
19 | #[server(Login, "/api")]
| ^
|
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #115010 <https://github.com/rust-lang/rust/issues/115010 >
= note: this warning originates in the attribute macro `server` (in Nightly builds, run with -Z macro-backtrace for more info)
2023-08-24 06:30:13 -04:00
Greg Johnston
ec4bd7600f
fix: suppress warning about non-reactivity when calling .refetch() (occurs in e.g., async blocks in actions) ( #1576 )
...
* fix: suppress warning about non-reactivity when calling `.refetch()` (occurs in e.g., async blocks in actions)
* fix: don't reenter reactivity if these are nested
2023-08-23 20:57:05 -04:00
Greg Johnston
65d4e98d38
fix: INFO is too high a level for this prop tracing ( #1570 )
2023-08-23 06:39:37 -04:00
Nathan Lapel
195b843840
feat: remove Clone requirement for slots in vectors ( #1564 )
2023-08-22 21:23:38 -04:00
Joseph Cruz
00ac66e450
refactor(verify-changed-examples): improve readability and runtime ( #1556 )
...
* refactor(workflows): split setup
* test((verify-changed-examples): simulate change
* refactor(verify-changes-examples): inline os setup
* refactor(verify-changed-examples): skip w/o change
* chore(verify-changed-examples): remove simulated change
* refactor(verify-changed-examples): revert inline
* refactor(verify-changes-examples): extract example changed
* fix(verify-changed-examples): pull up example changed
* refactor(verify-change-examples): extract matrix
* refactor(verify-changed-examples): pass input
* refactor(verify-changed-examples): rename workflow
* ci(workflows): install chromedriver if needed
* fix(ci-changed-examples): pass input from json
* perf(run-cargo-make-task): maybe install chromedriver
* fix((run-cargo-make-task): maybe install chromedriver
* perf(run-cargo-make-task): maybe install playwrigh deps
* fix(run-cargo-make-task): maybe install playwrigh deps
* chore(suspsense_tests): retry e2e
* refactor(verify-changed-examples): rename calls
* refactor(run-cargo-make-test): remove playwright count
2023-08-22 21:22:13 -04:00
Joseph Cruz
351701036b
refactor(workflows): extract calls ( #1566 )
...
* refactor(workflows): extract leptos changed
* refactor(workflows): rename matrix job
* refactor(workflows): extract examples matrix
* chore(workflows): simulate leptos change
* chore(workflows): remove simulated leptos change
2023-08-22 21:19:58 -04:00
Greg Johnston
2bead5dadd
docs: note 0.4 vs 0.5 in README.md
2023-08-21 19:35:23 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx/Scope ( #918 )
2023-08-21 19:31:37 -04:00
Greg Johnston
5066242ef3
remove file accidentally included from islands branch
2023-08-20 19:52:47 -04:00
Greg Johnston
e9deff52a7
v0.4.9
2023-08-20 14:27:49 -04:00
Greg Johnston
eb3d9b8714
build(docs): only publish on new version tags ( #1562 )
2023-08-20 09:38:35 -04:00
luoxiaozero
18deb398ca
feat: tracing support for component props ( #1531 )
2023-08-18 08:29:41 -04:00
Geert Stappers
d9abebb4be
docs: add link to source code for book
2023-08-18 07:57:38 -04:00
Jonathan
a480db8b77
<Show/> update ( #1557 )
2023-08-18 07:50:26 -04:00
Greg Johnston
1f26b68d45
docs: inner_html in book
2023-08-16 21:31:06 -04:00
Greg Johnston
937501c61b
docs: add note about #[component(transparent)]
2023-08-16 21:26:53 -04:00
Joseph Cruz
5523fb86fb
perf(check-stable): only run on source change ( #1542 )
2023-08-15 06:20:01 -04:00
Joseph Cruz
7dcfcf8ca8
chore(test_examples): remove obsolete directory ( #1540 )
2023-08-15 06:19:36 -04:00
Joseph Cruz
087c68569a
test(suspense-tests): add e2e tests ( Closes #1519 ) ( #1533 )
...
* test(suspense-tests): add e2e tests (closes #1519 )
test(suspense_tests): load nested
test(suspense_tests): load parallel
test(suspsense_tests): load nested inside
test(suspense_tests): load single
test(suspense_tests): load inside component
test(suspense_tests): load no resources
test(suspense_tests): click nested count
test(suspense_tests): click inside component count
test(suspense_tests): click nested inside count
test(suspense_tests): click single count
test(suspense_tests): click parallel counts
test(suspense_tests): click no resources count
refactor(suspense_tests): change view strategy
* fix(suspense_tests): let_unit_value
2023-08-15 06:19:20 -04:00
Milo Moisson
6abfdd2345
examples: on_cleanup misorder? in fetch examples ( #1532 )
...
* Update api.rs
* fix: second hackernews example
2023-08-15 06:18:38 -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
aa58cedc15
Merge pull request #1529 from leptos-rs/docs-advanced-reactivity
...
Add advanced docs on reactive graph, and update testing docs
2023-08-11 13:52:08 -04:00
Greg Johnston
a0b0d72d19
docs: update testing section
2023-08-11 13:51:10 -04:00
Greg Johnston
fa8d0945e0
docs: add section on reactive graph internals
2023-08-11 13:36:27 -04:00
Greg Johnston
3ed49381e3
docs: expand on the need for prop:value ( #1526 )
2023-08-10 14:59:12 -04:00
Greg Johnston
8ec3fb95f0
docs: typos in NavigateOptions docs ( #1525 )
2023-08-09 20:44:39 -04:00
Greg Johnston
cc11430d16
docs: add use_navigate to router docs in guide ( #1524 )
2023-08-09 20:44:31 -04:00
Greg Johnston
0b650ee2dc
Merge pull request #1523 from leptos-rs/more-docs
...
Additional random docs
2023-08-09 20:24:48 -04:00
Greg Johnston
4def35cb45
docs: add <Await/>
2023-08-09 20:24:04 -04:00
Greg Johnston
0e56f27e0d
docs: add watch
2023-08-09 20:19:12 -04:00
Greg Johnston
bd8983f462
docs: expand docs on Axum State/FromRef pattern
2023-08-09 20:14:37 -04:00
Greg Johnston
7ef635d9cf
docs: deployment
2023-08-09 20:09:54 -04:00
Joseph Cruz
19ea6fae6a
test(todo_app_sqlite_axum): add e2e tests ( #1514 ) ( #1515 )
...
* refactor(examples): pull up cargo leptos tasks
* test(todo_app_sqlite_axum): add e2e tests
2023-08-09 08:37:28 -04:00
Joseph Cruz
651a111db9
fix(suspense-tests): build errors ( #1517 ) ( #1518 )
2023-08-09 08:36:25 -04:00
Danik Vitek
3a98bdb3c2
fix: use current pathname for create_query_signal ( #1508 )
2023-08-07 20:25:22 -04:00
Greg Johnston
f01b982cff
fix: render empty dynamic text node in HTML as ( closes #1382 ) ( #1507 )
2023-08-07 18:04:56 -04:00
Joseph Cruz
69dd96f76f
test(todo_app_sqlite): add e2e tests ( #1448 ) ( #1467 )
2023-08-07 17:51:24 -04:00
starmaker
329ae08e60
chore: enable stable support for rkyv feature ( #1503 )
2023-08-07 08:54:02 -04:00
Greg Johnston
1e13ad8fee
perf: in hydration, reuse existing text node rather than destroying and remounting ( #1506 )
2023-08-07 08:34:10 -04:00
Geert Stappers
e0c9a9523a
docs: typo
...
Signed-off-by: Geert Stappers <stappers@stappers.nl >
2023-08-04 10:56:51 -04:00
Mark Catley
0726a3034d
examples: fix github links ( #1493 )
2023-08-04 07:55:04 -04:00
Greg Johnston
a88d047eff
template refactor + snapshot tests ( #1435 )
2023-08-04 07:54:03 -04:00
mateusvmv
4001561987
fix: scoping of JS variable names in inline scripts ( #1489 )
2023-08-03 08:46:06 -04:00
Greg Johnston
2f860b37bd
v0.4.8
2023-08-02 19:25:32 -04:00
Greg Johnston
b86009b9d0
fix: remove erroneous logging
2023-08-02 19:16:32 -04:00
Greg Johnston
54733e1b34
v0.4.7
2023-08-02 17:03:38 -04:00
Greg Johnston
56f01888b7
Merge pull request #1486 from leptos-rs/export-all-helpers
...
fix: correctly export all DOM helpers
2023-08-02 17:02:19 -04:00
Greg Johnston
8320f16716
chore: fix new clippy warnings
2023-08-02 16:05:42 -04:00
Greg Johnston
0b16e5992d
fix: correctly export all DOM helpers
2023-08-02 14:41:54 -04:00
Danik Vitek
248beb4a55
docs: typo in docs for ServerFnErrorErr ( #1477 )
2023-08-01 14:27:39 -04:00
martin frances
c9f608d030
docs: fix doclink to Error ( #1469 )
2023-08-01 13:24:13 -04:00
Greg Johnston
f837d3e6a2
fix: correctly escape HTML in DynChild text nodes ( closes #1475 ) ( #1478 )
2023-08-01 13:22:24 -04:00
Greg Johnston
8847d5fc42
fix: compile-time regression for deeply-nested component trees ( #1476 )
2023-07-31 14:23:09 -04:00
Greg Johnston
7819a6fac0
fix: properly replace text nodes in DynChild ( closes #1456 ) ( #1472 )
2023-07-30 22:37:53 -04:00
Marco Inacio
c199185808
docs: README.md to reflect new version ( #1470 )
2023-07-30 11:52:09 -04:00
martin frances
e0b5738606
chore: document the magic number in FILTER_SHOW_COMMENT. ( #1468 )
2023-07-29 16:53:10 -04:00
Sebastian Dobe
f3e3880a57
fix: AnimatedShow - possible panic on cleanup ( #1464 )
2023-07-29 06:33:49 -04:00
Greg Johnston
d44b90c16d
feat: allow mut in component props and suppress "needless lifetime" warning ( closes #1458 ) ( #1459 )
2023-07-29 06:32:06 -04:00
Joseph Cruz
cc32a3e863
perf(examples): speed up the test-info report ( #1446 ) ( #1447 )
2023-07-27 20:40:26 -04:00
Greg Johnston
5740c9b76b
feat: add MaybeProp type ( #1443 )
2023-07-27 18:18:25 -04:00
Greg Johnston
80fa6ad3eb
docs: fix typo in 23_ssr_modes.md ( #1445 )
2023-07-26 16:33:21 -04:00
Greg Johnston
7bc1ad2b4f
fix: incorrect opening node for <Each/> in debug mode ( closes #1168 ) ( #1436 )
2023-07-26 10:43:46 -04:00
Joseph Cruz
82a2fe7cbe
fix(examples): unable to parse makefile ( #1440 ) ( #1441 )
2023-07-26 10:43:20 -04:00
Bechma
40bf944957
docs: expand spawn_local documentation ( #1433 )
2023-07-25 11:42:48 -04:00
Greg Johnston
7ef7546fa9
v0.4.6
2023-07-25 06:08:53 -04:00
Greg Johnston
5e26e84d77
feat: allow feature-name flexibility when using server functions ( #1427 )
2023-07-25 06:07:52 -04:00
mforsb
e67bc2083a
feat: add noscroll attribute to Form, ActionForm ( #1432 )
2023-07-25 06:07:37 -04:00
g-re-g
a3cb3f7f77
perf: use binary search for event and tag names in view macro ( #1430 )
2023-07-24 15:06:34 -04:00
Greg Johnston
daeb47e72e
build(examples): update Makefiles for recent examples ( #1431 )
2023-07-24 12:02:30 -04:00
Joseph Cruz
8c5ab99fa7
build(examples): pull up compile tasks ( #1417 )
...
* build(examples): pull up compile tasks
* build(examples): set toolchain for compiles tasks
* build(examples): set toolchain for build and check
* build(examples): set toolchain of other examples
2023-07-24 11:35:34 -04:00
Greg Johnston
984a7388f1
fix: clear <title> correctly when navigating between pages ( closes #1369 ) ( #1428 )
2023-07-24 11:25:28 -04:00
Greg Johnston
274b105676
docs: fix messed up component closing tags router docs
2023-07-24 11:24:58 -04:00
Greg Johnston
a689d1b4c0
docs: note on optional generic component props
2023-07-24 07:52:40 -04:00
Greg Johnston
1581e91317
docs: note on how to opt out of client-side routing
2023-07-24 07:52:29 -04:00
Andrew Grande
20f4034c1c
docs: proofreading and fixing the links ( #1425 )
...
* Update 23_ssr_modes.md
Fixed grammar, added the section anchor links
* Fixed a broken link
The github link doesn't get properly rendered in the Leptos book site. Make the book work, 'break' the github link.
* Update 26_extractors.md
Fixed broken Axum links. Added an Axum extract function doc link for consistency (had Actix, but not Axum before)
2023-07-24 07:25:02 -04:00
Jason Hansen
9fb1c4b67c
docs/warnings: fix warning message about updating a signal after it has been disposed ( #1423 )
...
* Remove "either" because it didn't make sense in the sentence
* Change "cause cause" to "not cause"
2023-07-24 07:24:06 -04:00
Ari Seyhun
2e559d6a06
feat: add create_query_signal for URL-synced signals ( #1377 )
2023-07-23 12:20:15 -04:00
Sebastian Dobe
71de6c395b
feat: create a <AnimatedShow> component ( closes #1370 ) ( #1386 )
2023-07-23 07:46:47 -04:00
Vladimir Motylenko
b09f9e4814
feat: Update rstml to v0.11.0 ( #1416 )
2023-07-23 07:46:33 -04:00
Greg Johnston
ec4bfb0e8a
chore: resolve clippy incorrect_clone_impl_on_copy_type ( closes #1401 ) ( #1418 )
2023-07-22 22:14:52 -04:00
Greg Johnston
39bf38d1e4
docs: CONTRIBUTING.md with helpful info re: CI ( #1415 )
2023-07-22 08:26:46 -04:00
Joshua Marsh
e6fd1379b8
docs: fix typo for WrapsChildren ( #1402 )
2023-07-22 08:26:36 -04:00
Doug A
1d9931a5a8
docs: typo in 01_basic_component.md ( #1412 )
...
typo fix
2023-07-22 08:24:30 -04:00
Greg Johnston
06164d34b5
docs: note about typed params on stable ( #1414 )
2023-07-22 08:23:05 -04:00
Joseph Cruz
f3de288e19
build(examples): make it easy to see which examples do what kind of testing ( #1411 )
...
* build(examples): list example projects with CI tests runners
* build(examples): add show all mode
2023-07-22 08:13:49 -04:00
Greg Johnston
62bf315059
fix: <use_/> as typed top-level element in view ( #1410 )
2023-07-21 10:07:34 -04:00
Greg Johnston
011c97e3a4
fix: closing element names wrong for svg::, math::, and use_ ( closes #1403 ) ( #1406 )
2023-07-20 17:03:30 -04:00
Greg Johnston
2ca3d2c7a4
fix: RawText/unquoted text nodes in SSR ( closes #1384 ) ( #1407 )
2023-07-20 17:03:19 -04:00
Greg Johnston
cc52c94348
docs/examples: use shorthand form for <Route/> views when possible ( #1375 )
2023-07-20 16:28:43 -04:00
Andrew Grande
4b8cc96dfa
docs: typo in 16_routes.md
...
Fixed grammar
2023-07-20 16:13:25 -04:00
Greg Johnston
338d2ab839
Merge pull request #1379 from agilarity/lint-with-clippy
...
ci: lint with clippy
2023-07-20 14:15:16 -04:00
Greg Johnston
54fc6da24e
feat: implement Resource::dispose() ( #1393 )
2023-07-20 14:14:49 -04:00
Andrew Grande
825b3fb858
chore: typo in README.md ( #1399 )
2023-07-20 14:00:43 -04:00
Andrew Grande
fd0212a142
docs: typo in 15_global_state.md ( #1395 )
...
Proofreading
2023-07-20 08:57:12 -04:00
Greg Johnston
3b397cb39c
examples: remove random <form> ( #1398 )
2023-07-20 08:56:49 -04:00
martin frances
1e002c2c2f
chore: Removed call to .into(), plus minor touch to docs. ( #1396 )
2023-07-20 08:07:31 -04:00
Greg Johnston
8f45daeca8
docs: correct docs for create_memo to reflect laziness ( #1388 )
2023-07-19 14:50:34 -04:00
Joseph Cruz
105ef989b7
ci: install clippy
2023-07-19 08:54:05 -04:00
Greg Johnston
9e7c31d1e4
docs: small issues ( #1385 )
2023-07-19 08:53:37 -04:00
Joseph Cruz
771dfa6b68
ci: lint with clippy
2023-07-19 08:44:36 -04:00
Joseph Cruz
fb52cfa73e
fix: needless_raw_string_hashes
2023-07-19 08:43:57 -04:00
Ari Seyhun
b2c75d215b
chore: remove unnecessary string allocation in TryFrom for Url ( #1376 )
2023-07-19 07:04:06 -04:00
Andrew Grande
951607de74
docs: typos
...
* Fixed wording
* Update ARCHITECTURE.md
Fixed superfluous whitespace
2023-07-19 07:03:50 -04:00
Joseph Cruz
122fd2bc74
fix: useless_conversion
2023-07-18 20:56:55 -04:00
Joseph Cruz
f102125d3c
fix: needless_borrow
2023-07-18 20:56:55 -04:00
Joseph Cruz
14bda76b30
fix: needless_raw_string_hashes (allow)
2023-07-18 20:56:39 -04:00
Joseph Cruz
3af115a663
fix: maybe_misused_cfg
2023-07-18 20:56:39 -04:00
Joseph Cruz
a344804734
fix: incorrect_clone_impl_on_copy_type (allow)
2023-07-18 20:54:51 -04:00
Greg Johnston
c1c49ce53b
v0.4.5
2023-07-18 14:02:56 -04:00
Joseph Cruz
d8eaa5c004
build: use cargo hack for clippy
2023-07-18 08:02:24 -04:00
Greg Johnston
e8aa9b24f1
fix: memory leak in leptos_axum ( #1374 )
2023-07-17 21:59:20 -04:00
Greg Johnston
3036cd223e
v0.4.4
2023-07-17 17:33:44 -04:00
Greg Johnston
1ae5150b08
fix: release lock on stored values during update/set ( #1373 )
2023-07-17 14:19:03 -04:00
Greg Johnston
47148f2033
perf: exclude hydration code in CSR mode ( #1372 )
2023-07-17 12:20:33 -04:00
Sebastian Probst Eide
4d4d15436b
fix: incorrect tree walker filter in hot reloading ( closes #1355 ) ( #1368 )
2023-07-17 08:44:32 -04:00
Jack DeVries
7f4741b3a3
doc: add previews to backup CodeSandbox ( #1169 )
2023-07-17 08:40:30 -04:00
Hans Baker
85644a7c1c
Fix broken link to example code in testing book page ( #1365 )
2023-07-16 20:00:56 -04:00
Greg Johnston
f40ae6af30
fix: correctly show fallback for Transition on first load even if not hydrating ( #1362 )
2023-07-16 15:19:51 -04:00
Greg Johnston
708e1a5aab
docs: wasm-pack instructions missing --debug for Tailwind examples
2023-07-16 12:28:20 -04:00
Joseph Cruz
55613c9a31
ci(check-examples): only run on source change ( #1356 )
...
* ci(check-examples): only run on source change
* ci(check-examples): simulate source change
* ci(check-examples): fix expression
* ci(check-examples): simulate source change
* ci(check-examples): test change against files
* ci(check-examples): adjust expression
* ci(check-examples): remove quotes
* ci(check-examples): use from json
* ci(check-examples): set output value
* ci(check-examples): remove simulated change
2023-07-15 19:09:54 -04:00
Joseph Cruz
e6590c7d31
ci(ci): only run on source change ( #1357 )
...
* ci(ci): only run on source change
* ci(ci): simulate source change
* ci(ci): remove simulated source change
2023-07-15 19:09:33 -04:00
Greg Johnston
5af2f4e98d
docs/warning: fix <ActionForm/> docs and add runtime warning for incorrect encodings ( #1360 )
2023-07-15 19:09:03 -04:00
Greg Johnston
8e68699435
feat: add support for adding CSP nonces ( #1348 )
2023-07-14 16:37:18 -04:00
Greg Johnston
77580401da
fix: hydration-key conflicts between <ErrorBoundary/> children and fallback ( #1354 )
2023-07-14 14:37:54 -04:00
Joseph Cruz
7902e7edb7
ci: speed up verification ( #1347 )
...
* build: introduce ci task
* refactor(ci): rename cargo make task runner
* ci: add ci workflow
* ci: remove redundant workflows
2023-07-14 14:37:17 -04:00
Greg Johnston
4ad223277d
fix: duplicated meta content during async rendering ( #1352 )
2023-07-14 13:14:19 -04:00
Greg Johnston
6f5da11c72
docs/warnings: don't warn when a resource resolves after its scope has been disposed ( #1351 )
2023-07-14 13:09:57 -04:00
Greg Johnston
3eed86fbf3
docs/warnings: improve ServerFnError when a server function is not found ( #1350 )
2023-07-14 12:43:08 -04:00
Greg Johnston
10d51a854a
v0.4.3
2023-07-14 09:22:19 -04:00
CircuitSacul
6c60bad757
examples: use cfg_attr for conditional derives ( #1349 )
...
Revert "use cfg_attr for conditional derives"
This reverts commit b5c85e9ed8a84e5a49f119ae8436d78f2bee1fea.
Revert "Revert "use cfg_attr for conditional derives""
This reverts commit b538256cd69bc2321cdc9066441d71fc94ed80b9.
2023-07-14 09:20:55 -04:00
g-re-g
79f666b5da
docs: don't run rust code snippets and update getting started ( #1346 )
...
* disable running leptos examples
* typo and small language changes to 02_getting_started
2023-07-14 07:10:59 -04:00
Greg Johnston
3ea3a40395
fix: server_fn rustls feature shouldn't pull in default-tls ( #1343 )
2023-07-13 19:41:55 -04:00
Greg Johnston
193aa79956
docs: how not to mutate the DOM during rendering ( #1344 )
2023-07-13 16:57:07 -04:00
Joseph Cruz
3481a6ee53
build: run tasks from workpace or member directory ( #1339 )
2023-07-13 16:46:51 -04:00
Greg Johnston
d1ef5fce9f
fix: un-register <Suspense/> from resource reads when <Suspense/> is unmounted ( #1342 )
2023-07-13 14:42:05 -04:00
Greg Johnston
5d48911f01
fix: check LEPTOS_OUTPUT_NAME correctly at compile time ( #1338 )
2023-07-13 10:49:13 -04:00
Greg Johnston
8a90f97959
fix: routing logic to scroll to top was broken ( #1335 )
2023-07-13 06:43:49 -04:00
Greg Johnston
e9665b34e5
feat: add active_class prop on <A/> ( #1323 )
2023-07-12 16:21:07 -04:00
Greg Johnston
d4b1ceda90
fix: event delegation issue with <input name="host"> ( #1332 )
2023-07-12 16:20:11 -04:00
Greg Johnston
a0fae88f7d
docs: clarify nightly in "Getting Started" ( #1330 )
2023-07-12 11:56:45 -04:00
Greg Johnston
03a8609680
fix: warning generated by new #[must_use] on views ( #1329 )
2023-07-12 10:00:05 -04:00
g-re-g
3e40f9cc66
chore: bump indexmap to 2 ( #1325 )
2023-07-11 15:24:21 -04:00
Greg Johnston
576bb078f7
fix: Actix server fn redirect() duplicate Location headers ( #1326 )
2023-07-11 13:57:44 -04:00
Filip Dutescu
3cdcc85c87
feat(config): implement common traits for Env ( #1324 )
...
In order to facilitate its usage in other structs, which might derive
various traits, such as `serde::Serialize` or `PartialEq`, implement
them for the `leptos_config::Env` enum.
Signed-off-by: Filip Dutescu <filip@hucksy.dev >
2023-07-11 09:37:42 -04:00
Greg Johnston
ec3a26dfbc
fix: <ActionForm/> should set value even if redirected ( #1321 )
2023-07-11 09:37:13 -04:00
Filip Dutescu
c755dae6ee
feat(leptos-config): kebab-case via serde's rename_all ( #1308 )
...
Currently, `leptos::LeptosOptions` are deserialized (and serialized)
to `snake_case`, since, by default, `serde` uses the name of the field
as-is. The options given via `.toml` files are given using `kebab-case`.
This behaviour leads to problems if you wish to use
`leptos::LeptosOptions` as the type of a field in your own config,
which uses the `kebab-case` syntax, as it will not provide any values
to that field.
These changes switch out the previous mechanism of manually replacing
the `-` character to the `_` character in order for serialization to
work. In its place, it uses `serde`'s `#[serde(rename_all = ...)]`
macro to handle the naming convention.
In case other naming conventions are used, a workaround would be to
define a user-owned mirror struct of `leptos::LeptosOptions`, which
would contain the required fields, deserialize it as desired and'
convert it to the latter via, for example, the `From<T>` trait.
Closes : #1295
Signed-off-by: Filip Dutescu <filip@hucksy.dev >
2023-07-11 09:36:55 -04:00
Greg Johnston
b67d51e019
docs: remove empty chapter from book
2023-07-10 07:38:12 -04:00
Joseph Cruz
7a34d6026f
refactor(ci): improve the organization of cargo make tasks ( #1320 )
...
* refactor(cargo-make): extract node
* refactor(cargo-make): extract lint
* refactor(counters_stable): remove redundant tasks
* docs(cargo-make): remove descriptions
* refactor(counters_stable): streamline stages
2023-07-09 20:47:10 -04:00
Mahesh Bansod
548eac8e60
docs: typo & punctuation ( #1316 )
2023-07-09 20:35:04 -04:00
Mahesh Bansod
05ac8e861f
docs: typo ( #1315 )
2023-07-09 20:34:36 -04:00
Martinez
7a4d475cca
docs: update warnings to remove mention of csr as a default feature ( #1313 )
2023-07-09 20:32:25 -04:00
Greg Johnston
eea8e60518
docs: clarify WASM target ( #1318 )
2023-07-09 17:06:41 -04:00
Joseph Cruz
f6a272498d
test(counters_stable/wasm): enter count ( #1307 )
2023-07-08 12:07:11 -04:00
Ari Seyhun
aef7c4ce8e
perf: use lazy thread local for regex in router match_optionals ( #1309 )
2023-07-08 08:47:52 -04:00
Greg Johnston
b29eb8e032
fix: <ActionForm/> should check origin correctly before doing a full-page refresh ( #1304 )
2023-07-08 08:00:48 -04:00
Greg Johnston
da9183f4b5
docs: fix braces in <Show/> example ( #1303 )
2023-07-08 06:42:27 -04:00
Greg Johnston
ae3ddcb0e6
docs: must use View ( #1302 )
2023-07-08 06:42:02 -04:00
Greg Johnston
c6b8f0e8ed
v0.4.2
2023-07-07 15:34:56 -04:00
g-re-g
bab9f40a81
fix: rework diff functionality for <For/> ( #1296 )
2023-07-07 15:32:26 -04:00
webmstk
c2cfdf3678
docs: fixed typo in parent-child doc ( #1300 )
2023-07-07 13:59:08 -04:00
Joseph Cruz
8967eadc02
test(counters_stable): add wasm testing ( #1278 )
...
* test(counters_stable/wasm): view counters > counts
* test(counters_stable/wasm): view counters > title
* test(counters_stable/wasm): add counter
* test(counters_stable/wasm): add 1k counters
* clear(counters_stable/wasm): clear counters
* test(counters_stable/wasm): increment counters
* test(counters_stable/wasm): decrement counter
* test(counters_stable/wasm): remove counter
2023-07-07 13:07:27 -04:00
Greg Johnston
4cc65f837f
chore: add mdbook in flake ( #1299 )
...
* nix-flake: use follows for `rust-overlay` (..)
This removes the extra nixpkgs dependency by re-using the nixpkgs
already defined.
https://nixos.wiki/wiki/Flakes
https://web.archive.org/web/20230621091703/https://nixos.wiki/wiki/Flakes
> # The `follows` keyword in inputs is used for inheritance.
> # Here, `inputs.nixpkgs` of sops-nix is kept consistent with the `inputs.nixpkgs` of
> # the current flake, to avoid problems caused by different versions of nixpkgs.
* nix-flake: use nix overlays for rustc/cargo (..)
This allows the same nightly rust version to be used across the
flake (vs. strictly in the `devShell`).
* nix-flake: add `mdbook` to the development shell (..)
bumped `nixpkgs` to the latest unstable to pull in mdbook version `0.4.30`.
* nix-flake: expose all rust tools in dev environment (..)
The `oxalica / rust-overlay` docs expose all tools in the development
environment, so we should do the same:
https://github.com/oxalica/rust-overlay#use-in-devshell-for-nix-develop
---------
Co-authored-by: Jay Querie <jay@querie.cc >
2023-07-07 12:59:18 -04:00
Dessalines
22706e7371
docs: adding instructions to add a tailwind plugin to examples. ( #1293 )
2023-07-07 12:35:24 -04:00
webmstk
9f9302662c
docs/examples: make error handling example more obvious for Chrome users ( #1292 )
2023-07-07 12:34:57 -04:00
Greg Johnston
6b90e1babd
examples: add 404 support in Actix examples ( closes #1031 ) ( #1291 )
2023-07-06 10:35:37 -04:00
sjud
7e540a8f49
feat: support Axum extractors with state other than () ( #1275 )
...
This requires state to be provided via context using a special handler, but allows for extractors that use this state, rather than only `()`, as previously.
2023-07-05 20:40:29 -04:00
Greg Johnston
f06ffd72aa
fix: use once_cell::OnceCell rather than std::OnceCell ( #1288 )
2023-07-05 17:16:51 -04:00
Greg Johnston
83d3d7579c
fix: issue with class hydration not removing classes correctly ( closes #1286 ) ( #1287 )
2023-07-05 12:00:27 -04:00
Greg Johnston
39edb6eb45
fix: untracked read in <Redirect/> ( #1280 )
2023-07-04 11:52:13 -04:00
Greg Johnston
d81c1a929e
fix: duplicate text nodes during <For/> hydration ( closes #1279 ) ( #1281 )
2023-07-04 11:50:59 -04:00
Greg Johnston
f69c28df18
fix: improved diagnostics about non-reactive signal access ( #1277 )
2023-07-03 19:37:15 -04:00
Greg Johnston
66f54e7f1a
docs: add docs on responses/redirects and clarification re: Axum State(_) extractors ( #1272 )
2023-07-03 09:58:02 -04:00
Greg Johnston
81e416b085
fix: error messages in dyn_classes ( #1270 )
2023-07-03 09:57:50 -04:00
Marc-Stefan Cassola
a5f73b441c
feat: added watch helper ( #1262 )
2023-07-03 09:29:40 -04:00
Greg Johnston
0f1ebccad5
fix: clearing <For/> that has a previous sibling in release mode ( fixes #1258 ) ( #1267 )
2023-07-02 17:27:39 -04:00
Greg Johnston
2f01df6185
fix: HtmlElement::dyn_classes() when adding classes ( #1265 )
2023-07-02 17:27:24 -04:00
martin frances
c4982319fe
chore: ran cargo clippy --fix and reviewed changes. ( #1259 )
2023-07-02 17:27:14 -04:00
Michael Zimmermann
8fb4e88439
feat: implement PartialEq on ServerFnError ( #1260 )
...
This allows returning it in a memo.
2023-07-02 17:22:06 -04:00
Greg Johnston
e821efca07
chore: new cargo fmt ( #1266 )
2023-07-02 17:01:39 -04:00
Sridhar Ratnakumar
568f7b21ae
example/readme: Link to 'VS Browser' ext; format. ( #1261 )
2023-07-02 16:56:59 -04:00
Greg Johnston
d3c0f5320c
docs: update 02_getting_started.md ( #1256 )
2023-06-30 17:26:33 -04:00
Greg Johnston
5adc88bf50
fix: hot-reloading view marker line number ( #1255 )
2023-06-30 14:03:54 -04:00
Greg Johnston
67300adf41
fix: regression in ability to use signals directly in the view in stable ( #1254 )
2023-06-30 11:59:29 -04:00
afiqzx
4a3a67bf37
feat: add fallback support for workspace in get_config_from_str ( #1249 )
2023-06-30 10:44:27 -04:00
Dương
8150847218
test(router_example): add playwright tests ( #1247 )
...
* implemented e2e tests for router example
* chore(router_example): cleanup e2e/package.json
2023-06-30 10:40:33 -04:00
Greg Johnston
8cb95b4646
docs: update server fn docs ( #1252 )
2023-06-30 10:40:06 -04:00
Joseph Cruz
df4ce904a0
test(counters_stable): add missing e2e tests ( #1251 )
...
* test(counters_stable): remove unused ids
* test(counters_stable): enter count
* refactor(counters_stable/e2e): improve test names
* refactor(counters_stable): move page object
* refactor(counters_stable/e2e): target nth counter
* test(counters_stable): remove counter
* refactor(counters_stable/e2e): change description
2023-06-30 08:52:48 -04:00
Ari Seyhun
1cc3a43268
chore: remove unused variable warnings with ssr props ( #1244 )
2023-06-30 08:05:20 -04:00
Greg Johnston
d5a862a406
v0.4.0 (#1250 )
2023-06-30 07:51:07 -04:00
Joseph Cruz
33c83c3e62
fix(counters_stable): intermittent closed target errors ( #1240 ) ( #1243 )
2023-06-29 07:19:42 -04:00
Greg Johnston
171adcd09e
docs: update README re: nightly on 0.3
2023-06-27 15:48:04 -04:00
Greg Johnston
13f7cb9a9a
fix: add missing attribute-escaping logic in leptos_meta and class attributes in SSR ( closes #1238 ) ( #1241 )
2023-06-27 11:53:23 -04:00
Greg Johnston
ee7dbafc85
change: migrate to nightly and csr features rather than stable and default-features = false ( #1227 )
2023-06-26 21:12:14 -04:00
Joseph Cruz
f5cfe4e8a2
test(counters_stable): add playwright tests ( #1235 )
2023-06-26 21:11:09 -04:00
Greg Johnston
c3e45d19d7
docs: typo ( #1237 )
2023-06-26 10:05:16 -04:00
Greg Johnston
966100c2d6
feat: add an anyhow-like Result type for easier error handling ( #1228 )
2023-06-25 15:18:00 -04:00
Greg Johnston
bce1dea11b
fix: make <Transition/> transparent like <Suspense/> to avoid Scope issues ( closes #1231 ) ( #1232 )
2023-06-24 17:07:07 -04:00
Greg Johnston
c55067ab7c
feat: improved error handling and version tracking for pending actions/<ActionForm/> ( closes #1205 ) ( #1225 )
2023-06-23 11:10:59 -04:00
Greg Johnston
9da4084561
fix: nested Suspense/Transition with cascading resources ( #1214 )
2023-06-21 16:39:58 -04:00
jquesada2016
1d7235d4ca
fix: in <For/>, removed not being cleared when setting a diff to clear, causing panic ( #1220 )
2023-06-21 15:19:12 -04:00
Greg Johnston
2cb8171105
docs: document <ErrorBoundary/>/<Suspense/> relationship ( #1210 )
2023-06-21 11:17:20 -04:00
Lukas Potthast
bbc7799b7c
fix: memo with_untracked ( #1213 )
2023-06-21 10:13:18 -04:00
Joseph Cruz
a9cbcce8b2
fix(examples/tailwind): host system is missing dependencies to run browsers ( #1216 )
2023-06-21 08:07:20 -04:00
Greg Johnston
3531ca64bb
examples: update leptos-tailwind-axum to use main branch ( #1218 )
2023-06-21 08:06:52 -04:00
Ty Larrabee
e402b85dd6
docs: a few grammar fixes, removal of ref to ComponentProps ( #1217 )
2023-06-20 21:00:28 -04:00
Greg Johnston
8ae5cf0ccf
fix: don't re-mount identical child in DynChild ( #1211 )
2023-06-19 17:04:08 -04:00
Tristan Guichaoua
5c34c3fc77
docs: fix typo in "working with signals" ( #1208 )
2023-06-19 10:36:18 -04:00
Greg Johnston
3a570dc0d9
docs: this was causing a Google search indexing issue...
2023-06-18 09:10:01 -04:00
Joseph Cruz
3c6748b30d
build(examples): generate workspace members variable ( #1201 )
...
* build(examples): add gen members task
* build(examples): include members variable
2023-06-17 18:19:01 -04:00
Cherry
24945f67bf
docs: add note to docs on how to fix failing builds which rebuild-std ( #1200 )
...
Fixes #1199
2023-06-17 16:51:57 -04:00
Joseph Cruz
edddab1e51
ci(examples): automatically keep the list of example projects current ( #1198 )
2023-06-17 16:51:31 -04:00
Greg Johnston
acfc86d2a4
fix: SVG <use> in SSR ( #1203 )
2023-06-17 16:47:39 -04:00
Greg Johnston
651868dec9
fix: animations on multiple back navigations ( closes #1088 ) ( #1204 )
2023-06-17 16:47:19 -04:00
Joseph Cruz
18bc03e660
ci(examples): split check example and improve workflows ( #1191 )
2023-06-15 21:44:37 -04:00
jquesada2016
5f0013e482
fix: reorder <For /> apply_diff steps ( #1196 )
2023-06-15 20:37:17 -04:00
martin frances
10c0a2de65
chore: cleared clippy warnings ( #1190 )
...
The change in indentation makes the PR hard to review
so I will discuss the change in conversational language
Two "if"'s checks were merged into one "if"
this
- if let Some(expr) = node.value() {
- if let syn::Expr::Tuple(tuple) = expr {
becomes
+ if let Some(Tuple(tuple)) = node.value() {
2023-06-15 20:11:50 -04:00
Karim Lalani
b24be2566d
docs: renamed function names in 13-actions chapter of book to reduce confusion ( #1175 )
2023-06-15 20:09:46 -04:00
Greg Johnston
77439b5db5
fix: setting set_pending now that <Transition/> body doesn't re-render ( #1193 )
2023-06-15 20:09:22 -04:00
Greg Johnston
23594a43ea
fix: allow FnOnce extractors ( #1192 )
2023-06-15 20:09:13 -04:00
hchockarprasad
601db7aa86
fix: handle nested data in serde_qs deserialization correctly ( #1183 )
2023-06-15 10:15:10 -04:00
Joseph Cruz
d15ba11104
fix(examples/js-framework-benchmark): error: cannot find macro template in this scope ( #1182 ) ( #1189 )
2023-06-15 08:19:38 -04:00
Joseph Cruz
d45d92433f
ci(examples): include all example projects ( #1188 )
2023-06-14 15:16:14 -04:00
jquesada2016
97127a90c6
fix: new <For/> bug when clearing which ignores further additions ( #1181 )
2023-06-14 13:56:56 -04:00
martin frances
55bb63edea
chore: updated cached 0.43.0 to 0.44.0 ( #1187 )
2023-06-14 11:07:24 -04:00
martin frances
15a4e54435
chore: criterion was outdated version 0.4.0 becomes 0.5.1. ( #1184 )
2023-06-14 11:06:50 -04:00
Joseph Cruz
3a522aef5d
ci(examples): split jobs and verify changed examples ( #1155 )
2023-06-13 21:29:54 -04:00
Greg Johnston
a98885a123
fix: <ErrorBoundary/> IDs with new hydration key system ( #1180 )
2023-06-13 18:38:23 -04:00
Greg Johnston
2b7923261b
docs: fix failing doctests from server fn docs ( #1179 )
2023-06-13 17:49:16 -04:00
Greg Johnston
b043f829a6
docs: clarify available server fn encodings ( #1178 )
2023-06-13 16:01:45 -04:00
jquesada2016
f415f7b146
fix: removes in new <For/> causing panics in some circumstances ( #1173 )
2023-06-13 15:43:02 -04:00
martin frances
4e4e6864dd
chore: clear virtual-workspace resolver warnings since Rust 1.70 ( #1174 )
...
This patch just clears the warnings listed below and ensures we get the benefits of a better package manger function.
```console
warning: some crates are on edition 2021 which defaults to `resolver = "2"`, but virtual workspaces default to `resolver = "1"`
note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest
note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest
```console
2023-06-13 14:54:39 -04:00
Nova
b0a23be07b
fix: replace ouroboros with self_cell ( #1171 )
2023-06-12 07:27:52 -04:00
devriesp
f602cd7b5e
docs: typos ( #1172 )
2023-06-12 07:26:54 -04:00
martin frances
6fac92cb62
perf: removed duplicate calls to .collect() and .into_iter() in leptos_actix ( #1133 )
2023-06-11 21:54:24 -04:00
jquesada2016
b6d9060152
feat: improved <For/> algorithm ( #1146 )
...
Rewrites the algorithm behind the `<For/>` component to create a more robust keyed list implementation, with the potential for future additional optimizations related to grouping moved ranges.
Closes #533 .
2023-06-11 10:20:14 -04:00
Greg Johnston
bb10b32200
feat: register server functions automatically ( #1154 )
2023-06-11 09:09:21 -04:00
funlennysub
e0be2fa4ba
feat: add additional support for generics in components ( closes #949 + #1023 ) ( #1109 )
2023-06-10 16:44:27 -04:00
Greg Johnston
97d2829941
feat: clone <Suspense/> children instead of calling again ( closes #398 ) ( #1157 )
2023-06-10 15:48:40 -04:00
Paul Wagener
5779242bd7
feat: add versioning to Resource to ensure it only returns latest refetch ( closes #1124 ) ( #1165 )
2023-06-10 13:33:07 -04:00
Greg Johnston
abf90358fa
fix: pass through docs for server functions ( #1164 )
2023-06-09 16:07:08 -04:00
Greg Johnston
76b73acb30
feat: enable bind: syntax for <Await/> component ( #1158 )
2023-06-09 09:08:26 -04:00
Greg Johnston
b24910271a
fix: external redirects in <ActionForm/> ( #1160 )
2023-06-09 09:08:04 -04:00
Greg Johnston
3d75c71bfa
build: better GitHub Action names
2023-06-06 17:04:17 -04:00
Greg Johnston
8096d7c416
docs: add sections on progressive enhancement/graceful degradation and <ActionForm/> ( #1151 )
2023-06-05 21:20:42 -04:00
Greg Johnston
17adf7cc14
feat: pass components with no props directly into the view as a function that takes only Scope ( #1144 )
2023-06-05 20:48:22 -04:00
Daniel Santana
96f961ef54
fix: queue_microtask without JS ( #1145 )
2023-06-05 15:23:04 -04:00
Greg Johnston
4ade062cd8
fix: erroneous reactivity warning at form.rs:96 ( #1142 )
2023-06-04 20:09:21 -04:00
itehax
53efcb989c
examples: Tailwind + Leptos & Axum ( #1111 )
2023-06-03 16:55:47 -04:00
Lunatic
e183bfe278
docs: inculde missing cx in 16_routes.md ( #1141 )
2023-06-03 16:46:27 -04:00
yuuma03
51a6147609
feat: variable bindings on components ( #1140 )
2023-06-03 15:22:44 -04:00
martin frances
f6d856ee11
chore: cargo clippy --fix. ( #1136 )
2023-06-03 11:35:33 -04:00
Greg Johnston
4e41fad107
fix: wait for blocking fragments to resolve before pulling metadata ( closes #1118 ) ( #1137 )
2023-06-02 17:32:32 -04:00
Greg Johnston
2bafdf2752
fix: remove nested fragments from Suspense ( closes #1094 and #960 ) ( #1135 )
2023-06-02 11:40:49 -04:00
tempbottle
84e8922aa6
fix: remove need for inline JS for queue_microtask ( #1129 )
2023-06-02 08:16:29 -04:00
agilarity
53e09279a2
ci(examples): verify examples ( #1125 )
2023-06-01 22:12:18 -04:00
Vladimir Motylenko
38a1c1102f
Closing tag highlight/hower and go-to definition support in lsp. ( #1126 )
2023-06-01 22:09:15 -04:00
Greg Johnston
c68df44717
chore: add guide for contributors ( #1131 )
2023-05-31 20:33:51 -04:00
Greg Johnston
55266f2efd
perf: reduce overhead of hydration keys ( #1122 )
2023-05-31 20:30:31 -04:00
Greg Johnston
f3e544b003
chore: add discussions links to issue templates
2023-05-31 11:03:21 -04:00
Greg Johnston
e9054b01e6
chore: add issue templates ( #1128 )
2023-05-31 10:58:55 -04:00
Greg Johnston
d0660cf6da
build: use cargo's sparse registry protocol ( #1127 )
2023-05-31 10:58:19 -04:00
Greg Johnston
8a27ca7c38
docs: add website link to README.md
2023-05-30 10:27:28 -04:00
Greg Johnston
ff86b2ef4f
chore: fix warnings ( #1123 )
...
* chore: fix `hidden-glob-reexports` warning
* skip `template_macro` testing
2023-05-29 17:01:59 -04:00
Greg Johnston
1c236d74b6
docs: add examples of synchronizing signal values ( #1121 )
2023-05-29 07:38:06 -04:00
agilarity
af7e1d6a0f
build(examples): auto install playwright browsers ( #1114 )
2023-05-28 18:01:38 -04:00
agilarity
dfd03d4f27
fix(examples): verification errors ( #1113 ) ( #1115 )
...
* fix(examples/counters): unexpected each item comment
* fix(examples/errors_axum): format error
* fix(examples/ssr_modes_axum): format error
* fix(examples/ssr_modes_axum): unused import
* build(examples/timer): add common tasks
* fix(examples/timer) clippy error
2023-05-28 18:00:42 -04:00
Greg Johnston
5d70275c3a
fix: dispose of runtime when stream is actually finished ( closes #1097 ) ( #1110 )
2023-05-28 13:44:31 -04:00
Marc-Stefan Cassola
475566837e
feat: added scrollend event ( #1105 )
2023-05-27 11:04:30 -04:00
Greg Johnston
a08cebbef9
examples: fix suspense scope in ssr_modes_axum ( #1107 )
2023-05-27 11:01:54 -04:00
Vladimir Motylenko
571e778bce
fix: hygiene on template macro ( #1101 )
...
Pass dependency needed for template, and also hide them behind feature guide, to avoid compile time bloating.
2023-05-27 08:07:44 -04:00
Greg Johnston
2eb95395c8
Merge pull request #1106 from leptos-rs/gbj-patch-2
...
fix: remove debug logs accidentally included
2023-05-27 08:01:19 -04:00
Greg Johnston
7ff08615bb
fix: remove debug logs accidentally included
2023-05-27 06:08:08 -04:00
Greg Johnston
3628aaab55
Merge pull request #1104 from leptos-rs/docs-updates
...
Docs updates
2023-05-26 17:06:58 -04:00
Greg Johnston
cd195c3700
docs: extractors
2023-05-26 17:06:07 -04:00
Abhik Jain
9dc5d93b99
docs: fix generic type ( #1102 )
2023-05-26 16:54:37 -04:00
Greg Johnston
f71e530810
docs: add leptos_meta section
2023-05-26 16:38:39 -04:00
Greg Johnston
6c471f7be4
docs: reorganize into a section on reactivity
2023-05-26 16:06:57 -04:00
Greg Johnston
f80f4ef110
docs: update Global State section for best practices
2023-05-26 16:00:37 -04:00
Greg Johnston
4d3dd7a6e6
feat: add Axum extract() function ( #1093 )
2023-05-25 11:16:58 -04:00
yuuma03
cc68d20758
fix: duplicate headers (like Set-Cookie) on the actix integration ( #1086 )
2023-05-25 11:16:29 -04:00
Matt Joiner
20682e63ef
examples: fix fetch example ( #1096 )
2023-05-25 11:15:47 -04:00
Andrew Wheeler(Genusis)
40363df4a1
examples: updated axum_database_sessions to axum_session along with axum_sessions_auth to axum_session_auth ( #1090 )
2023-05-24 17:21:24 -04:00
Greg Johnston
e3ea889d5f
feat: add <Await/> component to improve ergonomics of loading async blocks ( #1091 )
2023-05-24 14:05:36 -04:00
Greg Johnston
7f14da3026
fix: missing ? in navigation now that removed ( #1092 )
2023-05-24 12:12:57 -04:00
Ben Wishovich
06d28f7d67
feat: use Axum SubStates to enable .with_state in Axum router ( #1085 )
2023-05-24 08:34:17 -04:00
sjud
27f2a672ba
docs: added a hint for a common error when using use_navigate ( #1063 )
2023-05-23 19:51:03 -04:00
Greg Johnston
23f9d537e9
fix: correctly handle new navigations while in the middle of an async navigation ( #1084 )
2023-05-23 17:21:12 -04:00
Rushi
d86339bae3
feat: manually implement Debug, PartialEq, Eq and Hash for reactive types ( #1080 ) ( closes #1074 )
2023-05-22 16:52:59 -04:00
Greg Johnston
846c338491
docs: clarify difference between set() and update() ( #1082 )
2023-05-22 15:34:15 -04:00
Greg Johnston
2d418dae93
fix: debug-mode bugs in <For/> ( closes #955 , #1075 , #1076 ) ( #1078 )
2023-05-22 06:49:13 -04:00
Greg Johnston
91e0fcdc1b
fix/change: remove ? prefix from search in browser (matching server behavior) - closes #1071 ( #1077 )
2023-05-21 22:06:38 -04:00
Greg Johnston
a9ed8461d1
feat: add "async routing" feature ( #1055 )
...
* add "async routing" feature that waits for async resources to resolve before navigating
* add support for Outlet
* add `<RoutingProgress/>` component
2023-05-21 06:46:23 -04:00
Vladimir Motylenko
5a71ca797a
feat: RSX parser with recovery after errors, and unquoted text ( #1054 )
...
* Feat: Upgrade to new local version of syn-rsx
* chore: Make macro more IDE friendly
1. Add quotation to RawText node.
2. Replace vec! macro with [].to_vec().
Cons:
1. Temporary remove allow(unused_braces) from expressions, to allow completion after dot in rust-analyzer.
* chore: Change dependency from syn-rsx to rstml
* chore: Fix value_to_string usage, pr comments, and fmt.
2023-05-21 06:45:53 -04:00
agilarity
70eb07d7d6
test: setup e2e automatically ( #1067 )
2023-05-20 20:46:06 -04:00
Greg Johnston
71ee69af01
fix: avoid potential already-borrowed issues with resources nested in suspense
2023-05-20 20:42:06 -04:00
Ben Wishovich
dd41c0586c
feat: allow specifying exact server function paths ( #1069 )
2023-05-19 16:47:28 -04:00
Greg Johnston
aaf63dbf5c
docs: clarify SSR/WASM binary size comments ( #1070 )
2023-05-19 15:46:26 -04:00
Greg Johnston
87f6802967
docs: update notes on WASM binary size to work with SSR too ( closes #1059 ) ( #1068 )
2023-05-19 15:08:32 -04:00
Greg Johnston
2cbf3581c5
fix: docs note on style refers to class ( #1066 )
2023-05-19 13:42:16 -04:00
agilarity
5a67e208fd
test: verify tailwind example with playwright tests ( #1062 )
...
* chore: ignore playwright output
* fix: could not run playwright test
* test: should see the welcome message
* build: clean playwright output
* build: run playwright web tests
* build: setup e2e dependencies
2023-05-19 13:04:06 -04:00
Greg Johnston
3391a4a035
examples: fix todo_app_sqlite_axum ( #1064 )
2023-05-19 13:02:52 -04:00
Daniel Santana
076aa363a4
feat: added Debug, PartialEq and Eq derives to trigger. ( #1060 )
2023-05-18 20:32:25 -04:00
agilarity
2cb68c0bd4
fix: todomvc example style errors ( #1058 )
2023-05-18 15:49:34 -04:00
Greg Johnston
6eb24b5017
tests: fix broken SSR doctests ( #1056 )
2023-05-18 10:17:14 -04:00
yuuma03
b2faa6b86c
feat: allow multipart forms on server fns (Actix) ( #1048 )
2023-05-17 19:53:55 -04:00
sjud
43990b5b67
docs: include link to book, Discord, examples ( #1053 )
2023-05-17 13:07:17 -04:00
kasbuunk
9453164dd2
docs: fix typo in view fn ( #1050 )
2023-05-16 14:34:37 -04:00
Greg Johnston
00fcd1c65e
docs: fix small docs issues ( closes #1045 ) ( #1049 )
2023-05-16 13:01:29 -04:00
Greg Johnston
85ad7b0f38
fix: <Suspense/> hydration when no resources are read under it ( #1046 )
2023-05-16 12:20:23 -04:00
Greg Johnston
f0a9940364
fix: leak in todomvc example ( closes #706 )
2023-05-15 14:53:39 -04:00
Mark Catley
b472aaf6a0
fix: typo in actix extract documentation ( #1043 )
2023-05-15 08:57:49 -04:00
Greg Johnston
059c1bf61c
cargo fmt
2023-05-14 06:55:05 -04:00
Matt Crane
add13fd6a4
change: migrate Axum integration to use with_state over layer(Extension) ( #1032 )
2023-05-14 06:37:39 -04:00
Greg Johnston
904c2e8a67
v0.3.0
2023-05-13 19:44:06 -04:00
Greg Johnston
a5c3be586a
docs: tweak new slice docs
2023-05-13 19:43:17 -04:00
Markus Kohlhase
9f5139d929
examples: fix trunk config to run tailwind at the right time ( #1040 )
2023-05-13 19:39:36 -04:00
sjud
bae305340e
change: update create_slice to allow different types on getter and setter ( #1036 )
2023-05-13 19:39:17 -04:00
Greg Johnston
40c1556f29
change: remove APIs that had been marked deprecated ( #1037 )
2023-05-12 19:45:48 -04:00
Greg Johnston
0db4f5821f
fix: avoid extra { escaping ( closes #1035 ) ( #1038 )
2023-05-12 16:29:33 -04:00
Greg Johnston
12ebc95800
fix: flickering <Transition/> in release mode ( closes #960 ) ( #1030 )
2023-05-11 14:51:33 -04:00
Greg Johnston
d7b919032e
feat: SsrMode::PartiallyBlocked ( #1026 )
2023-05-10 13:30:01 -04:00
Greg Johnston
be8bf8b0d6
fix: corrects error-deserialization behavior of ActionForm ( closes #1024 ) ( #1025 )
2023-05-09 06:40:22 -04:00
Greg Johnston
f84f1422f4
fix: maintain insertion order of meta tags ( #1021 )
2023-05-08 08:36:54 -04:00
Snêu
b01976e3bb
examples: fix indentations ( #1017 )
2023-05-08 08:36:45 -04:00
agilarity
50b48fb272
chore: build CSS with trunk ( #1016 )
...
This configures a hook to run the tailwindcss CLI when a build is triggered or retriggered via Trunk watch. It eliminates the need to run the tailwindcss manually.
2023-05-08 08:36:07 -04:00
agilarity
1617e31d69
CI: clean up examples after verification ( #1019 )
...
* build: improve task names
* build: add clean-examples task
Make it easy to clean all the cargo and trunk files in the examples.
* build: clean after verify
2023-05-08 08:35:27 -04:00
Chris
51cd082d4c
docs: add examples for manual server integration for router ( #1015 )
2023-05-08 08:34:43 -04:00
Warre Dujardin
72414b7945
docs: fix link to cargo-leptos README in the book ( #1012 )
2023-05-06 13:42:44 -04:00
FrankReh
1afa14ccbd
docs: adjust Dynamic Attributes page ( #1011 )
...
Adjust the intro in the Dynamic Attributes page to include
the recent `dynamic style` feature. Also reorder a little given
the order of the page body that follows.
2023-05-06 13:42:16 -04:00
Warre Dujardin
477c29cdf1
docs: close iframe tag ( #1013 )
2023-05-06 13:41:50 -04:00
Greg Johnston
49a424314a
docs: add a serevr fn section ( #1014 )
2023-05-06 13:14:16 -04:00
Warre Dujardin
598523cd9d
fix: relax Debug trait bounds ( #1010 )
2023-05-06 12:10:48 -04:00
Greg Johnston
1fdb6f1cdf
feat: add style: to view ( #1009 )
2023-05-06 06:23:20 -04:00
agilarity
9997487a9c
test: lint examples with --all-features ( #1008 )
...
* test: lint all features
* fix(counter_isomorphic): check-style issues
* fix(errors_axum): check-style issues
* fix(hackernews): check-style issues
* fix(hackernews_axum): check-style issues
* fix(session_auth_axum): check-style issues
* build(session_auth_axum): add common tasks
* fix(ssr_modes): check-style issues
* build(ssr_modes_axum): add common tasks
* fix(ssr_modes_axum): check-style issues
* build(tailwind): add common tasks
* fix(tailwind): check-style issues
* fix(todo_app_sqlite_axum): check-style issues
* fix(todo_app_sqlite_viz): check-style issues
2023-05-05 22:25:29 -04:00
Greg Johnston
b5e94e4054
fix: properly dispose of <Suspense/> scopes ( closes #834 ) ( #1006 )
2023-05-05 19:08:56 -04:00
Greg Johnston
a5f6e0bac4
docs: document that <ActionForm/> only works with form-encoded server functions ( closes #977 ) ( #1005 )
2023-05-05 13:37:53 -04:00
Douglas Parsons
2c9de79576
docs: Reduce firmness of overlapping signals warnings ( #1004 )
...
Following [discord
question](https://discord.com/channels/1031524867910148188/1049869221636620300/1104043773194928163 )
2023-05-05 11:28:36 -04:00
agilarity
63dd00a050
fix: lint issues in todomvc example ( #1001 )
...
* build: add common tasks
* fix: resolve check-style issues
2023-05-05 11:28:14 -04:00
agilarity
99823a3d4f
fix: lint issues in todo_app_sqlite_viz example ( #1000 )
...
* build: add common tasks
* fix: resolve check-style issues
2023-05-05 11:27:38 -04:00
agilarity
c0bdd464f6
fix: lint issues in todo_app_sqlite_axum example ( #999 )
...
* build: add common tasks
* fix: resolve check-style issues
2023-05-05 11:27:27 -04:00
agilarity
7e7377f4f7
fix: lint issues in todo_app_sqlite example ( #998 )
...
* build: add common tasks
* fix: resolve check-style issues
2023-05-05 11:27:11 -04:00
agilarity
15448765dd
fix: lint issues in session_auth_axum example ( #997 )
...
* build: add common tasks
* fix: resolve check-style issues
2023-05-05 11:26:44 -04:00
agilarity
f0f1c3144b
fix: lint issues in router example ( #996 )
...
* build: add common tasks
* fix: resolve check-style issues
2023-05-05 11:26:24 -04:00
agilarity
630da4212d
fix: lint issues in login_with_token_csr_only example ( #995 )
...
* build: add common tasks
* test: resolve check-style issues
2023-05-05 11:26:09 -04:00
agilarity
38bc24bb9e
fix: lint issues in hackernews_axum example ( #992 )
...
* build: add common tasks
* test: resolve check-style issues
2023-05-05 11:25:24 -04:00
agilarity
012285337b
fix: lint issues in hackernews example ( #991 )
...
* build: add common tasks
* test: resolve check-style issues
2023-05-05 11:25:13 -04:00
agilarity
3ba4f62cef
fix: lint issues in fetch example ( #989 )
...
* build: add common tasks
* test: resolve check-style issues
2023-05-05 11:24:28 -04:00
agilarity
b4996769c1
fix: lint issues in errors_axum example ( #988 )
2023-05-05 11:23:59 -04:00
Greg Johnston
9a6b1f53da
fix: lint issues in counters example
...
fix: lint issues in `counters` example
2023-05-05 11:23:38 -04:00
Greg Johnston
ef45828ca7
fix: don't assume OutOfOrder and GET for /
2023-05-05 10:20:36 -04:00
Greg Johnston
ea153e4f26
docs: error when component ends with view! { ... }; ( closes #985 ) ( #993 )
2023-05-03 18:15:02 -04:00
Greg Johnston
59b8626277
docs: switch from compile errors to runtime warnings for incompatible feature flags ( #990 )
2023-05-03 16:25:35 -04:00
Greg Johnston
d8e03773f0
feat: allow structs in server function arguments ( #987 )
2023-05-03 15:26:48 -04:00
Joseph Cruz
5ab799bbf8
test: resolve check-style issues
2023-05-03 12:34:03 -04:00
Greg Johnston
6c763a83cb
fix: suppress warning loading local resource without <Suspense/> in hydrate mode ( closes #979 ) ( #984 )
2023-05-03 11:22:34 -04:00
agilarity
9cf337309d
Fix lint issues in counter_isomorphic example ( #980 )
2023-05-02 20:22:07 -04:00
Greg Johnston
1af35cdd3b
feat: add builder syntax for optional event listener ( #969 )
2023-05-02 15:47:19 -04:00
agilarity
fcb98474b8
examples: fix the lint issues in the counter example ( #971 )
2023-05-01 17:27:29 -04:00
Greg Johnston
54f7e9366a
change/fix: require FromStr errors on Params to be Send + Sync so they are ErrorBoundary compatible ( #974 )
2023-05-01 17:18:46 -04:00
Matt Crane
ddf9df2b5e
change: replace serde_urlencoded with serde_html_form to support Vec<_> in server fn args ( #973 )
2023-05-01 17:17:45 -04:00
Greg Johnston
7fe9f82d89
v0.3.0-alpha (#968 )
2023-04-28 19:30:16 -04:00
Roland Fredenhagen
661adc4027
feat: ```view code block in doc comments for properties ( #961 )
2023-04-28 16:03:04 -04:00
Roland Fredenhagen
1011c464dc
feat: add collect_view(cx) ( #956 )
2023-04-28 16:02:24 -04:00
Frank Panetta
4b498a3b42
chore: fix typos ( #964 )
2023-04-28 12:10:48 -04:00
yuuma03
3c90b47e77
fix: allow mounting multiple Leptos apps on same server ( #966 )
...
Use a HashMap indexed by base URL to cache route branches on the server.
2023-04-28 12:10:02 -04:00
Greg Johnston
671b1e4a8f
docs: note need for serde dependency for server functions ( closes #947 ) ( #962 )
2023-04-27 17:15:29 -04:00
agilarity
52021be806
tests: add wasm web test and common tasks ( #954 )
...
* test: rename web test module
* test: extract wasm-web-test task
* test: introduce common tasks
* test: add web-test and common tasks
2023-04-27 17:00:13 -04:00
Roland Fredenhagen
75a7bd610a
fix: escapes in doc comments on component properties ( #958 )
2023-04-27 16:43:38 -04:00
Greg Johnston
de553cf4fe
docs: add note on projecting children ( #959 )
2023-04-26 20:08:12 -04:00
Greg Johnston
0a65f43789
fix: <ErrorBoundary/> toggling between states (closes issue #820 ) ( #957 )
2023-04-26 17:30:30 -04:00
Greg Johnston
0f277c55ec
fix: use absolute reference to ::leptos::Scope in case not imported
2023-04-25 16:52:14 -04:00
Greg Johnston
04b01a6ced
docs: add note about adding CSS classes
2023-04-25 16:26:08 -04:00
Ben Wishovich
6c3381ce52
feat: add From for RequestParts into Parts for Axum and add an option to ge… ( #931 )
2023-04-24 20:08:28 -04:00
Roland Fredenhagen
fa2e2248d3
feat: impl FromIterator for View ( #945 )
2023-04-24 20:07:27 -04:00
jquesada2016
362150a715
feat: implemented IntoView for component props ( #948 )
2023-04-24 20:05:31 -04:00
agilarity
27b5991ee3
examples: test business logic for counter_without_macros ( #927 )
2023-04-24 20:04:40 -04:00
Greg Johnston
0a7dbb0ca4
feat: add Actix extract helper ( #936 )
2023-04-24 20:03:24 -04:00
yuuma03
234861a156
fix: generics on impl From slot to Vec<slot> ( #946 )
2023-04-24 20:03:03 -04:00
Greg Johnston
78d6d312f8
CI: fix unused variables breaking tests ( #950 )
2023-04-24 17:19:10 -04:00
Greg Johnston
a1144a5b6b
examples: add autofocus in todomvc
2023-04-24 08:07:49 -04:00
Greg Johnston
9723cc466e
fix: rust-analyzer/cargo fmt issues with LEPTOS_OUTPUT_NAME
2023-04-24 08:00:36 -04:00
Greg Johnston
79c12c0129
examples: better practice for view types in todos ( #940 )
2023-04-23 17:33:45 -04:00
Jonas Matser
a08d6bae10
fix: ServerFnError::Serialization error string ( #939 )
2023-04-23 16:17:20 -04:00
Daniel Santana
39261a276c
docs: add the GetCbor and GetJson to server macro documentation. ( #938 )
2023-04-23 15:42:05 -04:00
Roland Fredenhagen
c471986024
feat: add #[allow(missing_docs)] to children prop in components ( #934 )
2023-04-23 15:34:42 -04:00
Roland Fredenhagen
d2e3a156e8
fix: link to actual type instead of Into trait for component properties ( #932 )
2023-04-23 15:33:27 -04:00
Fabian Keller
9badfa997b
examples: add timer example with reactive use_interval hook ( #925 )
2023-04-23 15:27:47 -04:00
Ben Wishovich
72f8bf4e20
feat: remove need for LEPTOS_OUTPUT_NAME env var after compilation ( #899 )
2023-04-23 15:20:47 -04:00
Greg Johnston
c74b15b120
docs: add section on WASM binary size
2023-04-23 15:07:48 -04:00
Craig Rodrigues
9a4f3ab08c
chore: specify dependency version for cached ( #929 )
2023-04-22 17:51:40 -04:00
Greg Johnston
a0935c169e
docs: add some content on server-side rendering ( #930 )
2023-04-22 15:15:48 -04:00
yuuma03
0e2181fb90
fix: allow nested slots ( #928 )
2023-04-22 14:14:01 -04:00
Greg Johnston
732ec14302
docs: add use of batch to avoid BorrowMut panic
2023-04-22 07:03:10 -04:00
agilarity
ec95060b6e
fix: features related compile error ( #919 )
...
`cargo make test` sets the --all-features flag by default. This change
clears it.
2023-04-22 06:50:35 -04:00
J
689afec26e
docs: fixed typo in interlude_styling.md ( #924 )
2023-04-22 06:49:15 -04:00
J
bbf23ea40a
docs: removed extra unused code blocks in form.md ( #923 )
2023-04-22 06:48:28 -04:00
J
34e0a8e47d
docs: fixed a minor typo in async readme ( #921 )
2023-04-22 06:47:44 -04:00
Ben Wishovich
81f330e888
feat: add thorough tracing throughout ( #908 )
2023-04-22 06:47:11 -04:00
Greg Johnston
e5d657dd55
fix: panic when creating nested StoredValue ( #920 )
2023-04-22 06:44:25 -04:00
Greg Johnston
f919127a7e
fix some issues with animated routing ( #889 )
2023-04-21 15:33:14 -04:00
Greg Johnston
2001bd808f
examples: fix broken counters tests ( #915 )
2023-04-21 15:26:18 -04:00
yuuma03
f51857cedc
feat: add slots ( closes #769 ) ( #909 )
2023-04-21 14:36:38 -04:00
Greg Johnston
f3b8d27c4f
change: add window_event_listener_untyped and deprecate window_event_listener pending 0.3.0 ( #913 )
2023-04-21 14:14:35 -04:00
Greg Johnston
d3a577c365
cargo fmt
2023-04-21 12:45:08 -04:00
Greg Johnston
b80f9e3871
fix: issue with ordering of class attribute and class=("fancy-name-200", true) ( closes #907 ) ( #914 )
2023-04-21 12:42:35 -04:00
Greg Johnston
328d42656d
docs: compile error on mutually-exclusive features ( #911 )
2023-04-21 12:25:21 -04:00
Logan B. Nielsen
d3d2cbed7e
feat: add typed window event listeners ( #910 )
2023-04-21 11:43:11 -04:00
agilarity
d6f7aedec1
CI: use cargo make to run tests for examples ( #904 )
2023-04-21 10:33:12 -04:00
Daniel Santana
7a5a776cb9
feat: get_untracked for node_ref. ( #902 )
2023-04-19 20:09:54 -04:00
Greg Johnston
06f782aa13
perf: improve router performance on server by calculating route branches once ( #898 )
2023-04-19 20:09:29 -04:00
Greg Johnston
6b825fec37
fix: erroneous non-reactive access warning in undelegated events ( #900 )
2023-04-19 20:09:05 -04:00
Greg Johnston
b452d8af40
feat: add ability to mutate resources ( closes #856 ) ( #886 )
2023-04-19 11:40:46 -04:00
Daniel Santana
e96f1d2129
feat: impl Serialize/Deserialize for ParamsMap ( closes #892 ) ( #895 )
2023-04-19 06:19:53 -04:00
OvermindDL1
72d6af9c84
fix: use once_cell crate until OnceLock stabilized ( closes #890 )
...
* Fixes #890 that was using OnceLock, which is nightly only, by adding the once_cell crate as a dependency.
* Make `cargo fmt` happy
2023-04-18 16:31:04 -04:00
Filip Dutescu
8198cd0b68
chore(readme): add link to Matrix bridge ( #894 )
...
While the project offers a [Matrix][matrix] bridge, it is nowhere shown.
One would need to join the [Discord][discord] server and search through
it to find it.
To make it easier to join through [Matrix][matrix], add a badge in the
project `README.md`.
[matrix]: https://matrix.org/
[discord]: https://discord.com/
Fixes : #893
Signed-off-by: Filip Dutescu <filip@hucksy.dev >
2023-04-18 15:30:00 -04:00
Greg Johnston
fe68b47ba2
perf: tiny optimization on primitive child values ( #887 )
2023-04-17 22:09:10 -04:00
Greg Johnston
384d39543c
fix: dispose of scope when server fns return error ( closes #862 ) ( #888 )
2023-04-17 22:08:47 -04:00
agilarity
225e62d12f
examples: split counter without macros web test ( #884 )
2023-04-17 20:26:31 -04:00
Greg Johnston
3905a2aa60
docs: SSR modes
2023-04-17 17:00:52 -04:00
Greg Johnston
ff6ce2dac0
docs: add SSR mode videos
2023-04-17 16:03:36 -04:00
Greg Johnston
16675cbff2
docs: add chapter on styling
2023-04-17 11:50:50 -04:00
HJin.me
9524c6e289
fix: <For/> rendering error in SSR InOrder/Async Mode ( #879 )
2023-04-17 10:48:07 -04:00
Mark Catley
bc316c648c
feat: add expect_context function ( #864 )
...
Most of the time when using use_context it would be a bug if the context
wasn't present and appropriate to panic. This is a convenience function
that has that behavior.
2023-04-17 10:47:50 -04:00
Matt Crane
6753ba21c4
fix: allow server functions to work with non-Cargo build systems with SERVER_FN_OVERRIDE_KEY env var ( #878 )
2023-04-17 08:46:32 -04:00
Greg Johnston
efbe32e081
feat: add non-animation base classes to <AnimatedOutlet/> and <AnimatedRoutes/> ( #877 )
2023-04-17 08:12:22 -04:00
Kamil Ogórek
55fd6d44f9
docs: Add per-project toolchain override readme ( #876 )
2023-04-16 16:30:20 -04:00
Mustafa Zaki Assagaf
90972f2d94
fix: updated nix flakes lock files on session auth axum examples to fix once_cell doesn't compile ( #872 )
2023-04-15 13:32:59 -04:00
Greg Johnston
7382c7e51c
feat: add the ability to specify animations on route transitions ( #736 )
2023-04-14 18:20:42 -04:00
Greg Johnston
8a6d129575
examples: fix error handling in fetch example ( #870 )
2023-04-14 16:13:14 -04:00
Stackingttv
e20c77710d
docs: fixed typo in life cycle docs ( #869 )
2023-04-14 15:12:18 -04:00
Greg Johnston
93da88eac0
feat: add ability to set node_ref and pass additional attributes to <Form/> and friends ( #853 )
2023-04-14 14:25:52 -04:00
agilarity
5072539917
examples: fix counter_without_macros test ( #863 )
2023-04-14 14:06:53 -04:00
Chris Roth
78c59df1d1
docs: fix match statement ( #860 )
2023-04-14 14:05:21 -04:00
Greg Johnston
75e40eafb2
docs: add "Life Cycle of a Page Load"
2023-04-14 13:30:53 -04:00
Álvaro Mondéjar
274a1ac5f0
Remove & at the end of params queries ( #854 )
2023-04-12 17:04:22 -04:00
Greg Johnston
17040a4af4
fix: custom events in SSR mode ( #852 )
2023-04-12 13:21:36 -04:00
Greg Johnston
b09a5f905e
docs: emit error when trying to combine global class and dynamic class in a bugged way ( #850 )
2023-04-11 21:15:07 -04:00
Greg Johnston
683511f311
clippy
2023-04-11 14:37:54 -04:00
Greg Johnston
151c58733b
docs: clean up methods documentation
2023-04-11 14:37:12 -04:00
Greg Johnston
012ff56cd6
fix static text nodes with curly braces in SSR ( #849 )
2023-04-11 12:46:32 -04:00
Nova
493c805993
feat: Trigger primitive and reactive-system cleanups ( #838 )
2023-04-10 17:47:52 -04:00
Greg Johnston
764192af36
feat: allow multiple HTTP request methods/verbs ( #695 )
2023-04-10 16:42:15 -04:00
Greg Johnston
f969fd7eff
fix: don't entity-encode HTML special characters inside <script> or <style> ( closes #837 ) ( #846 )
2023-04-10 13:15:15 -04:00
Greg Johnston
2c7ee0d415
feat: rustls feature for reqwest and any other relevant dependencies ( #842 )
2023-04-10 13:15:00 -04:00
Snêu
5430c78e18
docss: correct broken MaybeSignal link ( #840 )
2023-04-10 07:37:41 -04:00
Greg Johnston
6b052557d1
fix: correct todo_app_sqlite README ( closes #845 )
2023-04-10 07:17:46 -04:00
Nova
70f3edb0f5
fix: fix leaks in memos, and in scope parent tracking ( #841 )
2023-04-09 16:36:53 -04:00
Greg Johnston
4e1f963750
Merge pull request #831 from novacrazy/main
...
Various optimizations, size reductions and stability improvements
2023-04-08 09:04:13 -04:00
novacrazy
3c3d3b33f1
Remove unnecessary into
2023-04-07 17:41:27 -05:00
novacrazy
be7b9eea25
Merge branch 'main' of https://github.com/leptos-rs/leptos
2023-04-07 14:09:10 -05:00
Greg Johnston
016ad6b7a6
feat: make __Props imports unnecessary ( closes #746 ) ( #828 )
2023-04-07 15:06:10 -04:00
Greg Johnston
5dab35447a
update README.md
2023-04-07 13:19:35 -04:00
Greg Johnston
63be819533
tests: update benchmarks ( #827 )
...
* tests: add Criterion benchmarking and move reactive benchmarks into `leptos_reactive`
* tests: updated SSR benchmarks
2023-04-07 13:04:26 -04:00
Aaron Karras
af8afb1204
perf: use local pools for axum handlers ( #815 )
2023-04-07 11:35:16 -04:00
Mark Catley
2170be8e01
chore: deny warnings on github actions ( #814 )
...
Enabling on all except for checking examples to start. I'll fix those
and add it as a follow up.
Closes #795
2023-04-07 09:28:48 -04:00
Greg Johnston
1187a506dd
fix: server functions with url as argument name (closes issue #823 ) ( #825 )
2023-04-07 09:28:31 -04:00
Greg Johnston
ff5ceddbe2
fix: correctly pass server fn errors to client ( #822 )
2023-04-07 08:12:10 -04:00
Greg Johnston
41a5e09caa
docs: add sandbox links and max height ( #824 )
2023-04-07 07:38:12 -04:00
novacrazy
60b96c9118
Couple more inline tweaks
2023-04-07 05:28:50 -05:00
novacrazy
7ccb2d9f44
Simplify SsrMode enum
2023-04-07 05:10:55 -05:00
novacrazy
2c2090a194
Return Cow from as_value_string
2023-04-07 05:09:49 -05:00
novacrazy
de9b2998ac
More inlining
2023-04-07 05:09:24 -05:00
novacrazy
29b81a3d50
Another round of inlining
2023-04-07 01:44:18 -05:00
novacrazy
5bc0d89ce7
Cleanup Comment::new
2023-04-07 00:52:35 -05:00
novacrazy
342b10c232
Use Cow for ErrorKey
2023-04-07 00:52:23 -05:00
novacrazy
ba9d3c1602
Another round of inlining
2023-04-07 00:52:11 -05:00
novacrazy
d3b3ce6980
Cleanup benchmarks
2023-04-06 21:56:24 -05:00
novacrazy
4b79a91287
Add profile.release to many examples
2023-04-06 21:53:52 -05:00
novacrazy
de06c9b2ca
Fix Box<dyn> casts
2023-04-06 21:52:25 -05:00
novacrazy
84c7d00ea9
Use Cow<'static, str> for Attributes
2023-04-06 21:52:11 -05:00
novacrazy
8f5ae0054d
Second round of inlining
2023-04-06 21:39:29 -05:00
Nova
374f0c4e27
Merge branch 'leptos-rs:main' into main
2023-04-06 21:31:41 -05:00
novacrazy
a6170f4da9
First round of inlining
2023-04-06 21:02:40 -05:00
novacrazy
578dd5ef35
Convert bubbles to associated const for more reliable const-eval and dead-code elimination
2023-04-06 20:55:18 -05:00
novacrazy
934a131deb
Pull out non-generic code from leptos_dom
...
Avoids duplicate codegen
2023-04-06 20:52:13 -05:00
novacrazy
5bc1c36e67
Pull out non-generic code in reactive core
2023-04-06 20:32:59 -05:00
novacrazy
b1b9853f92
Replace with_scope_property with push_scope_property
...
Avoids duplicate codegen
2023-04-06 20:26:58 -05:00
novacrazy
5d6a083d1d
Fix nested batching and improve batch/untrack behavior
2023-04-06 20:22:58 -05:00
Bram
9478245986
docs: remove Leptos guide link (same as book?) ( #818 )
2023-04-06 20:44:26 -04:00
Bram
4c1c12734a
docs: publish book during CI ( #817 )
2023-04-06 14:09:54 -04:00
Greg Johnston
5d3a360456
fix: correctly escape HTML special characters in text nodes during SSR ( #812 )
2023-04-06 06:52:59 -04:00
novacrazy
b51da35a9a
Remove allocation in ScopeDisposer
2023-04-05 21:21:22 -05:00
novacrazy
164dcd1b97
Cleanup signal clone impl
2023-04-05 21:19:04 -05:00
novacrazy
c0964c2b01
Fast path for linear deeply nested children
2023-04-05 21:17:37 -05:00
novacrazy
af5b226e53
Merge branch 'main' of https://github.com/leptos-rs/leptos
2023-04-05 19:30:06 -05:00
Nova
4e7a0db950
perf: optimize memory usage of update methods ( #809 )
2023-04-05 20:16:53 -04:00
Nova
cee6ed9a9f
perf: optimize Runtime::mark_dirty ( #808 )
2023-04-05 20:16:40 -04:00
Greg Johnston
fa1013f7c3
chore: fix unused variable warning in property now that it's not memoized ( #810 )
2023-04-05 13:20:16 -04:00
novacrazy
3a1db3a191
Merge branch 'main' of https://github.com/leptos-rs/leptos
2023-04-05 08:39:49 -05:00
Ben Wishovich
8b57ba7aa8
feat: add the ability for server fns to be submitted via GET requests ( #789 )
2023-04-05 06:47:17 -04:00
Mark Catley
ea638e37f6
fix: unused warning in reactive signal diagnostics ( #807 )
2023-04-05 06:26:36 -04:00
Nova
4342d45a2f
perf: optimize size of RuntimeId when slotmap is not used ( #805 )
2023-04-05 06:26:17 -04:00
Greg Johnston
fe4d2382b8
fix: prevent router panic on root-level <Redirect/> during route list generation ( #801 )
2023-04-04 21:36:03 -04:00
Greg Johnston
2a13609eff
fix: fixes #802 as a temporary measure without resorting to #803 yet ( #804 )
2023-04-04 20:50:50 -04:00
Marcus Ofenhed
c2ff1cabf1
feat: Add ability to include options to event listeners ( #799 )
2023-04-04 20:50:35 -04:00
novacrazy
54370e3153
Reduce size of RuntimeId when slotmap is not used
2023-04-04 19:26:57 -05:00
Mark Catley
e72ed26809
fix: warning in Cargo.toml ( #800 )
2023-04-04 19:53:05 -04:00
Greg Johnston
64e056ffa9
docs: warn if you are using leptos_meta without features ( #797 )
2023-04-03 21:07:43 -04:00
Mark Catley
db9b7db53d
fix: unused warning on cx in server functions ( #794 )
...
When running cargo clippy on server functions that use `cx: Scope` it
has an unused variable error.
It appears that the logic for adding an `#[allow(unused)]` notation is
inverted.
2023-04-03 21:07:30 -04:00
ealmloff
a9e6590b5e
fix: server functions with non-copy server contexts ( #785 )
2023-04-03 07:17:22 -04:00
Greg Johnston
b67121b755
docs: <Form/> component ( #792 )
2023-04-02 16:50:21 -04:00
Greg Johnston
7bce4de682
fix: issues with nested <Suspense/> ( closes #764 ) ( #781 )
2023-04-02 15:57:43 -04:00
Greg Johnston
8bdb427133
fix: improvements "untracked read" warnings in untrack, SSR cases ( #791 )
2023-04-02 15:57:06 -04:00
Patrick Auernig
4c23f3c478
chore: remove unused fs dependency from leptos_config ( #787 )
2023-04-02 12:29:30 -04:00
Greg Johnston
9502de561b
fix: warnings about untracked signal access in <Router/> ( #790 )
2023-04-02 12:28:58 -04:00
Greg Johnston
210c11a733
docs: add runtime "strict mode" checks that warn if you’re non-reactively accessing a value ( #786 )
2023-04-01 17:41:25 -04:00
ealmloff
6917027204
fix server functions default macro on stable ( #784 )
2023-04-01 17:31:56 -04:00
Greg Johnston
e78ce7e6b9
feat: create_blocking_resource ( #752 )
2023-04-01 11:25:00 -04:00
Greg Johnston
a3327f8841
fix: SVG <title> tag ( #783 )
2023-04-01 11:24:32 -04:00
Greg Johnston
f727dd773b
v0.2.5 (#782 )
2023-04-01 11:23:42 -04:00
Greg Johnston
952646f066
Merge pull request #780 from leptos-rs/warn-on-routes-issues
...
docs: warn if you put something invalid inside `<Routes/>`
2023-03-31 17:13:02 -04:00
Greg Johnston
1e037ecb60
chore: clippy and docs warnings ( #779 )
2023-03-31 17:12:42 -04:00
Greg Johnston
c9f75d82d6
docs: warn if you add something that's not a <Route/> inside <Routes/>
2023-03-31 16:39:06 -04:00
Greg Johnston
de3849c20c
example: show how to refactor routes into another component
2023-03-31 16:38:49 -04:00
Christian Rausch
c391c2e938
feat: arbitrary attributes to <Html/> and <Body/> meta tags ( #726 )
2023-03-31 16:30:10 -04:00
luoxiaozero
1cde4b1f8a
docs: fixed parentheses and formatting issues ( #775 )
2023-03-31 15:48:29 -04:00
Greg Johnston
42360d109b
change: insert <head> metadata tags at the beginning of the head, not the end ( #731 )
2023-03-31 14:51:27 -04:00
Kaszanas
7aa4d9e6db
feat: Added `<ProtectedRoute/> component to route file ( #741 )
2023-03-31 14:50:46 -04:00
Kaszanas
9ed3390b81
examples: updated proxy settings in login_with_token_csr_only ( #771 )
...
When testing this example on Windows OS the initial value of `0.0.0.0:3000` for the IP did not work.
2023-03-31 14:44:06 -04:00
Greg Johnston
1ff56f7bfd
fix: stop memoizing properties in a way that breaks prop:value ( closes #768 ) ( #772 )
2023-03-30 19:44:38 -04:00
Greg Johnston
16917997cd
fix: prevent forms from entering infinite loops (closes issue #760 ) ( #762 )
2023-03-30 16:28:49 -04:00
Greg Johnston
f42568d262
fix: <Redirect/> between nested routes at same level ( #767 )
2023-03-30 16:28:32 -04:00
Houski
97bbdf561a
feat: added the id attribute to the Leptos router <A/> tag ( #770 )
2023-03-30 16:28:08 -04:00
Greg Johnston
f4043cbd9f
fix: escape </script> and other HTML tags in serialized resources ( #763 )
2023-03-29 13:51:48 -04:00
Lukas Potthast
e9ff26abb4
feat: allow component declaration without use leptos::Scope in scope ( #748 )
2023-03-29 07:59:08 -04:00
Ben Wishovich
e6b1298915
feat: add property field to Meta component ( #759 )
2023-03-28 09:10:00 -04:00
Igor Shevchenko
98a9ec8335
chore(docs): fix a few typos ( #756 )
2023-03-27 20:06:34 -04:00
jquesada2016
5329561687
feat: add is_mounted and dyn_classes ( #714 )
2023-03-27 19:03:59 -04:00
Greg Johnston
89ca047f2f
examples: improve counter_without_macros ( #751 )
2023-03-27 12:50:01 -04:00
Greg Johnston
a94711fcf0
fix: correct typecast on Memo::get_untracked (closes issue #754 ) ( #755 )
2023-03-27 11:28:40 -04:00
Greg Johnston
97d88c65ae
docs: warn when reading resource outside <Suspense/> (closes issue #742 ) ( #743 )
2023-03-25 14:22:22 -04:00
Jessie Chatham Spencer
e482e3748d
docs: document cargo workspace feature resolver footgun ( #745 )
...
Due to no rust edition being present in a workspac's Cargo.toml, non
WASM compatible code can end up being built for a WASM target.
This commit documents this error and how to resolve it.
2023-03-25 07:34:28 -04:00
István Donkó
8ab9c08448
docs: fix typo in server_fn docs ( #740 )
2023-03-24 21:42:27 -04:00
Lachlan Wilger
56de70b714
docs: fix typo ( #739 )
...
There was a typo in the section of the docs that pointed towards the hackernews example, so I fixed it by add the word "application."
2023-03-24 21:41:59 -04:00
Greg Johnston
38d97babd8
fix: always run dynamic classes after static classes ( closes #735 ) ( #738 )
2023-03-24 17:38:34 -04:00
martin frances
4cfecb5d82
chore: bump serde-lite from 0.3 to 0.4. ( #737 )
2023-03-24 16:54:20 -04:00
Michael Clayton
08b5970b2b
check EventSource value for Ok to avoid unwrap panic ( #732 )
2023-03-23 18:41:18 -04:00
Greg Johnston
af20f80b2b
docs: fix typo in router docs ( #730 )
2023-03-22 20:44:58 -04:00
Andrew Chang-DeWitt
c2fdd2cd70
fix: include missing query params in navigation when <ActionForm/> receives a redirect ( #728 )
...
Previous solution in #727 included manually inserted `?` when a leading
`?` is present automatically in `Url.search`.
2023-03-22 20:05:21 -04:00
Greg Johnston
286f3eebe4
fix: relative routing should update when navigating between <Outlet/>s (closes issue #725 ) ( #729 )
...
* clear some cruft out of the navigation code
* fix issue #725 (correctly reactively resolving paths)
2023-03-22 19:59:08 -04:00
Álvaro Mondéjar
509223ab2e
chore: Upgrade console_log to stable ( #724 )
2023-03-22 18:21:53 -04:00
Greg Johnston
665b0b8ed2
chore: make wasm-bindgen dependency optional in leptos_reactive ( #723 )
2023-03-22 17:56:52 -04:00
Greg Johnston
508ad52582
chore: fix clippy warnings ( #721 )
...
* `v0.2.4`
* chore: fix clippy warnings
2023-03-21 18:20:29 -04:00
martin frances
cfd5c98f97
clippy: simplify Box::pin() call. ( #718 )
2023-03-21 09:06:31 -04:00
Greg Johnston
2e63bb1f50
fix: <Transition/> behavior ( #717 )
2023-03-21 09:05:41 -04:00
Greg Johnston
982c8f6b5a
docs: small fixes ( #715 )
2023-03-20 20:43:04 -04:00
Greg Johnston
12c4c115f3
docs: make is_odd less pretentious
2023-03-20 20:42:46 -04:00
Carlton Gibson
d4d20ecdb0
Used modulo rather than bitwise & for is_odd check.
...
The modulo operator is less of a head-scratcher for folks coming through here. The bitwise & is equally correct (clearly) but is likely to cause confusion if folks don't immediately see what's going on.
2023-03-20 20:09:02 +01:00
Greg Johnston
b78919c6ed
Merge pull request #712 from leptos-rs/warnings
2023-03-20 10:49:00 -04:00
Greg Johnston
abb9320e31
chore: clear warning and add exports of helpers with handles
2023-03-20 09:36:14 -04:00
Greg Johnston
875d2d5a3a
chore: handle unbounded_send warnings
2023-03-20 09:33:58 -04:00
Greg Johnston
42a58855a0
feat: add Scope::batch() ( #711 )
2023-03-20 08:29:18 -04:00
Greg Johnston
9d142758ec
feat: allow manual signal disposal before the scope is disposed ( #710 )
2023-03-19 21:40:16 -04:00
Greg Johnston
2faddd85cb
feat: add set_interval_with_handle and deprecate set_interval ( #709 )
2023-03-19 16:45:22 -04:00
martin frances
ddd463748d
clippy: less .clone() calls, simpler pointer passing. ( #707 )
2023-03-19 15:30:12 -04:00
Alexis Fontaine
71ee4cd09d
fix: view! macro not compiling with a non-default scope name ( #704 )
2023-03-19 13:14:47 -04:00
Greg Johnston
08c56f7d6c
feat: add a debounce helper for event listeners ( #691 )
2023-03-19 07:10:56 -04:00
Elliot Waite
e1ba26b62c
feat: add request_animation_frame_with_handle and request_idle_callback_with_handle ( #698 )
2023-03-18 19:09:36 -04:00
Greg Johnston
309f0bf826
fix: ignore view markers in DynChild hydration (closes issue #697 ) ( #703 )
2023-03-18 19:01:56 -04:00
Greg Johnston
1698ffa7db
fix issues in release mode ( closes #700 ) ( #701 )
2023-03-18 11:04:06 -04:00
Greg Johnston
556955cf1a
docs: beginning work on router docs ( #682 )
2023-03-18 07:34:43 -04:00
Elliot Waite
a9f778459a
examples: remove duplicate console_error_panic_hook::set_once() calls ( #692 )
2023-03-17 16:27:24 -04:00
Greg Johnston
f2ac412253
feat: support diffing inside component children in hot-reload ( #690 )
2023-03-17 13:53:53 -04:00
Greg Johnston
3bd52fcc9d
fix: hydration errors with <Suspense/> inside components in SSR mode ( #688 )
2023-03-17 12:46:04 -04:00
Vassil "Vasco" Kolarov
b9bd1e103c
examples: added example using Tailwind, CSR (only) and Trunk ( #666 )
2023-03-17 12:45:49 -04:00
Greg Johnston
55f9081465
fix: allow multiple <Suspense/> on same page during in-order or async rendering ( #687 )
2023-03-17 12:05:36 -04:00
ryndin32
0bac16dba0
docs: typos ( #685 )
2023-03-15 16:40:57 -04:00
Brett Etter
a8a9c575b5
Added IntoView for ReadSignal and RwSignal in the stable feature. ( #677 )
2023-03-15 16:40:22 -04:00
Greg Johnston
15ec855db5
Update README.md
2023-03-15 14:34:18 -04:00
Greg Johnston
b8f79a7e56
fix: suppress spurious hydration warnings for tags in leptos_meta ( #684 )
2023-03-14 14:17:23 -04:00
Greg Johnston
b988ee85f4
fix: leaking stored values ( #683 )
2023-03-14 11:06:36 -04:00
Greg Johnston
d6e166f105
CI: add --release checks ( #681 )
2023-03-13 22:19:10 -04:00
Greg Johnston
53ceca8ff8
feat: maintain order of sources and dependencies ( #678 )
2023-03-13 20:01:03 -04:00
Brett Etter
f2f9759138
fix: release mode ( #679 )
2023-03-13 20:00:40 -04:00
Greg Johnston
817152ff39
feat: new reactive system implementation ( #637 )
2023-03-13 17:58:00 -04:00
Greg Johnston
38daaf3b72
chore: apply cargo machete systematically ( #671 )
2023-03-13 10:16:20 -04:00
Greg Johnston
666d53e2ba
feat: <ActionForm/> improvements ( #676 )
2023-03-13 10:16:02 -04:00
Greg Johnston
b55e9a9e64
v0.2.3: fix broken stable support (#670 )
2023-03-13 07:25:08 -04:00
Greg Johnston
8f94c8e6b1
v0.2.2 ( #667 )
2023-03-12 14:59:04 -04:00
martin frances
604ba3ff90
clippy: signal_wrappers_read, was using .clone() when copy is available. ( #665 )
2023-03-12 14:52:13 -04:00
Elliot Waite
2e671887d9
docs: typo fixes and other small changes to the docs ( #662 )
2023-03-12 14:51:47 -04:00
Greg Johnston
e7d56b76b8
fix: apply patches to all instances of a view, not just the first one ( #663 )
2023-03-11 16:34:13 -05:00
Greg Johnston
87d5bddb21
fix: text node issue in template macro ( #661 )
2023-03-11 14:25:38 -05:00
Charles Taylor
9d46b7bcb0
feat: impl Copy & Clone for MaybeSignal ( #660 )
2023-03-11 13:17:16 -05:00
Greg Johnston
591212a56a
feat: add fragment support for hot reloading and fix some stuff ( #659 )
2023-03-11 07:21:37 -05:00
Ben Wishovich
1a3c1e9e52
feat: provide Request<_> in context for Axum, enabling easier extractor use ( #632 )
2023-03-10 17:28:32 -05:00
martin frances
94998aa95e
chore: cargo machete: leptos_macro - Removed unused crates. ( #656 )
2023-03-10 09:44:23 -05:00
Greg Johnston
c782017578
feat: impl IntoView for &Fragment ( #655 )
2023-03-10 09:43:03 -05:00
Pikhosh
d291cdb968
fix: show console error instead warning for error! ( #654 )
2023-03-10 09:42:44 -05:00
ealmloff
29fb1842a5
feat: make server functions work outside of WASM ( #643 )
2023-03-09 18:03:57 -05:00
Greg Johnston
b085a6c38e
docs: add create_effect chapter ( #653 )
2023-03-09 18:03:38 -05:00
zack.shen
17c12823db
docs: spelling error ( #651 )
2023-03-09 16:45:35 -05:00
martin frances
81401a738c
chore: bumped typed-builder up to 0.14. ( #648 )
2023-03-09 16:44:27 -05:00
martin frances
c9476af063
chore: bump bytecheck to 0.7, remove deprecated simdutf8_std. ( #647 )
...
* bump bytecheck to 0.7, remove deprecated simdutf8_std.
* When using rkyv, must use the appropiate CheckBytes.
2023-03-09 16:44:06 -05:00
Greg Johnston
1f95eb1e1d
chore: typo (closes issue #645 ) ( #646 )
2023-03-08 19:52:51 -05:00
Vanius Bittencourt
1584ab6b72
feat: refactor leptos_config to allow loading from string ( #628 )
2023-03-08 19:49:19 -05:00
martin frances
c63c8ac447
chore: cargo machete: Strip down leptos_server. ( #644 )
2023-03-08 19:37:22 -05:00
martin frances
1a0e2b509e
chore: bump serde-wasm-bindgen to 0.5. ( #639 )
2023-03-08 19:12:30 -05:00
martin frances
c66b673067
chore: <Form/> component Removed unused variables. ( #640 )
2023-03-07 14:04:55 -05:00
martin frances
a13468228a
Bumped tower-http upto 0.4. ( #638 )
2023-03-07 14:03:54 -05:00
Greg Johnston
bb0324fd48
fix: custom events (closes issue #641 ) ( #642 )
2023-03-07 14:00:48 -05:00
jo!
369ea8531f
examples: add session_auth_axum ( #589 )
2023-03-06 21:16:56 -05:00
Greg Johnston
9cc28943aa
CI: split into three actions ( #636 )
2023-03-06 21:00:56 -05:00
erwanvivien
10bdff7d4b
de-duplicate todomvc example ( #634 )
2023-03-06 16:52:35 -05:00
martin frances
27fb430900
bump typed-builder to version 0.13. ( #633 )
2023-03-06 09:07:21 -05:00
jfloresremar
207dedab6e
Update 04_iteration.md ( #630 )
2023-03-06 09:06:58 -05:00
IchHabeKeineNamen
0052b10df3
docs: fix instruction typos ( #631 )
2023-03-06 09:05:21 -05:00
Greg Johnston
08d98691a3
fix: boolean attributes in SSR ( #629 )
2023-03-04 14:24:08 -05:00
WafflePersonThing
34aa0e014b
fix: added missing attributes of events that don't bubble ( #625 )
...
references used:
- https://developer.mozilla.org/en-US/docs/Web/API/
- web archives of the above before jun 11th 2022, relevant: https://github.com/mdn/content/issues/19590
2023-03-04 11:30:12 -05:00
Greg Johnston
55ce805b60
feat: hot reloading support for cargo-leptos ( #592 )
2023-03-04 09:04:22 -05:00
Greg Johnston
1e0adcd89a
docs: add a chapter on async actions and create_action ( #623 )
2023-03-03 17:25:19 -05:00
Greg Johnston
4e67b3aef8
CI: exclude rkyv combos with other serialization traits ( #622 )
2023-03-03 15:48:06 -05:00
Greg Johnston
02e2948e00
fix: suppress warnings caused by resource loading in generate_route_list ( closes #582 ) ( #621 )
2023-03-03 13:20:38 -05:00
Greg Johnston
bd86125629
feat: allow easier client-side form validation ( closes #413 ) ( #620 )
2023-03-03 13:19:54 -05:00
Greg Johnston
11d9018e4f
docs: add patterns for global state ( closes #245 ) ( #619 )
2023-03-03 11:51:21 -05:00
Greg Johnston
553e38ba15
tests: use check instead of build in CI for disk space ( #616 )
2023-03-03 11:50:50 -05:00
Greg Johnston
c8e6d18139
feat: allow multiple class names in view! macro class = ( closes #612 ) ( #614 )
2023-03-03 10:44:15 -05:00
Greg Johnston
e29f6a884f
docs: improve "Getting Started" page ( #618 )
2023-03-03 10:43:49 -05:00
Greg Johnston
10a2ada42a
add note about running Trunk from root
2023-03-03 10:42:18 -05:00
martin frances
2dd9116a20
chore: clippy - simplified conditional logic in transition.rs. ( #615 )
2023-03-03 09:06:56 -05:00
Roland Fredenhagen
2ee323135f
feat: support expressions in #[prop(default=...)] ( #611 )
2023-03-02 19:15:45 -05:00
Ivan Agafonov
cebc824fbe
docs: updated error handling code ( #610 )
...
code is from already updated example
2023-03-02 07:24:04 -05:00
Sergei Gnezdov
dd0bcb950a
docs: fix compilation error, Issue #608 ( #609 )
...
Compiler reports error
F may not live long enough
2023-03-02 07:23:35 -05:00
Greg Johnston
bb5ad101a2
publish framework-independent server_fn crate ( #605 )
2023-03-02 07:22:36 -05:00
Ivan Agafonov
df90f183fd
docs: use create_node_ref instead of NodeRef::new ( #607 )
...
Code in the example already updated by someone
2023-03-02 07:22:18 -05:00
ealmloff
0c261c0fb0
feat: make server functions framework agnostic ( #596 )
2023-03-01 20:56:30 -05:00
Greg Johnston
f46084723a
fix: memory leak in streaming SSR (closes issue #590 ) ( #601 )
2023-03-01 20:54:28 -05:00
Qwox
08ad6832af
fix: set new value before resetting input ( #604 )
...
Co-authored-by: Qwox <qwox@qwox.com >
2023-03-01 20:04:37 -05:00
Greg Johnston
700a110350
Merge pull request #603 from makoven/patch-1
...
Fix typo in 03_components.md
2023-03-01 16:29:46 -05:00
Artem Makoven
33b5d8c4fb
Fix typo in 03_components.md
2023-03-02 05:54:59 +09:00
Greg Johnston
ceb7bd398d
Merge pull request #602 from iagafonov/patch-1
2023-03-01 14:26:49 -05:00
Ivan Agafonov
7f72c804f4
typo
...
_cx replaced with cx
2023-03-01 20:08:03 +03:00
Greg Johnston
be0a793179
Merge pull request #599 from leptos-rs/hydration-do-not-reset
...
fix: SSR + hydration improvements
2023-03-01 06:00:50 -05:00
Greg Johnston
e1625106b8
fix SSR tests
2023-02-28 21:35:59 -05:00
Greg Johnston
abef12279b
fix: don't re-set attributes found in HTML during hydration ( closes #597 )
2023-02-28 19:56:13 -05:00
Greg Johnston
578853877a
fix: restore SSR fast-path support
2023-02-28 15:36:52 -05:00
Greg Johnston
04eae63e39
examples: include missing examples in CI ( #598 )
2023-02-28 15:33:02 -05:00
Brendon Otto
4b98ece2b4
example: update README.md ( #595 )
...
Incorrect framework referenced
2023-02-28 09:45:10 -05:00
Greg Johnston
1b2a0fe2ad
fix: mouseenter and mouseleave do not bubble ( #593 )
2023-02-28 09:39:52 -05:00
Thomas Kratz
ab6ddc1194
fix: make counter test compile ( #588 )
2023-02-27 21:50:12 -05:00
Azz
b153ab51ee
feat: support rkyv encoding ( #577 )
2023-02-26 16:12:53 -05:00
Greg Johnston
34f7b90177
perf: improvements to event delegation and element creation in <For/> ( #579 )
2023-02-26 08:31:03 -05:00
g-re-g
3648af0d9d
fix: correct scheme handling in router, and improve matching code by removing regexes ( #569 )
2023-02-26 07:15:14 -05:00
Greg Johnston
3d50ca32cd
v0.2.0
2023-02-25 15:45:35 -05:00
tanguy-lf
e576d93f83
examples: add ssr_mode_axum ( #575 )
2023-02-25 11:24:24 -05:00
Greg Johnston
e71779b8a6
fix: <Transition/> with local_resource ( closes #562 ) ( #574 )
2023-02-24 19:51:03 -05:00
Markus Kohlhase
0301c7f1cf
example: Login with API token (CSR only) ( #523 )
2023-02-24 17:11:58 -05:00
Remo
46e6e7629c
chore: macro panic hygiene ( #568 )
2023-02-24 16:36:05 -05:00
SleeplessOne1917
a985ae5660
fix: <Meta/> component as_ property outputs correct attribute html ( #573 )
2023-02-24 08:58:15 -05:00
Denis Nazarov
efe29fd057
Relax Eq to PartialEq for create_slice() ( #570 )
...
Co-authored-by: Denis Nazarov <denis.nazarov@gmail.com >
2023-02-23 08:00:01 -05:00
Greg Johnston
05b5b25c0e
fixes issue #565 ( #566 )
2023-02-22 09:20:33 -05:00
Greg Johnston
46f6deddbf
fix: transition fallback ( closes #562 ) ( #563 )
2023-02-21 15:11:08 -05:00
Fangdun Tsai
e9c4b490e5
feat: viz integration ( #506 )
2023-02-21 12:29:15 -05:00
PolarMutex
f7d0eea04d
feature: add class prop to <Html/> component ( #554 )
2023-02-21 12:28:11 -05:00
Greg Johnston
bf246a62e7
fix: issue with local resources blocking <Suspense/> fragments from resolving ( #561 )
2023-02-21 06:29:29 -05:00
Greg Johnston
b8acfd758d
fix: remove unnecessary log ( #560 )
2023-02-20 21:34:09 -05:00
Greg Johnston
dc8fd37461
docs: add create_resource, <Suspense/>, and <Transition/> ( #559 )
2023-02-20 17:39:17 -05:00
Greg Johnston
cc2b310e4c
docs: add example of <ButtonC on:click/> syntax ( #558 )
2023-02-20 15:41:56 -05:00
Thomas Versteeg
884348d7f8
doc: fix button name in parent_child example ( #555 )
2023-02-20 14:53:04 -05:00
Greg Johnston
dafd6e51c5
v0.2.0-beta (#557 )
2023-02-20 14:52:31 -05:00
Ben Wishovich
322041917d
fix issue with redirects in server fns creating multiple Location headers ( #550 )
2023-02-20 08:55:47 -05:00
Ikko Eltociear Ashimine
a2eaf9b3ee
fix: typo in hydration docs( #552 )
...
identifer -> identifier
2023-02-20 07:09:33 -05:00
Chrislearn Young
4032bfc210
fix: document docs typo ( #553 )
2023-02-20 07:08:51 -05:00
Greg Johnston
4ff08f042b
change: pass Scope as argument into Resource::read() and Resource::with() ( #542 )
2023-02-19 19:52:31 -05:00
Greg Johnston
ce4b0ecbe1
fix: more work on hydration IDs with <Suspense/> ( #545 )
2023-02-18 21:20:40 -05:00
Greg Johnston
6c31d09eb2
revert PR #538 ( #544 )
2023-02-18 18:39:08 -05:00
Greg Johnston
59ad6a4725
revert accident
2023-02-18 16:03:20 -05:00
Greg Johnston
884dacbc6c
fix example
2023-02-18 16:02:19 -05:00
Dmitrii Kuzmin
9c572f7617
fix(examples): hackernews_axum styles href ( #536 )
2023-02-18 15:17:54 -05:00
jquesada2016
487dba90d8
fix: off-by-one error in <For/> ( closes #533 ) ( #538 )
2023-02-18 14:57:14 -05:00
Greg Johnston
20f24d2f3a
fix: building leptos_reactive in release mode ( #540 )
2023-02-18 12:45:58 -05:00
Greg Johnston
20cbc240ee
v0.2.0-alpha2 (#539 )
2023-02-18 12:45:46 -05:00
jquesada2016
f2f52b2533
change: move signal method implementations into traits in signal prelude ( #490 )
2023-02-18 07:30:03 -05:00
Sean Aye
46d6e3f78c
fix compile of leptos dom ( #535 )
2023-02-17 18:25:58 -05:00
Greg Johnston
586f524015
feature: in-order streaming and async rendering ( #496 )
2023-02-17 17:31:32 -05:00
Greg Johnston
79781ec20c
Fix test import location
2023-02-17 16:18:22 -05:00
Greg Johnston
91f6d9a404
What's in a name?
2023-02-17 07:25:42 -05:00
Greg Johnston
76a74ecde2
fix: hydration IDs for elements following <Suspense/> ( closes #527 ) ( #531 )
2023-02-16 21:12:52 -05:00
Greg Johnston
0071a48b8a
feature: reintroduce limited template-node cloning w/ template macro ( #526 )
2023-02-16 07:02:01 -05:00
Greg Johnston
8d42e91eb8
fix: top-level SVG in view macro with new exports ( #525 )
2023-02-15 15:38:06 -05:00
Greg Johnston
00a796d204
change: tweak API of Errors and implement IntoIter ( #522 )
2023-02-15 14:03:16 -05:00
henrik
bde585dc3e
feature: enable cargo-leptos to reload multiple CSS files ( #524 )
2023-02-14 18:51:47 -05:00
Greg Johnston
0a534bd7fd
Reexport web-sys event types in leptos::ev to make it easier to type handlers ( #521 )
2023-02-13 20:45:46 -05:00
Greg Johnston
50d8eae694
fix: correct namespace for Unit in empty views ( closes #518 ) ( #520 )
2023-02-13 20:25:26 -05:00
martin frances
e732a4952b
leptos_dom erros.rs remove<E>() does not need to be generic. ( #516 )
...
* leptos_dom erros.rs remove<E>() does not need to be generic.
* fixed up errors.remove().
2023-02-13 20:25:11 -05:00
Greg Johnston
8a99623fd6
0.2.0-alpha (#515 )
2023-02-13 07:49:29 -05:00
Greg Johnston
7d6c4930e4
remove .unwrap() from redirect in Actix integration ( #514 )
2023-02-13 06:02:43 -05:00
IcosaHedron
81d6689cc0
do not unwrap use_context in integrations axum redirect ( #513 )
2023-02-12 21:59:12 -05:00
Greg Johnston
989b5b93c3
CI: fix Wasm testing ( #511 )
2023-02-12 19:39:32 -05:00
Greg Johnston
ca510f72c1
fix: SSR export in Wasm mode ( #512 )
2023-02-12 19:12:15 -05:00
Greg Johnston
6dd3be75d1
fix: import in leptos_dom and add Wasm build to CI for regressions ( #510 )
2023-02-12 18:58:57 -05:00
g-re-g
51e11e756a
Typos and a small cleanup ( #509 )
2023-02-12 18:11:31 -05:00
Greg Johnston
1dbcfe2861
change: reorganize module exports and reexports ( #503 )
2023-02-12 17:04:36 -05:00
Greg Johnston
db3f46c501
Add docs on testing ( closes #489 ) ( #508 )
2023-02-12 17:03:12 -05:00
Greg Johnston
1cba54d47e
fix: <For/> in todomvc example ( #504 )
2023-02-11 16:30:09 -05:00
Greg Johnston
d1ae3b49cc
docs: further additions ( #505 )
2023-02-11 15:55:43 -05:00
Greg Johnston
6bab4ad966
apply new formatting everywhere ( #502 )
2023-02-11 14:30:06 -05:00
jquesada2016
d4648da5c6
chore: add workspace rustfmt.tml ( #483 )
2023-02-11 14:25:55 -05:00
Greg Johnston
cf7deaaea3
fix: proper disposal of nested route scopes ( #499 )
2023-02-11 14:12:59 -05:00
g-re-g
d0cacecfc6
Allow literal string as class in view macro ( #500 )
2023-02-10 22:43:40 -05:00
Greg Johnston
ce2c3ec97c
examples: remove unused index.html ( #497 )
2023-02-10 08:02:26 -05:00
martin frances
b9f05f94ce
chore: remove unused .clone() call in <Suspense/>. ( #486 )
2023-02-08 20:44:10 -05:00
Greg Johnston
fe7aacb0c8
Handle <ErrorBoundary/> hydration correctly ( closes #456 )
2023-02-08 20:32:59 -05:00
Greg Johnston
3fd3e73a10
Correctly handle custom elements in SSR
2023-02-08 20:32:59 -05:00
Greg Johnston
7dca740e47
Add error boundary example to list
2023-02-08 20:32:59 -05:00
Greg Johnston
73420affed
Basic error boundary example
2023-02-08 20:32:59 -05:00
Greg Johnston
7c25f59a68
Update README.md
2023-02-08 20:32:32 -05:00
Greg Johnston
c24874d9c8
change: add Scope to view function in <For/> to avoid memory "leak" ( #492 )
2023-02-08 20:28:04 -05:00
Greg Johnston
4759dfcb60
missing ;
2023-02-08 14:34:57 -05:00
Greg Johnston
ca9419b53f
fix: fix debug_warn behavior in reactive crate and remove log dependency ( #491 )
2023-02-08 07:04:01 -05:00
jquesada2016
765006158a
change: NodeRef<HtmlElement<Div>> generics to NodeRef<Div> ( #481 )
2023-02-07 20:13:25 -05:00
Greg Johnston
8a1adaefaf
fix: typed route params with #[derive(Params)] ( #488 )
2023-02-07 17:28:46 -05:00
Greg Johnston
086326324e
Fix inner_html in SSR ( #487 )
2023-02-07 13:14:14 -05:00
martin frances
e59ee6329e
Minor: Clippy router now uses types OnFormData and OnResponse. ( #484 )
2023-02-07 09:52:29 -05:00
Greg Johnston
a2b31a51d9
fix: errors on 404 page in axum_errors example ( #485 )
2023-02-07 09:51:52 -05:00
Jan
b0a98d8b4f
Better styling for router related components ( #477 )
2023-02-06 18:34:39 -05:00
Greg Johnston
6931d3904b
remove unnecessary "openssl" feature from Actix examples ( #480 )
2023-02-06 09:10:09 -05:00
Greg Johnston
e380097a9e
Create README.md
2023-02-05 21:54:16 -05:00
Greg Johnston
44c18da324
docs: (in-progress) new tutorial/guide format with integrated CodeSandboxes ( #375 )
2023-02-05 21:33:42 -05:00
Greg Johnston
256cf0c59b
Remove old book
2023-02-05 21:28:52 -05:00
Greg Johnston
0765e51db8
fix: adding/removing errors from <ErrorBoundary/> ( #478 )
2023-02-05 21:23:02 -05:00
Greg Johnston
45d4ebccd8
fix: cargo doc in projects using #[server] ( #476 )
2023-02-05 19:12:32 -05:00
Greg Johnston
352601aa42
fix: correct out-of-order streaming behavior ( #475 )
2023-02-05 17:29:35 -05:00
g-re-g
7f77910e91
impl From<&str> for MaybeSignal<String> ( #472 )
2023-02-04 16:47:40 -05:00
Ben Wishovich
76aeb573bf
fix: convert site_address to site_addr to match cargo-leptos ( #462 )
2023-02-04 16:37:41 -05:00
Greg Johnston
e0bf8f5b6d
fix: fix node_ref in SSR ( #471 )
2023-02-04 15:37:59 -05:00
Greg Johnston
5ace580edb
fix: don't override element event listeners with component event listeners ( closes #461 ) ( #470 )
2023-02-04 15:37:48 -05:00
Roland Fredenhagen
5d612d9740
error on non meta input for prop attribute ( #469 )
2023-02-04 13:17:04 -05:00
John Funk
eacff684ef
Add simple icon logo ( #468 )
2023-02-04 10:19:33 -05:00
Greg Johnston
4034aa9c11
feature: add isomorphic <Redirect/> component ( closes #412 ) ( #466 )
2023-02-04 10:02:17 -05:00
Roland Fredenhagen
45275ff8d4
impl Default for MaybeSignal ( #464 )
2023-02-04 10:01:55 -05:00
Greg Johnston
3ff5089bf4
docs: note about optional fallback ( closes #406 ) ( #463 )
2023-02-04 08:34:38 -05:00
Jan
c28297fe93
Do it on an other branch ( #460 )
2023-02-04 07:12:53 -05:00
Greg Johnston
6d0d70cd17
perf: further reduce WASM binary size by ~5-7% ( #459 )
...
* Update `leptos_router` docs
* Further reducing WASM bundle sizes
2023-02-03 17:38:44 -05:00
g-re-g
c4e693e01e
Derive debug in server macro ( #458 )
2023-02-03 17:38:29 -05:00
Greg Johnston
2be4e8d959
docs: add new Children types to macro docs ( #454 )
2023-02-03 12:51:37 -05:00
Odiseo
fec4ff4381
fix: typo in leptos_config description ( #455 )
2023-02-03 12:51:26 -05:00
Greg Johnston
25c313aeb5
fix: stack overflow in with nested outlet ( closes #452 ) ( #453 )
2023-02-03 11:03:02 -05:00
martin frances
0dbcc323ba
Clippy: "{input} is not a supported environment. ( #451 )
2023-02-03 10:08:23 -05:00
Greg Johnston
6b683f9ab6
fix: leptos_router hydration issues ( #450 )
2023-02-03 06:50:36 -05:00
Tobias Goulden Schultz
aae4d4445e
fix: update leptos dependencies to point to the same workspace as other examples ( #449 )
2023-02-02 23:24:22 -05:00
Greg Johnston
bb9df8937d
feature: allow on: event listeners on <Component/> nodes ( #448 )
2023-02-02 23:24:03 -05:00
Greg Johnston
05277f03b6
fix: successfully pass context to nested routes via <Outlet/> ( #447 )
2023-02-02 21:00:32 -05:00
Gentle
f698f8badd
use latest tokio in leptos_axum ( #443 )
2023-02-02 17:00:49 -05:00
martin frances
98f51fec8a
router: Machete - Removed unused deps. ( #442 )
2023-02-02 17:00:12 -05:00
martin frances
65465cad78
leptos_macro: Machete - Removed unused deps. ( #441 )
2023-02-02 16:59:49 -05:00
martin frances
ddee545e7e
leptos-server: Removed dependecy on log, linear-map, rmp-serde. ( #439 )
2023-02-02 16:59:07 -05:00
g-re-g
cbfb724af2
Dedup from_str implementations for Env ( #426 )
2023-02-02 07:18:20 -05:00
Greg Johnston
0953007f47
fix: correct behavior of <Show/> so it renders correctly when toggling between conditions multiple times, without rerendering on every change ( #436 )
2023-02-01 20:37:00 -05:00
Greg Johnston
53f7677258
Fix top-level SVG elements in SSR ( #435 )
2023-02-01 20:36:50 -05:00
Greg Johnston
6373fd42fb
Switch examples to check instead of build (for CI resources) and add missing examples ( #437 )
2023-02-01 20:36:37 -05:00
Greg Johnston
e1bcf77b03
docs: Document inner_html attribute ( #429 )
2023-02-01 19:21:08 -05:00
Greg Johnston
b0762bbfb5
Make RouteDefinition public ( #430 )
2023-02-01 19:20:50 -05:00
IcosaHedron
63a7a4dec1
Several Minor Updates on Examples ( #427 )
2023-02-01 19:20:34 -05:00
jquesada2016
1f6a326268
fixes cx not found on components marked with #[component(transparent)] ( #423 )
2023-02-01 11:17:20 -05:00
Greg Johnston
0efc39db8b
fix: Make all fragment rendering lazy ( closes #299 and #421 ) ( #425 )
...
Make all fragment rendering lazy (closes #299 and #421 )
2023-02-01 06:47:12 -05:00
Greg Johnston
cbf2f73e95
fix: HTML entity issues in axum_errors example ( #424 )
2023-01-31 23:39:31 -05:00
Ben Wishovich
160f336303
Update ErrorBoundary to use miette::Diagnostic instead of Error, and various other tweaks ( #401 )
...
* Switch RwLock to parking_lot so they are no longer async
* cleanup todo_app_sqlite_axum
* add errors_axum example
---------
Co-authored-by: Indrazar <110272232+Indrazar@users.noreply.github.com >
2023-01-31 21:56:42 -05:00
starmaker
e2b1365e46
Implemented update_returning for StoredValue ( #419 )
2023-01-31 17:40:39 -05:00
Greg Johnston
45eee12b18
Fix issues with attribute names in SSR ( #418 )
2023-01-31 11:57:05 -05:00
Bruno De Simone
e2cdbc746f
Add leptos_routes functions for integrations ( #415 )
...
* added leptos_routes_with_context
* added leptos_routes_with_handler for axum integration
2023-01-31 09:09:58 -05:00
Ben Wishovich
48cf8d9382
Switch RwLock to parking_lot so they are no longer async ( #414 )
2023-01-30 20:11:56 -05:00
Greg Johnston
42e50327a6
Fix <option> and <use> top-level types in SSR ( #416 )
2023-01-30 20:10:07 -05:00
martin frances
ea0e2ce363
Escape <HTML> and <BODY> tokens in documentation markup. ( #410 )
2023-01-30 19:17:41 -05:00
martin frances
465cbc36be
Minor: Bump typed-builder from 0.11 to 0.12. ( #409 )
2023-01-30 19:17:09 -05:00
Greg Johnston
62061f90ea
Add <Html/> and <Body/> components in leptos_meta ( #407 )
...
Closes #376 .
2023-01-29 19:07:48 -05:00
Greg Johnston
9a231ddef0
Merge pull request #408 from leptos-rs/fix-boolean-attributes-ssr
...
Fix boolean attributes in `view` macro fast-path SSR
2023-01-29 18:43:21 -05:00
Greg Johnston
ce6a093f9f
oops
2023-01-29 17:11:02 -05:00
Greg Johnston
f07fa0e0be
escape attributes
2023-01-29 16:55:28 -05:00
Greg Johnston
43ad91512a
Fixes boolean attributes in SSR ( closes #405 )
2023-01-29 16:29:06 -05:00
Greg Johnston
116d23f2c3
Revert "fix: Fixes boolean attributes in HTML fast-path (closes issue #405 )"
...
This reverts commit 2ecb345a79 .
2023-01-29 16:27:28 -05:00
Greg Johnston
2ecb345a79
fix: Fixes boolean attributes in HTML fast-path (closes issue #405 )
2023-01-29 16:02:47 -05:00
Greg Johnston
f55f833426
Merge pull request #403 from leptos-rs/children-type-alias
...
Add `Children` type alias
2023-01-29 07:07:09 -05:00
Greg Johnston
7101a2f55e
Add Children type alias
2023-01-28 22:32:00 -05:00
Greg Johnston
f8b76387ec
Fix labels in parent_child README
2023-01-28 21:52:16 -05:00
Greg Johnston
11fc51577b
0.1.3
2023-01-28 12:12:09 -05:00
Greg Johnston
ae1ca969ef
Merge pull request #397 from leptos-rs/v0.1.2
...
`v0.1.2`
2023-01-28 11:17:30 -05:00
Greg Johnston
895f9d8487
Missing web-sys types
2023-01-28 08:19:13 -05:00
Greg Johnston
1e45b182a0
Fix <ErrorBoundary/> removal behavior
2023-01-28 08:14:32 -05:00
Greg Johnston
4c26dc597d
Docs for <Show/> component
2023-01-28 08:07:23 -05:00
Greg Johnston
2863d49a1c
Docs for <ErrorBoundary/>
2023-01-28 07:54:13 -05:00
Greg Johnston
087eb18c8b
Merge pull request #396 from leptos-rs/hydration-fix-small-wasm
...
Fix hydration issue related to WASM size reduction
2023-01-28 07:16:23 -05:00
Greg Johnston
c7c672717c
Fix hydration issue related to WASM size reduction
2023-01-28 07:16:08 -05:00
Greg Johnston
c69cc02f30
Merge pull request #393 from leptos-rs/small-wasm
...
Reduce WASM binary sizes by 3-5%
2023-01-28 07:08:52 -05:00
Greg Johnston
9eb81f00f9
Merge pull request #395 from thomasqueirozb/main
...
Fix gtk example
2023-01-28 07:08:43 -05:00
Thomas Queiroz
72fe3d45f0
Fix gtk example
2023-01-28 01:14:02 -03:00
Greg Johnston
7802d941bd
cargo fmt
2023-01-27 17:04:34 -05:00
Greg Johnston
f10784f686
Merge pull request #391 from leptos-rs/remove-gloo-dependency
...
Remove `gloo` dependency in `leptos_dom`
2023-01-27 16:58:54 -05:00
Greg Johnston
35197691c0
Merge pull request #392 from martinfrances107/cargo_outdated
...
doc/book updated leptos version.
2023-01-27 16:58:41 -05:00
Greg Johnston
4afbef87f6
clippy stuff
2023-01-27 16:56:22 -05:00
Greg Johnston
218485e3be
Make helpers into concrete functions for WASM binary size purposes
2023-01-27 16:24:05 -05:00
Greg Johnston
8d60a191eb
Missing Storage dependency (now that gloo is gone)
2023-01-27 15:36:20 -05:00
Greg Johnston
1ba01a46af
Use a concrete helper function to generate elements
2023-01-27 15:33:28 -05:00
Martin
fdece25051
BugFix, ch03 properly construct the "input_element".
2023-01-27 20:04:29 +00:00
Greg Johnston
590056e047
Remove gloo dependency in leptos_dom
2023-01-27 14:01:07 -05:00
Martin
817bb1628e
doc/book updated leptos version.
2023-01-27 19:00:31 +00:00
Greg Johnston
f911cdd56f
Merge pull request #390 from leptos-rs/action-form-clear-input
...
fix: Align `<ActionForm/>` behavior with `Action`
2023-01-27 13:53:31 -05:00
Greg Johnston
76a9c719a3
Fix missing docs error ( #389 )
2023-01-27 12:29:22 -05:00
Greg Johnston
395336a8c0
Correctly set pending state with ActionForm
2023-01-27 12:19:20 -05:00
Greg Johnston
b84906e6dc
ActionForm should clear input as Action::dispatch() does
2023-01-27 12:15:50 -05:00
Greg Johnston
1563d237d0
Check uniqueness of server function names at registration time ( #388 )
...
* Check uniqueness of server function names at registration time, and stop leaking src file path in release mode
* Fix missing dev-dependency
2023-01-27 06:57:32 -05:00
Greg Johnston
b861f84e40
Fix a large number of small issues in docs ( #386 )
...
* Fix example links in docs
* Restore missing CSR READMEs
* Document need to enable features on `leptos_router` and `leptos_meta`
* Add "Is it production ready?" to FAQs
* Document which types are provided as contexts in server integrations
* Fix broken links and other issues in docs
2023-01-26 21:44:01 -05:00
Greg Johnston
62812af5b2
Allow unused cx in server fn arguments ( #385 )
...
* Suppress warning for unused `cx` in server function arguments
2023-01-26 21:43:39 -05:00
Greg Johnston
f300e7fd41
implements From<Signal<T>> for MaybeSignal<T> ( #384 )
2023-01-26 21:43:21 -05:00
Greg Johnston
44974fcf69
Replace site-address with site-addr in cargo-leptos example Cargo.toml files
2023-01-26 19:52:47 -05:00
Gentle
815c2e6dc2
leptos_axum::handle_server_fns was also duplicated ( #383 )
2023-01-26 15:53:31 -05:00
Roland Fredenhagen
2fc20d8312
added hgroup element ( #379 )
2023-01-26 15:05:58 -05:00
Gentle
679692e202
cloning is not needed here ( #381 )
2023-01-26 13:05:44 -05:00
Gentle
be1343fa88
refactor to eliminate duplicate code ( #380 )
2023-01-26 13:04:59 -05:00
Greg Johnston
fc7199f188
Fix context in outlets ( #374 )
...
* Add `Scope::parent()` to make access to parent `Scope` possible.
* Handle context properly in nested routes
2023-01-25 22:02:43 -05:00
Markus Kohlhase
154e42f3f4
Add a counter example that does not use macros ( #373 )
2023-01-25 21:10:16 -05:00
Ben Wishovich
4c24795ffd
Make Errors Sync ( #372 )
2023-01-25 20:15:47 -05:00
IcosaHedron
f2e7b00d5a
Fix CSR with Trunk on hackernews example, remove CSR option from isomorphic example ( #369 )
...
* Fix CSR with Trunk on hackernews example
* Update isomorphic example to remove CSR from Readme
2023-01-25 20:15:12 -05:00
Markus Kohlhase
0b36b68846
Replace urlencoding with percent-encoding ( #365 )
...
Motivation: `percent-encoding` is from the Servo team and part of the `url` crate.
2023-01-25 20:15:00 -05:00
Ben Wishovich
f24bad4bf2
Add <Show/> component to avoid rerendering of closures and tweak ErrorBoundary ( #363 )
...
Add once_cell to leptos, and add Show component! Modify ErrorBoundary to
take a closure that implements IntoView, not View
2023-01-24 10:58:25 -05:00
Greg Johnston
a2ea1d8483
Reorganize snake-case #[component] docs and please clippy ( #362 )
2023-01-23 11:14:04 -05:00
Ben Wishovich
9b0fb63632
Add methods to take Actix/Axum Extractors/Route Info/Stuff and pass it to Leptos ( #359 )
2023-01-23 07:28:05 -05:00
Greg Johnston
2febaf6b99
Merge pull request #358 from martinfrances107/bump_base64
...
leptos_reactive base64 bump version to 0.21.
2023-01-23 07:27:01 -05:00
Greg Johnston
6c8e8e9ce7
Merge pull request #353 from martinfrances107/redundant_clone
...
Clippy fixes: redundant clone and .to_string() issues.
2023-01-23 07:26:50 -05:00
Martin
7aa0181192
Removed unused variables.
2023-01-23 09:46:28 +00:00
Martin
8496bd59ce
leptos_reactive base64 bump version to 0.21.
2023-01-22 22:15:54 +00:00
Greg Johnston
fd6e63796e
Merge pull request #354 from jclmnop/feat/allow-snake-case-components
...
Allow snake case components
2023-01-22 16:46:47 -05:00
jclmnop
39cddfc82d
update docs for component macro
2023-01-22 17:13:24 +00:00
jclmnop
d1333a3402
modify component attribute macro to allow snake_case fn names
2023-01-22 14:04:36 +00:00
Martin
7f9919e2d5
Clippy fixes: redundant clone, .to_string() issues.
2023-01-22 14:03:15 +00:00
Greg Johnston
fc2d6ef19d
Merge pull request #343 from killertux/fix/fix-query-params-parser
2023-01-21 17:23:39 -05:00
Greg Johnston
a5531b1a7c
Merge pull request #338 from benwis/error-handling
...
ErrorBoundary Component
2023-01-21 16:03:48 -05:00
benwis
81ab77e8ea
One more time!
2023-01-21 11:54:55 -08:00
benwis
23bd399239
I did, I did break it
2023-01-21 11:25:36 -08:00
benwis
3e04318082
Remove extra
2023-01-21 10:58:47 -08:00
benwis
2d88524354
Wrap cfg_if to prevent on_cleanup from panicing on the server
2023-01-21 10:56:38 -08:00
Greg Johnston
ecb784e422
Merge pull request #352 from leptos-rs/gbj-patch-1
...
Update html.rs
2023-01-21 13:07:07 -05:00
Greg Johnston
69e02bfce2
Update html.rs
...
Yikes! Fix broken format string.
2023-01-21 13:07:00 -05:00
Greg Johnston
a75abb9e04
Merge pull request #351 from leptos-rs/view-styling
...
Add support for `class = ...`, in `view` macro to support scoped styling
2023-01-21 12:56:21 -05:00
Greg Johnston
bf1ef1b7c2
Fix missing {} after cleaning up unnecessary formats
2023-01-21 11:42:52 -05:00
Greg Johnston
7fb7bb90f8
Merge pull request #350 from leptos-rs/fix-script
...
Add SVG `<script>`, `<style>`, and `<title>` to set of ambiguous elements
2023-01-21 09:52:53 -05:00
Greg Johnston
a22a693de7
Add support for class = ..., in view macro to support scoped styling solutions
2023-01-21 09:52:05 -05:00
Clemente
cbb1e4c9d2
Update docs
2023-01-21 11:19:28 -03:00
Clemente
dbccf525ac
Added some tests
2023-01-21 11:17:25 -03:00
Greg Johnston
ed6d6ae4b0
Add node_ref to docs
2023-01-21 07:26:06 -05:00
Greg Johnston
89ee88d75e
Add SVG <script>, <style>, and <title> to set of ambiguous elements — closes #349
2023-01-21 07:23:32 -05:00
benwis
9ea604f516
Merge branch 'main' into error-handling
2023-01-20 15:53:18 -08:00
benwis
b5ab7b107a
Test of SSR/Hydration of ErrorBoundary
2023-01-20 15:52:43 -08:00
Clemente
18eecd9606
Use URLSearchParams to handle client side query param logic
2023-01-20 18:11:49 -03:00
Greg Johnston
a49dfd3f8e
Merge pull request #344 from leptos-rs/view-ssr
...
Reenable optimizations for SSR using the `view!` macro
2023-01-20 15:14:06 -05:00
Greg Johnston
7075f58451
Merge pull request #347 from imalexlab/doc/add-port-leptos-watch
...
doc: add link for leptos watch
2023-01-20 14:29:19 -05:00
Kompreni
bcabdddce5
doc: add link for leptos watch
2023-01-20 20:14:09 +01:00
Greg Johnston
726393c446
Fix SSR tests
2023-01-20 13:45:23 -05:00
Greg Johnston
c336eb8769
0.1.1
2023-01-20 13:24:05 -05:00
Greg Johnston
0f5f0de410
Merge pull request #346 from leptos-rs/suspense-comments
...
Change `<Suspense/>` to a specialized type that uses comments for SSR
2023-01-20 13:18:41 -05:00
Greg Johnston
3d769c9f21
Clean up some rendering issues and the panic when cleaning up
2023-01-20 13:14:09 -05:00
Greg Johnston
9ac0f0a579
Fix todomvc
2023-01-20 12:18:31 -05:00
Greg Johnston
a385f502b6
Merge pull request #345 from leptos-rs/provide-route-contexts-when-equal
...
Fix behavior of `RouteContext` in nested routes with different parameters
2023-01-20 12:13:43 -05:00
Greg Johnston
603eead12d
cargo fmt
2023-01-20 12:06:04 -05:00
Greg Johnston
8a73f3b879
Use comment nodes for <Suspense/> to avoid both hydration and styling issues
2023-01-20 12:05:21 -05:00
Greg Johnston
5fc8907b85
Remove extraneous log
2023-01-20 10:37:14 -05:00
Greg Johnston
678990194f
Update RouteContext.path() value when params change but route has not change ( closes #340 )
2023-01-20 10:36:48 -05:00
Greg Johnston
a964e89d1a
cargo fmt
2023-01-20 10:08:13 -05:00
Greg Johnston
285092a467
Reenable SSR benchmarks
2023-01-20 10:00:16 -05:00
Greg Johnston
c1c74ead0f
Get view-macro SSR optimization working
2023-01-20 09:47:16 -05:00
Clemente
e4c9109278
Fix query params behaviour difference between SSR and Hydrate
2023-01-20 09:13:18 -03:00
benwis
64add54de6
Add example error template and give the ability to access error info
...
inside it
2023-01-19 14:57:34 -08:00
benwis
ac343427e7
Remember all the files
2023-01-18 23:21:08 -08:00
benwis
452e397048
Made todo_app_sqlite_axum throw an error
2023-01-18 16:47:22 -08:00
benwis
ad3ac5ad3c
Remove silly thing
2023-01-18 16:03:53 -08:00
benwis
db63eda2f5
Push gbj's updates
2023-01-18 16:02:06 -08:00
benwis
6cbdc57f7a
Add working impl of ErrorBoundary
2023-01-18 15:49:42 -08:00
benwis
3215e44c9a
Create example of file_and_error handler for Axum, and create <ErrorBoundary/>
...
for leptos
2023-01-18 12:59:15 -08:00
Greg Johnston
b54a60213b
Merge pull request #333 from leptos-rs/minimize-runtime-panics
...
Minimize panics when runtime has already been disposed (e.g., in SSR)
2023-01-17 22:48:42 -05:00
Greg Johnston
ebeb1d69d1
Merge pull request #334 from leptos-rs/debug-meta
...
Fix `MetaContext` debug for wasm target
2023-01-17 14:23:41 -05:00
Greg Johnston
cadb04b076
Fix MetaContext debug for wasm target
2023-01-17 14:23:13 -05:00
Greg Johnston
490b7a1596
Merge pull request #332 from leptos-rs/programmatic-navigation-in-router-example
...
Add programmatic navigation in router example
2023-01-17 13:54:58 -05:00
Greg Johnston
f4d781e739
Merge pull request #331 from benwis/main
...
Path and Query for Axum
2023-01-17 13:54:49 -05:00
Greg Johnston
ebe5bf4600
Merge pull request #330 from martinfrances107/typed_builder
...
typed-builder inconsistent version.
2023-01-17 13:53:58 -05:00
Greg Johnston
d62046dc6f
Merge pull request #329 from leptos-rs/meta-context-debug
...
impl `Debug` on `MetaContext`
2023-01-17 13:53:24 -05:00
Greg Johnston
c7abb57168
Merge pull request #328 from martinfrances107/crate_io_readme_issue
...
Minor: For each sub crate the landing page should be the root README.md.
2023-01-17 13:53:14 -05:00
Greg Johnston
bc0cd5d0ba
Minimize panics when runtime has already been disposed (e.g., in streaming SSR)
2023-01-17 13:11:35 -05:00
Greg Johnston
7df67444f9
cargo fmt fix
2023-01-17 12:45:59 -05:00
Greg Johnston
40155e91ea
cargo fmt fix
2023-01-17 12:43:27 -05:00
Greg Johnston
5c062fa6f1
Add use_navigate in router example
2023-01-17 12:40:54 -05:00
Greg Johnston
3517820afd
Restore missing docs on <A/> component
2023-01-17 12:40:23 -05:00
benwis
300cc4f54c
Actually Do It
2023-01-17 09:27:09 -08:00
Martin
586e9be99a
Minor - type-builder version is inconsistent.
2023-01-17 17:23:05 +00:00
Greg Johnston
6ed86d0ee9
impl Debug on MetaContext
2023-01-17 12:17:16 -05:00
Martin
1fe93fd588
Minor: For each sub crate the landing page should be the root README.md.
2023-01-17 17:05:09 +00:00
Greg Johnston
2723871a80
Merge pull request #327 from ekanna/main
...
Updated example code and README to use latest syntax for data binding
2023-01-17 11:56:59 -05:00
benwis
70d92c7f42
Path and Query
2023-01-17 05:52:38 -08:00
Greg Johnston
e96d4b0687
Merge pull request #326 from benwis/main
...
Make sure Axum returns a relative URI for http and https requests
2023-01-17 06:34:04 -05:00
ekanna
ce0910caca
Updated example code and README to use latest syntax for data binding
2023-01-17 12:08:44 +05:30
benwis
81a937277d
Simplify URI matching solution
2023-01-16 22:35:22 -08:00
benwis
355e711964
Fix issue with https pathing for Axum integration
2023-01-16 22:18:39 -08:00
Greg Johnston
27ec506fd5
Merge pull request #321 from leptos-rs/for-ssr
2023-01-16 21:49:24 -05:00
Greg Johnston
79c76ae4cb
Merge pull request #324 from leptos-rs/fix-fallback
...
Fix `<Router fallback>` (signature and functionality)
2023-01-16 20:51:01 -05:00
Greg Johnston
e416815591
clippy warning
2023-01-16 20:08:27 -05:00
Greg Johnston
81bdd6788f
Fix hydration in release mode if _0-0-0 is a marker, not an element
2023-01-16 20:08:07 -05:00
Greg Johnston
f7d5567a35
Fix fallback (signature and functionality)
2023-01-16 19:55:32 -05:00
Greg Johnston
ae0a243cc0
Fix meta doctests
2023-01-16 12:08:13 -05:00
Greg Johnston
7893ff8b55
Fix SSR doctests
2023-01-16 10:36:18 -05:00
Greg Johnston
6130e708ce
cargo fmt
2023-01-16 09:26:40 -05:00
Greg Johnston
d049d2f36b
Use comments instead of element markers for hydration -- fixes issue #320
2023-01-16 09:21:28 -05:00
Greg Johnston
61ca6465df
Merge pull request #318 from benwis/main
...
Switch get_configuration calls to None and add a note in the docs for get_configuration()
2023-01-16 07:23:55 -05:00
benwis
10a833d763
Switch get_configuration calls to None and add a note in the docs for
...
uses of get_configuration()
2023-01-15 12:50:25 -08:00
Greg Johnston
17982e8ac5
Merge pull request #316 from leptos-rs/death-to-suspense-hydration-mismatches
...
Death to suspense hydration mismatches
2023-01-14 15:19:12 -05:00
Greg Johnston
6cfb6227f5
Merge pull request #315 from leptos-rs/add-code-of-conduct-1
...
Create CODE_OF_CONDUCT.md
2023-01-14 14:14:29 -05:00
Greg Johnston
159852b8d7
clippy
2023-01-14 14:12:52 -05:00
Greg Johnston
6f95713b59
Fix <Suspense/> hydration
2023-01-14 14:10:19 -05:00
Greg Johnston
e17afd4559
Handle custom elements correctly
2023-01-14 14:09:23 -05:00
Greg Johnston
e0aa1e245b
Create CODE_OF_CONDUCT.md
2023-01-14 12:04:11 -05:00
Greg Johnston
7951a6e9cf
Merge pull request #314 from leptos-rs/create-slice-doctest
...
Fix doctest in `create_slice` and edit doc comment slightly
2023-01-14 09:50:29 -05:00
Greg Johnston
1f39299303
Fix doctest in create_slice and edit doc comment slightly
2023-01-14 08:17:27 -05:00
Greg Johnston
2be4610233
Update README.md
2023-01-14 08:03:57 -05:00
Greg Johnston
af254e9b61
Merge pull request #312 from TaKO8Ki/use-rust-cache
...
Use rust-cache in CI
2023-01-14 07:59:18 -05:00
Takayuki Maeda
4aae8a5088
use rust cache
2023-01-14 20:07:09 +09:00
Greg Johnston
7ff044cef6
Merge pull request #308 from Indrazar/main
...
Update Generated API URL on Windows Attempt #2
2023-01-13 07:30:03 -05:00
Greg Johnston
11122b575e
Merge pull request #310 from akesson/doc-examples-fixes
...
Doc fix + search & replace url
2023-01-13 07:29:47 -05:00
Greg Johnston
a62ee4031b
Merge branch 'main' into doc-examples-fixes
2023-01-13 07:29:42 -05:00
Greg Johnston
19b43607a1
Merge pull request #309 from dzfrias/patch-1
2023-01-13 07:27:46 -05:00
hakesson
884297706a
Search https://github.com/gbj/ and replace with https://github.com/leptos-rs/
2023-01-13 09:03:11 +01:00
hakesson
fb4c208609
Should point to counters (plural)
2023-01-13 09:00:35 +01:00
Diego Frias
5701e74efb
Fix link to counters_stable in README
2023-01-12 20:26:11 -08:00
indrazar
2afe8e202a
update url for Windows directories attempt 2
2023-01-12 22:07:55 -05:00
Greg Johnston
08ec473304
Merge pull request #296 from Gentle/create_slice
...
create_slice in leptos_reactive
2023-01-12 13:26:51 -05:00
Greg Johnston
3ae0880db4
Merge pull request #305 from leptos-rs/0.1.0
...
Version `0.1.0` release
2023-01-12 12:53:26 -05:00
Ramon Klass
9180aaad7e
create_slice: actual documentation
2023-01-12 16:51:37 +01:00
Ramon Klass
89be6bc68e
removed Debug from create_slice
2023-01-12 16:30:56 +01:00
Ramon Klass
56426170b0
remove Debug from create_memo
2023-01-12 16:30:56 +01:00
Ramon Klass
0571ea4103
create_slice for RwSignal with 2 closures
2023-01-12 16:30:56 +01:00
Greg Johnston
cdf709fb09
0.1.0
2023-01-12 09:57:08 -05:00
Greg Johnston
7eaa36812d
Merge pull request #301 from leptos-rs/ssr-inner-html
...
Fix SSR of elements with `inner_html`
2023-01-11 21:59:45 -05:00
Greg Johnston
2ef36c65fd
cargo fmt
2023-01-11 20:58:26 -05:00
Greg Johnston
a16540ccc5
Merge pull request #302 from martinfrances107/invalid_toml
...
Minor: "leptos.workspace = true" is invalid.
2023-01-11 20:48:51 -05:00
Greg Johnston
613c7b32a1
Merge pull request #300 from akesson/pre-resolved-data
2023-01-11 13:03:39 -05:00
Martin
8f2a731c9f
Minor formatting fix.
2023-01-11 17:44:56 +00:00
Martin
1621b86d8f
Minor: "leptos.workspace = true" is invalid.
2023-01-11 17:09:10 +00:00
Greg Johnston
b1ac17995d
Fix SSR of elements with inner_html
2023-01-11 07:47:24 -05:00
hakesson
6471af8b89
Let data_fn return DataResponse
2023-01-11 12:08:44 +01:00
hakesson
abf54b832e
Improve naming and doc
2023-01-11 09:56:58 +01:00
hakesson
91e839c71a
data_fn returns Result
2023-01-11 09:08:07 +01:00
Greg Johnston
b944b17e6d
Update Leptos_logo_pref_dark_RGB.svg
2023-01-10 21:56:30 -05:00
Greg Johnston
54c1abb4b7
Merge pull request #298 from leptos-rs/dark-mode-logo
...
Dark mode logo
2023-01-10 21:52:15 -05:00
Greg Johnston
c24f33aeb2
Dark-mode logo
2023-01-10 21:51:59 -05:00
Greg Johnston
9e83acfe63
Make cargo fmt happy
2023-01-10 21:18:03 -05:00
Greg Johnston
46254a18f3
Improve router feature warning
2023-01-10 21:10:27 -05:00
Greg Johnston
7d7a96d9bc
Switch logo on color-scheme change
2023-01-10 13:51:52 -05:00
hakesson
339c920b19
Make data_fn take cloned HttpRequest
2023-01-10 18:55:45 +01:00
Greg Johnston
ecc24fa65d
Create FUNDING.yml
...
Add GitHub sponsor info
2023-01-10 12:52:39 -05:00
hakesson
3f036ee321
Fix refactoring error
2023-01-10 18:48:05 +01:00
hakesson
4e00ec2348
Add leptos_data_routes
2023-01-10 18:27:35 +01:00
hakesson
9c59b720b7
Improve fmt
2023-01-10 18:26:11 +01:00
hakesson
da4340894f
Extract fn provide_contexts
2023-01-10 18:18:25 +01:00
hakesson
02f5c3891c
Extract fn leptos_corrected_path
2023-01-10 18:06:24 +01:00
hakesson
087e67466f
Extract fn html_parts & stream_app
2023-01-10 18:03:11 +01:00
Greg Johnston
1925c5bbe5
Merge pull request #294 from martinfrances107/workflow_cargo_fmt
...
Policy change ( part 2 ) Added rule of enforcing cargo fmt.
2023-01-10 09:37:38 -05:00
Greg Johnston
1613616008
Merge branch 'main' into workflow_cargo_fmt
2023-01-10 09:36:53 -05:00
Greg Johnston
8a01880ade
Merge pull request #293 from benwis/remove-deps
...
Remove a couple extra deps from the axum integration
2023-01-10 09:36:15 -05:00
Greg Johnston
180ab87ff9
Merge pull request #282 from akesson/workspace-multi-projects
...
Use envs for workspace config
2023-01-10 09:35:41 -05:00
hakesson
e324fb6e76
Default site-root to '.'
2023-01-10 10:33:53 +01:00
hakesson
0547b4f846
Add missing semi-colon
2023-01-10 10:01:23 +01:00
henrik
75659ce674
Merge branch 'main' into workspace-multi-projects
2023-01-10 09:59:44 +01:00
Martin
190cb162ad
Added rustfmt to setup for actions-rs/toolchain.
2023-01-10 08:52:55 +00:00
hakesson
1f556cefb0
Default to serve root
2023-01-10 09:52:21 +01:00
hakesson
6a68ef67f3
Add LEPTOS prefix to OUTPUT_NAME in all files
2023-01-10 09:26:10 +01:00
Martin
23bbd90c81
Policy change ( part 2 ) added rule of enforcing cargo fmt.
2023-01-10 08:20:02 +00:00
benwis
27b8553076
Remove a couple extra deps from the axum integration
2023-01-09 23:46:07 -08:00
hakesson
5bfeb93e3d
Make Cargo.toml optional
2023-01-10 08:26:22 +01:00
hakesson
dd9ae1b7b1
Add LEPTOS prefix to OUTPUT_NAME
2023-01-10 08:25:43 +01:00
Greg Johnston
ad34a5d9c6
Update name to leptos-rs/leptos
2023-01-09 21:59:13 -05:00
Greg Johnston
ace5e7cbba
Add missing hackernews_axum makefile
2023-01-09 21:59:00 -05:00
Greg Johnston
c8f0988e53
Merge pull request #292 from gbj/router-warnings
...
Implement `state` and `replace` correctly in `leptos_router` and clear warnings
2023-01-09 21:11:28 -05:00
Greg Johnston
64f0f8879b
Implement state and replace correctly in leptos_router and clear warnings
2023-01-09 21:10:42 -05:00
Greg Johnston
b8cafeb650
Merge pull request #289 from gbj/forbid-unsafe
...
Forbid `unsafe` code in all packages
2023-01-09 20:45:28 -05:00
Greg Johnston
992b218ffe
Merge pull request #291 from gbj/correct-axum-query-handling
...
Correct Axum query handling
2023-01-09 20:44:58 -05:00
Greg Johnston
5df89b0d25
Fix query parsing in Axum integration
2023-01-09 20:44:06 -05:00
Greg Johnston
c050456a47
Use a runtime warning about SVG <a/> instead of a macro warning on all ambiguous tags
2023-01-09 20:31:51 -05:00
Greg Johnston
8a8d7cbe1b
Fix forbid_unsafe in a frustratingly-stupid way
2023-01-09 20:07:16 -05:00
Greg Johnston
f5f345e623
Merge pull request #286 from benwis/favicons
...
FAVICON!
2023-01-09 19:57:27 -05:00
Greg Johnston
4df3687463
Forbid unsafe code in all packages
2023-01-09 19:48:51 -05:00
Greg Johnston
f6622448e9
Update README.md
2023-01-09 19:38:02 -05:00
Greg Johnston
78825401c5
Merge pull request #288 from gbj/new-logo
...
New logo
2023-01-09 19:34:10 -05:00
Greg Johnston
f2b7ad6244
New logo
2023-01-09 19:33:44 -05:00
Greg Johnston
43f107d9bd
New logo
2023-01-09 19:33:38 -05:00
Greg Johnston
a2612ca1fc
Merge pull request #275 from martinfrances107/cargo_fmt
...
Policy change: Workflow now enforce "cargo fmt".
2023-01-09 19:20:57 -05:00
Greg Johnston
a000c84e1a
Fix scope disposal code in Router (closes issue #240 )
2023-01-09 19:17:37 -05:00
benwis
ee647cba1c
Add Favicons to all the examples and standardize on the public folder for public assets
2023-01-09 15:27:52 -08:00
Greg Johnston
1377b823e2
Merge pull request #285 from martinfrances107/version_numbers
...
simple_logger use version 4.0.0 everywhere.
2023-01-09 18:26:57 -05:00
Martin
4d21f5ac63
simple_logger use version 4.0.0 everywhere.
2023-01-09 21:43:48 +00:00
hakesson
1ec603ee58
Use envs for workspace config
2023-01-09 20:06:43 +01:00
Martin
c56806713e
Keeping up with changes to main.
2023-01-09 12:47:50 +00:00
Martin
2f6aa6753d
Removed workflow "Cargo fmt" test.
2023-01-09 12:44:35 +00:00
Martin
2544687acd
Moved the order of check.
2023-01-09 12:44:35 +00:00
Martin
3d25e86c23
Policy change: Workflow now enforce "cargo fmt".
2023-01-09 12:44:30 +00:00
Greg Johnston
28ec3a6cda
Merge pull request #281 from martinfrances107/hackernews_axum
...
Minor: Clippy fixes related to hackernew_axum.
2023-01-09 07:02:43 -05:00
Greg Johnston
8b92a561a3
Merge pull request #269 from benwis/generated_routes
...
Generate Routes and pass them to Actix/Axum
2023-01-09 07:02:11 -05:00
Martin
e490c0423f
Minor: Clippy fixes related to hackernew_axum.
2023-01-09 09:54:39 +00:00
benwis
b6579a040a
Warning Squashing
2023-01-08 19:41:22 -08:00
benwis
01e024b726
One more time!
2023-01-08 19:38:45 -08:00
benwis
6603c44ce2
Minor fixes and revisions
2023-01-08 19:36:24 -08:00
Greg Johnston
977f11b180
Merge pull request #280 from gbj/prevent-panic-in-ssr
...
Closes #278 : Prevent `create_signal_from_stream` from panicking on SSR
2023-01-08 19:52:48 -05:00
Greg Johnston
fb34b29ccf
Merge pull request #279 from DPM97/default_prop_values
...
default prop values in prop macro
2023-01-08 19:52:38 -05:00
benwis
6576d8eda1
Change site_root default to ".". Hope that cargo-leptos has that check
2023-01-08 14:54:32 -08:00
benwis
6b729f9131
Fix hackernews_axum example
2023-01-08 14:51:41 -08:00
benwis
dc60c35b58
Rewrite file handlers for Axum, and update all examples to use the new
...
generated routes. Fix a few issues in the integrations, and reduce the
number of warnings
2023-01-08 14:18:51 -08:00
Greg Johnston
32ec9cc57e
Prevent create_signal_from_stream from panicking on SSR
2023-01-08 17:09:04 -05:00
Dylan Maloy
35601d8284
update abort_opt_message
2023-01-08 16:47:02 -05:00
Dylan Maloy
49bc7d2a27
init
2023-01-08 16:35:43 -05:00
Greg Johnston
aa7c7367dc
Merge pull request #277 from martinfrances107/clippy_hackernews
...
examples/hackernews - Cargo clippy fixes.
2023-01-08 14:10:57 -05:00
Greg Johnston
70808c5262
Merge pull request #272 from DPM97/component_lifetimes
...
fix component macro lifetime parsing
2023-01-08 14:07:00 -05:00
Martin
67503a108d
BugFix.
2023-01-08 15:28:30 +00:00
Martin
ef52a01838
examples/hackernews - Cargo clippy fixes.
2023-01-08 13:33:53 +00:00
Greg Johnston
4cacfe98d8
Merge pull request #273 from martinfrances107/needless_borrow
...
Minor: Removed Clippy::needless_borrrow issues.
2023-01-08 07:27:02 -05:00
Greg Johnston
52e653316e
Merge pull request #270 from gbj/chorse
...
Chores
2023-01-08 07:26:14 -05:00
Greg Johnston
bf5b6ca9c2
Merge pull request #264 from martinfrances107/Clipp_removed_clone_round_2
...
Removing clone call where possible(round2).
2023-01-08 07:26:00 -05:00
Martin
8875939a27
Minor: Removed Clippy::needless_borrrow issues.
2023-01-08 10:42:25 +00:00
Martin
b9a83277d9
Removing clone call where possible(round2).
2023-01-08 09:57:19 +00:00
benwis
dad84b5867
Merge branch 'main' into generated_routes
2023-01-07 21:17:18 -08:00
Dylan Maloy
1f29d29947
init
2023-01-08 00:15:00 -05:00
benwis
1b8175e2fa
Add missing tokio dep for RwLock
2023-01-07 20:27:05 -08:00
Greg Johnston
dbe3ec015c
Fix warning for unused variable.
2023-01-07 22:06:02 -05:00
Greg Johnston
492fa6c6d3
Fix link to Stream in docs.
2023-01-07 22:05:44 -05:00
Greg Johnston
343e8c8abe
Update macro docs to reflect newly-available class syntax.
2023-01-07 22:02:23 -05:00
Greg Johnston
656d20cb65
Don't panic in proc macro, use proc_macro_error instead.
2023-01-07 21:32:52 -05:00
Greg Johnston
a0a66b75dd
Allow complex class names with ("class-[name]-42", value) syntax.
2023-01-07 21:29:26 -05:00
Greg Johnston
085ba3506c
Merge pull request #267 from gbj/adjust-tracing
...
Adjust tracing
2023-01-07 20:31:54 -05:00
Greg Johnston
63f3780eda
Merge pull request #268 from gbj/fnonce-children
...
`children` should take `FnOnce(Scope) -> Fragment`, to ease need of c…
2023-01-07 20:31:29 -05:00
benwis
c41cf879d1
Formatting
2023-01-07 15:44:35 -08:00
benwis
b34f2070d3
Remove extraneous route
2023-01-07 15:09:49 -08:00
benwis
7fa21defa6
Merge remote-tracking branch 'origin/generated_routes' into generated_routes
2023-01-07 15:08:12 -08:00
benwis
bdd9abc04d
Removing some missed code and changing the stylesheet
2023-01-07 15:06:21 -08:00
Ben Wishovich
1d25134213
Merge branch 'main' into generated_routes
2023-01-07 14:58:26 -08:00
benwis
de73622949
Change Axum's "" matching
2023-01-07 14:53:38 -08:00
benwis
5d3cfc6483
Actix seems to be working now, plus applied Henrik's path recommendations
2023-01-07 14:49:25 -08:00
Greg Johnston
6fbbd09000
<Suspense/> and <Transition/> should take Fn for children because they need to use it multiple times
2023-01-07 17:09:50 -05:00
Greg Johnston
f2842cf14e
children should take FnOnce(Scope) -> Fragment, to ease need of cloning etc.
2023-01-07 17:04:58 -05:00
Greg Johnston
a6b6864bc5
Merge branch 'adjust-tracing' of https://github.com/gbj/leptos into adjust-tracing
2023-01-07 16:27:33 -05:00
Greg Johnston
063b946cd4
Remove unnecessary log
2023-01-07 16:27:25 -05:00
Greg Johnston
5a2c9ea345
Merge branch 'main' into adjust-tracing
2023-01-07 16:26:20 -05:00
Greg Johnston
808d87598b
Tracing for events and elements.
2023-01-07 16:20:00 -05:00
Greg Johnston
0956c48b1e
Merge pull request #266 from gbj/fix-meta-panic
...
Adjust default features for `meta` and `router`
2023-01-07 14:44:23 -05:00
Greg Johnston
8915e2615b
Adjust default features for meta and router
2023-01-07 14:43:32 -05:00
Greg Johnston
7f47134058
Merge pull request #265 from martinfrances107/needless_borrowed_reference
...
Clippy: Minor needless_borrowed_reference.
2023-01-07 14:21:58 -05:00
Greg Johnston
af7b93fa1e
Merge pull request #128 from akesson/workspace-features
...
Workspace features
2023-01-07 14:19:56 -05:00
Greg Johnston
ed940f577a
Add tracing for event handlers
2023-01-07 13:32:40 -05:00
Martin
916f30a07b
Clippy: Minor needless_borrowed_reference.
2023-01-07 18:28:42 +00:00
Greg Johnston
e01c565de1
Improve tracing formatting
2023-01-07 13:16:30 -05:00
Greg Johnston
dffe195cdc
Fix two warnings
2023-01-07 13:16:20 -05:00
Greg Johnston
a5e2587555
Merge pull request #261 from martinfrances107/Clippy_removed_clone_where_possible
...
Clippy: Removed stray calls to .clone().
2023-01-07 12:47:06 -05:00
Greg Johnston
af8889fab2
Merge pull request #262 from martinfrances107/uninlined_format_args
...
Minor: Clippy format!() all variables now inlined.
2023-01-07 12:42:56 -05:00
Greg Johnston
267c1cfc34
Merge pull request #263 from martinfrances107/if_let_some
...
Removed clippy::single_match issue.
2023-01-07 12:40:55 -05:00
Greg Johnston
3498378e60
Merge pull request #260 from jquesada2016/into_signal_traits
...
added `IntoSignal` and `IntoSignalSetter` helper traits
2023-01-07 12:40:15 -05:00
hakesson
f8c680d14d
Integrations with workspace dependencies
2023-01-07 18:05:35 +01:00
hakesson
b852e459a9
Unify workspace dependencies
2023-01-07 18:00:37 +01:00
hakesson
681f10ec8d
Workspace-based versioning
2023-01-07 17:35:02 +01:00
Martin
1d480791a1
Removed clippy::single_match issue.
2023-01-07 16:08:17 +00:00
Martin
7acc309f66
Minor: Clippy format!() all variables now inlined.
2023-01-07 15:46:47 +00:00
Martin
9527de15ed
Removed stray calls to .clone().
2023-01-07 14:53:59 +00:00
Jose Quesada
aeb25a715a
added IntoSignal and IntoSignalSetter helper traits
2023-01-07 08:20:27 -06:00
Greg Johnston
46e91a538c
Merge branch 'main' of https://github.com/gbj/leptos
2023-01-07 08:32:45 -05:00
Greg Johnston
1fe526c99c
Remove erroneous log
2023-01-07 08:32:39 -05:00
Greg Johnston
6b05918807
Merge pull request #257 from gbj/ci-disk-space
...
Improve CI disk space usage
2023-01-07 07:44:10 -05:00
Greg Johnston
05d2eb8ce0
Improve CI disk space usage
2023-01-07 07:43:52 -05:00
Greg Johnston
e12c2d9769
Merge pull request #252 from gbj/additional-meta-tags
...
Additional meta tags — closes issue #158
2023-01-07 07:37:02 -05:00
Greg Johnston
825245b65f
Merge pull request #256 from gbj/router-tests
...
Fix router tests when no features enabled
2023-01-07 07:36:51 -05:00
Greg Johnston
ef067f18e1
Fix router tests when no features enabled
2023-01-07 07:36:27 -05:00
Greg Johnston
844dc21efd
Merge pull request #255 from martinfrances107/#253_cargo_doc_warnings_rename_EachKey_to_Each
...
#254 Minor: In docs, Rename EachKey to Each.
2023-01-07 07:25:34 -05:00
Greg Johnston
1a00e99a24
Merge pull request #254 from martinfrances107/#253_unbalanced_tags
...
#254 Minor: Unbalanced tags.
2023-01-07 07:25:03 -05:00
Martin
6c5bcf30ba
#254 Minor: In docs, Rename EachKey to Each.
2023-01-07 11:51:52 +00:00
Martin
be8ffe935d
#254 Minor: Unbalanced tags.
2023-01-07 11:22:36 +00:00
Greg Johnston
0b80bba4ec
Fix tests
2023-01-06 23:04:25 -05:00
Greg Johnston
9cc38988d8
Corrects style docs
2023-01-06 22:56:23 -05:00
Greg Johnston
0d92a5dec8
Add <Script/> and <Style/> components
2023-01-06 22:54:35 -05:00
benwis
677e4f2540
Leptos can now generate routes and provide them to the Axum router. More
...
testing and Actix version to come
2023-01-06 19:52:38 -08:00
Greg Johnston
0029e1d8f7
Merge pull request #251 from martinfrances107/bump_actions_checkout
...
Bump actions/checkout to version@3
2023-01-06 17:47:21 -05:00
Greg Johnston
635aa5c681
Merge pull request #250 from jquesada2016/on_mount
...
added `HtmlElement::on_mount`
2023-01-06 17:46:29 -05:00
Martin
f5c4c9448c
Bump actions/checkout to version@3
2023-01-06 22:31:13 +00:00
benwis
63b1837315
First pass of method to generate routelist
2023-01-06 14:08:45 -08:00
Greg Johnston
bc43a9d329
Use builder syntax and refactor tag registration
2023-01-06 16:49:26 -05:00
Greg Johnston
1850c28d3a
Add <Link/> and refactor <Stylesheet/> to use it
2023-01-06 16:06:03 -05:00
Greg Johnston
319a058e63
Fix relative route for stylesheet in hackernews
2023-01-06 16:06:03 -05:00
Greg Johnston
678e49268f
Merge pull request #248 from gbj/tracing
...
Adding `tracing` to `leptos_reactive`
2023-01-06 15:18:54 -05:00
Jose Quesada
6df4a6f120
fixed broken compilation within on_mount
2023-01-06 14:17:35 -06:00
Jose Quesada
73c6bbb225
updated to use the equest animation frame method in helpers.rs
2023-01-06 14:02:49 -06:00
Jose Quesada
fa57085946
added HtmlElement::on_mount
2023-01-06 12:24:24 -06:00
Greg Johnston
aef589cd24
Merge pull request #249 from gbj/router-tests
...
Add all the missing `router` tests
2023-01-06 12:49:44 -05:00
Greg Johnston
05ffd8c989
Add all the missing router tests
2023-01-06 12:48:45 -05:00
Greg Johnston
1125a5f7cb
Additional tracing
2023-01-06 12:30:19 -05:00
Greg Johnston
dfba1d9656
Memos
2023-01-06 11:38:03 -05:00
Greg Johnston
96418ed684
Start work on instrumenting leptos_reactive
2023-01-06 11:38:03 -05:00
Greg Johnston
b010233bb4
Merge pull request #242 from jquesada2016/signal_default
...
impl `Default` for `SignalSetter<T>`
2023-01-06 10:31:29 -05:00
Greg Johnston
7e28f56f01
Merge pull request #247 from gbj/fix-integration-event-name
...
Correct `leptos_autoreload` event variable name
2023-01-06 09:50:45 -05:00
Greg Johnston
dd35c31db1
Correct leptos_autoreload event variable name
2023-01-06 09:50:29 -05:00
Jose Quesada
c9ac4ed2b5
added Signal::default method
2023-01-06 08:34:15 -06:00
Jose Quesada
7631ce3b09
Revert "added DefaultSignal"
...
This reverts commit a5988c59ee .
2023-01-06 08:26:10 -06:00
Jose Quesada
a5988c59ee
added DefaultSignal
2023-01-05 17:06:06 -06:00
Jose Quesada
9ba807f79b
impl Default for SignalSetter<T>
2023-01-05 15:47:31 -06:00
Greg Johnston
9d8627b337
Merge branch 'main' of https://github.com/gbj/leptos
2023-01-05 11:08:11 -05:00
Greg Johnston
64bf01c59e
Reduce CI load with skipped feature sets
2023-01-05 11:08:07 -05:00
Greg Johnston
ed023c8970
Merge pull request #239 from gbj/router-off-by-one
...
Fixes off-by-one error in the router that was causing inappropriate scope disposal
2023-01-05 09:47:39 -05:00
Greg Johnston
13bdef22bd
Fixes off-by-one error in the router that was causing inappropriate scope disposal
2023-01-05 09:47:03 -05:00
Greg Johnston
6f49a6c12a
Merge pull request #237 from gbj/additional-meta-tags
...
Better `leptos_meta` component unloading
2023-01-05 08:20:13 -05:00
Greg Johnston
7db292779b
Correct on_cleanup import
2023-01-04 22:41:46 -05:00
Greg Johnston
e2496e01d0
Correctly hydrate stylesheets, and correctly clean up stylesheets and metadata
2023-01-04 22:39:54 -05:00
Greg Johnston
d5bda04306
<Outlet/> should dispose of child scopes if it needs to
2023-01-04 22:39:32 -05:00
Greg Johnston
9165242744
Merge pull request #236 from gbj/fix-outlet-hydration-mismatch
...
Fix `<Outlet/>` hydration mismatch
2023-01-04 22:09:00 -05:00
Greg Johnston
927fe0949f
Merge pull request #235 from gbj/effect-cleanup
...
Signals were not properly registering themselves as sources for their…
2023-01-04 16:57:29 -05:00
Greg Johnston
459216a30e
Fix <Outlet/> hydration mismatch
2023-01-04 16:56:47 -05:00
Greg Johnston
c7fa041469
Working on disposing metadata tags
2023-01-04 16:56:04 -05:00
Greg Johnston
cab7360bef
Fix hydration mismatch in <Outlet/>
2023-01-04 15:32:39 -05:00
Greg Johnston
159ec4a7bd
Signals were not properly registering themselves as sources for their effects, which meant effects were possibly over-running.
2023-01-04 11:29:08 -05:00
Greg Johnston
ae40f3134a
Merge pull request #233 from kdwarn/main
...
Fix links/names to a couple examples
2023-01-04 11:11:04 -05:00
Greg Johnston
3c080e0564
Merge pull request #232 from gbj/custom-events-in-macro
...
`leptos_macro` improvements to `class:`, `prop:`, `on:`, `:undelegate…
2023-01-04 11:10:19 -05:00
Greg Johnston
e8c1bf5055
#[prop] docs
2023-01-04 11:10:03 -05:00
Greg Johnston
2a4a5f75c9
Remove unused doc_comment crate
2023-01-04 10:42:25 -05:00
Greg Johnston
91b65654d6
Fix typed event docs
2023-01-04 10:40:35 -05:00
Kris Warner
dcca6e4e17
Fix name/link for parent_child
2023-01-04 10:25:41 -05:00
Kris Warner
4550545e4f
Fix link/name of counters_stable
2023-01-04 10:18:38 -05:00
Greg Johnston
af1a4492e8
leptos_macro improvements to class:, prop:, on:, :undelegated, and events
2023-01-04 00:25:53 -05:00
Greg Johnston
6b1b4463a0
Fix server docs
2023-01-03 23:22:06 -05:00
Greg Johnston
632267c13a
Merge pull request #231 from gbj/router-changes
...
Close issue #229 and update router docs
2023-01-03 21:51:22 -05:00
Greg Johnston
a349707e1f
Merge pull request #230 from gbj/server-docs-and-debug
...
Improve docs and debugging tools for server functions (closes #225 )
2023-01-03 21:51:10 -05:00
Greg Johnston
84fa6cd3a8
Merge pull request #228 from benwis/responseoptions_helpers
...
Add a redirect() function and some helpful utility functions for ResponseParts and ResponseOptions
2023-01-03 21:51:00 -05:00
Ben Wishovich
05468d3307
You WILL change your doc comments
2023-01-03 17:33:22 -08:00
Greg Johnston
0da88f39cd
Improve docs and debugging tools for server functions ( closes #225 )
2023-01-03 20:05:47 -05:00
Greg Johnston
5dffb0a803
Document how to modularize/externalize route definitions
2023-01-03 19:38:11 -05:00
Greg Johnston
e2a5c2d78f
Fix issues with route matching on different sub-routes with same path (closes issue #229 )
2023-01-03 19:32:58 -05:00
Greg Johnston
ca679ec496
chore: clear warning
2023-01-03 19:06:59 -05:00
Greg Johnston
10282857fe
chore: clear warnings
2023-01-03 18:47:21 -05:00
Greg Johnston
263d5b1d89
Allow path prop on <Route/> to be any type that impl std::fmt::Display
2023-01-03 18:37:43 -05:00
Greg Johnston
6a4cbbf266
Specify html::a to suppress warning
2023-01-03 16:07:51 -05:00
Greg Johnston
8d14972808
Merge branch 'main' of https://github.com/gbj/leptos
2023-01-03 15:52:33 -05:00
Greg Johnston
441eb1697e
Reduce CI load by omitting tracing feature from CI testing
2023-01-03 15:52:29 -05:00
Ben Wishovich
64e6eedb4d
Add a redirect() function and some helpful utility functions for ResponseParts and ResponseOptions
2023-01-03 10:35:30 -08:00
Greg Johnston
78d965cc91
Merge pull request #220 from jquesada2016/view_on_undelegated
...
added on:eventname:undelegated support
2023-01-03 13:07:22 -05:00
Jose Quesada
28dce925b0
relaxed parse_event to be undelegated only when :undelegated appears at the end of the event
2023-01-03 08:54:52 -06:00
Greg Johnston
a2943c4649
Fix counters_isomorphic
2023-01-02 18:37:10 -05:00
Greg Johnston
d4b5b958f3
0.1.0-beta
2023-01-02 16:52:18 -05:00
Greg Johnston
9537cafe25
Add version for publishing
2023-01-02 16:49:45 -05:00
Greg Johnston
95dd252c14
Disable for publish
2023-01-02 16:41:08 -05:00
Greg Johnston
755ceb7d75
0.1.0-beta
2023-01-02 16:35:00 -05:00
Greg Johnston
d5b74dacc8
Merge pull request #223 from gbj/build-examples-ci
...
Add CI back to build examples
2023-01-02 16:34:29 -05:00
Greg Johnston
411fc51ea2
Clean up examples
2023-01-02 16:20:05 -05:00
Greg Johnston
e714cac0ec
Add missing makefiles
2023-01-02 16:19:52 -05:00
Greg Johnston
ab0b687943
Merge pull request #222 from gbj/build-examples-ci
...
Add `build-examples` task to `cargo make` CI
2023-01-02 13:35:45 -05:00
Greg Johnston
7f21ee97a8
Fix counter_isomorphic import
2023-01-02 13:34:56 -05:00
Greg Johnston
0ed56d382d
Add build-examples task to cargo make CI
2023-01-02 13:29:37 -05:00
Greg Johnston
a47cac6e3c
Merge pull request #221 from gbj/fixing-stable
...
Finalizing `stable` support
2023-01-02 13:24:27 -05:00
Greg Johnston
edbd3612b3
stable for leptos_macro
2023-01-02 13:04:56 -05:00
Greg Johnston
e2517c99b8
Backtrace not supported on stable
2023-01-02 12:55:26 -05:00
Greg Johnston
2b01bf99b4
enum Default not supported on stable
2023-01-02 12:55:16 -05:00
Greg Johnston
bd5bd71a21
chore: clear warning
2023-01-02 12:55:04 -05:00
Greg Johnston
60187961a0
Merge pull request #219 from jquesada2016/leptos_dom_stable
...
Stable support for `leptos_dom`
2023-01-02 12:09:48 -05:00
Jose Quesada
1344f113c5
added on:eventname:undelegated support
2023-01-02 10:36:08 -06:00
Greg Johnston
96bbb86346
Merge pull request #218 from gbj/stylesheet-hydration
...
Correct hydration behavior of `<Stylesheet id=.../>` (necessary for `…
2023-01-02 10:23:35 -05:00
Jose Quesada
7478315970
forgot to commit new dependencies
2023-01-02 09:01:57 -06:00
Jose Quesada
b894444b8d
removed drain_filter feature flag
2023-01-02 08:28:05 -06:00
Jose Quesada
9f8bcd6fb1
removed iter_intersperse feature flag`
2023-01-02 08:20:45 -06:00
Jose Quesada
d82781abbd
removed thread_local feature flag
2023-01-02 08:18:19 -06:00
Jose Quesada
f8c4cac6d3
removed once_cell feature flag
2023-01-02 07:52:30 -06:00
Greg Johnston
4264b15aab
Correct hydration behavior of <Stylesheet id=.../> (necessary for cargo-leptos CSS reloading)
2023-01-01 22:56:17 -05:00
Greg Johnston
168f9d3a45
Merge pull request #217 from gbj/action-docs-ci
...
Fix `Action` and `create_action` docs to match new API
2023-01-01 21:36:15 -05:00
Greg Johnston
9663555195
Fix Action and create_action docs to match new API
2023-01-01 19:44:50 -05:00
Greg Johnston
e92176029c
Merge pull request #216 from gbj/context-warning
...
Revert confusingly-aggressive shadowed-context warning
2023-01-01 17:40:54 -05:00
Greg Johnston
fe820c48c8
Revert confusingly-aggressive shadowed-context warning
2023-01-01 17:40:39 -05:00
Greg Johnston
87cd4b8f00
Merge pull request #214 from gbj/fix-tailwind-example
...
Small fixes to Tailwind example
2023-01-01 08:09:36 -05:00
Greg Johnston
9ba06cd604
Merge pull request #213 from gbj/fix-hydration-mismatch
...
Closes #212
2023-01-01 08:04:10 -05:00