Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/+bun-version-warning.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify the warning shown when Bun is below the minimum supported version.
1 change: 1 addition & 0 deletions packages/reflex-base/news/+bun-ca-removal.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Upgrade the default Bun version to 1.4.4, which removes compromised emSign certificate authorities from its bundled trust store.
4 changes: 2 additions & 2 deletions packages/reflex-base/src/reflex_base/constants/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ class Bun(SimpleNamespace):
"""Bun constants."""

# The Bun version.
VERSION = "1.4.2"
VERSION = "1.4.4"
Comment thread
Darksinian marked this conversation as resolved.
Resolved
Comment thread
Darksinian marked this conversation as resolved.
Resolved

# Min Bun Version. Bun 1.4 creates new lockfiles at `lockfileVersion: 2`,
# which 1.3.x cannot parse at all, so a `reflex.lock/bun.lock` generated
# under 1.4 is unusable on 1.3.x. (An existing v1 lockfile is kept at v1
# even across dependency changes, so already-initialized projects survive.)
# Keep this in step with VERSION across the 1.4 boundary so a system bun
# old enough to choke on a v2 lockfile is never preferred over the pinned one.
MIN_VERSION = "1.4.0"
MIN_VERSION = "1.4.4"
Comment thread
Darksinian marked this conversation as resolved.
Resolved

# URL to bun install script.
INSTALL_URL = "https://raw.githubusercontent.com/reflex-dev/reflex/main/scripts/bun_install.sh"
Expand Down
8 changes: 2 additions & 6 deletions reflex/utils/js_runtimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,12 +363,8 @@ def validate_bun(bun_path: Path | None = None):
raise SystemExit(1)
if bun_version < version.parse(constants.Bun.MIN_VERSION):
logger.warning(
f"Reflex requires bun version {constants.Bun.MIN_VERSION} or higher to run, but the detected version is "
f"{bun_version}. If you have specified a custom bun path in your config, make sure to provide one "
f"that satisfies the minimum version requirement. You can upgrade bun by running [bold]bun upgrade[/bold]. "
f"Bun 1.4 creates new lockfiles at `lockfileVersion: 2`, which bun 1.3.x cannot parse, so a "
f"[bold]reflex.lock/bun.lock[/bold] generated by bun 1.4 will fail to install with this bun. "
f"An existing v1 lockfile is kept at v1, so already-initialized projects are unaffected.",
f"Bun {bun_version} is below the minimum supported version "
f"{constants.Bun.MIN_VERSION}. Please upgrade Bun by running [bold]bun upgrade[/bold].",
extra={"rich": True},
)

Expand Down
Loading