Skip to content

feat(mutations): add custom mutations support

This PR introduces new feature allowing to set custom mutation func. This might be useful for:

  1. Structural mutations
  2. The input contains checksums that have to match the hash of some subset of the data or else the whole thing is invalid, and therefore mutating any of that subset means you need to recompute the checksums.
  3. Small random changes to the input buffer make it invalid.

To use custom mutation, just export mutate function.

See attached example

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading