1# Distributed Data Management Subsystem Changelog
2
3## cl.datashare.1 Change of the data Type in PublishedItem from Ashmem to ArrayBuffer
4
5**Change Impact**
6
7Changed the type of **data** in **PublishedItem** from Ashmem to ArrayBuffer.
8
9## PublishedItem<sup>10+</sup>
10
11Defines the data to publish.
12
13**System capability**: SystemCapability.DistributedDataManager.DataShare.Consumer
14
15| Name| Type| Mandatory| Description|
16| -------- | -------- | -------- | -------- |
17| key | string | Yes| Key of the data to publish.|
18| data | string \| ArrayBuffer | Yes| Data to publish. If a large volume of data is to be published, use **data** of the ArrayBuffer type. |
19| subscriberId | string | Yes| Subscriber ID.|
20
21**Adaptation Guide**
22The sample code is as follows:
23
24**Example**
25
26```ts
27let arrayBuffer = new ArrayBuffer(1);
28let version = 1;
29let data : Array<dataShare.PublishedItem> = [{key:"key2", subscriberId:"11", data:arrayBuffer}];
30function publishCallback(err, result: Array<dataShare.OperationResult>) {
31    console.info("publishCallback " + JSON.stringify(result));
32}
33try {
34    console.info("data length is:", data.length);
35    dataShareHelper.publish(data, "com.acts.ohos.data.datasharetest", version, publishCallback);
36} catch (e) {
37    console.error("publish error " + JSON.stringify(e));
38}
39```
40