You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/copilot-instructions.md
+1-12Lines changed: 1 addition & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,6 @@ Always reference these instructions first and fallback to search or bash command
8
8
9
9
**BUG INVESTIGATION**: When investigating whether a bug was already resolved in a previous version, always prioritize searching through `docs/source/about/changelog.rst` first before using Git history. Only search through Git history when no relevant changelog entries are found.
10
10
11
-
**CODE RETRIEVAL**: Always prioritize using Serena tools (e.g., `mcp_oraios_serena_find_symbol`, `mcp_oraios_serena_search_for_pattern`) for code retrieval and analysis over standard file reading or searching tools.
12
-
13
11
## Working Effectively
14
12
15
13
### Bootstrap, Build, and Test the Repository
@@ -56,7 +54,6 @@ pip install flask sanic tornado
56
54
-`hatch test --cover` -- run tests with coverage reporting (used in CI)
57
55
-`hatch test -k test_name` -- run specific tests
58
56
-`hatch test tests/test_config.py` -- run specific test files
59
-
- Note: Some tests require Playwright browser automation and may fail in headless environments
60
57
61
58
**Run Python Linting and Formatting:**
62
59
@@ -70,7 +67,7 @@ pip install flask sanic tornado
70
67
71
68
-`hatch run javascript:check` -- Lint and type-check JavaScript (10 seconds). NEVER CANCEL. Set timeout to 30+ minutes.
72
69
-`hatch run javascript:fix` -- Format JavaScript code
73
-
-`hatch run javascript:test` -- Run JavaScript tests (note: may fail in headless environments due to DOM dependencies)
70
+
-`hatch run javascript:test` -- Run JavaScript tests
74
71
75
72
**Interactive Development Shell:**
76
73
@@ -325,13 +322,6 @@ Follow this step-by-step process for effective development:
325
322
- Network timeouts during pip install are common in CI environments
- :pull:`1307` - Added ``reactpy.web.reactjs_component_from_file`` to import ReactJS components from a file.
37
-
- :pull:`1307` - Added ``reactpy.web.reactjs_component_from_url`` to import ReactJS components from a URL.
38
-
- :pull:`1307` - Added ``reactpy.web.reactjs_component_from_string`` to import ReactJS components from a string.
36
+
- :pull:`1307` - Added ``reactpy.reactjs.component_from_file`` to import ReactJS components from a file.
37
+
- :pull:`1307` - Added ``reactpy.reactjs.component_from_url`` to import ReactJS components from a URL.
38
+
- :pull:`1307` - Added ``reactpy.reactjs.component_from_string`` to import ReactJS components from a string.
39
+
- :pull:`1314` - Added ``reactpy.reactjs.component_from_npm`` to import ReactJS components from NPM.
40
+
- :pull:`1314` - Added ``reactpy.h`` as a shorthand alias for ``reactpy.html``.
39
41
40
42
**Changed**
41
43
44
+
- :pull:`1314` - The ``key`` attribute is now stored within ``attributes`` in the VDOM spec.
42
45
- :pull:`1251` - Substitute client-side usage of ``react`` with ``preact``.
43
46
- :pull:`1239` - Script elements no longer support behaving like effects. They now strictly behave like plain HTML scripts.
44
47
- :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()``.
@@ -59,14 +62,15 @@ Unreleased
59
62
- :pull:`1281` - ``reactpy.core.vdom._EllipsisRepr`` has been moved to ``reactpy.types.EllipsisRepr``.
60
63
- :pull:`1281` - ``reactpy.types.VdomDictConstructor`` has been renamed to ``reactpy.types.VdomConstructor``.
61
64
- :pull:`1312` - ``REACTPY_ASYNC_RENDERING`` can now de-duplicate and cascade renders where necessary.
62
-
- :pull:`1312` - ``REACTPY_ASYNC_RENDERING`` is now defaulted to ``True`` for up to 40x performance improvements.
65
+
- :pull:`1312` - ``REACTPY_ASYNC_RENDERING`` is now defaulted to ``True`` for up to 40x performance improvements in environments with high concurrency.
63
66
64
67
**Deprecated**
65
68
66
-
-:pull:`1307` - ``reactpy.web.export`` is deprecated. Use ``reactpy.web.reactjs_component_from_*`` instead.
67
-
-:pull:`1307` - ``reactpy.web.module_from_file`` is deprecated. Use ``reactpy.web.reactjs_component_from_file`` instead.
68
-
-:pull:`1307` - ``reactpy.web.module_from_url`` is deprecated. Use ``reactpy.web.reactjs_component_from_url`` instead.
69
-
-:pull:`1307` - ``reactpy.web.module_from_string`` is deprecated. Use ``reactpy.web.reactjs_component_from_string`` instead.
69
+
-:pull:`1307` - ``reactpy.web.export`` is deprecated. Use ``reactpy.reactjs.component_from_*`` instead.
70
+
-:pull:`1307` - ``reactpy.web.module_from_file`` is deprecated. Use ``reactpy.reactjs.component_from_file`` instead.
71
+
-:pull:`1307` - ``reactpy.web.module_from_url`` is deprecated. Use ``reactpy.reactjs.component_from_url`` instead.
72
+
-:pull:`1307` - ``reactpy.web.module_from_string`` is deprecated. Use ``reactpy.reactjs.component_from_string`` instead.
73
+
-:pull:`1314` - ``reactpy.web.*`` is deprecated. Use ``reactpy.reactjs.*`` instead.
70
74
71
75
**Removed**
72
76
@@ -78,8 +82,8 @@ Unreleased
78
82
- :pull:`1311` - Removed deprecated exception type ``reactpy.core.serve.Stop``.
- :pull:`1255` - Removed ``reactpy.svg`` module. Contents previously within ``reactpy.svg.*`` can now be accessed via ``html.svg.*``.
82
-
- :pull:`1255` - Removed ``reactpy.html._`` function. Use ``html.fragment`` instead.
85
+
- :pull:`1255` - Removed ``reactpy.svg`` module. Contents previously within ``reactpy.svg.*`` can now be accessed via ``reactpy.html.svg.*``.
86
+
- :pull:`1255` - Removed ``reactpy.html._`` function. Use ``reactpy.html(...)`` or ``reactpy.html.fragment(...)`` instead.
83
87
- :pull:`1113` - Removed ``reactpy.run``. See the documentation for the new method to run ReactPy applications.
84
88
- :pull:`1113` - Removed ``reactpy.backend.*``. See the documentation for the new method to run ReactPy applications.
85
89
- :pull:`1113` - Removed ``reactpy.core.types`` module. Use ``reactpy.types`` instead.
@@ -92,12 +96,14 @@ Unreleased
92
96
- :pull:`1312` - Removed ``reactpy.types.LayoutType``. Use ``reactpy.types.BaseLayout`` instead.
93
97
- :pull:`1312` - Removed ``reactpy.types.ContextProviderType``. Use ``reactpy.types.ContextProvider`` instead.
94
98
- :pull:`1312` - Removed ``reactpy.core.hooks._ContextProvider``. Use ``reactpy.types.ContextProvider`` instead.
99
+
- :pull:`1314` - Removed ``reactpy.web.utils``. Use ``reactpy.reactjs.utils`` instead.
95
100
96
101
**Fixed**
97
102
98
103
- :pull:`1239` - Fixed a bug where script elements would not render to the DOM as plain text.
99
104
- :pull:`1271` - Fixed a bug where the ``key`` property provided within server-side ReactPy code was failing to propagate to the front-end JavaScript components.
100
105
- :pull:`1254` - Fixed a bug where ``RuntimeError("Hook stack is in an invalid state")`` errors could be generated when using a webserver that reuses threads.
106
+
- :pull:`1314` - Allow for ReactPy and ReactJS components to be arbitrarily inserted onto the page with any possible hierarchy.
0 commit comments