Commit Graph

3054 Commits

Author SHA1 Message Date
zroug 7996f835d0
fix: remove unnecessary trait bound `PartialEq` from `create_owning_memo` (#2394) 2024-03-02 07:27:22 -05:00
Greg Johnston d72b12524e
Merge pull request #2395 from leptos-rs/int-ax-doc 2024-03-01 20:08:18 -05:00
Greg Johnston 8e79c5be5c fix: ignore as with other doctests for now 2024-03-01 18:39:55 -05:00
Greg Johnston de25658c36
Merge pull request #2392 from paul-hansen/fix-ci
fix(ci): "needless borrow" error and example never exiting
2024-03-01 18:37:48 -05:00
Paul Hansen e2e35a9659 fix(ci) Wait a bit longer for server to start
It took longer than I thought in Github and barely worked, giving it a
bit more of a buffer.
2024-03-01 15:47:59 -06:00
Paul Hansen bf1ba589c5 fix(ci): Another attempt to fix hanging example 2024-03-01 15:41:22 -06:00
Sam Judelson f70ebc1289
docs: add note on how to get `ResponseOptions` (#2380) 2024-03-01 10:47:02 -05:00
Paul Hansen 3cab09e015 fix(ci): error_boundary example never exiting 2024-03-01 09:21:58 -06:00
Paul Hansen b431315f7c fix(ci): "needless borrow" error 2024-03-01 09:21:58 -06:00
Baptiste 5b40881e77
fix: specify path to `wasm_bindgen` in island macro (#2387) 2024-03-01 10:15:19 -05:00
benwis 59d3cce3be
0.6.7 2024-02-29 13:38:09 -08:00
Paul Hansen 6a83161368
chore: add MSRV (#2360) 2024-02-28 07:19:09 -05:00
Marc-Stefan Cassola 4b00c16cb9
added hashes generated from cargo-leptos (#2373)
* added hashes generated from cargo-leptos

* Added config option to disable frontend file name hash
2024-02-27 16:28:27 -08:00
haslersn 6d6019b956
fix: do not strip query in redirect hook when using client-side navigation (#2376) 2024-02-27 09:06:48 -08:00
Sam Judelson 3540291065
docs: `Resource::read()` in doc examples with `Resource::get()` (#2372) 2024-02-26 21:37:29 -05:00
zoomiti 4809cf473e
feat: provide `leptos_router::Method` via context (#1808) (#2315) 2024-02-26 21:25:53 -05:00
Tadas Dailyda aa977001c1
feat: add support for trailing slashes (closes #2154) (#2217) 2024-02-26 20:56:44 -05:00
Greg Johnston c16189f095
Merge pull request #2362 from leptos-rs/remove-deprecation
chore(ci): fix failing CI by removing deprecation note
2024-02-24 13:05:02 -05:00
Greg Johnston d0a013c248 chore(ci): omit a few feature flag in CI 2024-02-24 11:55:36 -05:00
Greg Johnston 531ea74e33 chore: cargo fmt in `leptos_macro` 2024-02-24 07:12:46 -05:00
Greg Johnston 545e87e540 chore(ci): fix failing CI by removing deprecation note 2024-02-24 07:07:31 -05:00
Joseph Cruz 2ca30a0b2d
ci(examples): build hackernews_js_fetch with deno (#2344)
* ci(examples): refactor process management

* ci(examples): build hackernews_js_fetch with deno

* ci(workflows): detect hackernews_js_fetch change

* chore(web-report): report deno usage

* chore(web-report): ignore gtk example

* ci(todo_app_sqlite): simulate change

* ci(workflows): install deno

* ci(todo_app_sqlite): remove simulated change
2024-02-23 13:40:44 -05:00
zoomiti 753bf1ed54
Fix Broken Doc links and Deprecate `FromUtf8Error` in `oco.rs` (#2318)
* fix: deprecate `FromUtf8Error` in `oco.rs`

* chore: fix broken doc links (#859)

* chore: fix broken doc link to server attribute macro

* cargo fmt
2024-02-21 19:24:40 -08:00
Sam Judelson 37c6387fea
finish doc sentence (#2348) 2024-02-21 19:21:57 -08:00
Janu (Janeshwar) Cambrelen 0a73487152
feat(leptos-axum): propagate trace context to server functions (#2340) 2024-02-21 19:21:00 -08:00
Sam Judelson 747aba0d7f
add comment specifying edgecase of server function prefixes (#2345) 2024-02-20 18:17:20 -08:00
Sam Judelson 04cf47d5da
Update suspense_component.rs documentation to use .get() instead of .read() (#2346) 2024-02-20 18:16:03 -08:00
rjmac 47abe00993
fix: don't leak canceled timeouts (#2331)
Instead of using `Closure::once_into_js`, this uses `into_js_value`,
which uses weak references to clean up the closure when Javascript no
longer has need of it.

It would be nice to make this (and the similar interval function) drop
the callback promptly when cancelled, but I don't think that's
possible while keeping the handles Copy.

Fixes #2330

Co-authored-by: Robert Macomber <robertm@mox>
2024-02-19 21:17:26 -05:00
eliza aa3700ffb9
feat: add `impl_from` argument to `#[server]` proc_macro (#2335)
* Add `impl_into` argument

* Add `impl_into` argument

* Revert unneeded changes

* Address review comments

Rename `impl_into` back to be `impl_from`
Rework docstring

* Fix typo in docstring
2024-02-19 21:16:46 -05:00
Aphek 0770b87cb7
feat: Add owning memos to allow memos that re-use the previous value (#2139) 2024-02-19 21:16:19 -05:00
benwis 330ebdb018
v0.6.6 2024-02-19 13:48:32 -08:00
benwis c3179d88cf
Moved leptos-spin-macro dep to released version 2024-02-19 12:54:43 -08:00
Sahaj ffcf3c2952
example: fix href path in `tailwind_csr` example (#2328) 2024-02-17 13:10:07 -05:00
haslersn 001ca5148e
fix: handle cross-origin redirects in server function redirect hook (#2329)
In client-side navigation we now handle redirects returned from
server functions by resolving the location against the current
origin as a base. The base is only relevant if the location
doesn't already include an origin. This fixes cross-origin
redirects.

Note: in order to handle redirects in the same way as the browser
would handle them, we need to use the server function's URL
(typically `<origin>/api/something`) as a base. I leave this as
a TODO for a future leptos version, because it probably
requires changing the signature of the `server_fn` redirect hook.

In order to not be affected by a future breaking change, users
should already start making sure that their redirect locations
either include an origin or at least start with a single slash
(e.g. `Location: /foo`).
2024-02-17 13:09:39 -05:00
Greg Johnston 1e000afa78
examples: fix CSS file name in `tailwind_axum` (#2324) 2024-02-17 12:56:03 -05:00
Greg Johnston 0f7b8841b2
chore(ci): reduce set of tested features to prevent running out of disk space in `server_fn` (#2320) 2024-02-16 20:26:26 -05:00
Greg Johnston 7dc0441f6c
docs: log error on failing to convert form to ServerFn type, in addition to setting action value (#2319) 2024-02-16 17:11:14 -05:00
Joseph Cruz 0a321a1bd7
docs(examples): update docs (#2313)
* docs(examples): fix metadata typo

* docs(examples): update first step about using cargo make
2024-02-16 13:32:01 -05:00
Greg Johnston 88742952f0
fix: Transition in hydrate mode that isn't initially created (closes #2279) (#2314) 2024-02-16 08:16:09 -05:00
martin frances 8a4b972e0b
chore: bump `config` to 0.14 (#2302) 2024-02-15 20:24:12 -05:00
zoomiti 95bd9cc544
feat: use `CDN_PKG_PATH` at build time to set alternate base URL for JS/WASM bundles (#2281) (#2283) 2024-02-15 20:21:47 -05:00
Marc-Stefan Cassola 23bc892a24
fix: `#[server]` macro error type detection (#2298)
In most cases when you return `Result<..., ServerFnError<E>>` this worked but when you tried
`Result<..., leptos::ServerFnError<E>>` then it didn't.
2024-02-15 20:20:41 -05:00
Esteban Borai 830fba794e
docs: add missing `provide_meta_context()` in example (#2311)
Otherwise user gets:

```
use_head() is being called without a MetaContext being provided. We'll automatically create and provide one, but if this is being called in a child route it may cause bugs. To be safe, you should provide_meta_context() somewhere in the root of the app.
```
2024-02-15 20:19:07 -05:00
martin frances 98633c8700
chore(ci): update node version for GitHub Actions (#2303) 2024-02-15 20:17:12 -05:00
David Rebbe b0f5c39711
example: replace yanked version of `session_auth_axum` crate (#2310) 2024-02-15 20:16:26 -05:00
Greg Johnston b54aa7f3f5
Merge pull request #2294 from agilarity/add-cargo-make-leptos 2024-02-15 18:52:37 -05:00
Sam Judelson e33ee7ec99
pub export server is either from leptos_macro or leptos_spin_macro depending on if spin feature is enabled. (#2280)
* leptos spin server macro

* leptos spin

* git chng

* based on the fermyon official git for when that works
2024-02-15 14:37:19 -08:00
Joseph Cruz cd70b2f52b fix(ci): should exclude cargo-make 2024-02-11 20:40:20 -05:00
Joseph Cruz c75842ed0c ci(hackernews_islands_axum): build with cargo leptos 2024-02-11 15:40:32 -05:00
Joseph Cruz 4ad228bf47 docs(test-report): add leptos ci warning 2024-02-11 15:40:32 -05:00