Skip to content

Commit db84d7f

Browse files
committed
rolldown vite 7.1.16
1 parent c28bdba commit db84d7f

File tree

2 files changed

+5
-34
lines changed

2 files changed

+5
-34
lines changed

reflex/constants/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ def DEPENDENCIES(cls) -> dict[str, str]:
143143
"postcss-import": "16.1.1",
144144
"@react-router/dev": _react_router_version,
145145
"@react-router/fs-routes": _react_router_version,
146-
"vite": "npm:[email protected].14",
146+
"vite": "npm:[email protected].16",
147147
}
148148
OVERRIDES = {
149149
# This should always match the `react` version in DEPENDENCIES for recharts compatibility.
150150
"react-is": _react_version,
151151
"cookie": "1.0.2",
152-
"vite": "npm:[email protected].14",
152+
"vite": "npm:[email protected].16",
153153
}

reflex/utils/redir.py

Lines changed: 3 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
"""Utilities to handle redirection to browser UI."""
22

3-
import time
4-
import webbrowser
5-
63
from reflex import constants
7-
from reflex.utils import net
8-
9-
from . import console
4+
from reflex.utils import console
105

116

127
def open_browser(target_url: str) -> None:
@@ -15,6 +10,8 @@ def open_browser(target_url: str) -> None:
1510
Args:
1611
target_url: The URL to open in the browser.
1712
"""
13+
import webbrowser
14+
1815
if not webbrowser.open(target_url):
1916
console.warn(
2017
f"Unable to automatically open the browser. Please navigate to {target_url} in your browser."
@@ -23,32 +20,6 @@ def open_browser(target_url: str) -> None:
2320
console.info(f"Opening browser to {target_url}.")
2421

2522

26-
def open_browser_and_wait(target_url: str, poll_url: str, interval: int = 2):
27-
"""Open a browser window to target_url and request poll_url until it returns successfully.
28-
29-
Args:
30-
target_url: The URL to open in the browser.
31-
poll_url: The URL to poll for success.
32-
interval: The interval in seconds to wait between polling.
33-
34-
Returns:
35-
The response from the poll_url.
36-
"""
37-
import httpx
38-
39-
open_browser(target_url)
40-
console.info("[b]Complete the workflow in the browser to continue.[/b]")
41-
while True:
42-
try:
43-
response = net.get(poll_url, follow_redirects=True)
44-
if response.is_success:
45-
break
46-
except httpx.RequestError as err:
47-
console.info(f"Will retry after error occurred while polling: {err}.")
48-
time.sleep(interval)
49-
return response
50-
51-
5223
def reflex_build_redirect() -> None:
5324
"""Open the browser window to reflex.build."""
5425
open_browser(constants.Templates.REFLEX_BUILD_FRONTEND)

0 commit comments

Comments
 (0)