diff --git a/reflex/app.py b/reflex/app.py index 40c63372f..7ab4b5abe 100644 --- a/reflex/app.py +++ b/reflex/app.py @@ -174,7 +174,7 @@ class App(Base): feature_name="`state` argument for App()", reason="due to all `rx.State` subclasses being inferred.", deprecation_version="0.3.5", - removal_version="0.4.0", + removal_version="0.5.0", ) if len(State.class_subclasses) > 0: self.state = State @@ -451,7 +451,7 @@ class App(Base): feature_name="Passing script tags to add_page", reason="Add script components as children to the page component instead", deprecation_version="0.2.9", - removal_version="0.4.0", + removal_version="0.5.0", ) component.children.extend(script_tags) @@ -649,7 +649,7 @@ class App(Base): reason="Explicit calls to app.compile() are not needed." " Method will be removed in 0.4.0", deprecation_version="0.3.8", - removal_version="0.4.0", + removal_version="0.5.0", ) return diff --git a/reflex/components/component.py b/reflex/components/component.py index ffee162fa..e619b7004 100644 --- a/reflex/components/component.py +++ b/reflex/components/component.py @@ -387,7 +387,7 @@ class Component(BaseComponent, ABC): feature_name="EventChain", reason="to avoid confusion, only use yield API", deprecation_version="0.2.8", - removal_version="0.4.0", + removal_version="0.5.0", ) events: list[EventSpec] = [] for v in value: diff --git a/reflex/components/markdown/markdown.py b/reflex/components/markdown/markdown.py index 62a35e74e..ed3f65349 100644 --- a/reflex/components/markdown/markdown.py +++ b/reflex/components/markdown/markdown.py @@ -123,7 +123,7 @@ class Markdown(Component): feature_name="rx.markdown custom_styles", reason="Use the component_map prop instead.", deprecation_version="0.2.9", - removal_version="0.4.0", + removal_version="0.5.0", ) # Update the base component map with the custom component map. diff --git a/reflex/config.py b/reflex/config.py index c3149adb2..9739c8ec2 100644 --- a/reflex/config.py +++ b/reflex/config.py @@ -291,7 +291,7 @@ class Config(Base): feature_name="Passing event_namespace in the config", reason="", deprecation_version="0.3.5", - removal_version="0.4.0", + removal_version="0.5.0", ) return f'/{self.event_namespace.strip("/")}' diff --git a/reflex/event.py b/reflex/event.py index afdc2547a..499b4877a 100644 --- a/reflex/event.py +++ b/reflex/event.py @@ -737,7 +737,7 @@ def call_event_handler( feature_name="EVENT_ARG API for triggers", reason="Replaced by new API using lambda allow arbitrary number of args", deprecation_version="0.2.8", - removal_version="0.4.0", + removal_version="0.5.0", ) if len(args) == 1: return event_handler() diff --git a/reflex/state.py b/reflex/state.py index 51b925fe0..33ff12c17 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -747,7 +747,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name="get_token", reason="replaced by `State.router.session.client_token`", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) return self.router_data.get(constants.RouteVar.CLIENT_TOKEN, "") @@ -761,7 +761,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name="get_sid", reason="replaced by `State.router.session.session_id`", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) return self.router_data.get(constants.RouteVar.SESSION_ID, "") @@ -775,7 +775,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name="get_headers", reason="replaced by `State.router.headers`", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) return self.router_data.get(constants.RouteVar.HEADERS, {}) @@ -789,7 +789,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name="get_client_ip", reason="replaced by `State.router.session.client_ip`", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) return self.router_data.get(constants.RouteVar.CLIENT_IP, "") @@ -806,7 +806,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name="get_current_page", reason="replaced by State.router.page / self.router.page", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) return self.router.page.raw_path if origin else self.router.page.path @@ -823,7 +823,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name="get_query_params", reason="replaced by `State.router.page.params`", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) return self.router_data.get(constants.RouteVar.QUERY, {}) @@ -837,7 +837,7 @@ class BaseState(Base, ABC, extra=pydantic.Extra.allow): feature_name=f"rx.get_cookies", reason="and has been replaced by rx.Cookie, which can be used as a state var", deprecation_version="0.3.0", - removal_version="0.4.0", + removal_version="0.5.0", ) cookie_dict = {} cookies = self.get_headers().get(constants.RouteVar.COOKIE, "").split(";") diff --git a/reflex/utils/prerequisites.py b/reflex/utils/prerequisites.py index f4dd5146d..8fe5493ac 100644 --- a/reflex/utils/prerequisites.py +++ b/reflex/utils/prerequisites.py @@ -203,7 +203,7 @@ def get_redis() -> Redis | None: feature_name="host[:port] style redis urls", reason="redis-py url syntax is now being used", deprecation_version="0.3.6", - removal_version="0.4.0", + removal_version="0.5.0", ) redis_url, has_port, redis_port = config.redis_url.partition(":") if not has_port: