# Upgrade weaviate client, does previous code still work?

**URL:** <https://forum.weaviate.io/t/upgrade-weaviate-client-does-previous-code-still-work/3885>\
**Category:** Support\
**Created:** [August 28, 2024, 9:59pm UTC](https://forum.weaviate.io/t/upgrade-weaviate-client-does-previous-code-still-work/3885 "2024-08-28T21:59:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alisha\_liu](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/alisha_liu/32/1035_2.png) [@alisha\_liu](https://forum.weaviate.io/u/alisha_liu)\
**Post date:** [August 28, 2024, 9:59pm UTC](https://forum.weaviate.io/t/upgrade-weaviate-client-does-previous-code-still-work/3885/1 "2024-08-28T21:59:09Z")

</div>

### Description

1 Upgrade the typescript client library from v2 to v3, does the previous v2 code still work?

2 Upgrade the python client library from v3 to v4, does the previous v3 code still work?

---

<div class="post-metadata">

**Author:** ![Shahin](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/shahin/32/7944_2.png) [@Shahin](https://forum.weaviate.io/u/Shahin)\
**Post date:** [August 30, 2024, 3:09pm UTC](https://forum.weaviate.io/t/upgrade-weaviate-client-does-previous-code-still-work/3885/2 "2024-08-30T15:09:22Z")

</div>

Hello @alisha_liu,

We are always working on features and improvements in our clients to best developer experience.

You probably come across that the Weaviate Python client to an extensively re-written (and improved) `v4` API around six months ago. Up until now, the `v4` client versions had included the older `v3` API in order to ease the transition.  
Starting in December 2024, the `v4` client will no longer include the `v3` API (i.e. the `weaviate.Client` class). This will help us to provide the best developer experience for you, support for the latest features, and clearly separate the two.

The `v3` client will continue to get critical security updates and bugfixes for the foreseeable future, but it will not support any new features.

To take advantage of the latest developments on the Weaviate core database, we recommend migrating your codebase to use the `v4` API.

If you have an existing codebase and Weaviate core database that you expect to remain static, we recommend pinning the version in your requirements file (e.g. `requirements.txt`), like so:

```auto
  weaviate-client>=3.26.7,<4.0.0

```

I hope this helps

Have a lovely weekend!
