Reflex

Latest version: v0.7.5

Safety actively analyzes 723177 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 9 of 16

0.3.7

Not secure
New Features

* add next/image and next-video in next namespace by Lendemor in https://github.com/reflex-dev/reflex/pull/2223

Improvements

* Support SQLAlchemy v2
* [REF-24] support SQLModel 0.0.14 + SQLAlchemy 2 by masenf in https://github.com/reflex-dev/reflex/pull/2283
* Support `redis:` and `rediss:` uri for `REDIS_URI` (and allow authentication)
* use redis-py url syntax for redis_url by benedikt-bartscher in https://github.com/reflex-dev/reflex/pull/2267
* capture exceptions thrown by any process in run_concurrently_context by jackie-pc in https://github.com/reflex-dev/reflex/pull/2296

Bug Fixes

* update the join function by tgberkeley in https://github.com/reflex-dev/reflex/pull/2270
* REF-1451/DataFrame Serializer fix by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2281
* [REF-1464] Handle requirements.txt encoding by martinxu9 in https://github.com/reflex-dev/reflex/pull/2284

Radix (WiP)

* Core radix-ui/themes components
* Radix Themes by Alek99 in https://github.com/reflex-dev/reflex/pull/2236
* add event_triggers by Lendemor in https://github.com/reflex-dev/reflex/pull/2276
* wrap radix icons by Lendemor in https://github.com/reflex-dev/reflex/pull/2263
* Implement accordion component by picklelo in https://github.com/reflex-dev/reflex/pull/2262
* [REF-1417] Convert underscore-prefixed style props to pseudo selector by masenf in https://github.com/reflex-dev/reflex/pull/2266

Other Changes

* Warning if newer reflex/reflex-hosting-cli available by Alek99 in https://github.com/reflex-dev/reflex/pull/2271
* Bump to v0.3.7 by picklelo in https://github.com/reflex-dev/reflex/pull/2298

New Contributors

* benedikt-bartscher made their first contribution in https://github.com/reflex-dev/reflex/pull/2267

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.3.6...v0.3.7

0.3.6

Not secure
This release fixes an issue with v0.3.5 in using base HTML components with state.

What's Changed
* [REF-1425] Always capitalize tag of StatefulComponent by masenf in https://github.com/reflex-dev/reflex/pull/2264
* bugfix: hosting deploy command checks requirements when interactive by martinxu9 in https://github.com/reflex-dev/reflex/pull/2260
* Bump to v0.3.6 by picklelo in https://github.com/reflex-dev/reflex/pull/2268
* Format var better in error message by picklelo in https://github.com/reflex-dev/reflex/pull/2269


**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.3.5...v0.3.6

0.3.5

Not secure
Known Issues

Using `rx.el.*` namespace tags with State vars is not currently working (2264)

Breaking Changes

- `Component._get_app_wrap_components` is now a `staticmethod` for performance reasons.

Deprecations

Deprecated features will not be removed until reflex-0.4.0.

- Deprecate event namespace config knob by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2218
- update removal version of deprecated features by Lendemor in https://github.com/reflex-dev/reflex/pull/2224
- deprecate state arg in App() by Lendemor in https://github.com/reflex-dev/reflex/pull/2237

Improvements

Performance

This release includes numerous performance improvements during both compile phase and at runtime.

Backend

- [REF-1035] Track ComputedVar dependency per class by masenf in https://github.com/reflex-dev/reflex/pull/2067
- Reduce memory and deserialization time for every app user.
- [REF-201] Separate on_load handler from initial hydration by masenf in https://github.com/reflex-dev/reflex/pull/1847
- Avoid expensive hydration of entire state when navigating between pages (with ElijahAhianyo)

Frontend

Each substate in an app can now be accessed independently. Components which depend on any state are automatically pulled out of the main page component and defined within separate "memoized" components that only update when the substates they directly depend upon have changed.

This improves re-render time on some `reflex-web` pages by 20x :rocket:

- [REF-889] useContext per substate by masenf in https://github.com/reflex-dev/reflex/pull/2149
- [REF-144] Add context in each component to prevent rerenders by masenf in https://github.com/reflex-dev/reflex/pull/2198
- Memoize markdown component_map by masenf in https://github.com/reflex-dev/reflex/pull/2219
- Support hooks in custom components (state, addEvents) by masenf in https://github.com/reflex-dev/reflex/pull/2234
- [reflex-web tweaks] Do not memoize children of InputGroup by masenf in https://github.com/reflex-dev/reflex/pull/2230
- [REF-1349] RechartsCharts and ResponsiveContainer must be memo leaf by masenf in https://github.com/reflex-dev/reflex/pull/2240
- Generalize MemoizationLeaf Component mixin (and apply to Cond and NextHead) by masenf in https://github.com/reflex-dev/reflex/pull/2247
- [REF-1352] Markdown component_map hash improvements by masenf in https://github.com/reflex-dev/reflex/pull/2241

