blorbb
19711e16b6
feat: improved macro hygiene ( #2084 )
2023-11-29 07:47:18 -05:00
Greg Johnston
18a92bbfd8
fix: improved rust-analyzer support in #[component]
macro ( #2075 )
2023-11-27 19:37:43 -05:00
Greg Johnston
4e8c3accf2
fix: make prop serialization opt-in for devtools ( closes #1952 ) ( #2081 )
2023-11-27 16:35:31 -05:00
blorbb
8573f22d96
fix: re-export slice!
macro ( #2008 )
2023-11-11 06:47:15 -05:00
martin frances
d7ca5f2e96
chore: typed-builder and typed-builder-macro - bumped version numbers. ( #1958 )
2023-10-29 21:49:48 -04:00
Sadra
30370a55e1
feat: add a slice!()
macro ( #1867 )
2023-10-24 14:27:10 -04:00
Marc-Stefan Cassola
c87328f5cf
feat: add directives with use:
( #1821 )
2023-10-19 16:15:36 -04:00
safx
9a70898b09
feat: optional named arguments for #[server] macro ( #1904 )
2023-10-19 16:07:43 -04:00
Greg Johnston
be2d014f08
v0.5.1
2023-10-06 09:40:23 -04:00
Greg Johnston
1be25f0f47
fix: clippy
"needless lifetimes" warning ( closes #1825 ) ( #1852 )
2023-10-06 07:29:34 -04:00
Greg Johnston
e0d15c1a09
fix: correctly quote spread attributes in {..attrs}
syntax ( closes #1826 ) ( #1831 )
2023-10-02 18:02:49 -04:00
martin frances
fb914e1a50
chore: bump outdated dependencies in leptos_macro
( #1796 )
...
-attribute-derive = { version = "0.6", features = ["syn-full"] }
+attribute-derive = { version = "0.8", features = ["syn-full"] }
-itertools = "0.10"
+itertools = "0.11"
2023-09-29 13:05:57 -04:00
Julien Scholz
772bb1d60c
fix: improve rust-analyzer auto-completion ( #1782 )
2023-09-29 13:05:13 -04:00
Greg Johnston
c9d132f007
change: use let:
instead of bind:
( #1774 )
2023-09-25 20:33:36 -04:00
Greg Johnston
d99269afac
docs: error in view!
macro if you use cx,
( #1772 )
2023-09-22 17:29:55 -04:00
Fangdun Tsai
1d392483b4
chore(leptos_marco): enhancement of document generation ( #1768 )
2023-09-22 13:32:58 -04:00
Greg Johnston
1759a3e149
feat: correctly use_context
between islands ( #1747 )
2023-09-19 21:16:47 -04:00
Village
2c12256260
feat: allow component names to be paths ( #1725 )
2023-09-15 18:18:29 -04:00
Greg Johnston
afa67726c1
fix: document #[prop(default = ...)]
as in Optional Props ( closes #1710 ) ( #1721 )
2023-09-15 15:16:46 -04:00
Chris
7c9b118b2d
docs: update out-of-date docs for component
macro ( #1696 )
2023-09-14 13:47:04 -04:00
Greg Johnston
651356a9ec
docs: add docs for #[island]
macro ( #1691 )
2023-09-11 19:56:33 -04:00
Village
1c2327b2d6
feat: attr:
and #[prop(attrs)]
syntax for passing attributes down to components ( #1628 )
2023-09-10 15:19:53 -04:00
Greg Johnston
66dfef8729
Merge pull request #1681 from leptos-rs/docs
2023-09-08 17:11:47 -04:00
Greg Johnston
238d61ce1e
feat: experimental islands ( #1660 )
2023-09-08 16:33:00 -04:00
Greg Johnston
2fa2bf1706
docs: format
2023-09-08 16:27:50 -04:00
Greg Johnston
23d48d4c0e
docs: remove stray references to Scope
( closes #1671 )
2023-09-08 16:02:45 -04:00
blorbb
c87212f2d7
chore: remove (most) syn 1 dependencies ( #1670 )
2023-09-08 14:46:38 -04:00
Baptiste
b3a4c95dad
feat: Rc
-backed ChildrenFn
( #1669 )
2023-09-08 07:44:50 -04:00
Nya
495862e9f9
fix: custom events on components ( #1648 )
2023-09-04 13:27:33 -04:00
Village
6e008343c8
feat: add component generics ( #1636 )
2023-09-03 20:09:50 -04:00
Village
4a43983f4e
feat: implement spreading attributes onto elements ( #1619 )
2023-09-01 20:52:15 -04:00
Greg Johnston
8d3874f8a9
cargo fmt
2023-08-29 21:19:24 -04:00
Einherjar
bade16d227
docs: discuss unique paths for #[server]
functions ( #1610 )
2023-08-29 20:49:31 -04:00
Maneren
700eee6604
fix(macro/params): clippy warning ( #1612 )
2023-08-29 20:31:54 -04:00
Greg Johnston
6c3e2fe53e
feat: update to typed-builder
0.16 ( closes #1455 ) ( #1590 )
2023-08-26 10:10:42 -04:00
Greg Johnston
8f067dcde7
chore: clear release-mode warnings
2023-08-25 17:16:00 -04:00
Greg Johnston
c9cc493063
fix: fourth argument to server functions ( #1585 )
2023-08-25 10:28:54 -04:00
Greg Johnston
7306ecccbc
feat: make struct name and path optional for server functions ( #1573 )
2023-08-24 10:22:35 -04:00
Nathan Lapel
195b843840
feat: remove Clone
requirement for slots in vectors ( #1564 )
2023-08-22 21:23:38 -04:00
Greg Johnston
dbc707adcd
feat/change: adopt reactive ownership model and drop cx
/Scope
( #918 )
2023-08-21 19:31:37 -04:00
luoxiaozero
18deb398ca
feat: tracing
support for component props ( #1531 )
2023-08-18 08:29:41 -04:00
martin frances
cddd784e8d
chore: fixed lint warning seen while running ``cargo doc
`` ( #1539 )
...
"component" is both a module and a macro and so we must
disambiguate
2023-08-15 06:18:19 -04:00
Greg Johnston
f6978217fb
docs: give a compile error when trying to put a child inside a self-closing HTML tag ( closes #1535 ) ( #1537 )
2023-08-13 12:44:45 -04:00
Greg Johnston
a88d047eff
template refactor + snapshot tests ( #1435 )
2023-08-04 07:54:03 -04:00
Greg Johnston
8847d5fc42
fix: compile-time regression for deeply-nested component trees ( #1476 )
2023-07-31 14:23:09 -04:00
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
Greg Johnston
5e26e84d77
feat: allow feature-name flexibility when using server functions ( #1427 )
2023-07-25 06:07:52 -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
Vladimir Motylenko
b09f9e4814
feat: Update rstml to v0.11.0 ( #1416 )
2023-07-23 07:46:33 -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
Joseph Cruz
3481a6ee53
build: run tasks from workpace or member directory ( #1339 )
2023-07-13 16:46:51 -04:00
Greg Johnston
e821efca07
chore: new cargo fmt
( #1266 )
2023-07-02 17:01:39 -04:00
Greg Johnston
5adc88bf50
fix: hot-reloading view marker line number ( #1255 )
2023-06-30 14:03:54 -04:00
Greg Johnston
8cb95b4646
docs: update server fn docs ( #1252 )
2023-06-30 10:40:06 -04:00
Ari Seyhun
1cc3a43268
chore: remove unused variable warnings with ssr props ( #1244 )
2023-06-30 08:05:20 -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
Greg Johnston
acfc86d2a4
fix: SVG <use>
in SSR ( #1203 )
2023-06-17 16:47:39 -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
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
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
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
yuuma03
51a6147609
feat: variable bindings on components ( #1140 )
2023-06-03 15:22:44 -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
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
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
Greg Johnston
00fcd1c65e
docs: fix small docs issues ( closes #1045 ) ( #1049 )
2023-05-16 13:01:29 -04:00
Greg Johnston
0db4f5821f
fix: avoid extra {
escaping ( closes #1035 ) ( #1038 )
2023-05-12 16:29:33 -04:00
Greg Johnston
1fdb6f1cdf
feat: add style:
to view ( #1009 )
2023-05-06 06:23:20 -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
d8e03773f0
feat: allow structs in server function arguments ( #987 )
2023-05-03 15:26:48 -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
Roland Fredenhagen
661adc4027
feat: ```view code block in doc comments for properties ( #961 )
2023-04-28 16:03:04 -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
Roland Fredenhagen
75a7bd610a
fix: escapes in doc comments on component properties ( #958 )
2023-04-27 16:43:38 -04:00
Greg Johnston
0f277c55ec
fix: use absolute reference to ::leptos::Scope
in case not imported
2023-04-25 16:52:14 -04:00
jquesada2016
362150a715
feat: implemented IntoView
for component props ( #948 )
2023-04-24 20:05:31 -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
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
yuuma03
0e2181fb90
fix: allow nested slots ( #928 )
2023-04-22 14:14:01 -04:00
Ben Wishovich
81f330e888
feat: add thorough tracing throughout ( #908 )
2023-04-22 06:47:11 -04:00
yuuma03
f51857cedc
feat: add slots ( closes #769 ) ( #909 )
2023-04-21 14:36:38 -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
fe68b47ba2
perf: tiny optimization on primitive child values ( #887 )
2023-04-17 22:09:10 -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
012ff56cd6
fix static text nodes with curly braces in SSR ( #849 )
2023-04-11 12:46:32 -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
016ad6b7a6
feat: make __Props
imports unnecessary ( closes #746 ) ( #828 )
2023-04-07 15:06:10 -04: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
Greg Johnston
a3327f8841
fix: SVG <title>
tag ( #783 )
2023-04-01 11:24:32 -04:00
Greg Johnston
1e037ecb60
chore: clippy and docs warnings ( #779 )
2023-03-31 17:12:42 -04:00
Lukas Potthast
e9ff26abb4
feat: allow component declaration without use leptos::Scope
in scope ( #748 )
2023-03-29 07:59:08 -04:00
Greg Johnston
38d97babd8
fix: always run dynamic classes after static classes ( closes #735 ) ( #738 )
2023-03-24 17:38:34 -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
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
1698ffa7db
fix issues in release mode ( closes #700 ) ( #701 )
2023-03-18 11:04:06 -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
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
b55e9a9e64
v0.2.3
: fix broken stable support (#670 )
2023-03-13 07:25:08 -04:00
Greg Johnston
87d5bddb21
fix: text node issue in template
macro ( #661 )
2023-03-11 14:25:38 -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
martin frances
94998aa95e
chore: cargo machete: leptos_macro - Removed unused crates. ( #656 )
2023-03-10 09:44:23 -05:00
martin frances
81401a738c
chore: bumped typed-builder up to 0.14. ( #648 )
2023-03-09 16:44:27 -05:00
Greg Johnston
bb0324fd48
fix: custom events (closes issue #641 ) ( #642 )
2023-03-07 14:00:48 -05:00
martin frances
27fb430900
bump typed-builder to version 0.13. ( #633 )
2023-03-06 09:07:21 -05:00
Greg Johnston
08d98691a3
fix: boolean attributes in SSR ( #629 )
2023-03-04 14:24:08 -05:00
Greg Johnston
55ce805b60
feat: hot reloading support for cargo-leptos
( #592 )
2023-03-04 09:04:22 -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
Roland Fredenhagen
2ee323135f
feat: support expressions in #[prop(default=...)] ( #611 )
2023-03-02 19:15:45 -05:00
ealmloff
0c261c0fb0
feat: make server functions framework agnostic ( #596 )
2023-03-01 20:56:30 -05:00
Greg Johnston
578853877a
fix: restore SSR fast-path support
2023-02-28 15:36:52 -05:00
Remo
46e6e7629c
chore: macro panic
hygiene ( #568 )
2023-02-24 16:36:05 -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
586f524015
feature: in-order streaming and async
rendering ( #496 )
2023-02-17 17:31:32 -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
50d8eae694
fix: correct namespace for Unit
in empty views ( closes #518 ) ( #520 )
2023-02-13 20:25:26 -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
6bab4ad966
apply new formatting everywhere ( #502 )
2023-02-11 14:30:06 -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
3fd3e73a10
Correctly handle custom elements in SSR
2023-02-08 20:32:59 -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
Greg Johnston
45d4ebccd8
fix: cargo doc
in projects using #[server]
( #476 )
2023-02-05 19:12:32 -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
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
Greg Johnston
bb9df8937d
feature: allow on:
event listeners on <Component/>
nodes ( #448 )
2023-02-02 23:24:03 -05:00
martin frances
65465cad78
leptos_macro: Machete - Removed unused deps. ( #441 )
2023-02-02 16:59:49 -05:00
Greg Johnston
53f7677258
Fix top-level SVG elements in SSR ( #435 )
2023-02-01 20:36:50 -05:00
Greg Johnston
e1bcf77b03
docs: Document inner_html
attribute ( #429 )
2023-02-01 19:21:08 -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
Greg Johnston
45eee12b18
Fix issues with attribute names in SSR ( #418 )
2023-01-31 11:57:05 -05:00