Skip to content

Commit cc75c3f

Browse files
authored
Update to support reflex >0.8.0 (#17)
* update to reflex >0.8.0 * bump minor version for reflex >0.8.0
1 parent 284b6dc commit cc75c3f

File tree

7 files changed

+126
-236
lines changed

7 files changed

+126
-236
lines changed

Taskfile.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ tasks:
3737

3838
bump-patch:
3939
cmds:
40-
- uv run hatch version patch
40+
- uvx hatch version patch
4141
- uv lock
4242

4343
bump-minor:
4444
cmds:
45-
- uv run hatch version minor
45+
- uvx hatch version minor
4646
- uv lock
4747

4848
bump-major:
4949
cmds:
50-
- uv run hatch version major
50+
- uvx hatch version major
5151
- uv lock
5252

5353
publish:

clerk_api_demo/clerk_api_demo/clerk_api_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def demo_page_header_and_description() -> rx.Component:
124124
rx.code("async/await"),
125125
" for all requests to the Clerk backend",
126126
),
127-
rx.list_item("supports reflex 0.7.x"),
127+
rx.list_item("supports reflex 0.8.x"),
128128
rx.list_item(
129129
"adds a helper for handling ",
130130
rx.code("on_load"),

custom_components/reflex_clerk_api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.2"
1+
__version__ = "1.1.0"
22

33
from .authentication_components import sign_in, sign_up
44
from .clerk_provider import (

custom_components/reflex_clerk_api/pages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def add_sign_in_page(
2929
),
3030
publishable_key=publishable_key,
3131
)
32-
app.add_page(sign_in_page, route=route + "/[[...signin]]")
32+
app.add_page(sign_in_page, route=route + "/[[...splat]]")
3333

3434

3535
def add_sign_up_page(
@@ -52,4 +52,4 @@ def add_sign_up_page(
5252
),
5353
publishable_key=publishable_key,
5454
)
55-
app.add_page(sign_up_page, route=route + "/[[...signup]]")
55+
app.add_page(sign_up_page, route=route + "/[[...splat]]")

pyproject.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ dynamic = ["version"]
2727
dependencies = [
2828
"authlib>=1.5.1,<2.0.0",
2929
"clerk-backend-api>=2.0.0,<3.0.0",
30-
"reflex>=0.7.5",
30+
"reflex>=0.8.0",
3131
]
3232

3333
classifiers = [
@@ -70,6 +70,8 @@ dev = [
7070
"pytest-pretty>=1.2.0",
7171
"ruff>=0.9.10",
7272
"semver>=3.0.4",
73-
"reflex==0.7.5", # https://github.com/reflex-dev/reflex/issues/5114 -- Pinned until this is fixed
73+
"reflex>=0.8.0",
7474
"hatchling>=1.27.0",
75+
"uvicorn>=0.38.0",
76+
"psutil>=7.0.0",
7577
]

tests/test_demo.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,12 @@ def test_render(page: Page):
121121
I.e. Check components are visible.
122122
"""
123123
page.pause()
124-
expect(page.locator('[id="__next"]')).to_contain_text("reflex-clerk-api demo")
125-
expect(page.locator('[id="__next"]')).to_contain_text("Getting Started")
126-
expect(page.locator('[id="__next"]')).to_contain_text("Demos")
124+
expect(page.get_by_role("heading", name="reflex-clerk-api demo")).to_contain_text(
125+
"reflex-clerk-api demo"
126+
)
127+
expect(page.get_by_role("heading", name="Getting Started")).to_contain_text(
128+
"Getting Started"
129+
)
127130

128131
expect(page.get_by_test_id("clerkstate_variables_and_methods")).to_be_visible()
129132
expect(page.get_by_test_id("clerk_loaded_and_signed_in_out_areas")).to_be_visible()

uv.lock

Lines changed: 109 additions & 224 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)