Reflex

Latest version: v0.7.0

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

Scan your dependencies

Page 10 of 15

0.2.6

Not secure
A quick follow-up release to fix issues discovered and reported by our thriving community on Discord. 💪

Fix Regressions

Ensure non-sqlite databases can be used 1661

- model: only pass "check_same_thread" arg for sqlite database by masenf in https://github.com/reflex-dev/reflex/pull/1662

Block problematic upstream package `python-engineio-4.6.0` 1658

- pyproject.toml: requires python-engineio!=4.6.0 by masenf in https://github.com/reflex-dev/reflex/pull/1663

Other Changes

- Added the `step` prop to `Slider`[Issue 1639] by muddi900 in https://github.com/reflex-dev/reflex/pull/1643
- added support for limits in pagination by wassafshahzad in https://github.com/reflex-dev/reflex/pull/1646
- add type conversion for int,float in built-in setters by Lendemor in https://github.com/reflex-dev/reflex/pull/1660

New Contributors

- muddi900 made their first contribution in https://github.com/reflex-dev/reflex/pull/1643

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.2.5...v0.2.6

0.2.5

Not secure
💪 Thanks to our amazing users and contributors!! 🙌 🐍

Known Regressions

* non-sqlite database access is not working 1661

Breaking Changes

Chained event handlers from `return` / `yield` must always be referenced from the State class, NOT the instance

python
class State(rx.State):
def handlerA(self):
...

def handlerB(self):
return self.handlerA() ❌ Will raise TypeError now!

def handlerC(self):
return State.handlerA() ✅ Always reference chained handlers by class


The exception will look like `TypeError: Your handler State.handlerB must only return/yield: None, Events or other EventHandlers referenced by their class (not using self)` and will occur *when the handler is called*, not at compile time.

Removal of `Config` knobs

- `admin_dash` - configure the admin dashboard via `rx.App` instead
- `backend_transports` - all connections will use websocket
- `cors_credentials`
- `db_config` - use `db_url` instead
- `env` - specify the run environment via CLI flags to `reflex run --env dev|prod`
- `env_path` - reading environment variables from a file is no longer supported (suggest use of `docker-compose` or simply `source` the env file before running `reflex`)
- `override_os_envs` - os environment variables will always take precedence
- `polling_max_http_buffer_size` - all connections will use websocket

New Features

Support f-string formatting of State vars

Frontend rendering functions can now make use of `f"built in {State.value}"` style formatting, instead of `+` concatenation.

Node.js is automatically installed on Windows (non-WSL)

Using the cross-platform `fnm` tool to facilitate automatic installation of node runtime on native windows platform, where previously a manual install was needed.

POSIX support for `fnm` to replace `nvm` is coming soon.

Display system and environment information with `--loglevel debug`

For easier bug reporting and investigations, all relevant platform info, config, and tools used by Reflex will be logged in debug mode.

`rx.selected_files` Var exposes files selected by the `rx.upload` component

This new Var can be rendered as a frontend component:

python
rx.foreach(
rx.selected_files,
rx.text,
)


Improvements

Frontend performance boost

Refactoring the main frontend event loop reduces event handling and rendering time by 3x.

Refactored `Config` class

Simplify configuration knobs and recognize all configuration values set as environment variables.

`rx.form` now works with more form components

Including `rx.pin_input`, `rx.number_input`, and `rx.range_slider`

More flexible container serialization inside State classes

- `set` is now supported as a `Var` type
- Recursive serialization now allows for `list`, `tuple`, and `set` of PIL image, plotly plots, and pandas dataframes.

Use “trailingSlash” mode to better support static site hosting

When exporting a site via `reflex export`, an `index.html` file will be created inside a directory for each static route, which makes hosting via s3, github pages, netlify, and others simpler by not requiring a “try_files” rule or rewrites.

`docker-example` is simplified and extended

The main `Dockerfile` is simpler and there is now a `compose.yaml` and `Caddy.Dockerfile` which can be used to deploy a reflex app with automatic TLS support.

Other Improvements

- Expose `debounce_timeout` prop on `rx.input` and `rx.text_area` for tuning fully-controlled input behavior on large sites.
- Ignore `*.db` and files in default `.gitignore` template
- `NoSSRComponent` supports components using either named or default exports.

