---
title: Ditto v2 for JavaScript
slug: v4-4/4HtM8Gxyj6k0RIQXh9wtZ
docTags: 
createdAt: 2023-08-22T18:59:10.411Z
---

### JavaScript Version 2.1.0

Released: Wed Nov 2nd 2022, 4:51 pm

Release Notes:

- Added: missing methods
- Deprecated: method

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.1.0
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.1.0
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.1.0/api-reference/)

### JavaScript Version 2.0.8

Released: Thu Oct 27th 2022, 5:14 pm

Release Notes:

- Synchronized version bump release

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.8
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.8
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.8/api-reference/)

### JavaScript Version 2.0.7

Released: Thu Sep 22nd 2022, 8:02 pm

Release Notes:

- Changed: New lock file ensures we have only 1 SDK instance per working dir
- Fixed: Reduced the amount of disk space used by sync metadata by up to 50% in some cases

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.7
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.7
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.7/api-reference/)

### JavaScript Version 2.0.6

Released: Thu Sep 15th 2022, 4:46 pm

Release Notes:

- Fixed: Ensure Ditto internal auth client is shut down correctly when it's no longer needed

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.6
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.6
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.6/api-reference/)

### JavaScript Version 2.0.5

Released: Thu Sep 8th 2022, 3:20 pm

Release Notes:

- Fixed: a very rare deadlock when running on Node/macOS and starting sync immediately after creating the Ditto instance.

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.5
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.5
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.5/api-reference/)

### JavaScript Version 2.0.4

Released: Thu Sep 1st 2022, 11:31 am

Release Notes:

- Synchronized version bump release

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.4
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.4
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.4/api-reference/)

### JavaScript Version 2.0.3

Released: Wed Aug 31st 2022, 10:20 am

Release Notes:

- Fixed: when calling
- Changed: the status observer returned by
- Changed: the attachment fetcher returned by
- Changed: method
- Added: method
- Changed: presence data is no longer synced with the big peer.

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.3
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.3
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.3/api-reference/)

### JavaScript Version 2.0.2

Released: Fri Aug 26th 2022, 6:58 pm

Release Notes:

- Fixed: when calling

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.2
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.2
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.2/api-reference/)

### JavaScript Version 2.0.1

Released: Sat Aug 13th 2022, 9:57 pm

Release Notes:

- Fixed: inserting a

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.1
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.1
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.1/api-reference/)

### JavaScript Version 2.0.0

Released: Wed Aug 3rd 2022, 7:54 am

Release Notes:

- Added:
- Added: property
- Changed: method
- Changed: method
- Changed type of property
- Changed: method
- Changed: method
- Removed: property
- Removed: static method
- Removed: static method
- Note: peers running
- Added: support for explicitly typing values as CRDT registers. This is via 2 new types:
- Changed: the
- Added: support for accessing and creating RGAs (Replicated Growable Arrays), which was the default CRDT type for arrays in Ditto v1. There are 2 new types:
- Changed: arrays now default to being
- Changed:
- Removed:
- Added: property
- Added: property
- Added: convenience method
- Removed type
- Removed: static
- Removed: static
- Removed: static
- Removed: static
- Removed: deprecated static
- Removed: deprecated identities of type
- Removed: deprecated
- Removed: deprecated
- Removed: deprecated
- Removed: deprecated static
- Removed: deprecated
- Removed: deprecated
- Removed: deprecated
- Changed: renamed
- Changed: removed
- Removed:

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.0
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.0
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.0/api-reference/)

### JavaScript Version 2.0.0-alpha1

Released: Wed Jul 20th 2022, 4:55 am

Release Notes:

This is a preview release of Ditto v2. Full changelog will be provided with the official release.

Installation:

:::BlockQuote
npm install --save @dittolive/ditto\@2.0.0-alpha1
:::

If you have yarn:

:::BlockQuote
yarn add @dittolive/ditto\@2.0.0-alpha1
:::

[API Reference URL](https://software.ditto.live/js/Ditto/2.0.0-alpha1/api-reference/)