Compiler

- _valid_children and _invalid_children accessible from class by Lendemor in https://github.com/reflex-dev/reflex/pull/2192
- [fixup] _valid_children and _invalid_children pyi_generator and graphing components by masenf in https://github.com/reflex-dev/reflex/pull/2194
- Speed up reflex CLI imports by picklelo in https://github.com/reflex-dev/reflex/pull/2185
- Use singleton app provider to speed up compiles by picklelo in https://github.com/reflex-dev/reflex/pull/2172

Allow Multiple Subclasses of `rx.State`

Any module can now create substates without importing from a base state defined in the App.

Third-party components may define and use their own substates.

(Note: Working event handlers for substates defined within nested functions are still TODO.)

- REF-1052/rx.State as Base State by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2146

Improved Basic HTML Elements

The `rx.el` namespace provides access to basic HTML tags, such as `a`, `div`, and `p`, which can be used to build the frontend instead of using Chakra components. This can be useful when styling the app via tailwind.

As Reflex moves to using `radix-ui` components, this cleans up the API because many radix components directly inherit from basic HTML elements.

- HTML Refactor by Alek99 in https://github.com/reflex-dev/reflex/pull/2164
- [REF-1158] Move chakra-only deps to chakra lib by masenf in https://github.com/reflex-dev/reflex/pull/2171
- If no chakra components are used, then chakra deps are not installed for the app.
- [fixup] [reflex-web tweaks] chakra Icon is a ChakraComponent (use sx for style) by masenf in https://github.com/reflex-dev/reflex/pull/2231

Allow PIL images to be serialized in alternate formats

Setting the `image.format` attribute on a PIL `Image.Image` object controls what format the image is serialized as when sending to the frontend via data URI.

- Serialize PIL Image in its format by masenf in https://github.com/reflex-dev/reflex/pull/2201

Add/Subtract time delta with `rx.moment`

- add/subtract in moment by Lendemor in https://github.com/reflex-dev/reflex/pull/2212

Dependency Bumps

- pyproject.toml: upgrade httpx to 0.25.0 by arnomoonens in https://github.com/reflex-dev/reflex/pull/2013
- Upgrade to bun 1.0.13 by picklelo in https://github.com/reflex-dev/reflex/pull/2202
- REF-1202: Upgrade bun version if it differs from reflex set version by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2206

Other Improvements

- Add index on tabs by Alek99 in https://github.com/reflex-dev/reflex/pull/2225

Bugfixes

Fix `_hover`, `_focus` and other leading underscore props

- Fix Prop conversion to camel case by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2205

Others

- fix name for import var when is default and add tests by Lendemor in https://github.com/reflex-dev/reflex/pull/2214
- code_block responds to color mode by default by masenf in https://github.com/reflex-dev/reflex/pull/2228

Data Editor

- fix offset of data_editor input when page is scrolled by Lendemor in https://github.com/reflex-dev/reflex/pull/2208
- update column select literals by tgberkeley in https://github.com/reflex-dev/reflex/pull/2150

Internal

- check_generated_pyi: fix diff checking by masenf in https://github.com/reflex-dev/reflex/pull/2029
- keep app id (project hash) the same even after re-init by tgberkeley in https://github.com/reflex-dev/reflex/pull/2195
- Fix pyright errors by picklelo in https://github.com/reflex-dev/reflex/pull/2210
- Separate out the hosting CLI from main repo by martinxu9 in https://github.com/reflex-dev/reflex/pull/2165
- fix: fixes the command used for cloning the repo by ankur0904 in https://github.com/reflex-dev/reflex/pull/2159

New Contributors

- arnomoonens made their first contribution in https://github.com/reflex-dev/reflex/pull/2013
- ankur0904 made their first contribution in https://github.com/reflex-dev/reflex/pull/2159

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.3.4...v0.3.5

0.3.4

Not secure
This release re-exposes top level names under the `reflex` namespace that were erroneously removed in v0.3.3

New Features

* [REF-723+] Upload with progress and cancellation by masenf in https://github.com/reflex-dev/reflex/pull/1899

What's Changed
* Add chat icon by Alek99 in https://github.com/reflex-dev/reflex/pull/2181
* Hosting CLI: remove requirements generation when init, add back timeout for deploy command, remove deploy legacy command by martinxu9 in https://github.com/reflex-dev/reflex/pull/2179
* add in new no_of_lines prop for text by tgberkeley in https://github.com/reflex-dev/reflex/pull/2184
* Apply new pyi script by Lendemor in https://github.com/reflex-dev/reflex/pull/2041
* Fix missing lazy imports by picklelo in https://github.com/reflex-dev/reflex/pull/2187
* reflex_init_in_docker_test: export both frontend and backend by masenf in https://github.com/reflex-dev/reflex/pull/2182
* Fix wrong modal sizes by Alek99 in https://github.com/reflex-dev/reflex/pull/2183
* Bump to v0.3.4 by picklelo in https://github.com/reflex-dev/reflex/pull/2193


