RxDB v13.0.0-beta.6 Release Notes

Release Date: 2022-08-09 // over 1 year ago
    • ๐Ÿ”Œ RENAME the ajv-validate plugin to validate-ajv to be in equal with the other validation plugins.
    • ๐Ÿ›  The is-my-json-valid validation is no longer supported until this bug is fixed.
    • ๐Ÿ”จ REFACTORED the schema validation plugins, they are no longer plugins but now they get wrapped around any other RxStorage.
      • It allows us to run the validation inside of a [Worker RxStorage](./rx-storage-worker.md) instead of running it in the main JavaScript process.
      • It allows us to configure which RxDatabase instance must use the validation and which does not. In production it often makes sense to validate user data, but you might not need the validation for data that is only replicated from the backend.
    • ๐Ÿ”จ REFACTORED the key compression plugin, it is no longer a plugin but now a wrapper around any other RxStorage.

      • It allows to run the key-comresion inside of a [Worker RxStorage](./rx-storage-worker.md) instead of running it in the main JavaScript process.
    • ๐Ÿ”จ REFACTORED the encryption plugin, it is no longer a plugin but now a wrapper around any other RxStorage.

      • It allows to run the encryption inside of a [Worker RxStorage](./rx-storage-worker.md) instead of running it in the main JavaScript process.
      • It allows do use asynchronous crypto function like WebCrypto
    • ๐ŸŽ Store the password hash in the same write request as the database token to improve performance.

    • โœ‚ REMOVED many unused plugin hooks because they decreased the performance.

    • โœ‚ REMOVED support for temporary documents see here

    • โœ‚ REMOVED RxDatabase.broadcastChannel The broadcast channel has been moved out of the RxDatabase and is part of the RxStorage. So it is not longer exposed via RxDatabase.broadcastChannel.

    • In the RxDB internal _meta.lwt field, we now use 2 decimals number of the unix timestamp in milliseconds.

    • โœ‚ REMOVE RxStorageStatics .hash and .hashKey

    • ๐Ÿ”„ CHANGE removed default usage of md5 as default hashing. Use a faster non-cryptographic hash instead.

      • ADD option to pass a custom hash function when calling createRxDatabase.
    • โœ‚ Removed the liveInterval option of the replication. It was an edge case feature with wrong defaults. If you want to run the pull replication on internval, you can send a RESYNC event manually in a loop.

    • ๐Ÿ”„ CHANGE use Float instead of Int to represent timestamps in GraphQL.

    • REPLACED RxReplicationPullError and RxReplicationPushError with normal RxError like in the rest of the RxDB code.

    • โœ‚ REMOVED the option to filter out replication documents with the push/pull modifiers #2552 because this does not work with the new replication protocol.

    • ๐Ÿ”„ CHANGE default of replication live to be set to true. Because most people want to do a live replication, not a one time replication.

    • ๐Ÿ”„ CHANGED Attachment data is now always handled as Blob because Node.js does support Blob since version 18.0.0 so we no longer have to use a Buffer but instead can use Blob for browsers and Node.js

    <!-- /CHANGELOG NEWEST -->

    ๐Ÿš€ <!-- RELEASE BELOW -->