Skip to content

Commit f98881e

Browse files
committed
Merge remote-tracking branch 'upstream/main' into asgi-middleware
2 parents 318f1fb + 178fc05 commit f98881e

File tree

21 files changed

+576
-738
lines changed

21 files changed

+576
-738
lines changed

docs/source/_exts/autogen_api_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def generate_api_docs():
4343
if file.name == "__init__.py":
4444
if file.parent != PYTHON_PACKAGE:
4545
content.append(make_package_section(file))
46-
else:
46+
elif not file.name.startswith("_"):
4747
content.append(make_module_section(file))
4848

4949
API_FILE.write_text("\n".join(content))

docs/source/about/changelog.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,24 @@ Unreleased
1919

2020
- :pull:`1251` - Substitute client-side usage of ``react`` with ``preact``.
2121
- :pull:`1239` - Script elements no longer support behaving like effects. They now strictly behave like plain HTML script elements.
22+
- :pull:`1255` - The ``reactpy.html`` module has been modified to allow for auto-creation of any HTML nodes. For example, you can create a ``<data-table>`` element by calling ``html.data_table()``.
23+
- :pull:`1256` - Change ``set_state`` comparison method to check equality with ``==`` more consistently.
24+
- :pull:`1257` - Add support for rendering ``@component`` children within ``vdom_to_html``.
25+
26+
**Removed**
27+
28+
- :pull:`1255` - Removed the ability to import ``reactpy.html.*`` elements directly. You must now call ``html.*`` to access the elements.
29+
- :pull:`1255` - Removed ``reactpy.sample`` module.
30+
- :pull:`1255` - Removed ``reactpy.svg`` module. Contents previously within ``reactpy.svg.*`` can now be accessed via ``html.svg.*``.
31+
- :pull:`1255` - Removed ``reactpy.html._`` function. Use ``html.fragment`` instead.
2232

2333
**Fixed**
2434

2535
- :pull:`1239` - Fixed a bug where script elements would not render to the DOM as plain text.
2636

2737
v1.1.0
2838
------
39+
:octicon:`milestone` *released on 2024-11-24*
2940

3041
**Fixed**
3142

@@ -61,6 +72,7 @@ v1.1.0
6172

6273
v1.0.2
6374
------
75+
:octicon:`milestone` *released on 2023-07-03*
6476

6577
**Fixed**
6678

@@ -69,6 +81,7 @@ v1.0.2
6981

7082
v1.0.1
7183
------
84+
:octicon:`milestone` *released on 2023-06-16*
7285

7386
**Changed**
7487

docs/source/guides/getting-started/_examples/run_starlette.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# :lines: 11-
1+
# :lines: 10-
22

33
from reactpy import run
44
from reactpy.backend import starlette as starlette_server

src/reactpy/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from reactpy import backend, config, html, logging, sample, svg, types, web, widgets
1+
from reactpy import backend, config, logging, types, web, widgets
2+
from reactpy._html import html
23
from reactpy.core import hooks
34
from reactpy.core.component import component
45
from reactpy.core.events import event
@@ -35,8 +36,6 @@
3536
"html",
3637
"html_to_vdom",
3738
"logging",
38-
"sample",
39-
"svg",
4039
"types",
4140
"use_callback",
4241
"use_connection",

0 commit comments

Comments
 (0)