Skip to content

Commit c43ffc6

Browse files
authored
Upgrade default Bun to 1.4.4 (#7639)
* Upgrade default Bun to 1.4.4 * Require Bun 1.4.4 for managed runtime upgrades * Clarify the unsupported Bun version warning * Add changelog fragment for Bun version warning
1 parent aeaac72 commit c43ffc6

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarify the warning shown when Bun is below the minimum supported version.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade the default Bun version to 1.4.4, which removes compromised emSign certificate authorities from its bundled trust store.

‎packages/reflex-base/src/reflex_base/constants/installer.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ class Bun(SimpleNamespace):
1717
"""Bun constants."""
1818

1919
# The Bun version.
20-
VERSION = "1.4.2"
20+
VERSION = "1.4.4"
2121

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

3030
# URL to bun install script.
3131
INSTALL_URL = "https://raw.githubusercontent.com/reflex-dev/reflex/main/scripts/bun_install.sh"

‎reflex/utils/js_runtimes.py‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,8 @@ def validate_bun(bun_path: Path | None = None):
363363
raise SystemExit(1)
364364
if bun_version < version.parse(constants.Bun.MIN_VERSION):
365365
logger.warning(
366-
f"Reflex requires bun version {constants.Bun.MIN_VERSION} or higher to run, but the detected version is "
367-
f"{bun_version}. If you have specified a custom bun path in your config, make sure to provide one "
368-
f"that satisfies the minimum version requirement. You can upgrade bun by running [bold]bun upgrade[/bold]. "
369-
f"Bun 1.4 creates new lockfiles at `lockfileVersion: 2`, which bun 1.3.x cannot parse, so a "
370-
f"[bold]reflex.lock/bun.lock[/bold] generated by bun 1.4 will fail to install with this bun. "
371-
f"An existing v1 lockfile is kept at v1, so already-initialized projects are unaffected.",
366+
f"Bun {bun_version} is below the minimum supported version "
367+
f"{constants.Bun.MIN_VERSION}. Please upgrade Bun by running [bold]bun upgrade[/bold].",
372368
extra={"rich": True},
373369
)
374370

0 commit comments

Comments
 (0)