Bug Fixes

- Flex `wrap` and `direction` props accept list of values, for use at different responsive breakpoints.
- Can specify `on_load` when defining a custom 404 page.
- Raise useful exception when a user-defined State var shadows an internal name.
- `BUN_PATH` is respected again (regression from 0.2.3)
- Var operations like `to_string`, `and`, and `or` return a new Var with the correct `type_` set.
- Passing a `dict` as a prop where the values contain double quotes is no longer an error. (Fix `rx.html` component where content contains double quotes)

Other Changes
* For show file on PyPI correctly, to use the full-path hyperlink to indicate the raw file by milochen0418 in https://github.com/reflex-dev/reflex/pull/1559
* PR zh/zh_tw readme update by milochen0418 in https://github.com/reflex-dev/reflex/pull/1557
* Add windows warning message. by Alek99 in https://github.com/reflex-dev/reflex/pull/1570
* Change fixture scope to be run per session rather than per function by mat-mil in https://github.com/reflex-dev/reflex/pull/1569
* App harness use new_process by picklelo in https://github.com/reflex-dev/reflex/pull/1573
* Update urls to reflex.dev by picklelo in https://github.com/reflex-dev/reflex/pull/1572
* Update CONTRIBUTING.md by Alek99 in https://github.com/reflex-dev/reflex/pull/1580
* Add AppHarness for form submit by Lendemor in https://github.com/reflex-dev/reflex/pull/1571
* FIXED 1598: pyproject.toml: Wrong repository URL by jenisys in https://github.com/reflex-dev/reflex/pull/1602
* test_dynamic_routes: fix flakyness in test_dynamic_routes by masenf in https://github.com/reflex-dev/reflex/pull/1603
* Fix rx.link href prop and Var.to_string type by picklelo in https://github.com/reflex-dev/reflex/pull/1600
* integration tests: don't shadow real error when screenshot fails by masenf in https://github.com/reflex-dev/reflex/pull/1608
* link: fix link with no href by masenf in https://github.com/reflex-dev/reflex/pull/1612
* Update .gitignore to ignore coverage.* files by martinxu9 in https://github.com/reflex-dev/reflex/pull/1623
* Remove unused `full_control` related code by martinxu9 in https://github.com/reflex-dev/reflex/pull/1624
* test_form_submit: poll for backend_state to be updated by masenf in https://github.com/reflex-dev/reflex/pull/1625

New Contributors
* Smit-Parmar made their first contribution in https://github.com/reflex-dev/reflex/pull/1535
* mat-mil made their first contribution in https://github.com/reflex-dev/reflex/pull/1568
* jenisys made their first contribution in https://github.com/reflex-dev/reflex/pull/1602
* martinxu9 made their first contribution in https://github.com/reflex-dev/reflex/pull/1614
* danik292 made their first contribution in https://github.com/reflex-dev/reflex/pull/1645

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.2.4...v0.2.5

0.2.4