**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.3.3...v0.3.4

0.3.3

Not secure
New Features

Python 3.12 is now supported

by masenf in https://github.com/reflex-dev/reflex/pull/2006

Next.js upgrade from 13 to 14

by Lendemor in https://github.com/reflex-dev/reflex/pull/2142

Clear Form using `reset_on_submit` prop

You can use the `reset_on_submit` on a form to reset form values to their original states after submitting the form. Simply set the value to True.

python
rx.form(
rx.input(id="text", placeholder="text"),
rx.button("Submit", type_="submit"),
reset_on_submit=True,
)


(by masenf in https://github.com/reflex-dev/reflex/pull/2012)

Forms support dynamic names.

- Dynamic refs / ids don't really work but you can use dynamic names instead

python
rx.form(
rx.vstack(
rx.input(name="name_input"),
rx.hstack(rx.pin_input(length=4, name="pin_input")),
rx.number_input(name="number_input"),
rx.checkbox(name="bool_input"),
rx.switch(name="bool_input2"),
rx.slider(name="slider_input"),
rx.range_slider(name="range_input"),
rx.radio_group(["option1", "option2"], name="radio_input"),
rx.select(["option1", "option2"], name="select_input"),
rx.text_area(name="text_area_input"),
rx.input(
name="debounce_input",
debounce_timeout=0,
on_change=rx.console_log,
),
rx.button("Submit", type_="submit"),
),
),


- Use `rx.Var.range` (similar to python’s `range` ) with `rx.foreach` to dynamically create form elements with dynamic names. `rx.Var.range(v1, v2, step)` takes in start, end and step values which should be integers or `Var` integers.

python
class State:
grid: int = 4

def handle_submit(self, form_data: dict):
print(form_data)

rx.form(
rx.responsive_grid(
rx.foreach(
rx.Var.range(State.grid),
lambda i: rx.foreach(
rx.Var.range(State.grid),
lambda j: rx.input(
name=f"grid_{i}_{j}",
placeholder=f"grid {i} {j}",
key=f"{i}_{j}",
width="4em",
),
),
),
columns=[State.grid],
),
rx.button("Submit", type_="submit"),
reset_on_submit=True,
on_submit=State.handle_submit,
),



New form-based code should prefer to use the `name` attribute to avoid the overhead of using refs for no specific gain (unless focus or value setting is required).

(by masenf in https://github.com/reflex-dev/reflex/pull/2012)

Improvements

- Assume secure protocol (wss://) and no port If the frontend is being accessed via `HTTPS` and the `API_URL` is either `localhost`, `0.0.0.0` or `::` and uses a non-secure protocol by masenf in https://github.com/reflex-dev/reflex/pull/2129
- Reduce Syntax highlighter footprint by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2037
- Lazy import modules in reflex by picklelo in https://github.com/reflex-dev/reflex/pull/2144

Doc fixups

- fix: grammatical errors & typo in Spanish [[readme.md](http://readme.md/)](http://readme.md/) by cllatser in https://github.com/reflex-dev/reflex/pull/2139
- docs: remove duplicated content in [[CONTRIBUTING.md](http://contributing.md/)](http://contributing.md/) by Jaspreet-singh-1032 in https://github.com/reflex-dev/reflex/pull/2152
- docs: revise typo in korean README and common CONTRIBUTING readme by young-hun-jo in https://github.com/reflex-dev/reflex/pull/2160

Bug Fixes

- fix an issue where some fields in `State.router.headers` were not getting updated by Lendemor in https://github.com/reflex-dev/reflex/pull/2133
- Resolve peer dependency conflict causing package-lock.json to relock on every run by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/2106

Other Changes

- Add benchmarking by Alek99 in https://github.com/reflex-dev/reflex/pull/2143

New Contributors

- cllatser made their first contribution in https://github.com/reflex-dev/reflex/pull/2130
- Jaspreet-singh-1032 made their first contribution in https://github.com/reflex-dev/reflex/pull/2152
- young-hun-jo made their first contribution in https://github.com/reflex-dev/reflex/pull/2160

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.3.2...0.3.3

0.3.2

Not secure
Thank you to our wonderful users and contributors! :clap: :tada:

New Features

Expose `stop_propagation` and `prevent_default` on Event Handlers

When an event trigger should not propagate to DOM elements nested below it use `.stop_propagation`.

When an event action should override the browser default (like following a link), use `.prevent_default`.

Each of these "event actions" will trigger the frontend to call the corresponding method on the DOM event associated with the event trigger. Both actions may be applied to the same event handler.

* Expose DOM event actions on EventHandler, EventSpec, and EventChain (stopPropagation) by masenf in https://github.com/reflex-dev/reflex/pull/1891
* Do not stop prop is there is no prop to stop by masenf in https://github.com/reflex-dev/reflex/pull/2116

Gunicorn Worker Class

The `gunicorn_worker_class` may be specified in `rxconfig.py` to configure low-level uvicorn settings when running in `prod` mode. See [example](https://github.com/orgs/reflex-dev/discussions/2070#discussioncomment-7428180) in dicussion 2070.

* Expose gunicorn_worker_class via Config by masenf in https://github.com/reflex-dev/reflex/pull/2084

Components can be passed as props

Components can now accept props with type `Var[Component]`, which allows for greater customization of components and greater flexibility when wrapping third-party components.

This only works for static components passed at compile-time. Components cannot be used in a State Var.

* components as props by Lendemor in https://github.com/reflex-dev/reflex/pull/2124

Github Codespaces

Creating a codespace from the reflex repo is now supported. Be sure to open the Backend URL in the browser first (or mark the port as Public) to allow the frontend to access the backend via websocket.

* Github Codespaces Support 🪐 by masenf in https://github.com/reflex-dev/reflex/pull/2125

Improvements

Add `orientation` prop to `rx.stepper`

* Add 'orientation' Property to Reflex Stepper Components by shu-qian in https://github.com/reflex-dev/reflex/pull/2089

Add column resize for data editor

* add column resize for data editor by Lendemor in https://github.com/reflex-dev/reflex/pull/2099

Doc fixups

* fix: Typo in README.md by debajoti in https://github.com/reflex-dev/reflex/pull/2069
* fix: Grammatical error & typo in CONTRIBUTING.md by debajoti in https://github.com/reflex-dev/reflex/pull/2072
* docs: fixed wrapping react link by Shreyas0410 in https://github.com/reflex-dev/reflex/pull/2097
* Added links for Github issues and contributing.md file by Sentious in https://github.com/reflex-dev/reflex/pull/2076
* DALL E and API docs by krishvsoni in https://github.com/reflex-dev/reflex/pull/2082
* Typos fixed in multiple files by SandeshPyakurel in https://github.com/reflex-dev/reflex/pull/2090
* Fix readme links by picklelo in https://github.com/reflex-dev/reflex/pull/2118

Template Improvements

* base: expand template content to right edge of screen by masenf in https://github.com/reflex-dev/reflex/pull/2104
* Use blank template as default by picklelo in https://github.com/reflex-dev/reflex/pull/2109
* Prompt for template on reflex init by picklelo in https://github.com/reflex-dev/reflex/pull/2122

Hosting Service CLI

* [REF-1042] Hosting CLI: check the user selected app name by martinxu9 in https://github.com/reflex-dev/reflex/pull/2102
* Hosting CLI: use http endpoint to return deploy milestones by martinxu9 in https://github.com/reflex-dev/reflex/pull/2085

Other Improvements

* pyproject.toml: bump typer to 0.9.0 by masenf in https://github.com/reflex-dev/reflex/pull/2068
* Compatibility with older typer versions by masenf in https://github.com/reflex-dev/reflex/pull/2117
* cleanup dataeditor js code and hooks by Lendemor in https://github.com/reflex-dev/reflex/pull/2095
* rx.call_script callback needs to await promises by masenf in https://github.com/reflex-dev/reflex/pull/2121

Bug Fixes

* fix docker example by dodeca-6-tope in https://github.com/reflex-dev/reflex/pull/2086
* fix portal when using multiple dataeditor by Lendemor in https://github.com/reflex-dev/reflex/pull/2094
* make download work for state vars by Lendemor in https://github.com/reflex-dev/reflex/pull/2092
* Set unique index vars in rx.foreach by picklelo in https://github.com/reflex-dev/reflex/pull/2126

README Translations

* Added Spanish Readme by bryan-trz in https://github.com/reflex-dev/reflex/pull/2028

New Contributors
* debajoti made their first contribution in https://github.com/reflex-dev/reflex/pull/2069
* dodeca-6-tope made their first contribution in https://github.com/reflex-dev/reflex/pull/2086
* Shreyas0410 made their first contribution in https://github.com/reflex-dev/reflex/pull/2097
* Sentious made their first contribution in https://github.com/reflex-dev/reflex/pull/2076
* krishvsoni made their first contribution in https://github.com/reflex-dev/reflex/pull/2082
* SandeshPyakurel made their first contribution in https://github.com/reflex-dev/reflex/pull/2090
* shu-qian made their first contribution in https://github.com/reflex-dev/reflex/pull/2089
* bryan-trz made their first contribution in https://github.com/reflex-dev/reflex/pull/2028

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.3.1...v0.3.2

Page 9 of 16

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.