---
schema_version: "1"
id: 8e69d363ca5e9409d7974100fe0a2a147fad0a6cbacb3b805178ac85479084cc
title: What’s New in DataWeave
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/dataweave/2.4/whats-new-in-dw.md
canonical_url: https://docs.mulesoft.com/dataweave/2.4/whats-new-in-dw
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 11d87ec3f87153eb4c5e08794feb58dd1ebdf6d7f7d26b401af85754e4be007f
description: MuleSoft Documentation Site
release: "2.4"
latest: false
---
---
product: DataWeave
version: 2.4
---

# What’s New in DataWeave

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

DataWeave 2.4 is bundled with Mule 4.4. The 2.4 version of DataWeave introduces the following
features:

- Ability to read larger-than-memory strings automatically. When you are using the indexed reader
  strategy and processing a String with a size larger than 1.5 MB, DataWeave automatically splits
  the value in chunks to avoid out-of-memory issues. Related reader properties are
  `com.mulesoft.dw.max_memory_allocation` and `com.mulesoft.dw.buffered_char_sequence.enabled`.
  Refer to [Indexed Readers in DataWeave](https://docs.mulesoft.com/dataweave/2.4/dataweave-indexed-readers#large-strings-management).

- New reader and writer properties for working with data formats. For example, the XML writer now
  enables you to define namespaces at the root level.

- Many new modules, functions, types, annotations, and variables. Some are experimental and subject
  to change in future releases.

- A number of functions are overloaded to introduce new helper functions for handling `null` values.

Changes to the documentation include more detailed function signatures and organization of the
functions by their module names, such as `dw::Core`, `dw::core::Strings`, and `dw::util::Math`.

DataWeave 2.4 is bundled with Mule 4.4. For information about the Mule 4.4 release, refer to
[What’s New in Mule 4.4](https://docs.mulesoft.com/mule-runtime/4.4/whats-new-in-mule).

## New Properties for Data Formats

DataWeave introduces the following reader and writer properties:

- DataWeave (dw) reader property: `privileges` enables you to provide a comma-separated list of
  privileges to use in the format, such as `'Resources,Properties'`.

- Excel (XLSX) reader property: `tableLimit` enables you to set position of the last column in each
  row.

- YAML writer property: `writeDeclaration` enables you to write the header declaration.

- XML writer properties: `defaultNamespace` specifies the default namespaces of the output XML , and
  `writeDeclaredNamespaces` marks the namespaces to declare in the root element of the XML.

## New DataWeave Function Modules and Features

New DataWeave modules and features:

- [dw::Core](https://docs.mulesoft.com/dataweave/2.4/dw-core) introduces new functions and annotations:

  - [indexOf](https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-indexof)

  - [lastIndexOf](https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-lastindexof)

  - [onNull](https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-onnull)

  - [then](https://docs.mulesoft.com/dataweave/2.4/dw-core-functions-then)

  - [Core Annotations](https://docs.mulesoft.com/dataweave/2.4/dw-core-annotations) introduces a number of new annotations.

- [dw::core::Dates](https://docs.mulesoft.com/dataweave/2.4/dw-dates) is a new module with functions and types to create and manipulate Date
  types, for example, the function `today`.

- [dw::core::Strings](https://docs.mulesoft.com/dataweave/2.4/dw-strings) introduces new functions:

  - [collapse](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-collapse)

  - [countCharactersBy](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-countcharactersby)

  - [countMatches](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-countmatches)

  - [everyCharacter](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-everycharacter)

  - [first](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-first)

  - [hammingDistance](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-hammingdistance)

  - [last](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-last)

  - [levenshteinDistance](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-levenshteindistance)

  - [lines](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-lines)

  - [mapString](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-mapstring)

  - [remove](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-remove)

  - [replaceAll](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-replaceall)

  - [reverse](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-reverse)

  - [someCharacter](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-somecharacter)

  - [substring](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-substring)

  - [substringBy](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-substringby)

  - [substringEvery](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-substringevery)

  - [words](https://docs.mulesoft.com/dataweave/2.4/dw-strings-functions-words)

- [dw::util::Coercions](https://docs.mulesoft.com/dataweave/2.4/dw-coercions) is a new DataWeave module with functions and types to simplify
  data type transformations, for example, the function `toString`.

- [dw::util::Math](https://docs.mulesoft.com/dataweave/2.4/dw-math) is a new DataWeave module with functions and variables that provides
  mathematical functions, for example, the function `sin`.

- [dw::util::Periods](https://docs.mulesoft.com/dataweave/2.4/dw-periods) is a new DataWeave module with functions and types to simplify the
  creation of Periods, for example, the function `days`.

- [dw::util::Tree](https://docs.mulesoft.com/dataweave/2.4/dw-tree) introduces new functions:

  - [filterArrayLeafs](https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-filterarrayleafs)

  - [filterObjectLeafs](https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-filterobjectleafs)

  - [filterTree](https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-filtertree)

  - [isArrayType](https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-isarraytype)

  - [isAttributeType](https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-isattributetype)

  - [isObjectType](https://docs.mulesoft.com/dataweave/2.4/dw-tree-functions-isobjecttype)

- [dw::util::Values](https://docs.mulesoft.com/dataweave/2.4/dw-values-types) provides a new type `UpdaterValueProvider`.