Not secure
What's Changed
* Update Readme by Alek99 in https://github.com/reflex-dev/reflex/pull/1463
* Guide to clone the correct repo in CONTRIBUTING.md by milochen0418 in https://github.com/reflex-dev/reflex/pull/1471
* replace favicon.ico to represent reflex by milochen0418 in https://github.com/reflex-dev/reflex/pull/1469
* Disable fully controlled Input and TextArea by masenf in https://github.com/reflex-dev/reflex/pull/1383
* Fix Nextjs Dynamic Import by Alek99 in https://github.com/reflex-dev/reflex/pull/1480
* Use concurrent.futures for threading by picklelo in https://github.com/reflex-dev/reflex/pull/1483
* Bump version to 0.2.3 by picklelo in https://github.com/reflex-dev/reflex/pull/1481
* Full OS matrix builds for unit and integration tests (Linux, Mac, Windows) by jackie-pc in https://github.com/reflex-dev/reflex/pull/1460
* Windows CI: debug logs encoding fix by jackie-pc in https://github.com/reflex-dev/reflex/pull/1491
* Simplify rxconfig template by picklelo in https://github.com/reflex-dev/reflex/pull/1492
* Update README.md by Alek99 in https://github.com/reflex-dev/reflex/pull/1498
* fail faster in integration test by jackie-pc in https://github.com/reflex-dev/reflex/pull/1493
* Fix deploy command by picklelo in https://github.com/reflex-dev/reflex/pull/1496
* check_initialized: skip REFLEX_DIR check for backend only by masenf in https://github.com/reflex-dev/reflex/pull/1478
* scripts/integration: fix mismerge -- wait for $check_ports by masenf in https://github.com/reflex-dev/reflex/pull/1504
* docker-example: update executable and README by masenf in https://github.com/reflex-dev/reflex/pull/1499
* fix state reset() by Lendemor in https://github.com/reflex-dev/reflex/pull/1501
* CI: Basic integration test for WSL by jackie-pc in https://github.com/reflex-dev/reflex/pull/1510
* add __main__ entry point to allow `python -m reflex` by masenf in https://github.com/reflex-dev/reflex/pull/1516
* Remove Home folder for windows by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1502
* fix lost events when yielding by Lendemor in https://github.com/reflex-dev/reflex/pull/1521
* Add alt tag for images by picklelo in https://github.com/reflex-dev/reflex/pull/1524
* NoSSRComponent recognizes is_default by masenf in https://github.com/reflex-dev/reflex/pull/1533
* Wrap Input and TextArea with DebounceInput for full control by masenf in https://github.com/reflex-dev/reflex/pull/1484
* Run AppHarness selenium integration tests in CI by masenf in https://github.com/reflex-dev/reflex/pull/1538
* Expose NoSSRComponent for downstream use by masenf in https://github.com/reflex-dev/reflex/pull/1537
* Get rid of mod_import by Alek99 in https://github.com/reflex-dev/reflex/pull/1547


**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.2.3...v0.2.4

0.2.3

Not secure
What's Changed
* Lendemor/fix datatable rendering by Lendemor in https://github.com/reflex-dev/reflex/pull/1360
* Check bun installation exit code during reflex init by siddhantgoel in https://github.com/reflex-dev/reflex/pull/1385
* Allow custom Tailwind content by kbrgl in https://github.com/reflex-dev/reflex/pull/1399
* rx.App `state` arg should not be required by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1361
* Update tests for Foreach by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1394
* integration/test_server_side_event.py: tests for set_value by masenf in https://github.com/reflex-dev/reflex/pull/1390
* improve 404 logic by Lendemor in https://github.com/reflex-dev/reflex/pull/1398
* Bump version to 0.2.2 by picklelo in https://github.com/reflex-dev/reflex/pull/1400
* Fix foreach indexing by picklelo in https://github.com/reflex-dev/reflex/pull/1403
* Update Readme links by TaiJuWu in https://github.com/reflex-dev/reflex/pull/1405
* feature: Auto install node by nvm on Linux by TaiJuWu in https://github.com/reflex-dev/reflex/pull/1404
* Bugfix for hidden refs on form submit by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1418
* rx.markdown custom styles for tags by picklelo in https://github.com/reflex-dev/reflex/pull/1416
* dev-mode compile: purge .web dir at last min to reduce downtime window by jackie-pc in https://github.com/reflex-dev/reflex/pull/1430
* update templates to remove deprecation warning by Lendemor in https://github.com/reflex-dev/reflex/pull/1437
* List and Dict mutation on setattr by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1428
* rename rx.route decorator by Lendemor in https://github.com/reflex-dev/reflex/pull/1442
* Update package.json to use nvm by picklelo in https://github.com/reflex-dev/reflex/pull/1419
* Github action to run unit tests on windows by jackie-pc in https://github.com/reflex-dev/reflex/pull/1444
* update behaviour for wrong state passed as argument of rx.App by Lendemor in https://github.com/reflex-dev/reflex/pull/1447
* Update version flag by picklelo in https://github.com/reflex-dev/reflex/pull/1452
* CI: factor out env setup as composite action by jackie-pc in https://github.com/reflex-dev/reflex/pull/1455
* Improve prerequisites check by picklelo in https://github.com/reflex-dev/reflex/pull/1454
* fix breadcrumb API & add get_page_crumbs method by Lendemor in https://github.com/reflex-dev/reflex/pull/1387
* CI: separate pre-commit github action job by jackie-pc in https://github.com/reflex-dev/reflex/pull/1457
* Remove curl and parallelize node/bun install by picklelo in https://github.com/reflex-dev/reflex/pull/1458
* Add unified logging by picklelo in https://github.com/reflex-dev/reflex/pull/1462
* Show status bar on reflex init by picklelo in https://github.com/reflex-dev/reflex/pull/1467

