RavenDB 4.0 doesn't have the notion of bundles. All features are built into the RavenDB server.
Many of RavenDB 3.x bundles have been designed to work in a cluster environment. You will find them as Ongoing Tasks.
However, some of the bundles are no longer available in version 4.0 so it might be necessary to take a different approach during the migration of some functionalities.
The attachments are always tied to their documents. The deletion of a document results in removing all its attachments as well (in the same transaction).
Deletion of referenced / child documents needs to be handled by your application. You just simply need to call session.Delete() for related documents when deleting the main one.
The large fields of documents being strings are compressed by default. It is the built-in feature of the blittable JSON: the internal format for storing documents by RavenDB. The repeated properties are also optimized.
Each attachment has the hash calculated based on its content. If multiple attachments have the same hash, the data will be stored just once.
The encryption can be turned on during a database creation. Data is encrypted by the 'ChaCha20-Poly1305' algorithm from a well-known battle-tested encryption library called 'libsodium'.
Document Expiration can be enabled in the database settings.
It can be setup as a backup task. You can choose what kind of backup you want to create periodically.
When running in a cluster, the replication is always turned on between databases belonging to the same database group. In addition, you can define external replication tasks that will create an off-site replica outside the cluster.