v0.2.9
版本发布时间: 2023-10-10 06:43:53
reflex-dev/reflex最新发布版本:v0.3.3(2023-11-16 03:29:40)
Breaking Changes
rx.constants
module refactored
- Many names have changed for better organization and namespacing of the growing number of constant values.
-
rx.constants
is not really a public API, but some existing code may have been accessing values in this module.
-
- code cleanup (split constants into a folder) by @Lendemor in https://github.com/reflex-dev/reflex/pull/1866
New Features
Core Graphing Library is now Recharts
The API for rendering charts and graphs has changed.
- See the docs for examples and more information.
- Victory charts are deprecated and will be removed in a subsequent release.
-
rx.data
is no longer used.
-
- https://github.com/reflex-dev/reflex/pull/1878
Run Arbitrary Javascript from Event Handler
- rx.call_script: a real EventHandler to execute arbitrary javascript by @masenf in https://github.com/reflex-dev/reflex/pull/1860
Redirect into New Window
-
return rx.redirect("https://google.com", external=True)
to open page in new tab/window - allow external link for redirect by @Lendemor in https://github.com/reflex-dev/reflex/pull/1902
HTML Editor Component
- Add Editor component by @masenf in https://github.com/reflex-dev/reflex/pull/1851
Improvements
- Allow arbitrary Reflex components to map to markdown tags for more customizable styling.
- Improvements to custom styles in rx.markdown by @picklelo in https://github.com/reflex-dev/reflex/pull/1852
- Fix custom style rendering in markdown by @picklelo in https://github.com/reflex-dev/reflex/pull/1869
- Improve default rx.markdown styling by @picklelo in https://github.com/reflex-dev/reflex/pull/1904
- Include scripts in
<head>
for every page by settinghead_components
prop inrx.App
- Add head components to app by @picklelo in https://github.com/reflex-dev/reflex/pull/1868
- Adding Missing Props to
button
,button_group
, andcircular_progress
- Add button spinner_placement prop by @ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1871
- Button Group variant and size props by @ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1873
- circular_progress cleanup: size, thickness, label by @masenf in https://github.com/reflex-dev/reflex/pull/1879
- Add
Readme.md
for turkish language by @09u2h4n in https://github.com/reflex-dev/reflex/pull/1922 - Pin frontend package versions by @picklelo in https://github.com/reflex-dev/reflex/pull/1920
- More reliable deploys without bringing in unexpected upstream changes
Bug Fixes
- component:
imports
override_get_dependencies_imports
by @masenf in https://github.com/reflex-dev/reflex/pull/1859 - Fix regression where
rx.table
stopped working with state Var- rx.table
__bool__
regression fix by @ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1828
- rx.table
-
MutableProxy
fixes when accessinglist
,dict
, orset
vars on a State- MutableProxy wraps values yielded by
__iter__
by @masenf in https://github.com/reflex-dev/reflex/pull/1876 - State.reset uses deepcopy on defaults by @masenf in https://github.com/reflex-dev/reflex/pull/1889
- state:
get_value
unwraps MutableProxy first by @masenf in https://github.com/reflex-dev/reflex/pull/1887 - state: subclass of MutableState must return _mark_dirty return value by @masenf in https://github.com/reflex-dev/reflex/pull/1898
- MutableProxy wraps values yielded by
- fix rx.image src not working with state by @Lendemor in https://github.com/reflex-dev/reflex/pull/1915
- fix menu items= API by @Lendemor in https://github.com/reflex-dev/reflex/pull/1905
- Lendemor/fix backward compat of menu api by @Lendemor in https://github.com/reflex-dev/reflex/pull/1925
Other Changes
- Bump to v0.2.8 by @picklelo in https://github.com/reflex-dev/reflex/pull/1855
- Format event handlers not in importable modules by @picklelo in https://github.com/reflex-dev/reflex/pull/1875
- Add a placeholder timeout to GitHub Actions unit tests by @jackwcodes in https://github.com/reflex-dev/reflex/pull/1897
- test_state: assert popped value is the actual value by @masenf in https://github.com/reflex-dev/reflex/pull/1906
- Deprecate set_cookie and set_local_storage by @ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1917
- Add forward slash to local JS import by @picklelo in https://github.com/reflex-dev/reflex/pull/1924
- Update Deprecations by @ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1927
New Contributors
- @jackwcodes made their first contribution in https://github.com/reflex-dev/reflex/pull/1897
- @09u2h4n made their first contribution in https://github.com/reflex-dev/reflex/pull/1922
Full Changelog: https://github.com/reflex-dev/reflex/compare/v0.2.8...v0.3.0