Commit Graph

134 Commits

Author SHA1 Message Date
István Donkó 8ab9c08448
docs: fix typo in server_fn docs (#740) 2023-03-24 21:42:27 -04:00
martin frances cfd5c98f97
clippy: simplify Box::pin() call. (#718) 2023-03-21 09:06:31 -04:00
Greg Johnston 38daaf3b72
chore: apply `cargo machete` systematically (#671) 2023-03-13 10:16:20 -04:00
Greg Johnston b55e9a9e64
`v0.2.3`: fix broken stable support (#670) 2023-03-13 07:25:08 -04:00
martin frances c63c8ac447
chore: cargo machete: Strip down leptos_server. (#644) 2023-03-08 19:37:22 -05:00
ealmloff 0c261c0fb0
feat: make server functions framework agnostic (#596) 2023-03-01 20:56:30 -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
Ben Wishovich 322041917d
fix issue with redirects in server fns creating multiple Location headers (#550) 2023-02-20 08:55:47 -05:00
jquesada2016 f2f52b2533
change: move signal method implementations into traits in signal prelude (#490) 2023-02-18 07:30:03 -05:00
Greg Johnston 1dbcfe2861
change: reorganize module exports and reexports (#503) 2023-02-12 17:04:36 -05:00
Greg Johnston 6bab4ad966
apply new formatting everywhere (#502) 2023-02-11 14:30:06 -05:00
martin frances ddee545e7e
leptos-server: Removed dependecy on log, linear-map, rmp-serde. (#439) 2023-02-02 16:59:07 -05:00
Greg Johnston 395336a8c0 Correctly set `pending` state with `ActionForm` 2023-01-27 12:19:20 -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
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 cdf709fb09 `0.1.0` 2023-01-12 09:57:08 -05:00
Martin 1621b86d8f Minor: "leptos.workspace = true" is invalid. 2023-01-11 17:09:10 +00:00
Greg Johnston 4df3687463 Forbid unsafe code in all packages 2023-01-09 19:48:51 -05: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
Greg Johnston 0da88f39cd Improve docs and debugging tools for server functions (closes #225) 2023-01-03 20:05:47 -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 9663555195 Fix `Action` and `create_action` docs to match new API 2023-01-01 19:44:50 -05:00
Greg Johnston 2c614722f4 Make `Action` and `MultiAction` `Copy` by backing them with a `StoredValue` 2022-12-30 15:29:35 -05:00
Greg Johnston 70f6297277 Merge branch 'leptos_dom_v2' of https://github.com/jquesada2016/leptos into jquesada2016-leptos_dom_v2 2022-12-29 09:32:12 -05:00
Greg Johnston b86e7f33dc Bump versions for new `cargo-leptos` compatible integrations 2022-12-29 08:04:22 -05:00
Greg Johnston 50ba796f49 Fix `leptos_server` tests 2022-12-28 13:26:10 -05:00
Ben Wishovich f8f0d9fae0
Merge branch 'main' into cargo-leptos-beta 2022-12-27 12:49:17 -08:00
Greg Johnston a55ce8f752 Fix deps 2022-12-25 23:08:00 -05:00
Greg Johnston 469a65ad7a Remove dev-deps for publish 2022-12-25 23:07:42 -05:00
Greg Johnston 8a8c00455e Remove version of dev-deps 2022-12-25 23:06:20 -05:00
Greg Johnston 5540bb8e8c Bump version to `0.1.0-alpha` 2022-12-25 22:58:07 -05:00
Greg Johnston 391fe89542 `0.0.21` 2022-12-23 13:01:15 -05:00
Ben Wishovich f2e9d6f4c3 More small tweaks to support config 2022-12-20 17:56:38 -08:00
Ben Wishovich 6fa15a5584 Cleanup of testing files 2022-12-16 17:35:32 -08:00
Greg Johnston c4cc3e944b Merge in changes from `main` 2022-12-12 09:26:46 -05:00
Greg Johnston eb40f9f7c7 Remove `leptos_dom/ssr` dependencies 2022-12-08 19:32:46 -05:00
Greg Johnston fbfd1a4f60 Fix other dependencies on `leptos_dom/csr` and `leptos_dom/hydrate` 2022-12-08 19:24:36 -05:00
Greg Johnston 2ff5ec21c8 `0.0.20` 2022-12-05 16:25:16 -05:00
Ben Wishovich fe5c9c6f0d Fix accept heading behavior in Axum to match Actix 2022-11-27 18:25:43 -08:00
Greg Johnston 36de06f183 `0.0.19` 2022-11-27 09:13:21 -05:00
Greg Johnston 1a0168bf28 Clear warnings 2022-11-26 09:02:26 -05:00
Greg Johnston 93f68e022f
Merge branch 'main' into msgpack-encoding 2022-11-25 14:35:52 -05:00
Greg Johnston 55f70367b5 Clear warnings in library 2022-11-25 14:32:25 -05:00
Greg Johnston 6d329f33eb Remove logging 2022-11-25 14:29:26 -05:00
Ben Wishovich 3ac92dc0fe Switched out string for Payload enum in register() function and REGISTERED_SERVER_FUNCTIONS. Not sure if this is the way to go 2022-11-23 15:58:15 -08:00
Ben Wishovich 440719071a Switch MessagePack for CBOR, as it's more standardized 2022-11-23 14:23:49 -08:00
Ben Wishovich 931e60347d It mostly works now. Remove lifetime, edit macro to take encoding option, and flail around a bit 2022-11-22 15:12:45 -08:00
Ben Wishovich 2a547936d4 Almost there maybe? 2022-11-22 10:41:15 -08:00
Greg Johnston 2ce7e71748 `0.0.18` 2022-11-22 07:37:34 -05:00
Greg Johnston e827ee93e2 `leptos_server` doctests 2022-11-22 06:42:00 -05:00
Ben Wishovich 6564b95342 WIP commit for MessagePack Encoding 2022-11-21 22:07:56 -08:00
Greg Johnston 1f1218bbb7 Fix broken links and other issues in docs 2022-11-21 09:25:09 -05:00
Greg Johnston 6ddc720227 Allow accessing `Scope` from server functions, which can be used to inject server-only dependencies like `HttpRequest` 2022-11-19 14:44:35 -05:00
Greg Johnston 8077ae9ead Doctests: opt out of running futures on `csr` and `hydrate` outside the browser 2022-11-19 07:39:09 -05:00
Greg Johnston ba199e1acb Fix doctests out of date with new API 2022-11-18 16:46:41 -05:00
Greg Johnston ad880efc0d `leptos 0.0.17` and `leptos_router 0.0.3` 2022-11-18 15:45:04 -05:00
Greg Johnston 412693c2c3 `MultiAction`, `create_multi_action`, `create_server_multi_action`, and `MultiActionForm` 2022-11-18 13:25:46 -05:00
Greg Johnston d530b28348 Give direct access to `input` and `value` fields on actions 2022-11-18 10:56:00 -05:00
Greg Johnston 77504de8f1 Correctly set `value` and `input` when using `<ActionForm/>` so we can do real optimistic UI (see issue #51) 2022-11-16 20:16:21 -05:00
Greg Johnston 22eaa92355 Use `serde_urlencoded` for server functions (making it easier to use normal text inputs for forms) 2022-11-14 08:18:01 -05:00
Greg Johnston ba3156c878 0.0.16 2022-11-13 09:02:04 -05:00
Greg Johnston 8ff7b4c11b `#![deny(missing_docs)]` on `leptos_server` 2022-11-08 07:30:09 -05:00
Greg Johnston b9ca0b11a2 Fix breaking CI on leptos_server 2022-11-06 07:08:57 -05:00
Greg Johnston aa3dd356c1 Fix issues with action integration with forms 2022-11-05 22:47:33 -04:00
Greg Johnston e9c1799a11 0.0.13 2022-11-05 22:24:59 -04:00
Greg Johnston 6a38375c66 Complete docs 2022-11-05 22:18:01 -04:00
Greg Johnston f9f4fb0fef Remove partial create_action docs from crate level 2022-11-05 22:14:28 -04:00
Greg Johnston 42cd3f1d69 Make sure server-only stuff appears in docs 2022-11-05 22:14:19 -04:00
Greg Johnston ade2eda26d Add docs for leptos_server 2022-11-05 20:08:03 -04:00
Greg Johnston 3701f65693 Add missing `leptos_server` metadata 2022-11-03 20:05:44 -04:00
Greg Johnston a5712d3e17 0.0.12 2022-11-03 20:00:26 -04:00
Greg Johnston abc1c07053 Work on fixing tests 2022-11-03 08:08:03 -04:00
Greg Johnston db69145fd9 Sorting out all sorts of feature flags etc. so everything will build and test 2022-11-02 21:46:47 -04:00
Greg Johnston c034e84b1d Direct server fn => ServerForm interface per #43 2022-11-01 22:57:55 -04:00
Greg Johnston 292c3d8bb1 Support for POST in client-side forms 2022-10-30 20:37:50 -04:00
Greg Johnston 1041d04d9e Input and URL on actions to allow forms with optimistic UI 2022-10-30 18:55:16 -04:00
Greg Johnston 7168f24dcb Clean up some version mismatches from merging 2022-10-29 20:34:32 -04:00
Greg Johnston 3fe20cf307 Add some initial docs 2022-10-29 20:29:39 -04:00
Greg Johnston 9f884471a8 Rename create_async_action to create_action 2022-10-29 20:12:38 -04:00
Greg Johnston 57ddfbf2ef Correctly handle serialization using Serializable and multiple types of arguments for input & output 2022-10-29 20:09:05 -04:00
Greg Johnston 3b5224295d Extract server function stuff into a `leptos_server` library 2022-10-28 15:41:40 -04:00