github reflex-dev/reflex v0.9.3

latest releases: reflex-components-radix-v0.9.3, reflex-components-markdown-v0.9.2, reflex-components-lucide-v1.0.1...
3 hours ago

Breaking Changes

  • Lifespan tasks will now be passed an rx.App instance instead of a Starlette instance
    • fix(app): pass Reflex app instance to lifespan task app parameter by @BABTUNA in #6358

New Features

Persistent Frontend Dep Locking

Projects should commit the new reflex.lock directory which includes package.json and bun.lock. This helps avoid accidentally introducing upstream changes and helps protect against supply chain attacks.

reflex cloud deploy --gcp

  • feat(hosting-cli): add reflex cloud gcp deploy for Cloud Run by @Kastier1 in #6450

EmbedPlugin

With the EmbedPlugin, a Reflex frontend can now be mounted into an existing DOM element in a custom HTML page by simply including the entry point javascript.

  • feat: support embedding Reflex apps into host pages via mount_target by @FarhanAliRaza in #6462

frontend_compression_formats

The build process now produces .gz sidecar files during export and serves them to supported clients for reflex run --env prod.

Improvements

Bug Fixes

Compiler

  • fix(memo): skip {children} hole substitution when wrapped component h… by @carlosabadia in #6466
  • Allow overriding files with Plugins, just warn about it by @riebecj in #6476
  • [codex] Fix memoized component hook prop rendering by @Alek99 in #6506
  • [codex] fix foreach memo style cache by @Alek99 in #6513
  • fix: use python truthiness for compiled and/or Var operations by @adhami3310 in #6546

CLI

  • fix(hosting-cli): exit deploy when --envfile requires missing python-dotenv by @BABTUNA in #6414
  • ENG-9522: Fix CLI: Lists projects as "Unknown" by @carlosabadia in #6530

Other Areas

  • fix: Textarea enter_key_submit uses add_custom_code instead of _get_all_custom_code by @algojogacor in #6485
  • fix(component): compare field values in BaseComponent.eq by @FarhanAliRaza in #6493
  • fix: REFLEX_FRONTEND_PATH without leading slash duplicates path in logged URL by @qubydev in #6364
  • fix: make Markdown a MemoizationLeaf so Var children stay inlined by @FarhanAliRaza in #6532
  • Expose rx.Plugin hook contexts by @masenf in #6537
  • ENG-9553: prepend frontend_path to RouterData.url and RouterData.page.raw_path by @masenf in #6535

Doc / Web

Telemetry Improvements

  • feat(telemetry): emit compile events with page/component/state breakdown by @FarhanAliRaza in #6507
  • feat(telemetry): report export status, duration, and phase timings by @FarhanAliRaza in #6509
  • feat(telemetry): track per-feature usage counters on compile events by @FarhanAliRaza in #6519
  • feat: capture pre-init Python environment in init telemetry by @FarhanAliRaza in #6534
  • Display ToS / privacy warning on console with logging in by @masenf in #6547
  • add doc page for telemetry info and opt-out by @masenf in #6548

Other Changes

New Contributors

Full Changelog: v0.9.2.post1...v0.9.3

Don't miss a new reflex release

NewReleases is sending notifications on new releases.