4747from .._meta import (
4848 deprecation_warn ,
4949 experimental_warn ,
50- preview ,
51- preview_warn ,
5250 unclosed_resource_warn ,
5351)
5452from .._work import EagerResult
@@ -193,10 +191,7 @@ def driver(
193191 driver_type , security_type , parsed = parse_neo4j_uri (uri )
194192
195193 if not isinstance (auth , AsyncAuthManager ):
196- auth = AsyncAuthManagers .static ._without_warning (auth )
197- else :
198- preview_warn ("Auth managers are a preview feature." ,
199- stack_level = 2 )
194+ auth = AsyncAuthManagers .static (auth )
200195 config ["auth" ] = auth
201196
202197 # TODO: 6.0 - remove "trust" config option
@@ -357,7 +352,7 @@ def bookmark_manager(
357352 * ``bookmarks_consumer`` no longer receives the database name as
358353 an argument.
359354
360- .. versionchanged:: 5.8 stabilized from experimental
355+ .. versionchanged:: 5.8 Stabilized from experimental.
361356 """
362357 return AsyncNeo4jBookmarkManager (
363358 initial_bookmarks = initial_bookmarks ,
@@ -551,17 +546,14 @@ def session(self, **config) -> AsyncSession:
551546 def _session (self , session_config ) -> AsyncSession :
552547 return AsyncSession (self ._pool , session_config )
553548
554- def _read_session_config (self , config_kwargs , preview_check = True ):
555- config = self ._prepare_session_config (preview_check , config_kwargs )
549+ def _read_session_config (self , config_kwargs ):
550+ config = self ._prepare_session_config (config_kwargs )
556551 session_config = SessionConfig (self ._default_workspace_config ,
557552 config )
558553 return session_config
559554
560555 @classmethod
561- def _prepare_session_config (cls , preview_check , config_kwargs ):
562- if preview_check and "auth" in config_kwargs :
563- preview_warn ("User switching is a preview feature." ,
564- stack_level = 5 )
556+ def _prepare_session_config (cls , config_kwargs ):
565557 _normalize_notifications_config (config_kwargs )
566558 return config_kwargs
567559
@@ -745,11 +737,6 @@ async def example(driver: neo4j.AsyncDriver) -> int:
745737
746738 By default, the driver configuration is used.
747739
748- **This is a preview** (see :ref:`filter-warnings-ref`).
749- It might be changed without following the deprecation policy.
750- See also
751- https://github.com/neo4j/neo4j-python-driver/wiki/preview-features
752-
753740 See also the Session config :ref:`session-auth-ref`.
754741 :type auth_: typing.Tuple[typing.Any, typing.Any] | Auth | None
755742 :param result_transformer_:
@@ -839,8 +826,11 @@ async def example(driver: neo4j.AsyncDriver) -> neo4j.Record::
839826
840827 .. versionchanged:: 5.8
841828
842- * Added the ``auth_`` parameter.
829+ * Added ``auth_`` parameter in preview .
843830 * Stabilized from experimental.
831+
832+ .. versionchanged:: 5.14
833+ Stabilized ``auth_`` parameter from preview.
844834 """
845835 self ._check_state ()
846836 invalid_kwargs = [k for k in kwargs if
@@ -865,8 +855,7 @@ async def example(driver: neo4j.AsyncDriver) -> neo4j.Record::
865855 "impersonated_user" : impersonated_user_ ,
866856 "bookmark_manager" : bookmark_manager_ ,
867857 "auth" : auth_ ,
868- },
869- preview_check = False
858+ }
870859 )
871860 session = self ._session (session_config )
872861 async with session :
@@ -1072,7 +1061,7 @@ async def supports_multi_db(self) -> bool:
10721061 driver feature.
10731062 """
10741063 self ._check_state ()
1075- session_config = self ._read_session_config ({}, preview_check = False )
1064+ session_config = self ._read_session_config ({})
10761065 async with self ._session (session_config ) as session :
10771066 await session ._connect (READ_ACCESS )
10781067 assert session ._connection
@@ -1106,7 +1095,6 @@ async def verify_authentication(
11061095
11071096 else :
11081097
1109- @preview ("User switching is a preview feature." )
11101098 async def verify_authentication (
11111099 self ,
11121100 auth : t .Union [Auth , t .Tuple [t .Any , t .Any ], None ] = None ,
@@ -1140,12 +1128,9 @@ async def verify_authentication(
11401128 Use the exception to further understand the cause of the
11411129 connectivity problem.
11421130
1143- **This is a preview** (see :ref:`filter-warnings-ref`).
1144- It might be changed without following the deprecation policy.
1145- See also
1146- https://github.com/neo4j/neo4j-python-driver/wiki/preview-features
1147-
11481131 .. versionadded:: 5.8
1132+
1133+ .. versionchanged:: 5.14 Stabilized from experimental.
11491134 """
11501135 self ._check_state ()
11511136 if config :
@@ -1190,7 +1175,7 @@ async def supports_session_auth(self) -> bool:
11901175 .. versionadded:: 5.8
11911176 """
11921177 self ._check_state ()
1193- session_config = self ._read_session_config ({}, preview_check = False )
1178+ session_config = self ._read_session_config ({})
11941179 async with self ._session (session_config ) as session :
11951180 await session ._connect (READ_ACCESS )
11961181 assert session ._connection
0 commit comments