New Contributors
* jackie-pc made their first contribution in https://github.com/reflex-dev/reflex/pull/1430

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.2.2...v0.2.3

0.2.2

Not secure
Small release fixing a bug in the render of pc.foreach.

What's Changed
* [Fixes 1351] print SQL execution statements if SQLALCHEMY_ECHO constant is set for debugging by SlamChillz in https://github.com/reflex-dev/reflex/pull/1369
* Fix sitemap output dir by picklelo in https://github.com/reflex-dev/reflex/pull/1382
* table: allow rows to be a Var by masenf in https://github.com/reflex-dev/reflex/pull/1374
* Synchronize Event Namespace by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1370
* state.js: do not shadow outer `state` var when updating state by masenf in https://github.com/reflex-dev/reflex/pull/1375
* Fix foreach index type by picklelo in https://github.com/reflex-dev/reflex/pull/1389

New Contributors
* SlamChillz made their first contribution in https://github.com/reflex-dev/reflex/pull/1369

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.2.1...v0.2.2

0.2.1

Not secure
What's Changed
* component: do not create ref for dynamic id by masenf in https://github.com/reflex-dev/reflex/pull/1307
* Update bug_report.md by Lendemor in https://github.com/reflex-dev/reflex/pull/1312
* state.js: accumulate incoming events by masenf in https://github.com/reflex-dev/reflex/pull/1313
* Computed vars tuple and str indexing support by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1322
* Added input el left/right by Alek99 in https://github.com/reflex-dev/reflex/pull/1335
* rx.Model: automigrate using alembic by masenf in https://github.com/reflex-dev/reflex/pull/1321
* Fix codeblock import by picklelo in https://github.com/reflex-dev/reflex/pull/1337
* parameter for turning off nextJS compression by Lendemor in https://github.com/reflex-dev/reflex/pull/1316
* reflex: respect "env" from rxconfig by masenf in https://github.com/reflex-dev/reflex/pull/1338
* reflex.testing.AppHarness: tools for testing reflex apps by masenf in https://github.com/reflex-dev/reflex/pull/1326
* Strict type checking for indexing with vars by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1333
* pyproject.toml: bump httpx to ^0.24.0 by masenf in https://github.com/reflex-dev/reflex/pull/1353
* Optimize dev mode compile by picklelo in https://github.com/reflex-dev/reflex/pull/1348
* Add custom message with current time in console when the user exits an app by QuietPigeon2001 in https://github.com/reflex-dev/reflex/pull/1345
* Add Simplified Chinese version of the README by stevenyuser in https://github.com/reflex-dev/reflex/pull/1341
* reflex db migrate CLI and associated config by masenf in https://github.com/reflex-dev/reflex/pull/1336
* Export Error Handling + Improved CLI by Alek99 in https://github.com/reflex-dev/reflex/pull/1359
* Generate sitemap on export by picklelo in https://github.com/reflex-dev/reflex/pull/1358
* Yield with uploads by ElijahAhianyo in https://github.com/reflex-dev/reflex/pull/1339
* reflex db cli: catch exception in makemigrations by masenf in https://github.com/reflex-dev/reflex/pull/1362
* Expose Script component from next/script by masenf in https://github.com/reflex-dev/reflex/pull/1355

New Contributors
* QuietPigeon2001 made their first contribution in https://github.com/reflex-dev/reflex/pull/1345
* stevenyuser made their first contribution in https://github.com/reflex-dev/reflex/pull/1341

**Full Changelog**: https://github.com/reflex-dev/reflex/compare/v0.2.0...v0.2.1

Page 10 of 15

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.