Release Notes
SASS and SCSS
Thanks to @KronosDev-Pro, reflex can now compile your SASS and SCSS files for you! Simply reference a local SASS/SCSS file in the stylesheets key-word argument for rx.App. You need to have libsass installed.
- [IMPL] - added support for sass and scss stylesheet languages by @KronosDev-Pro in #4292
- add libsass to the dev deps by @adhami3310 in #4982
Bun
We used to be using bun as a default for installation, and now we're using it as a runtime as well. In most cases it should work fine, but if it doesn't, you should install node
in your global system.
This also removes fnm/npm automatic download from reflex and will cut down on the time for new system installs.
- double down on bun over fnm/npm by @adhami3310 in #4906
Granian
We are starting to migrate to Granian as the ASGI that ships with default with Reflex. You can test it with REFLEX_USE_GRANIAN=1. For now there will be some bugs, but we will be resolving them as time comes. Hopefully by 0.8.0 we would have deprecated uvicorn and moved primarily to Granian.
In the same change, you can also run reflex
from any asgi compliant program, for example:
uvicorn your_app_name.your_app_name:app --factory
- Remove app_module_for_backend by @masenf in #4749
- granian all the way by @adhami3310 in #4994
- move granian to the sidelines by @adhami3310 in #5010
Specify multiple env files
You can pass multiple files (separated by : on linux, ; on windows) for the ENV_FILE environment variable.
NextJS downgrade :(
Due to issues we're having with turbopack, we're temporarily downgrading to an earlier version of nextJS 15 until the issues get fixed.
Components
- allow cond to mix components and props by @adhami3310 in #4980
- improve logic for icon name handling by @adhami3310 in #4988
Bugfixes
- downgrade annoying log messages by @masenf in #4977
- Fix get_parent_state and get_root_state when using
mixin=True
by @masenf in #4976 - handle range value types [ENG-5143] by @adhami3310 in #4990
- preserve the error message if it was reflex who threw it by @adhami3310 in #5004
- fix str splatting in fallback command by @adhami3310 in #5005
- do not fallback to key name and print tracebacks properly in compile by @adhami3310 in #5003
- fix dynamic components removing all imports form the library by @adhami3310 in #5008
- fix next themes no rerender by @adhami3310 in #5001
- fix: prevent AttributeError when using bare mixins by @benedikt-bartscher in #5011
- disable ipv6 by @adhami3310 in #5013
- clean pycache after downloading template, fixes #4135 by @adhami3310 in #5014
- prevent repeat compiles on frontend only apps by @adhami3310 in #5017
Chores
- bump to 0.7.4dev by @adhami3310 in #4978
- add missing pip to uv install in benchmarking action by @adhami3310 in #4979
- make prettier not hog the system by @adhami3310 in #4981
- Download Count by @Alek99 in #4996
- unbreak precommit :( by @adhami3310 in #4997
New Contributors
- @KronosDev-Pro made their first contribution in #4292
Full Changelog: v0.7.3...v0.7.4